API Reference
Complete technical documentation for developers and advanced users.
Note
👨💻 For most users: The User Guide covers everything you need without diving into code details.
Quick Module Guide
Core Processing
🖼️ label_processing
Detection, classification, OCR, and image processing functions.
Text Cleaning
🧹 label_postprocessing
Post-process and structure OCR results for better quality.
Quality Metrics
📊 label_evaluation
Evaluate system performance and calculate accuracy metrics.
Docker Workflows
🐳 pipelines
Containerized processing pipelines and configurations.
Detailed Documentation
Programmatic Usage
Here’s how to use the main components in your Python code:
# Basic usage example
from label_processing import LabelDetector, LabelClassifier
from label_processing.ocr_vision import extract_text
# Detect labels in an image
detector = LabelDetector()
bboxes = detector.detect('specimen_photo.jpg')
# Classify cropped labels
classifier = LabelClassifier()
label_type = classifier.classify('cropped_label.jpg')
# Extract text with OCR
text = extract_text('printed_label.jpg', method='tesseract')