Skip to main content

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

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

Or with pip:

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 processing dashboard for a visual interface:

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

Scatter plot of image width and height per file.

Spot inconsistent crops or resolutions.

Violin plot of a per-image metric split by group.

See per-image spread and outliers, e.g. mean intensity, across groups.

Overlaid pixel intensity histograms for each group.

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 view for 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.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pixel-patrol 0.9.2
File Size Uploaded
pixel_patrol-0.9.2.tar.gz 14.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pixel-patrol 0.9.2
File Interpreter ABI Platform
pixel_patrol-0.9.2-py3-none-any.whl Python 3 none any Details

Total release size: 17.6 kB

Release files / pixel_patrol-0.9.2.tar.gz

Download URL pixel_patrol-0.9.2.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1d5267041217e1df52f936292797c84a8b79aa230f5d8560fa5027ccab2d6499
BLAKE2b-256 checksum
How to use checksums
fba85c09dc31aa9dce2207840f4b460a98d331aa8607a5410d28e36b3eaf0692
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.2-py3-none-any.whl

Download URL pixel_patrol-0.9.2-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
801c4396f4dd485370e5d99abf320afcdc6c2c4485cc7278eb44eac0e3a5e203
BLAKE2b-256 checksum
How to use checksums
3e0992d745fe0a78853f18bc82b49b668ba4f1737a07fda520b28ccfe02debf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Release history Release notifications | RSS feed

1.0.0

2 release files

0.9.4

2 release files

0.9.3

2 release files

This release

0.9.2 This release

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page