OCRmyPDF icon indicating copy to clipboard operation
OCRmyPDF copied to clipboard

Auto-assign ASN using a barcode label

Open IoTAntimon opened this issue 2 years ago • 2 comments

Is your feature request related to a problem? Please describe. Every printed document should correspond to a archived document as described in the tutorial. The proposed solution is to hand-write a unique number on each document.

Describe the solution you'd like You can print some barcode labels with a unique number and stick it to each document (for example in the right upper corner). As the barcode has a certain format (for example a 6-digit-number, each starting with a certain prefix) it can be recognized and the ASN can be assigned automatically. Another advantage: You can scan the physical document with a barcode scanner and search for the archived version.

Describe alternatives you've considered An alternative would be a numbering apparatus to assign a unique number to each document. But I think it wouldn't be as easy to recognize as a barcode (or maybe a QR-Code).

IoTAntimon avatar May 10 '22 23:05 IoTAntimon

Agreed this is nice to have. The difficulty is there's a plethora of possible barcode formats, locations to search for them, and actions to take based on them being recognized or not found. In short, the desired behavior is tending toward a Turing-complete specification.

That makes me suggest that this is best suited to a plugin at the image processing stage, where the page image could be searched for barcodes and output filename could be changed.

jbarlow83 avatar May 26 '22 07:05 jbarlow83

A plugin should be the best way - it can be disabled if someone doesn't need the feature.

Maybe some regions could be defined where the barcode should be placed (for example in the upper right corner), so that the whole page doesn't need to be processed.

The used type of barcode and the format of the contents could also be defined in the config, so that not all types of barcodes need to be searched for. If the contents do not (regex-)match the desired format, the processing can be skipped - to ignore other already existing barcodes.

IoTAntimon avatar May 26 '22 09:05 IoTAntimon