1 | initial version |
I work in the barcode scanner industry. Some thoughts.
There is no one best detection+decode method; it depends on application needs: time, CPU, RAM, camera performance, co-processing, frame rate, pose of labels, etc. Researching public implementations and papers may educate you and save you time. Keep an open mind, keep your techniques simple.
Note: I haven't employed machine learning for detecting presence of or decoding barcodes.
Labels need to be big enough to be easily detected and decode elements with high contrast, not over/under printed, correctly illuminated, etc. In your multiple bale image, labels are too small with light reflections.
OCR reading: in general, it's hard to find and decode. Barcodes were designed to be easy to be detected/decoded reliably and naively.