Metadata-Version: 2.4
Name: image-review
Version: 0.5.0
Summary: A command-line tool for reviewing medical (DICOM) and general images for burned-in Protected Health Information (PHI).
Author: Judd Storrs
License-Expression: MIT
Project-URL: Homepage, https://github.com/jstorrs/image-review
Project-URL: Documentation, https://jstorrs.github.io/image-review/
Project-URL: Changelog, https://github.com/jstorrs/image-review/blob/main/CHANGELOG.md
Project-URL: Issues, https://github.com/jstorrs/image-review/issues
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS
Classifier: Environment :: Console
Classifier: Intended Audience :: Healthcare Industry
Classifier: Intended Audience :: Science/Research
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
Requires-Python: >=3.12
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.3.0
Requires-Dist: rectpack==0.2.2
Requires-Dist: imagecodecs>=2024.6.1
Requires-Dist: matplotlib>=3.8.4
Requires-Dist: numpy>=2.1
Requires-Dist: pydicom>=3.0.1
Requires-Dist: Pillow!=11.*,>=10.3
Requires-Dist: scikit-image>=0.23.1
Requires-Dist: scipy>=1.13
Requires-Dist: tifffile>=2024.1.30
Requires-Dist: tqdm>=4.60
Requires-Dist: python-gdcm>=3.0.25
Requires-Dist: pylibjpeg>=2.0
Requires-Dist: pylibjpeg-openjpeg>=2.3
Provides-Extra: dev
Requires-Dist: ruff>=0.16; extra == "dev"
Requires-Dist: mypy>=1.16; extra == "dev"
Requires-Dist: types-tqdm; extra == "dev"
Requires-Dist: coverage>=7; extra == "dev"
Provides-Extra: docs
Requires-Dist: sphinx>=8; extra == "docs"
Requires-Dist: myst-parser>=4; extra == "docs"
Requires-Dist: furo>=2024.8.6; extra == "docs"
Requires-Dist: sphinx-copybutton>=0.5; extra == "docs"
Dynamic: license-file

# image-review

A command-line tool for reviewing medical (DICOM) and general images for
burned-in Protected Health Information (PHI).

The workflow has four steps:

1. **Preprocess** raw DICOM and image files into normalized JPG batches.
2. **Review** the images in a browser, in single or grid mode: on this
   machine, or from your laptop while the images stay on a cluster.
3. **Status** reports on review progress.
4. **Export** writes the allowlist of files that may be released.

The documentation is at <https://jstorrs.github.io/image-review/>.

## Installation

Requires Python >= 3.12. `pip install image-review` installs every command
from PyPI (or `pip install .` from a clone); `review` needs only a browser.
See [Installation](https://github.com/jstorrs/image-review/blob/main/docs/install.md)
for the dependencies, cluster installs without root, compressed DICOMs and minimum
dependency versions.

## Quick start

```bash
# Preprocess a directory of DICOMs or a ZIP archive
image-review preprocess /path/to/dicoms/ --work-dir ./review_work

# Review in your browser: pass 1 is grid triage (press m), later passes inspect the
# flagged (DIRTY) images one at a time; press r on the page for the next pass, Ctrl-C to stop
image-review review

# Check progress (--check: exit 1 until every image has a verdict)
image-review status

# Write the allowlist of files that may be released (path + SHA-256), and a report of the rest
image-review export --output allowlist.tsv --report report.tsv
```

The default work directory is `./review_work`. Don't create work directories
inside a git checkout (the repository's `.gitignore` excludes them as a
safety net).

The quick start is also on its own page: [Quick start](https://github.com/jstorrs/image-review/blob/main/docs/quickstart.md).

## Documentation

- [Local review](https://github.com/jstorrs/image-review/blob/main/docs/tutorials/local-review.md): a walk-through of a whole
  review on one machine, in your browser.
- [Browser review over SSH](https://github.com/jstorrs/image-review/blob/main/docs/tutorials/browser-review.md): the
  recommended way to review images that stay on the cluster, from your
  laptop. There is nothing to install on the laptop but ssh and a browser,
  and nothing to keep in sync: the page is served by `serve` itself, so it
  always matches the server's version.
- [Commands overview](https://github.com/jstorrs/image-review/blob/main/docs/commands/index.md), with one page each for
  [preprocess](https://github.com/jstorrs/image-review/blob/main/docs/commands/preprocess.md),
  [review](https://github.com/jstorrs/image-review/blob/main/docs/commands/review.md), [status](https://github.com/jstorrs/image-review/blob/main/docs/commands/status.md),
  [export](https://github.com/jstorrs/image-review/blob/main/docs/commands/export.md) and [serve](https://github.com/jstorrs/image-review/blob/main/docs/commands/serve.md).
- [Work directory](https://github.com/jstorrs/image-review/blob/main/docs/reference/work-directory.md) and the
  [specification](https://github.com/jstorrs/image-review/blob/main/docs/reference/specification.md).

## Security

Report vulnerabilities privately, as [SECURITY.md](https://github.com/jstorrs/image-review/blob/main/SECURITY.md) describes. The
[security model](https://github.com/jstorrs/image-review/blob/main/docs/reference/security-model.md) states what the tool
protects and its limits.

## Contributing

Development setup, the test, lint and type-check commands, and the project's
conventions are in [CONTRIBUTING.md](https://github.com/jstorrs/image-review/blob/main/CONTRIBUTING.md).

## Changelog

See [CHANGELOG.md](https://github.com/jstorrs/image-review/blob/main/CHANGELOG.md).
