Skip to main content

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

Project description

Black Stripe Detector

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

Installation

pip install black_stripe_detector

Usage

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

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

black_stripe_detector-0.1.1.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

black_stripe_detector-0.1.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file black_stripe_detector-0.1.1.tar.gz.

File metadata

  • Download URL: black_stripe_detector-0.1.1.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for black_stripe_detector-0.1.1.tar.gz
Algorithm Hash digest
SHA256 31fec6b952789908aa83f4d01ddaafe463e7da097ee233c81e22467e776c2c94
MD5 df71c60e890df64d3ed54deb9d62d7a3
BLAKE2b-256 51112481f5878f13c4412ad6dc6e5014d45237f73a13b4ba33c034797234525a

See more details on using hashes here.

File details

Details for the file black_stripe_detector-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for black_stripe_detector-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f05ce998b79419de8f99629129ca7ce44e7156c6fdc91251ae6871456ff3f41
MD5 a61c85c5d046928e6b6e431f5fff0ba5
BLAKE2b-256 ea8798c2086482ce862fa3e66802ec60b966ba9dde50a776a70805c637eb0092

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