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.

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.2.tar.gz (4.3 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.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: black_stripe_detector-0.1.2.tar.gz
  • Upload date:
  • Size: 4.3 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.2.tar.gz
Algorithm Hash digest
SHA256 32a1d61978be2238876ff7ded8bd0ca39208ac669b91cca472584620f8f82b78
MD5 8e5ffb9fd492e0fd604049c6ef472f8c
BLAKE2b-256 b0b428948180f0a0f926022c84d4351fa5b393b70c0ed088ed5659f0475c5b2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for black_stripe_detector-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d9d078234bf20baa4a8547a1043173098dd30edaac181622e58f3373d4d4cf86
MD5 d4cbfc51c644a9c7554f28eb0fa991c7
BLAKE2b-256 acdb25918cf6ee56987604e7a06b9d724a4a7064ea8e9dba9ae2fe6b3e1206f0

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