Metadata-Version: 2.4
Name: aio-qc
Version: 2.3.0
Summary: Find and fix annotation errors in LabelMe and YOLO datasets before training: one desktop app for dataset QC, video frame extraction and table analysis
Author: Preetkaran Singh
License-Expression: GPL-3.0-only
Project-URL: Homepage, https://github.com/spreetkaran/aio-qc
Project-URL: Issues, https://github.com/spreetkaran/aio-qc/issues
Project-URL: Releases, https://github.com/spreetkaran/aio-qc/releases/tag/v2.3.0
Project-URL: Changelog, https://github.com/spreetkaran/aio-qc/blob/main/AIO_QC/CHANGES.md
Keywords: annotation,quality control,labelme,yolo,dataset,computer vision,qc,video,frame extraction,model evaluation
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: X11 Applications :: Qt
Classifier: Intended Audience :: Science/Research
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Image Recognition
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: licenses/AVHersheySimplex-CC0-WTFPL.txt
License-File: licenses/Fluent-UI-System-Icons-MIT.txt
License-File: licenses/Inter-OFL-1.1.txt
License-File: licenses/JetBrainsMono-OFL-1.1.txt
License-File: licenses/Phosphor-Icons-MIT.txt
License-File: licenses/README.md
License-File: licenses/SourceCodePro-OFL-1.1.txt
License-File: licenses/labelImg-MIT.txt
License-File: licenses/labelme-GPL-3.0.txt
License-File: THIRD_PARTY_NOTICES.md
Requires-Dist: PyQt6>=6.5
Requires-Dist: numpy>=1.23
Requires-Dist: opencv-python>=4.7
Requires-Dist: loguru>=0.7
Provides-Extra: full
Requires-Dist: natsort>=8.0; extra == "full"
Requires-Dist: Pillow>=9.5; extra == "full"
Requires-Dist: PyYAML>=6.0; extra == "full"
Requires-Dist: orjson>=3.9; extra == "full"
Requires-Dist: pandas>=2.0; extra == "full"
Requires-Dist: pyarrow>=14; extra == "full"
Requires-Dist: openpyxl>=3.1; extra == "full"
Requires-Dist: av>=11; extra == "full"
Requires-Dist: imageio-ffmpeg>=0.4.9; extra == "full"
Requires-Dist: onnxruntime>=1.16; extra == "full"
Requires-Dist: psutil>=5.9; extra == "full"
Provides-Extra: data
Requires-Dist: pandas>=2.0; extra == "data"
Requires-Dist: pyarrow>=14; extra == "data"
Requires-Dist: openpyxl>=3.1; extra == "data"
Provides-Extra: video
Requires-Dist: av>=11; extra == "video"
Requires-Dist: imageio-ffmpeg>=0.4.9; extra == "video"
Requires-Dist: Pillow>=9.5; extra == "video"
Requires-Dist: psutil>=5.9; extra == "video"
Requires-Dist: py7zr>=0.20; sys_platform == "win32" and extra == "video"
Provides-Extra: models
Requires-Dist: onnxruntime>=1.16; extra == "models"
Requires-Dist: PyYAML>=6.0; extra == "models"
Requires-Dist: Pillow>=9.5; extra == "models"
Dynamic: license-file

<p align="center">
  <img src="https://raw.githubusercontent.com/spreetkaran/aio-qc/main/samples/logo/.readme/fx_icon_200x200.png" width="200" height="200" align="middle">
  &nbsp;&nbsp;<b>|</b>&nbsp;&nbsp;
  <img src="https://raw.githubusercontent.com/spreetkaran/aio-qc/main/samples/logo/.readme/app_200_border.png" width="200" height="200" align="middle">
  &nbsp;&nbsp;<b>|</b>&nbsp;&nbsp;
  <img src="https://raw.githubusercontent.com/spreetkaran/aio-qc/main/samples/logo/.readme/studio_icon_200x200.png" width="170" height="170" align="middle">
</p>

<h1 align="center">AIO QC</h1>

<h4 align="center">
  Find and fix annotation errors in LabelMe and YOLO datasets before you train — with a Frame Extractor for videos and Data Studio for tables, in one desktop app.
</h4>

<div align="center">
  <a href="https://pypi.org/project/aio-qc/2.3.0/"><img src="https://img.shields.io/badge/pypi-2.3.0-blue.svg"></a>
  <a href="https://pypi.org/project/aio-qc/"><img src="https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-blue.svg"></a>
  <a href="https://github.com/spreetkaran/aio-qc/blob/v2.3.0/LICENSE"><img src="https://img.shields.io/badge/license-GPL--3.0-blue.svg"></a>
  <a href="https://github.com/spreetkaran/aio-qc/releases/tag/v2.3.0"><img src="https://img.shields.io/badge/release-v2.3.0-informational.svg"></a>
