Skip to main content

PixelPatrol

Image Dataset Quality Control and Exploration

DOI

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, H5 loaders
uv pip install pixel-patrol-loader-medical # NIfTI, DICOM loaders
uv pip install pixel-patrol-geospatial     # GeoTIFF, NetCDF loader

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

if __name__ == "__main__":
    project = api.create_project("my-project", base_dir="path/to/images/", loader="bioio", output_path="results.parquet")
    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 parquet files larger than a few 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.


Citation

If you use PixelPatrol, please cite it:

@software{pixelpatrol,
  author = {Bahry, Ella and Rossberg, Thomas and Otto, Maximilian and Schmidt, Deborah},
  title  = {PixelPatrol},
  year   = {2026},
  doi    = {10.5281/zenodo.23479548},
  url    = {https://github.com/ida-mdc/pixel-patrol}
}

Metadata

Release files for pixel-patrol 1.0.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 1.0.2
File Size Uploaded Provenance Actions
pixel_patrol-1.0.2.tar.gz 16.3 kB Without provenance Details for pixel_patrol-1.0.2.tar.gz

Built distribution (wheel)

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

Total release size: 20.3 kB

Release files / pixel_patrol-1.0.2.tar.gz

Download URL pixel_patrol-1.0.2.tar.gz
Size 16.3 kB
Tags Source
SHA-256 checksum
How to use checksums
324ac05e3bc514ef673347762d104a6a2118efd2b1b2b630d7de4d119f03d1c6
BLAKE2b-256 checksum
How to use checksums
70e0983877c834886f7f759b304461c17c19229923855f5c68254b7455c893d2
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-1.0.2-py3-none-any.whl

Download URL pixel_patrol-1.0.2-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3456ed86d1bd756fc751e8b840920a7f1e844b9f34ed7d12f9837e56937c6304
BLAKE2b-256 checksum
How to use checksums
2395a069dc8458af95032a0372ac3d354fe20b98fb723b8baaae3273550d3c35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.3

Security for pixel-patrol 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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