|
||||||
|
||||||
Extracting Datamatrix Code for Decoding
18 posts
• Page 2 of 2 • 1, 2
Re: Extracting Datamatrix Code for DecodingHorizontalIntensityStatistics and VerticalIntensityStatistics may help.
Re: Extracting Datamatrix Code for Decodingyeah already tried this too.. But what exactly could it do for me? the doc says that there is no chance to get an information about the row or column in the picture..
hmm.. when I started, I thought it would be easier.. maybe you could try something.. I think barcode,qrcode and datamatrix recognition would be a great part of aforge.net
Re: Extracting Datamatrix Code for Decoding
If you analyse histogram, then you can find on which row/column something interesting starts/ends. At least try using these classes and then display these histograms to have a look on them and think how to interpret them.
Re: Extracting Datamatrix Code for Decoding
Okay will try next week again. How can I get the Row or Column information from the Histogram?
Re: Extracting Datamatrix Code for Decoding1) You can check Min/Max properties of histogram, which tell you where values of histogram start/end (first/last none zero value in histogram). For vertical/horizontal histograms it will be row/column.
2) You can also check values of histograms and see how they change. In one of my quite old articles, I showed how histograms could be useful in detecting some objects.
Re: Extracting Datamatrix Code for DecodingOkay Thanks Andrew
![]() Next Problem: I have no clue how to fix the region. I see that now im getting the 18 peaks of my code in horizontal and vertical direction. But scratches on the material could lead into wrong coordinates, like you can see on the picture... I am thinking about the width of the peaks.. they could be an indicator for a row or column, belonging to the code.. any helpful support or other idea ?
Re: Extracting Datamatrix Code for DecodingThere are few ideas to try:
1) You can filter those regions, which have thin (or very small) spikes on the histogram; 2) If you have data matrix, where every brick is separated from all others, then you may assume that data matrix bricks have certain size. If so, then you can remove everything else which is bigger than this (bigger then certain threshold).
Re: Extracting Datamatrix Code for DecodingOh boy! So Easy! Nobody told me that the Dilatation can be used more times. Thats the key for this problem.. used Dilatation 3 Times an now my Datamatrix code can be found as one big blob
Now another question: I would like to do this whole this in real time on the webcampicture, like you always do in your programms... unfortunately my webcam picture slows extremely.. I copied the important steps into the Event New Video Frame:
18 posts
• Page 2 of 2 • 1, 2
|
|
|