PixelPatrol
Image Dataset Quality Control and Exploration
Example Report | Tutorials | Documentation | Viewer | PyPI
Image datasets are rarely as clean or consistent as they appear. PixelPatrol scans your images and builds a shareable, browser-based interactive report - file and image metadata, pixel statistics, quality metrics, and per-dimension slice statistics - so you can compare conditions, catch outliers, and verify batch consistency before you use the data.
Overview mode - every widget as a tile; click one to expand it in place.
Installation
No terminal? Use the one-click app instead: install guide. It runs PixelPatrol in your browser, with no terminal commands or Python API.
Terminal: requires Python 3.12+. We recommend uv:
uv venv --python 3.12 .venv
source .venv/bin/activate # Windows: .venv\Scripts\Activate.ps1
uv pip install pixel-patrol
For a modular install (core only + selected add-ons):
uv pip install pixel-patrol-base # includes image quality metrics
uv pip install pixel-patrol-loader-bio # BioIO, Zarr, Tifffile loaders
Quickstart
1. Process your dataset:
pixel-patrol process path/to/images/ -o results.parquet --loader bioio
For datasets with experimental conditions:
pixel-patrol process path/to/images/ -o results.parquet --loader bioio \
-p condition_a -p condition_b
2. Explore in the viewer:
pixel-patrol view results.parquet
Or combine both steps with --view:
pixel-patrol process path/to/images/ -o results.parquet --loader bioio --view
To use viewer parameters, run the two commands sequentially:
pixel-patrol process path/to/images/ -o results.parquet --loader bioio && pixel-patrol view results.parquet
Or use the report manager for a visual interface - list, add, import, and open reports:
pixel-patrol launch
Python API
from pixel_patrol_base import api
project = api.create_project("my-project", base_dir="path/to/images/", loader="bioio")
api.add_paths(project, ["condition_a", "condition_b"]) # optional
api.process_files(project)
api.view(project)
Example visualizations
Spot inconsistent crops or resolutions.
See per-image spread and outliers, e.g. mean intensity, across groups.
Compare brightness and contrast across conditions.
Sharing PixelPatrol results
Send the .parquet file and open it in the hosted viewer - no installation needed. Or build a self-contained static viewer:
pixel-patrol build-viewer-html -o viewer.html # light (~7 MB), loads DuckDB WASM from a CDN
pixel-patrol build-viewer-html -o viewer.html --offline # fully self-contained, works with no network
Note: The static viewer may not load very large parquet files (e.g. 5 GB+). Use
pixel-patrol viewfor large reports.
Extending PixelPatrol
PixelPatrol is designed to be extended with custom loaders, processors, and viewer widgets as standalone Python packages. See pixel-patrol-example-extension for a working template, and the Extensions documentation.
Metadata
Release files for pixel-patrol 0.9.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pixel_patrol-0.9.3.tar.gz | 16.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pixel_patrol-0.9.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.7 kB
Release files / pixel_patrol-0.9.3.tar.gz
| Download URL | pixel_patrol-0.9.3.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0128acb9650d03ec6a6d844807dbc5528274152afa60716c2dcf22254234686
|
|
BLAKE2b-256 checksum How to use checksums |
fd1c314814d9621084162e557c0f15f09c3f62d639d2cc2998ff836b9a0fe69a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Release files / pixel_patrol-0.9.3-py3-none-any.whl
| Download URL | pixel_patrol-0.9.3-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
caf159f8a53fcd0804a4f84af6be60c567376de9d241ba96ac98b6d14c1414d5
|
|
BLAKE2b-256 checksum How to use checksums |
a9605420b254e9d7aba4539b3df5a2434be169d5aa10c5114041db9c24377771
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|