Skip to content

About

plugin to use camera instrumented using the opencv library

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

pymodaq_plugins_opencv

Latest Version Documentation Status Publication Status

Set of PyMoDAQ plugins for camera recognised by the opencv library (webcams, ...)

Authors

Instruments

Below is the list of instruments included in this plugin

Viewer2D

  • 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 driver hardware/opencv_camera.py that 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). With None the 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.

About

plugin to use camera instrumented using the opencv library

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages