Skip to content

shadowmodder/capture-qa

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

capture-qa

Before you spend a model call on a blurry, blown-out, or postage-stamp-sized capture, reject it at the edge. capture-qa runs fast, model-free quality gates on document/selfie images — the cheap first stage of any identity-capture pipeline.

Install

pip install -e .

Usage

from captureqa import assess

report = assess("document.jpg")
report["passed"]            # overall gate
report["metrics"]           # blur_score, brightness, exposure fractions, resolution
report["checks"]["sharp"]   # {'passed': True/False, 'detail': 'blur_score=...'}

Checks: sharpness (variance of Laplacian), over/under-exposure, and minimum resolution — all thresholds configurable. MIT licensed.

About

Before you spend a model call on a blurry, blown-out, or postage-stamp-sized capture, reject it at the edge. `

Topics

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages