-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
Using the video filter with the following config item:
- "empty": [["video", "tumbleweed.gif", 5]]
I get the following error trace :
Loading video: tumbleweed.gif
[ERROR:0] global /tmp/scratch/3942/pip-install-5mr76rqs/opencv-python_bb4cd8da7f5644bc83c7d0718e3f53ca/opencv/modules/videoio/src/cap.cpp (140) open VIDEOIO(CV_IMAGES): raised OpenCV exception:
OpenCV(4.4.0) /tmp/scratch/3942/pip-install-5mr76rqs/opencv-python_bb4cd8da7f5644bc83c7d0718e3f53ca/opencv/modules/videoio/src/cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find starting number (in the name of file): tumbleweed.gif in function 'icvExtractPattern'
Traceback (most recent call last):
File "/home/me/git/virtual_webcam_background/./virtual_webcam.py", line 154, in <module>
layers = reload_layers(config)
File "/home/me/git/virtual_webcam_background/./virtual_webcam.py", line 60, in reload_layers
layers.append((layer_type, filters.get_filters(config, layer_filters)))
File "/home/me/git/virtual_webcam_background/filters/__init__.py", line 39, in get_filters
image_filters.append(image_filter_class(config=config,
File "/home/me/git/virtual_webcam_background/filters/video.py", line 69, in __init__
self.reload_video()
File "/home/me/git/virtual_webcam_background/filters/video.py", line 81, in reload_video
self.image = next(self.generator)
File "/home/me/git/virtual_webcam_background/filters/video.py", line 28, in lazy_load_video
every_nth_frame = np.ceil(fps / target_fps)
ZeroDivisionError: division by zero
Metadata
Metadata
Assignees
Labels
No labels