Custom Product Code - Computer Vision - Python - Raspberry Pi Forums


for project require read product code (similar qr code), webcam. unlike qr code - has many python libraries make scanning easy - need make custom product code - means need custom library. code design simple - 1 shape corresponds '1' , shape corresponds '0'.
arci code.jpg
arci code.jpg (6.58 kib) viewed 207 times
know how program reader in python? kind of algorithm should looking into? in terms of programming proficiency i'm beginner (so please try , refrain using complicated terms).

unfortunately image recognition scratch not trivial subject.

there library called opencv may help, think can used python.


if writing scratch, sure image orientated picture above? in case can scan photograph top until hit non-white, , perhaps bottom. finds vertical dimensions. same left , right. have , area, can pick scan line, , count number of black vs white patches (ie, scan across, hit black, scan non black, scan next black etc). simple code this, enough.


raspberrypi



Comments

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'