logo

识别二维码的教程是哪个?

2018-04-10 20:55
Q
lemron

识别二维码的教程是哪个?

2018-04-10 21:08
I
网红小智智 星瞳科技

来自星瞳实验室APP: OpenMV的教程在哪里?<https://forum.singtown.com/topic/2>

Q
lemron

可以把二维码的中心坐标表示出来么?

I
网红小智智 星瞳科技

当然可以,你看教程里都有

Q
lemron

例程讲解-09-qrcodes_with_lens_zoom二维码识别

此例程为09-qrcodes_with_lens_zoom.py 本例程的目标是实现二维码检测。

# QRCode Example

#

# 这个例子展示了OpenMV Cam的功能,可以在不需要镜头校正的情况下检测QR码。

import sensor, image, time

sensor.reset()

sensor.set_pixformat(sensor.GRAYSCALE)

sensor.set_framesize(sensor.VGA)

sensor.set_windowing((240, 240)) # look at center 240x240 pixels of the VGA resolution.

sensor.skip_frames(30)

sensor.set_auto_gain(False) # must turn this off to prevent image washout...

clock = time.clock()

while(True):

clock.tick()

img = sensor.snapshot()

for code in img.find_qrcodes():

print(code)

print(clock.fps())

只找到了这个