Reputation: 401
I would like to scan barcode from my webcam but not image.
Is it possible ? How can i do ?
Upvotes: 1
Views: 6016
Reputation: 31522
Long answer: Maximize the contrast of the image, saturate the image, triangulate the extremes of each bar in the barcode, calculate a plain projection of the barcode, measure the width of each bar, make them a percentage, translate with the appropriate reference table
Short answer, use a dedicated library like https://serratus.github.io/quaggaJS/
Upvotes: 4