Spaces:
Runtime error
Runtime error
Update webapp.py
Browse files
webapp.py
CHANGED
@@ -479,7 +479,7 @@ class DemoCase:
|
|
479 |
self.FRAME_HEIGHT, self.FRAME_WIDTH, 3
|
480 |
]) * 255).astype(np.uint8)
|
481 |
elif frame.shape != (self.FRAME_HEIGHT, self.FRAME_WIDTH, 3):
|
482 |
-
frame = cv2.resize(frame, (self.
|
483 |
|
484 |
# do something with your OpenCV frame here
|
485 |
draw_text(
|
|
|
479 |
self.FRAME_HEIGHT, self.FRAME_WIDTH, 3
|
480 |
]) * 255).astype(np.uint8)
|
481 |
elif frame.shape != (self.FRAME_HEIGHT, self.FRAME_WIDTH, 3):
|
482 |
+
frame = cv2.resize(frame, (self.FRAME_WIDTH, self.FRAME_HEIGHT))
|
483 |
|
484 |
# do something with your OpenCV frame here
|
485 |
draw_text(
|