Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
import cv2
|
|
|
|
| 2 |
def to_bin(data):
|
| 3 |
"""Convert `data` to binary format as string"""
|
| 4 |
if isinstance(data, str):
|
|
|
|
| 1 |
import cv2
|
| 2 |
+
import numpy as np
|
| 3 |
def to_bin(data):
|
| 4 |
"""Convert `data` to binary format as string"""
|
| 5 |
if isinstance(data, str):
|