使用摄像头拍到二维码的时候,返回了一个readableObject对象,这个对象包含了二维码的信息,比如readableObject.bounds可以取得bounds,readableObject.corners可以取得二维码的四个角坐标,但是这些值都是0~1的。。
官方说确实是0~1(官方链接),官方说 If the metadata originates from video, the points may be expressed as scalar values from 0 to 1 。
我不理解这些0~1的值是什么意思。跟整个摄像头屏幕有什么关系。。并且怎么转化成真实的frame。
求大神解救
0~1 is the relative distance, multiplied by the length and width of the recognized image to get the actual coordinates