Page 1 of 1

The difference between capture_continuous and capture_sequence

Posted: Wed Jul 10, 2019 9:42 am
by coctien12
Hi All

Now I'm searching the method which can make capturing raw bayer pattern continuously with fixed time.
In the picamera documentation

Code: Select all

(http://picamera.readthedocs.io/en/lates ... amera.html)
, I found two method capture_continuous and capture_sequence.
I read the description but, it looks so similar for me. They have bayer option together and capture continuously.

Could I know what is the difference between them? and which option would be better for the purpose of capturing image with fixed time like 2sec.

Re: The difference between capture_continuous and capture_sequence

Posted: Wed Jul 10, 2019 10:23 am
by gordon77
From the docs... https://picamera.readthedocs.io/en/rele ... ipes2.html

...with the capture_continuous() method, the camera captures images continually until you tell it to stop.

All capture methods support the use_video_port option, but the methods differ in their ability to rapidly capture sequential frames. So, whilst capture() and capture_continuous() both support use_video_port, capture_sequence() is by far the fastest method (because it does not re-initialize an encoder prior to each capture). Using this method, the author has managed 30fps JPEG captures at a resolution of 1024x768.

By default, capture_sequence() is particularly suited to capturing a fixed number of frames rapidly, as in the following example which captures a “burst” of 5 images:

Re: The difference between capture_continuous and capture_sequence

Posted: Thu Jul 11, 2019 11:11 pm
by scmayo
I'm pretty sure that if you want Bayer data you have to use the still port rather than the video port (and I speak as someone who would LOVE to capture Bayer data through the video port). raspiraw allows a capture of raw data through the video port but that is restricted to more limited resolution and FOV as far as I can make out.

Re: The difference between capture_continuous and capture_sequence

Posted: Fri Jul 12, 2019 1:50 pm
by HermannSW
> raspiraw allows a capture of raw data through the video port but that is restricted to more limited resolution and FOV as far as I can make out
>
Why?
You can capture all modes with v1/v2 camera and raspiraw as described in the two tables in doc, search for "--mode":
https://www.raspberrypi.org/documentati ... /camera.md