Better Hue overflow handling

This commit is contained in:
2018-06-29 11:25:19 +02:00
parent fdc4ee6784
commit 9f3fe74be6
3 changed files with 13 additions and 31 deletions

View File

@@ -76,6 +76,8 @@ class Colorpicker(object):
def _hsv_updated(self, param):
cv2.setTrackbarPos(param, self.WINDOW_DETECTION_NAME,
self.settings[param])
if self.marker is None:
return
self.marker.hsv_lower = tuple(
map(self.settings.get, ('low_h', 'low_s', 'low_v'))
)