</div>

<div align="center">
  <a href="#installation"><b>Installation</b></a>
  | <a href="#usage"><b>Usage</b></a>
  | <a href="#features"><b>Features</b></a>
  | <a href="#keyboard-shortcuts"><b>Shortcuts</b></a>
  | <a href="#faq"><b>FAQ</b></a>
  | <a href="https://github.com/spreetkaran/aio-qc/releases"><b>Download ↗</b></a>
</div>

<br/>

<div align="center">
  <img src="https://raw.githubusercontent.com/spreetkaran/aio-qc/main/samples/main_app/.readme/main_light.png" width="80%">
</div>

## Description

AIO QC App is a desktop app for checking annotated image datasets **before you train**: broken files, wrong or
inconsistent label names, sloppy or duplicate shapes, split leakage and probable mislabels.\
It shows every problem on the image, lets you fix it in the same window, and keeps the original of every file it
changes, so any change can be undone. Two more modes share the app: the **Frame Extractor** turns videos into frames worth annotating, and **Data Studio** analyses and cleans tables. It is written in Python and uses Qt for its graphical interface.

<img src="https://raw.githubusercontent.com/spreetkaran/aio-qc/main/samples/qc_drawer/.readme/qc_drawer.gif" width="32%" /> <img src="https://raw.githubusercontent.com/spreetkaran/aio-qc/main/samples/review/.readme/review.gif" width="32%" /> <img src="https://raw.githubusercontent.com/spreetkaran/aio-qc/main/samples/zoom/.readme/zoom.gif" width="32%" />\
<i>QC drawer, review and zoom.</i>

<img src="https://raw.githubusercontent.com/spreetkaran/aio-qc/main/samples/validation/.readme/validation.png" width="32%" /> <img src="https://raw.githubusercontent.com/spreetkaran/aio-qc/main/samples/crop_gallery/.readme/crop_gallery.png" width="32%" /> <img src="https://raw.githubusercontent.com/spreetkaran/aio-qc/main/samples/review_grid/.readme/review_grid.png" width="32%" />\
<i>Validation, Crop Gallery and Review Grid.</i>

<img src="https://raw.githubusercontent.com/spreetkaran/aio-qc/main/samples/stats/.readme/stats.png" width="49%" />\
<i>Dataset Stats.</i>

<sub>Screenshots are of the current release on <a href="https://cocodataset.org">COCO</a> (COCO128 subset); the look of older releases differs.</sub>

## Features

### Image QC

- [x] LabelMe (v5 and v6, every shape type) and YOLO datasets (detection, segmentation, OBB, pose; flat or split), plus image classification (class folders or LabelMe flags) — the layout is detected automatically
- [x] Ranked checks, worst first, each jumping straight to the problem on the image:
  - **Dataset** — Dataset Stats · Validation · Empty Annotations · Duplicate Images (exact and perceptual, split leakage) · Image Quality · Split Health
  - **Labels** — Label Ambiguities · Label Mapping (view-only renames and merges) · Remove / Re-order Classes · Text Labels · Guidelines
  - **Shapes** — Crop Gallery · Duplicate Shapes · Outliers · Sequence Check (video frames) · Dim / Area · Training Size · Relationship Rules
  - **Models** — Model Check (report card, confusion, label-error estimate, accept by confidence) · OCR Check · Visual Similarity (DINOv3 / SigLIP2 / CLIP) · **Testing** (test sets, leaderboard, A / B, failures, video review, reports), with your models running in their own environment
  - **Review** — Issues Inbox · QC Sampling (error-rate estimate with a verdict) · Review Grid · Saved Views · Coverage Map · Smart Filter · QC Report · Export & Split
