python_video_stab icon indicating copy to clipboard operation
python_video_stab copied to clipboard

Better RPI camera support

Open Howie9600 opened this issue 5 years ago • 4 comments
trafficstars

Hello I have been trying to get the code to work on live rpi camera. It says to use 0 or 1 but its not working. Any help would be awesome.

Thanks

Howie9600 avatar Jul 18 '20 12:07 Howie9600

I think more integrated pi camera support is warranted. I'm going to change this from a bug to a feature request and rename.

If you need an immediate fix. You can view this blog post from pyimagesearch on accessing the streaming video from picamera and pair that with the .stabilize_frame() method.

AdamSpannbauer avatar Jul 18 '20 16:07 AdamSpannbauer

Ok thank you I will try that now. I'm a bit confused with the .stabilze_frame tho.

Howie9600 avatar Jul 18 '20 16:07 Howie9600

which part would i add the .stabilize

Howie9600 avatar Jul 18 '20 16:07 Howie9600

You would need to adapt the code snippet shown here to meet your needs. You would replace the cv2.VideoCapture() with how to read from picamera as shown in the linked blog.

AdamSpannbauer avatar Jul 18 '20 16:07 AdamSpannbauer