I need to detect these two kinds of labels, and tell them apart.
Could you give me some directions as to what functions and techniques to use?
I can rely on them being white rectangles with black text and barcodes in them, so that's a pattern I could use.
I'm already detecting most barcodes with zbar, so that works fine.
_For example, in the bottom label, the first 2 barcodes are detected by zbar, but not the last one_
But when zbar fails to read it, I need to resort to OCR, so I need some way to locate the strings of digits (alphanumeric not even needed) and then pass them to Tesseract or something.
Thanks!