argus-cv 1.0.1__py3-none-any.whl → 1.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
argus/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """Argus - Vision AI dataset toolkit."""
2
2
 
3
- __version__ = "1.0.1"
3
+ __version__ = "1.1.0"
argus/cli.py CHANGED
@@ -250,6 +250,7 @@ def view(
250
250
  - Mouse Wheel: Zoom in/out
251
251
  - Mouse Drag: Pan when zoomed
252
252
  - R: Reset zoom
253
+ - T: Toggle annotations
253
254
  - Q / ESC: Quit viewer
254
255
  """
255
256
  # Resolve path and validate
@@ -298,7 +299,8 @@ def view(
298
299
  f"[green]Found {len(image_paths)} images. "
299
300
  f"Opening viewer...[/green]\n"
300
301
  "[dim]Controls: ← / → or P / N to navigate, "
301
- "Mouse wheel to zoom, Drag to pan, R to reset, Q / ESC to quit[/dim]"
302
+ "Mouse wheel to zoom, Drag to pan, R to reset, T to toggle annotations, "
303
+ "Q / ESC to quit[/dim]"
302
304
  )
303
305
 
304
306
  # Generate consistent colors for each class
@@ -480,6 +482,9 @@ class _ImageViewer:
480
482
  self.current_img: np.ndarray | None = None
481
483
  self.annotated_img: np.ndarray | None = None
482
484
 
485
+ # Annotation visibility toggle
486
+ self.show_annotations = True
487
+
483
488
  def _load_current_image(self) -> bool:
484
489
  """Load and annotate the current image."""
485
490
  image_path = self.image_paths[self.current_idx]
@@ -500,7 +505,12 @@ class _ImageViewer:
500
505
  if self.annotated_img is None:
501
506
  return np.zeros((480, 640, 3), dtype=np.uint8)
502
507
 
503
- img = self.annotated_img
508
+ if self.show_annotations:
509
+ img = self.annotated_img
510
+ elif self.current_img is not None:
511
+ img = self.current_img
512
+ else:
513
+ img = self.annotated_img
504
514
  h, w = img.shape[:2]
505
515
 
506
516
  if self.zoom == 1.0 and self.pan_x == 0.0 and self.pan_y == 0.0:
@@ -537,6 +547,8 @@ class _ImageViewer:
537
547
  info_text = f"[{idx}/{total}] {image_path.name}"
538
548
  if self.zoom > 1.0:
539
549
  info_text += f" (Zoom: {self.zoom:.1f}x)"
550
+ if not self.show_annotations:
551
+ info_text += " [Annotations: OFF]"
540
552
 
541
553
  cv2.putText(
542
554
  display, info_text, (10, 30),
@@ -638,6 +650,8 @@ class _ImageViewer:
638
650
  self._prev_image()
639
651
  elif key == ord("r"): # R to reset zoom
640
652
  self._reset_view()
653
+ elif key == ord("t"): # T to toggle annotations
654
+ self.show_annotations = not self.show_annotations
641
655
 
642
656
  cv2.destroyAllWindows()
643
657
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: argus-cv
3
- Version: 1.0.1
3
+ Version: 1.1.0
4
4
  Summary: CLI tool for working with vision AI datasets
5
5
  Requires-Python: >=3.10
6
6
  Requires-Dist: numpy>=1.24.0
@@ -1,13 +1,13 @@
1
- argus/__init__.py,sha256=wDcE-H1pju8c4LVZEuSCsT1-7UQukOEsbSH6suOhWR8,64
1
+ argus/__init__.py,sha256=_j7Q7azBU1noVs9msyPjAbXcNBN0lZamyibW_IP_mdc,64
2
2
  argus/__main__.py,sha256=63ezHx8eL_lCMoZrCbKhmpao0fmdvYVw1chbknGg-oI,104
3
- argus/cli.py,sha256=piAznlc1Z7EF8Ja5p2TYWeDW6UrpLvh_vnIoI-P-SwE,25325
3
+ argus/cli.py,sha256=T2jA4LZIeg1_BJJyvHWRhC-DypSBl-9UJV2k8odGGok,25849
4
4
  argus/commands/__init__.py,sha256=i2oor9hpVpF-_1qZWCGDLwwi1pZGJfZnUKJZ_NMBG18,30
5
5
  argus/core/__init__.py,sha256=Plv_tk0Wq9OlGLDPOSQWxrd5cTwNK9kEZANTim3s23A,348
6
6
  argus/core/base.py,sha256=Vd_2xR6L3lhu9vHoyLeFTc0Dg59py_D9kaye1tta5Co,3678
7
7
  argus/core/coco.py,sha256=bJvOhBzwjsOU8DBijGDysnSPlprwetkPf4Z02UOmqw0,15757
8
8
  argus/core/split.py,sha256=kEWtbdg6bH-WiNFf83HkqZD90EL4gsavw6JiefuAETs,10776
9
9
  argus/core/yolo.py,sha256=KTWgmEguxKZ_C0WsMxUB-B-zbx_Oi1ieGDk3Osuh0xY,15876
10
- argus_cv-1.0.1.dist-info/METADATA,sha256=3rISiuP5iBxwE2JasTNwV0ckEAEehB9eLzEr-4l3YGw,1070
11
- argus_cv-1.0.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
12
- argus_cv-1.0.1.dist-info/entry_points.txt,sha256=dvJFH7BkrOxJnifSjPhwq1YCafPaqdngWyBuFYE73yY,43
13
- argus_cv-1.0.1.dist-info/RECORD,,
10
+ argus_cv-1.1.0.dist-info/METADATA,sha256=TovQhK7bNU8ip-3F2VzGbTzIjnxYXfuJ2ShbhLM5rvM,1070
11
+ argus_cv-1.1.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
12
+ argus_cv-1.1.0.dist-info/entry_points.txt,sha256=dvJFH7BkrOxJnifSjPhwq1YCafPaqdngWyBuFYE73yY,43
13
+ argus_cv-1.1.0.dist-info/RECORD,,