coctien12
Posts: 5
Joined: Thu Oct 04, 2018 4:47 am
Contact: Website

The difference between capture_continuous and capture_sequence

Wed Jul 10, 2019 9:42 am

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.

gordon77
Posts: 4077
Joined: Sun Aug 05, 2012 3:12 pm

Re: The difference between capture_continuous and capture_sequence

Wed Jul 10, 2019 10:23 am

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:

scmayo
Posts: 2
Joined: Tue Aug 29, 2017 1:00 am

Re: The difference between capture_continuous and capture_sequence

Thu Jul 11, 2019 11:11 pm

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.

User avatar
HermannSW
Posts: 1319
Joined: Fri Jul 22, 2016 9:09 pm
Location: Eberbach, Germany
Contact: Website Twitter YouTube

Re: The difference between capture_continuous and capture_sequence

Fri Jul 12, 2019 1:50 pm

> 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
⇨https://stamm-wilbrandt.de/en/Raspberry_camera.html

https://github.com/Hermann-SW/Raspberry_v1_camera_global_external_shutter
https://gitlab.freedesktop.org/HermannSW/gst-template
https://github.com/Hermann-SW/fork-raspiraw
https://twitter.com/HermannSW

Return to “Camera board”