reachy.io.cam
¶
Wrapper around two RPI and the multi channel switch.
It relies on the use of the Multi_Adapter_Board_2Channel_uc444 for switching camera via the I2C and GPIO control.
Module Contents¶
Classes¶
Wrapper on OpenCV VideoCapture object. |
- class reachy.io.cam.BackgroundVideoCapture(camera_index, resolution=(600, 800), lazy_setup=True)¶
Bases:
object
Wrapper on OpenCV VideoCapture object.
- Parameters
Instantiating this object will automatically start the polling of image in background.
This wrapper is reponsible for automatically polling image on the camera. This ensures that we can always access the most recent image.
- _setup(self)¶
- close(self)¶
Stop polling image and release the Video Capture.
- _read_loop(self)¶
- read(self)¶
Retrieve the last grabbed image.