argus-cv 1.3.0__py3-none-any.whl → 1.4.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.

Potentially problematic release.


This version of argus-cv might be problematic. Click here for more details.

argus/__init__.py CHANGED
@@ -1,3 +1,3 @@
1
1
  """Argus - Vision AI dataset toolkit."""
2
2
 
3
- __version__ = "1.3.0"
3
+ __version__ = "1.4.0"
argus/cli.py CHANGED
@@ -534,13 +534,6 @@ def split_dataset(
534
534
  help="Train/val/test ratio (e.g. 0.8,0.1,0.1).",
535
535
  ),
536
536
  ] = "0.8,0.1,0.1",
537
- stratify: Annotated[
538
- bool,
539
- typer.Option(
540
- "--stratify/--no-stratify",
541
- help="Stratify by class distribution when splitting.",
542
- ),
543
- ] = True,
544
537
  seed: Annotated[
545
538
  int,
546
539
  typer.Option(
@@ -593,9 +586,7 @@ def split_dataset(
593
586
  ) as progress:
594
587
  progress.add_task("Creating YOLO splits...", total=None)
595
588
  try:
596
- counts = split_yolo_dataset(
597
- dataset, output_path, ratios, stratify, seed
598
- )
589
+ counts = split_yolo_dataset(dataset, output_path, ratios, True, seed)
599
590
  except ValueError as exc:
600
591
  console.print(f"[red]Error: {exc}[/red]")
601
592
  raise typer.Exit(1) from exc
@@ -628,7 +619,7 @@ def split_dataset(
628
619
  annotation_file,
629
620
  output_path,
630
621
  ratios,
631
- stratify,
622
+ True,
632
623
  seed,
633
624
  )
634
625
  except ValueError as exc:
@@ -1352,9 +1343,12 @@ def _draw_annotations(
1352
1343
  overlay = img.copy()
1353
1344
  cv2.fillPoly(overlay, [pts], color)
1354
1345
  cv2.addWeighted(overlay, 0.3, img, 0.7, 0, img)
1346
+ # Draw small points at polygon vertices
1347
+ for pt in pts:
1348
+ cv2.circle(img, tuple(pt), radius=3, color=color, thickness=-1)
1355
1349
 
1356
- # Draw bounding box
1357
- if bbox:
1350
+ # Draw bounding box (only for detection, not segmentation)
1351
+ if bbox and not polygon:
1358
1352
  x, y, w, h = bbox
1359
1353
  x1, y1 = int(x), int(y)
1360
1354
  x2, y2 = int(x + w), int(y + h)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: argus-cv
3
- Version: 1.3.0
3
+ Version: 1.4.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
@@ -12,7 +12,7 @@ Description-Content-Type: text/markdown
12
12
 
13
13
  # argus-cv
14
14
 
15
- Vision AI dataset toolkit for working with YOLO and COCO datasets.
15
+ Vision AI dataset toolkit for working with YOLO, COCO, and semantic mask datasets.
16
16
 
17
17
  **[Documentation](https://pirnerjonas.github.io/argus/)**
18
18
 
@@ -22,6 +22,13 @@ Vision AI dataset toolkit for working with YOLO and COCO datasets.
22
22
  uvx argus-cv
23
23
  ```
24
24
 
25
+ ## Highlights
26
+
27
+ - Detects YOLO, COCO, and folder-based semantic mask datasets.
28
+ - Reports per-class stats (pixel coverage for mask datasets).
29
+ - Interactive viewer with bounding boxes, polygons, or mask overlays.
30
+ - Split unsplit YOLO/COCO datasets into train/val/test.
31
+
25
32
  ## Usage
26
33
 
27
34
  ```bash
@@ -1,6 +1,6 @@
1
- argus/__init__.py,sha256=277ASQvH6ZWVWUzOCVB7vAxn3OYciow4nVkjG16-kio,64
1
+ argus/__init__.py,sha256=rRRcnsvIBvQofIEjwsDsXsT9TiGB9c6zVOmzqmqX4Qg,64
2
2
  argus/__main__.py,sha256=63ezHx8eL_lCMoZrCbKhmpao0fmdvYVw1chbknGg-oI,104
3
- argus/cli.py,sha256=th1Rgn1Sm9juWoavopEXLBT8XEh5lKzOMX-pccwvDgA,47904
3
+ argus/cli.py,sha256=CXnzBiD0ROjHOVac1Jd3Yre4jPeiqkb1F0TGjHyccwc,47879
4
4
  argus/commands/__init__.py,sha256=i2oor9hpVpF-_1qZWCGDLwwi1pZGJfZnUKJZ_NMBG18,30
5
5
  argus/core/__init__.py,sha256=II2wYJpGUUGGKOFZ5BCpMIBTfv0WP-F15U_xbpWGjk8,453
6
6
  argus/core/base.py,sha256=WBrB7XWz125YZ1UQfHQwsYAuIFY_XGEhG_0ybgPhn6s,3696
@@ -8,7 +8,7 @@ argus/core/coco.py,sha256=atVurZV2T7cszydyD9GfDTWHGYDd-JNK5RD7nse5avc,15823
8
8
  argus/core/mask.py,sha256=m7Ztf4lAZx5ITpk3F3mETcvCC6hGydlxK0-2nCjeTfU,21835
9
9
  argus/core/split.py,sha256=kEWtbdg6bH-WiNFf83HkqZD90EL4gsavw6JiefuAETs,10776
10
10
  argus/core/yolo.py,sha256=tTc9jJzXcwa8LQ_s8nv-D_i2b9k_x-LT1O0eWr4sZ2k,28616
11
- argus_cv-1.3.0.dist-info/METADATA,sha256=1CCYLSnGHaAdS5jjwUuTJWRHu5OM_oFfvi1L_v3SkQw,1070
12
- argus_cv-1.3.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
13
- argus_cv-1.3.0.dist-info/entry_points.txt,sha256=dvJFH7BkrOxJnifSjPhwq1YCafPaqdngWyBuFYE73yY,43
14
- argus_cv-1.3.0.dist-info/RECORD,,
11
+ argus_cv-1.4.0.dist-info/METADATA,sha256=Gdf_n7cxFqS2JoM2Z48CqFcFWMAYHT1y3X1iy9WAxTA,1353
12
+ argus_cv-1.4.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
13
+ argus_cv-1.4.0.dist-info/entry_points.txt,sha256=dvJFH7BkrOxJnifSjPhwq1YCafPaqdngWyBuFYE73yY,43
14
+ argus_cv-1.4.0.dist-info/RECORD,,