Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions luxonis_ml/data/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,7 @@ def inspect(
new_h, new_w = int(h * size_multiplier), int(w * size_multiplier)
image = cv2.resize(image, (new_w, new_h))

cv2.namedWindow(source_name, cv2.WINDOW_NORMAL)
if per_instance and matched_instance_keys:
extra_keys = [
k for k in labels if k not in matched_instance_keys
Expand All @@ -419,6 +420,11 @@ def inspect(
classes,
blend_all=blend_all,
)
cv2.resizeWindow(
source_name,
instance_image.shape[1],
instance_image.shape[0],
)
cv2.imshow(source_name, instance_image)
if cv2.waitKey() == ord("q"):
break
Expand All @@ -431,6 +437,9 @@ def inspect(
labeled_image = visualize(
image, source_name, labels, classes, blend_all=blend_all
)
cv2.resizeWindow(
source_name, labeled_image.shape[1], labeled_image.shape[0]
)
cv2.imshow(source_name, labeled_image)

prev_windows = current_windows
Expand Down
Loading