LaboratoireMecaniqueLille / crappy

Command and Real-time Acquisition Parallelized in Python
https://crappy.readthedocs.io/en/stable/
GNU General Public License v2.0
81 stars 16 forks source link

Make it more user-friendly to instantiate custom Camera Blocks #50

Closed WeisLeDocto closed 1 year ago

WeisLeDocto commented 1 year ago

Until now, few efforts were made to allow users to create their own children of Camera Blocks (and of CameraProcess as well). A first step towards more accessibility was made with #49, but it was only improving the display of overlays on top of the displayed images for a custom Camera Block. The instantiation of the Block itself was still chaotic, as it required to access private members of the class and to manage obscure arguments (see the last comment of #47).

With this PR, the creation of custom Camera Blocks and CameraProcess is made more accessible and straightforward :

Some attributes and methods that can be accessed and overridden safely by users remain private, to signal that they should remain untouched in the general case.

Weis