Skip to content

Commit 3b24ed6

Browse files
committed
fix: adjust syntax and remove unused var
1 parent b4f0767 commit 3b24ed6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/colordetection.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ def get_dominant_color(self, roi):
4242
:param roi: The image list.
4343
:returns: tuple
4444
"""
45-
average = roi.mean(axis=0).mean(axis=0)
4645
pixels = np.float32(roi.reshape(-1, 3))
4746

4847
n_colors = 1

src/video.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def scanned_successfully(self):
207207
for side, preview in self.result_state.items():
208208
for bgr in preview:
209209
key = str(bgr)
210-
if not key in color_count:
210+
if key not in color_count:
211211
color_count[key] = 1
212212
else:
213213
color_count[key] = color_count[key] + 1

0 commit comments

Comments
 (0)