- [x] Recommended checks for each dataset: *Start here* and *Next check* — suggested in order as soon as it opens
- [x] Fix on the image: move, reshape, relabel, delete or draw shapes, with exact undo / redo
- [x] Fix in Editor: hand files to LabelMe or labelImg and get them checked again when they are saved — optionally with only the labels you pick
- [x] Review marks (OK / flag / note) with a next-unreviewed workflow
- [x] Hand-off batches for annotators, merged back with a three-way compare
- [x] Per-class labelling guidelines with good and bad example crops, exportable as one HTML page
- [x] File history: who changed what, when and with which tool — preview any version and revert it
- [x] Data Prep: unzip, combine and flatten, find orphans, integrity check, exact duplicates, resize, import COCO / Pascal VOC / CVAT / Label Studio, pick the most varied images to label, fix EXIF rotation — each with a preview and undo
- [x] Sketch on the image and ROI capture with real image coordinates
- [x] Screenshots of the view (E) and of all flagged files at once, with a caption strip and the flag note
- [x] Keep previous zoom and brightness / contrast while stepping through images
- [x] Paint-style status bar and Windows-Photos-style zoom (smooth rendering when zoomed in); label colours that stay apart
- [x] Export & Split: train / val / test splits that keep duplicates, video frames and OCR identities together, exported as YOLO, LabelMe, COCO or class folders
- [x] Built for big datasets: cached indexing, background work, virtualised lists — fluid at millions of files and shapes
- [x] Safe by design: confirmations, atomic writes, originals kept in a compressed backup store, deletes are moves to a trash folder

### Frame Extractor

- [x] Video player with a GPU canvas, real-time pipeline and optional libmpv engine (installed automatically when wanted)
- [x] Markers and bookmarks, snap to the sharpest frame, timeline analysis and suggestions, ROI and tracking, detections
- [x] Batch extraction (multi-process, resumable, with pre-annotations and cross-video de-duplication), review gallery, frame search, clip and annotated-video export
- [x] Open an extraction in Image QC as a dataset; jump from any extracted image back to its video and frame
- [x] Video review: every model's boxes on whole videos in the player, events where models disagree or flicker, hard frames sent to Image QC

### Data Studio

- [x] CSV / TSV, Excel, Parquet, Feather, JSON and SQLite; the open image dataset's annotations as a table
- [x] A recipe of undoable steps (columns, filters, cleaning, reshaping, features), shown as pandas / PySpark code and runnable on Spark
- [x] Column profile with one-click fixes, charts, an HTML profile report and exports

### The whole app

- [x] Three modes in one app (Ctrl+Alt+M), one Settings window per mode with search, one Help Center (F1)
- [x] Every action searchable in the command palette (Ctrl+K)

## Installation

There are 2 options to install AIO QC App:

### Option 1: Using pip

```bash
pip install aio-qc==2.3.0

# with every optional part (Data Studio, Frame Extractor video engine, ONNX models, faster JSON …):
pip install "aio-qc[full]"
# or only what you need: "aio-qc[data]", "aio-qc[video]", "aio-qc[models]"
```

### Option 2: Using standalone executable (easiest)

