Single Scene Video Anomaly Detection Metrics
Project description
Single-Scene Video Anomaly Detection Metrics
This project contains evaluation protocol (metrics) for benchmarking single-scene video anomaly detection.
Evaluation Protocol
This is an unofficial implementation of Sec. 2.2 of A Survey of Single-Scene Video Anomaly Detection.
Installation
This metrics is available via PyPI.
pip install py-ssvad-metrics
Usage
-
Prepare ground-truth JSON file and prediction JSON file. Examples are in the
testsfolder. -
For UCSD Pedestrian 1 and 2 datasets, CUHK Avenue dataset, and Street Scene dataset, we provided scripts for converting ground-truth annotation files from Street Scene dataset. Download link is provided in the paper [http://www.merl.com/demos/video-anomaly-detection].
-
Example usage for single groundtruth and prediction file pair:
import ssvad_metrics result = ssvad_metrics.metrics.evaluate( "tests/gt_examples/Test001_gt.json", "tests/pred_examples/Test001_pred.json")
-
Example usage for multiple groundtruth and prediction file pairs:
import ssvad_metrics result = ssvad_metrics.metrics.accumulated_evaluate( "tests/gt_examples", "tests/pred_examples", gt_name_suffix="_gt", pred_name_suffix="_pred")
References
- B. Ramachandra, M. Jones and R. R. Vatsavai, "A Survey of Single-Scene Video Anomaly Detection," in IEEE Transactions on Pattern Analysis and Machine Intelligence, doi: 10.1109/TPAMI.2020.3040591.
Copyright
Copyright PT Qlue Performa Indonesia 2021 All Rights Reserved
Contributing
Feel free to contribute for improvements.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py-ssvad_metrics-0.2.0.tar.gz.
File metadata
- Download URL: py-ssvad_metrics-0.2.0.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e7c795a0dc09e137ff161a1b433b10aa0b58ce02f667f8cee28d69ffdbfb18d
|
|
| MD5 |
9083f126aa4df70f671eeeb75c970925
|
|
| BLAKE2b-256 |
7ea1e390654a5673ff5924ca88419d3bd9c98aebf34e5c45f209747e151bdf15
|
File details
Details for the file py_ssvad_metrics-0.2.0-py3-none-any.whl.
File metadata
- Download URL: py_ssvad_metrics-0.2.0-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07e7022b397d2ae0b6cb142878bdbf2031b772339132505118aec6ad6e5bc658
|
|
| MD5 |
caa57ca1eb3f1c8837a3b18ca774d716
|
|
| BLAKE2b-256 |
b091ace3b1b621f583f033c30bfc014f222bcfd1077c6e43edef02edc8bf0407
|