Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ def process_vid(file):
|
|
27 |
print(i)
|
28 |
capture.set(cv2.CAP_PROP_POS_FRAMES, i)
|
29 |
ret, frame_f = capture.read(i)
|
30 |
-
|
31 |
out = os.path.abspath(f"{uid}-vid_tmp.png")
|
32 |
print(out)
|
33 |
res = rev_img_searcher.search(out)
|
|
|
27 |
print(i)
|
28 |
capture.set(cv2.CAP_PROP_POS_FRAMES, i)
|
29 |
ret, frame_f = capture.read(i)
|
30 |
+
cv2.imwrite(f"{uid}-vid_tmp.png", frame_f)
|
31 |
out = os.path.abspath(f"{uid}-vid_tmp.png")
|
32 |
print(out)
|
33 |
res = rev_img_searcher.search(out)
|