luispaulot / DetectParking

OpenCV detect parking
22 stars 13 forks source link

how to use a live camera feed instead of a video file #6

Open pavitrashah opened 5 years ago

pavitrashah commented 5 years ago

Hi, I have tried this code with a camera by ( cap = cv2.VideoCapture(0) ) but it is not working properly, every spot is always detected as occupied and frame are shown as (Frames: 0/-1 ).

So can anyone please help me to modify this code to make it work with camera feed.

And can you please tell me how to slow down the frames processed in a sec in the video mode.