Skip to content

Commit

Permalink
Update imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ecyoung3 committed May 29, 2024
1 parent 0387fe6 commit aa8a052
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions src/frheed/ui/camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from PyQt6 import QtCore, QtGui, QtMultimedia, QtWidgets

from frheed import image_util
from frheed.ui import colormap, display


Expand Down Expand Up @@ -347,14 +348,9 @@ def on_image_changed(self, image: QtGui.QImage | None) -> None:
if image is None:
return

image_array = image_util.qimage_to_ndarray(image)
for shape in self.camera_display.shapes:
region = display.get_image_region(image, shape)

try:
print(
f"{region.sum() = }, {region.mean() = }, {region.min() = }, {region.max() = }"
)
# print(f"{region = }")
except ValueError:
# Array is empty
pass
_region = display.get_image_region(image_array, shape)
# print(
# f"{region.sum() = }, {region.mean() = }, {region.min() = }, {region.max() = }"
# )

0 comments on commit aa8a052

Please sign in to comment.