Download the zip for your system from the [v2.3.0 release](https://github.com/spreetkaran/aio-qc/releases/tag/v2.3.0) page — no Python needed.

### Supported Python and platforms

| | |
| ------ | ------------------------------ |
| Python | 3.10 – 3.13 |
| Qt | Qt6 (PyQt6) |
| OS | Windows / macOS / Linux |
| Required | PyQt6, NumPy, OpenCV, loguru |
| Optional | `[data]` pandas, pyarrow, openpyxl · `[video]` PyAV, imageio-ffmpeg, psutil · `[models]` ONNX Runtime · natsort, Pillow, PyYAML, orjson |

Model-based checks and Testing run your detector, embedding or OCR models in **their own Python environment** that you choose, so the app itself never needs PyTorch or a GPU.

## Usage

```bash
aio-qc                                # open the app
aio-qc-console                        # the same, with the log in a terminal
aio-qc --mode video                   # start in the Frame Extractor (or: --mode data)
aio-qc video.mp4                      # open a video; a .csv / .xlsx opens in Data Studio
aio-qc extract -h                     # the Frame Extractor's command line (extract | probe | testset | eval | clip)

aio-qc-console --version                      # print the version
aio-qc-console --logger-level debug           # verbose log in aio_qc_tool.log
```

Click **Open Dir** (`Ctrl+O`) or drop a dataset folder on the window; the layout is detected automatically. The switch in the menu-bar corner (`Ctrl+Alt+M`) changes mode. **`F1`** opens the user guide.

### Supported datasets

| Layout | Detected when | Notes |
| --- | --- | --- |
| LabelMe | `*.json` anywhere under the folder | v5 and v6, all shape types; sub-folders become filters; `imageData` optional |
| YOLO | `images/` + `labels/` | detection, segmentation, OBB, pose; `data.yaml` / `classes.txt` |
| YOLO split | `<split>/images` + `<split>/labels` | train / val / test, and any split name |
| Classification: class folders | `<class>/<image>`, optionally under splits | changing a class moves the file |
| Classification: LabelMe flags | flags in LabelMe JSONs | multi-label flags supported |

### Keyboard shortcuts

Everything has a key; press **`?`** in the app for the live key map (type to filter, click to run).

| Keys | Action | Keys | Action |
| --- | --- | --- | --- |
| `D` / `A` | next / previous image | `S` / `X` / `U` | mark OK / flag / clear |
| `Ctrl+K` | command palette | `F6` | next panel |
| `Alt+1…6` | open a QC tab | `F11` | focus mode (image only) |
| `Ctrl+0` / `Ctrl+1` | fit / 100 % | double-click | zoom in ↔ back to fit |
| `Ctrl+Z` / `Ctrl+Shift+Z` | undo / redo an edit | `Ctrl+H` | file history |
| `P` / `O` | sketch / ROI capture | `F1` | user guide |
| `Ctrl+Alt+M` | next mode | `E` | screenshot of the view |

### Your data is safe

- **Nothing changes without a confirmation.** Views, statistics, label mappings and display adjustments never touch files.
- **Atomic writes:** a crash can never leave a half-written annotation, and images are never modified.
- **Originals are kept** in `<dataset>/.aio_qc/backups.sqlite` before every rewrite (compressed, deduplicated) and restored byte for byte.
- **Deletes are moves** into `<dataset>/.aio_qc_trash/`.
- **Changes made by other programs are noticed** and re-read; the app never overwrites them.
- Everything the app stores for a dataset lives in `<dataset>/.aio_qc/` — delete that folder to reset it; your annotations are not in it.

### FAQ

- **Does it change my annotation files?** Only when you apply a fix, edit on the image, merge a batch or move files, and always after a confirmation. The original is stored first, so every change can be undone.
- **Do I need a GPU or PyTorch?** No. The core app needs neither. Model-based checks run your models in a separate Python environment that you point the app to (the app can create one), using a GPU when there is one.
- **My LabelMe JSONs embed the image (`imageData`). Is that supported?** Yes. Images are read from `imageData` when there is no image file, and *Data Prep ▸ Combine & flatten* can restore the image files.
- **Where are the logs?** `aio_qc_tool.log` in the folder you started the app from; *Tools ▸ Logs* shows this session's errors. A native crash leaves `aio_qc_crash.log` there.

## How to build standalone executable

PyInstaller cannot cross-compile: build on the system you are building for.

```bash
AIO_QC_PATH=./AIO_QC
pyinstaller AIO_QC/__main__.py \
  --name=AIO-QC \
  --windowed \
  --noconfirm \
  --specpath=build \
  --add-data="${AIO_QC_PATH}/icons:AIO_QC/icons" \
  --add-data="${AIO_QC_PATH}/fonts:AIO_QC/fonts" \
  --add-data="${AIO_QC_PATH}/editors:AIO_QC/editors" \
  --add-data="${AIO_QC_PATH}/validators:AIO_QC/validators" \
  --onedir
```

## Development

```bash
git clone https://github.com/spreetkaran/aio-qc.git
cd aio-qc
git checkout v2.3.0
pip install -e ".[full]"
aio-qc-console --logger-level debug
python -m pytest tests                  # the test suite (offscreen Qt)
```

Issues and pull requests are welcome. Please include the app version (`aio-qc-console --version`), your OS and,
for bugs, the relevant part of `aio_qc_tool.log`. Logic belongs in `core/` (Qt-free, testable); UI in `widgets/`.

## Acknowledgement

- [labelme](https://github.com/wkentaro/labelme) and [labelImg](https://github.com/HumanSignal/labelImg) — bundled
  (modified) as the external editors of *Fix in Editor*.
- [Phosphor Icons](https://phosphoricons.com) and [Fluent UI System Icons](https://github.com/microsoft/fluentui-system-icons) — the basis of many of the app's icons.
- [Inter](https://github.com/rsms/inter), [JetBrains Mono](https://github.com/JetBrains/JetBrainsMono),
  [Source Code Pro](https://github.com/adobe-fonts/source-code-pro) and AV Hershey Simplex — the bundled fonts.

## License

AIO QC App is free software, released under the [GNU General Public License v3.0](LICENSE) (GPL-3.0-only).
Copyright (c) 2026 Preetkaran Singh.

It bundles third-party components that keep their own licenses. See
[THIRD_PARTY_NOTICES.md](https://github.com/spreetkaran/aio-qc/blob/v2.3.0/THIRD_PARTY_NOTICES.md); the full license texts
are in [`licenses/`](https://github.com/spreetkaran/aio-qc/tree/v2.3.0/licenses).
