Method and device for correcting QR (Quick Response) two-dimensional code image based on clustering
2013
The invention provides a method and a device for correcting a QR (Quick Response) two-dimensional code image based on clustering. The method mainly comprises the steps that Hough transformation is performed on the QR two-dimensional code image subjected to triple expansion processing; four boundaries of the QR two-dimensional code image are acquired; four boundary straight sets of the QR two-dimensional code image are fit according to the four boundaries respectively; four intersection point sets corresponding to the four boundary straight sets are constructed respectively; intersection point clustering analysis is performed on the four intersection point sets; final four intersection point clusters are obtained; four vertex coordinates of the QR two-dimensional code image are obtained by calculating center points of the four intersection point clusters; a transformation coefficient is calculated according to the four vertex coordinates; and correction processing is performed on the QR two-dimensional code image according to the transformation coefficient. The method and the device can accurately locate boundary straights and the vertex coordinates of the QR two-dimensional code image; correction of the QR two-dimensional code image is realized by adopting geometric and perspective transformation; and the oblique QR two-dimensional code image is effectively corrected.
Keywords:
- Correction
- Source
- Cite
- Save
- Machine Reading By IdeaReader
0
References
0
Citations
NaN
KQI