Python port of EA's IRIS - Photosensitive epilepsy risk detection for video content
Project description
IRIS-Py
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-py
Or for development:
git clone https://github.com/your-repo/iris_py
cd iris_py
uv sync
Usage
iris video.mp4
Or with Python:
from iris_py 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
Release history Release notifications | RSS feed
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 iris_pse_detection-1.0.0.tar.gz.
File metadata
- Download URL: iris_pse_detection-1.0.0.tar.gz
- Upload date:
- Size: 75.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3d8a6f2b54ebb529b76d68af6e14f9fdc6e03dafc8e66db6356bdddf3a152a7
|
|
| MD5 |
1a844c60db5c0c2df1dc0ed316fac911
|
|
| BLAKE2b-256 |
0cdb02ad51736cf36c5d6671cd4bd3eadda1cfdfe205ad823250ff05a9d6f185
|
File details
Details for the file iris_pse_detection-1.0.0-py3-none-any.whl.
File metadata
- Download URL: iris_pse_detection-1.0.0-py3-none-any.whl
- Upload date:
- Size: 29.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a2497b999c6ac05cdb4ef480094823bc20914f490fa692fe6d4687418663ab6
|
|
| MD5 |
a3ad76e422f7b346d40eb54f7bc322c3
|
|
| BLAKE2b-256 |
04d16be63751af4356ba1621a4c981dfde3b4ff4ba8c07f5225a3dbce32da8a3
|