Skip to content

Commit

Permalink
feat: update the CameraRoiWidget to handle multiple cameras (pymmcore…
Browse files Browse the repository at this point in the history
…-plus#292)

* feat: update logic

* fix: setROI

* fix: _update_camera_info

* fix: ser roi

* fix: _get_loaded_cameras + snap_checkbox

* fix: update logic for multi_cam

* test: update tests

* fix: reoreder methods

* fix: remove unused

* create wdg within main class

* fix: comment

* fix: comment

* test: fix

* test: fix

* fix: revert

* add second camera to camera widget

---------

Co-authored-by: Talley Lambert <[email protected]>
  • Loading branch information
fdrgsp and tlambert03 authored Nov 22, 2024
1 parent 7fccf95 commit 7f37c83
Show file tree
Hide file tree
Showing 3 changed files with 732 additions and 450 deletions.
6 changes: 5 additions & 1 deletion examples/camera_roi_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@
mmc = CMMCorePlus().instance()
mmc.loadSystemConfiguration()

# this widget supports multiple camera devices
mmc.loadDevice("Camera2", "DemoCamera", "DCam")
mmc.initializeDevice("Camera2")

cam_roi_wdg = CameraRoiWidget()
cam_roi_wdg.show()

app.exec_()
app.exec()
Loading

0 comments on commit 7f37c83

Please sign in to comment.