Kappa-IoU
This Python package implements the Kappa-IoU measure of Inter-annotator reliability from Rogers (2026):
Rogers, Trevor F. (2026). Kappa-IoU: Inter-Rater Reliability for Spatial Annotation
Large-scale annotation projects for which automated annotation solutions are insufficient require a metric that measures the quality of annotation between annotators. Intersection-over-Union, or IoU, is traditionally used for spatial data but requires a ground truth. Cohen's Kappa is a psychometric measure that measures the amount of agreement between raters, but is traditionally used for categorical data.
This repository contains a Python package implementing the Kappa-IoU paper, which indexes IoU with Cohen's Kappa, and handles differences in object cardinality between raters by treating it as a linear assignment problem using Kuhn-Munkres assignment. Also included is an adjusted version of Kappa-IoU that uses a version of the BLEU measure for machine translation which instead scores N-objects for multi-object annotation. Along with the Python package implementing this measure, this repository also contains Section4.py, code that recreates the examples from that section of the paper.
To install this package from inside the downloaded folder from Github:
python -m pip install -e .
To use, run the analysis engine straight from your terminal shell across your dataset directories using the console entrypoint:
kappaiou-run --baseline /data/author_baseline.csv --dir /data/annotator_tranches/ --tau 0.70
The author baseline and annotator tranche CSV files are expected to have the filenames in the first column, label in the second column, and then xywh-format annotations in the following four columns.
MIT License
Metadata
Release files for KappaIOU 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kappaiou-1.0.0.tar.gz | 8.1 kB | Without provenance | Details for kappaiou-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kappaiou-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for kappaiou-1.0.0-py3-none-any.whl |
Total release size: 15.6 kB
Release files / kappaiou-1.0.0.tar.gz
| Download URL | kappaiou-1.0.0.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
345ff7103756c13f210011478b7db86201d434b5539bdff40b9f13e466750ab6
|
|
BLAKE2b-256 checksum How to use checksums |
9c6bec919dfd1df431837c67e986565ba542562d71225051fa672e138e81ab6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / kappaiou-1.0.0-py3-none-any.whl
| Download URL | kappaiou-1.0.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c981645df5a6a77c4106b5b5a9cfaf70a8bf6d26fc5a8d66b7f8fb72d303f07
|
|
BLAKE2b-256 checksum How to use checksums |
5cefecd92fc2486b5c2a2db7b1d461fdabed255a676584964a75f567a2489712
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for KappaIOU 1.0.0
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.