Spaces:
Running
Running
Update utils.py
Browse files
utils.py
CHANGED
@@ -13,7 +13,7 @@ def to_bin(data):
|
|
13 |
raise TypeError("Type not supported.")
|
14 |
def decode(image_name,txt=None):
|
15 |
msg=""
|
16 |
-
BGRimage = cv2.imread(image_name)
|
17 |
image = cv2.cvtColor(BGRimage, cv2.COLOR_BGR2RGB)
|
18 |
binary_data = ""
|
19 |
for row in image:
|
|
|
13 |
raise TypeError("Type not supported.")
|
14 |
def decode(image_name,txt=None):
|
15 |
msg=""
|
16 |
+
BGRimage = cv2.imread(f"{image_name}")
|
17 |
image = cv2.cvtColor(BGRimage, cv2.COLOR_BGR2RGB)
|
18 |
binary_data = ""
|
19 |
for row in image:
|