A Python script that automatically extracts barcodes from PDF files and saves each unique barcode as an individual Word .docx document.
- Reads calibration data generated by
debugger.pyto locate the main barcode column. - Converts PDF pages into high-resolution images.
- Detects, crops, and extracts valid barcodes.
- Saves each barcode into the
output/directory as a Word document.
Before running the script, make sure you have the following installed:
- Python 3.x
- Required libraries:
pdf2image,opencv-python(cv2),pyzbar,python-docx,numpy,matplotlib - Poppler: Required for
pdf2image. The script expects it at./poppler-25.12.0/Library/bin/.
The content of this README was structured and polished with the help of Gemini.