Metadata-Version: 2.1
Name: black_stripe_detector
Version: 0.1.2
Summary: A Python package to detect black stripes in images that may indicate rendering errors.
Author: Jer NC
Author-email: 
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: Pillow>=9.0.0
Requires-Dist: numpy>=1.21.0

# Black Stripe Detector

A Python package to detect black stripes in images that may indicate rendering errors.

## Usage

```python
from black_stripe_detector import analyze_frames

# Analyze a directory of images
corrupted_frames = analyze_frames(
    output_directory="./images", # Relative path
    # output_directory=r"C:\my_project\images", # Absolute path
    threshold=10,
    stripe_threshold=0.99,
    min_stripe_height=1,
    debug=True
)

# Print results
if corrupted_frames:
    print("\nThe following defective frames were detected:")
    for frame in corrupted_frames:
        print(f"- Name: {frame['name']}, Path: {frame['path']}")
else:
    print("\nNo defective frames were detected.")
```

### Output

```
The following defective frames were detected:
- Name: 0.png, Path: ./images\0.png
- Name: 1.png, Path: ./images\1.png
- Name: 2.png, Path: ./images\2.png
- Name: 3.png, Path: ./images\3.png
```

