You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to run this code in a raspberry 4.b. But it gives this error
pi@raspberrypi:~/python_video_stab-master/vidstab $ python3 videocap.py
Traceback (most recent call last):
File "videocap.py", line 6, in
max_frames=1000
File "/home/pi/.local/lib/python3.7/site-packages/vidstab/VidStab.py", line 551, in stabilize
self.frame_queue.set_frame_source(cv2.VideoCapture(input_path))
File "/home/pi/.local/lib/python3.7/site-packages/vidstab/frame_queue.py", line 36, in set_frame_source
if isinstance(source, cv2.VideoCapture):
TypeError: isinstance() arg 2 must be a type or tuple of types
The text was updated successfully, but these errors were encountered:
Hey,Rothax. I just solved this problem by changing the two isinstance()functions in /home/pi/.local/lib/python3.7/site-packages/vidstab/frame_queue.py from
I am trying to run this code in a raspberry 4.b. But it gives this error
pi@raspberrypi:~/python_video_stab-master/vidstab $ python3 videocap.py
Traceback (most recent call last):
File "videocap.py", line 6, in
max_frames=1000
File "/home/pi/.local/lib/python3.7/site-packages/vidstab/VidStab.py", line 551, in stabilize
self.frame_queue.set_frame_source(cv2.VideoCapture(input_path))
File "/home/pi/.local/lib/python3.7/site-packages/vidstab/frame_queue.py", line 36, in set_frame_source
if isinstance(source, cv2.VideoCapture):
TypeError: isinstance() arg 2 must be a type or tuple of types
The text was updated successfully, but these errors were encountered: