Omnibus commited on
Commit
93adb7c
·
1 Parent(s): 3175ec8

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +1 -1
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: