Ask Your Question

Revision history [back]

Barcode style recognition

Hey there,

so we want to recognise MaxiCode style images, get the area, adjust the perspective and put it through the decoder.

Thats my first time for image processing, so after some playing around i went for canny edge detection, finding the contours and filtering them out as the dots in the part we need should all be close to each other in size and also are a lot in a specific area. So while trying to get that to work i used this image for testing and got to an acceptable result in a short time.
While ideally the area i want fills most of the screen that ofc wont happen too much and at that point i went to test with some other source images and what can i say its not working at all. Text messes it up totally, the lines you usually have when taking pictures of a monitor do and probably a lot else does.

So before trying to fix my code i'd appreciate some opinions on how you would start tackling the problem , what not to do or any other tipps

Barcode style recognition

Hey there,

so we want to recognise MaxiCode style images, get the area, adjust the perspective and put it through the decoder.

Thats my first time for image processing, so after some playing around i went for canny edge detection, finding the contours and filtering them out as the dots in the part we need should all be close to each other in size and also are a lot in a specific area. So while trying to get that to work i used this image for testing and got to an acceptable result in a short time.
While ideally the area i want fills most of the screen that ofc wont happen too much and at that point i went to test with some other source images and what can i say its not working at all. Text messes it up totally, the lines you usually have when taking pictures of a monitor do and probably a lot else does.

So before trying to fix my code i'd appreciate some opinions on how you would start tackling the problem , what not to do or any other tipps What im basically doing to filter out the contours is
checking if we have center of masses close by
averaging length and area of contours and taking only those that are like 50 - 150% around that ( tried different values) center off all masses of rest of contours and calculating distance of each to complete center of mass and skipping the ones that are just far off

Barcode style recognition

Hey there,

so we want to recognise MaxiCode style images MaxiCode style images, get the area, adjust the perspective and put it through the decoder.

Thats my first time for image processing, so after some playing around i went for canny edge detection, finding the contours and filtering them out as the dots in the part we need should all be close to each other in size and also are a lot in a specific area. So while trying to get that to work i used this imagethis image for testing and got to an acceptable resultacceptable result in a short time.
While ideally the area i want fills most of the screen that ofc wont happen too much and at that point i went to test with some other source images and what can i say its not working at all. Text messes it up totally, the lines you usually have when taking pictures of a monitor do and probably a lot else does.

So before trying to fix my code i'd appreciate some opinions on how you would start tackling the problem , what not to do or any other tipps What im basically doing to filter out the contours is
checking if we have center of masses close by
averaging length and area of contours and taking only those that are like 50 - 150% around that ( tried different values) center off all masses of rest of contours and calculating distance of each to complete center of mass and skipping the ones that are just far off

Barcode style recognition

Hey there,

so we want to recognise MaxiCode style images, get the area, adjust the perspective and put it through the decoder.

Thats my first time for image processing, so after some playing around i went for canny edge detection, finding the contours and filtering them out as the dots in the part we need should all be close to each other in size and also are a lot in a specific area. So while trying to get that to work i used this image for testing and got to an acceptable result in a short time.
While ideally the area i want fills most of the screen that ofc wont happen too much and at that point i went to test with some other source images and what can i say its not working at all. Text messes it up totally, the lines you usually have when taking pictures of a monitor do and probably a lot else does.

So before trying to fix my code i'd appreciate some opinions on how you would start tackling the problem , what not to do or any other tipps What im basically doing to filter out the contours is
checking if we have center of masses close by
averaging length and area of contours and taking only those that are like 50 - 150% around that ( tried different values) values)
center off all masses of rest of contours and calculating distance of each to complete center of mass and skipping the ones that are just far off

Barcode style recognition

Hey there,

so we want to recognise MaxiCode style images, get the area, adjust the perspective and put it through the decoder.

Thats my first time for image processing, so after some playing around i went for canny edge detection, finding the contours and filtering them out as the dots in the part we need should all be close to each other in size and also are a lot in a specific area. So while trying to get that to work i used this image for testing and got to an acceptable result in a short time.
While ideally the area i want fills most of the screen that ofc wont happen too much and at that point i went to test with some other source images and what can i say its not working at all. Text messes it up totally, the lines you usually have when taking pictures of a monitor do and probably a lot else does.

So before trying to fix my code i'd appreciate some opinions on how you would start tackling the problem , what not to do or any other tipps What im basically doing to filter out the contours is
checking if we have center of masses close by
averaging length and area of contours and taking only those that are like 50 - 150% around that ( tried different values)
center off all masses of rest of contours and calculating distance of each to complete center of mass and skipping the ones that are just far off