Skip to main content

Python port of EA's IRIS - Photosensitive epilepsy risk detection for video content

Project description

IRIS-PSE-Detection

PyPI version CI

Python port of IRIS - Electronic Arts' photosensitive epilepsy risk detection library.

IRIS analyzes video content to detect flash patterns that may trigger seizures in people with photosensitive epilepsy, based on guidelines from W3C WCAG and ISO 9241-391.

Installation

pip install iris-pse-detection

Or for development:

git clone https://github.com/tokoroten/iris-pse-detection
cd iris-pse-detection
uv sync

Usage

iris video.mp4

Or with Python:

from iris_pse_detection import VideoAnalyser, Configuration

config = Configuration()
analyser = VideoAnalyser(config)
result = analyser.analyse_video("video.mp4")
print(result.overall_result)

Features

  • Luminance flash detection
  • Red saturation flash detection
  • Transition tracking with 1-second sliding window
  • Extended failure detection (4+ seconds)
  • Pattern detection (optional)

Note on Accuracy

Due to floating-point precision differences between C++ and Python/NumPy, results may vary slightly from the original IRIS implementation. These differences are minimal and occur at boundary conditions where values are very close to detection thresholds.

Acknowledgments

This project is a Python port of IRIS by Electronic Arts Inc., originally released under the BSD 3-Clause License.

License

MIT License - see LICENSE for details.

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

iris_pse_detection-1.1.0.tar.gz (76.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iris_pse_detection-1.1.0-py3-none-any.whl (29.4 kB view details)

Uploaded Python 3

File details

Details for the file iris_pse_detection-1.1.0.tar.gz.

File metadata

  • Download URL: iris_pse_detection-1.1.0.tar.gz
  • Upload date:
  • Size: 76.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.17

File hashes

Hashes for iris_pse_detection-1.1.0.tar.gz
Algorithm Hash digest
SHA256 3de90d8f0f7721e4fe3907f1d23069e88fd36a1b94a5f4d40a084d1a8a5d0de0
MD5 ca94cd0120a49c692e10fdf4934acf5c
BLAKE2b-256 aa8dfceb0cc5023c1ae49c7c72d5efeeb1337a448de20725c51d5ebfc36245ce

See more details on using hashes here.

File details

Details for the file iris_pse_detection-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for iris_pse_detection-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a6162e1ac8878a4b7b5adcb4c3b26ed04ee4ef72391a74e7e8873185fa15996
MD5 ebed4d69f7e26ca0a1bdf2c9e3cd436f
BLAKE2b-256 48a8d113cbd7d1df51a7f1373dbb02d1d4fb3a5a7d528bb9c9edaff9d4d2274c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page