surya-veer / movement-tracking

UP - DOWN - LEFT - RIGHT movement tracking.
366 stars 101 forks source link

Getting error (I am very beginner) #11

Open TechMastering1 opened 4 years ago

TechMastering1 commented 4 years ago

Screenshot_2020-08-04-21-21-03-55 @surya-veer @Yohannfra please help 🙏

surya-veer commented 4 years ago

@TechMastering1 follow this issue https://github.com/surya-veer/movement-tracking/issues/4#issuecomment-664018021

TechMastering1 commented 4 years ago

I am using it on raspberry pi I entered this command in pi terminal "sudo modprobe bcm2835-v4l2 # to load it and create /dev/video0"

And then edited 67th line with " video_capture = cv2.VideoCapture(-1) to video_capture = cv2.VideoCapture('dev/video0') "

It says error Screenshot_2020-08-04-23-15-30-11

surya-veer commented 4 years ago

video_capture = cv2.VideoCapture(-1) to video_capture = cv2.VideoCapture('dev/video0')