Spaces:
Runtime error
Runtime error
Commit
·
5c5d1fb
1
Parent(s):
d9c7dce
Update annotation_handler.py
Browse files
gradio_scripts/annotation_handler.py
CHANGED
@@ -41,7 +41,6 @@ def init_frames(dataset, preds, index, gp=None):
|
|
41 |
# Extract frames
|
42 |
img_raw = dataset.didson.load_frames(start_frame=index+i, end_frame=index+i+1)[0]
|
43 |
image = cv2.resize(cv2.cvtColor(img_raw, cv2.COLOR_GRAY2BGR), (w, h))
|
44 |
-
#cv2.imwrite("annotation_frame_dir/" + str(i) + ".jpg", image)
|
45 |
retval, buffer = cv2.imencode('.jpg', image)
|
46 |
b64 = base64.b64encode(buffer).decode("utf-8")
|
47 |
|
|
|
41 |
# Extract frames
|
42 |
img_raw = dataset.didson.load_frames(start_frame=index+i, end_frame=index+i+1)[0]
|
43 |
image = cv2.resize(cv2.cvtColor(img_raw, cv2.COLOR_GRAY2BGR), (w, h))
|
|
|
44 |
retval, buffer = cv2.imencode('.jpg', image)
|
45 |
b64 = base64.b64encode(buffer).decode("utf-8")
|
46 |
|