Improve barcode detection in documents with graphics and text by implementing a multi-strategy horizontal slicing approach: - Split documents into overlapping horizontal sections (5,4,3,2,1, or full) - Decode each section separately to isolate individual barcodes - Use 2% overlap between sections to avoid missing boundary codes - Return the strategy that detects the most barcodes - Early exit optimization when fewer codes are found Also fix error handling to use Error objects instead of string literals. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
13 KiB
13 KiB