Calculating the position of QR Code alignment patterns

前端 未结 5 1535
陌清茗
陌清茗 2021-01-13 05:25

I need to know how to calculate the positions of the QR Code alignment patterns as defined in the table of ISO/IEC 18004:2000 Annex E.

I don\'t understand how it\'s

5条回答
  •  春和景丽
    2021-01-13 06:15

    sorry about my English. I hope this can help you, and not to later reply. first things, the standard forget a important thing is that the top left is define with (0,0). the { 6, 26, 50, 74 } means the alignment points row coordinate and col coordinate, and I don't know why they do like this, maybe for save space. but we combine all the values for example the:

    { 6, 26, 50, 74 }
    

    and we get :

    { 6 , 6  } ---> ( the x coordinate is 6, and the y is 6, from top/left )
    { 6 , 26 }
    { 6 , 50 }
    { 6 , 74 }
    { 26, 26 }
    { 26, 50 }
    { 26, 74 }
    { 50, 50 }
    { 50, 74 }
    { 74, 74 }
    

    those point's are the actual coordinate of alignment patterns center. Ps: if a position has the position detection patterns, we ignore output alignment, like the position (6, 6).

    I also have this question before, but now, I solve it, so I hope you can solve it too.

    good luck~

提交回复
热议问题