In the optical information reader, when a first data area 61 of the QR code 50 is decoded based on image data generated in a state that the QR code 50 is included and when information related to a size of the QR code 50 is acquired, a distance X to the QR code 50 is measured based on the size of the QR code 50 and a code area where the QR code 50 occupies the image data.
QRコード50を含んで生成された画像データに基づいて当該QRコード50の第1データ領域61がデコードされて、当該QRコード50の大きさに関する情報が取得されると、QRコード50の大きさとこのQRコード50が画像データに占めるコード領域とに基づいて当該QRコード50までの距離Xが測定される。 - 特許庁