bstraehle commited on
Commit
c62b997
·
verified ·
1 Parent(s): f21ded6

Update util.py

Browse files
Files changed (1) hide show
  1. util.py +4 -3
util.py CHANGED
@@ -19,17 +19,18 @@ def get_img_b64(file_path):
19
  def get_imgs_b64(file_path):
20
  video = cv2.VideoCapture(file_path)
21
 
22
- print("#################################################3")
23
  print(file_path)
24
  print(video)
 
25
  result = []
26
 
27
  while video.isOpened():
28
  success, frame = video.read()
29
- print(success)
30
- print(frame)
31
  if not success:
32
  break
 
33
  _, buffer = cv2.imencode(".png", frame)
34
  result.append(base64.b64encode(buffer).decode("utf-8"))
35
 
 
19
  def get_imgs_b64(file_path):
20
  video = cv2.VideoCapture(file_path)
21
 
22
+ print("#######")
23
  print(file_path)
24
  print(video)
25
+ print("#######")
26
  result = []
27
 
28
  while video.isOpened():
29
  success, frame = video.read()
30
+
 
31
  if not success:
32
  break
33
+
34
  _, buffer = cv2.imencode(".png", frame)
35
  result.append(base64.b64encode(buffer).decode("utf-8"))
36