Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -449,7 +449,7 @@ def optimize(v, d):
|
|
449 |
|
450 |
dcolor = []
|
451 |
for k, f in enumerate(frames):
|
452 |
-
frame = cv2.imread(frames[k]).
|
453 |
|
454 |
# convert to np.float32
|
455 |
f = np.float32(frame.reshape((-1,3)))
|
|
|
449 |
|
450 |
dcolor = []
|
451 |
for k, f in enumerate(frames):
|
452 |
+
frame = cv2.cvtColor(cv2.imread(frames[k]).astype(np.uint8), cv2.COLOR_BGR2RGB)
|
453 |
|
454 |
# convert to np.float32
|
455 |
f = np.float32(frame.reshape((-1,3)))
|