Skip to main content

Defect scoring, tolerance validation, and QC reporting for clothing manufacturing.

Project description

GarmentQC

A lightweight, dependency-free Python library for quality control scoring in clothing manufacturing pipelines.

Modules

  • DefectScorer — scores individual garment defects (0-10) based on defect type, location on the garment, and physical size.
  • ToleranceValidator — validates measured garment dimensions against a target size chart with configurable tolerance ranges.
  • QualityReportGenerator — aggregates defect scores for a batch into a pass / rework / reject recommendation.

Example

from garmentqc import DefectScorer

scorer = DefectScorer(defect_type="torn_seam", location="front_panel", size_cm=3.5)
print(scorer.score())
print(scorer.severity_label())

Used in the ThreadFlow platform to automatically score defect photos uploaded by QC inspectors, as part of an AWS Lambda function triggered by S3 uploads.

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

garmentqc-0.1.0.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

garmentqc-0.1.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file garmentqc-0.1.0.tar.gz.

File metadata

  • Download URL: garmentqc-0.1.0.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for garmentqc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 8bd87ba4893f90c41f8bd39483261049371e8825835c8d3c6d230d2f0968119d
MD5 950e6dae64e6f9c9e520a355f413ea50
BLAKE2b-256 5768dea2dac4a03b0318683578409679d8660f1f0b00454fe229b33265575b05

See more details on using hashes here.

File details

Details for the file garmentqc-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: garmentqc-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.25

File hashes

Hashes for garmentqc-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 02108431a846dc0fd6db3b61e3337bc8511ed1457c58db98897dcf0066e26a41
MD5 4a6c1a10da951a38e36dccb98efae2ba
BLAKE2b-256 6d81730cef1512cb93cb74a8314200352e3db00e88670b8c26b2e8e34478c0a6

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