Set of PyMoDAQ plugins for camera recognised by the opencv library (webcams, ...)
- Sebastien J. Weber (sebastien.weber@cnrs.fr)
Below is the list of instruments included in this plugin
opencv: control of cameras using the opencv library (mainly webcams)
It is built on the camera base class of
pymodaq_plugins_utils(CameraBase), with the driverhardware/opencv_camera.pythat follows the camera driver interface of that package. So it has the same settings as the other camera plugins: live and snap, averaging, the ROI drawn in the viewer (Update ROI from Viewer, Apply ROI, Clear ROI+Bin), binning and FPS. A webcam has neither a hardware ROI nor binning: they are applied on each image (binning is the mean of the pixels).- Camera index: the camera to open (0 is usually the one built in the laptop).
- Color Conversion: OpenCV gives colour images, converted by default to gray (
RGB2GRAY). WithNonethe three channels (red, green, blue) are given. - Cam. Settings: the properties that OpenCV can read on the camera (brightness, gain, exposure...), the unit of some depends on the backend. Changing the frame width or height there resets the ROI. Open Settings shows the settings window of the driver of the camera (DirectShow, Windows).
The exposure time and buffer settings of the camera base class are hidden: OpenCV does not set them in a portable way, use Cam. Settings.