ios - 扫描二维码,返回的readableObject对象中带有scalar values的理解
阿神
阿神 2017-04-17 12:08:09
0
1
338

使用摄像头拍到二维码的时候,返回了一个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。

求大神解救

阿神
阿神

闭关修行中......

reply all (1)
左手右手慢动作

0~1 is the relative distance, multiplied by the length and width of the recognized image to get the actual coordinates

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!