共 846 条结果匹配 "lcd 二维码",(耗时 0.25 秒)
openmv扫二维码定位
请问用OpenMV扫二维码怎么返回顶点正方形中心的坐标?
扫描二维码,如何将扫描的二维码转码然后进行串口输出
我扫了一个112的二维码,然后使用bytearray转码不了,用的是uart通讯,不知道使用什么转码方式,希望能尽快解决
识别一个内容为123的二维码,想让其二维码内容出现在LCD屏幕上。出现错误:没有足够的位置参数,
# QRCode Example
#
# This example shows the power of the OpenMV Cam to detect QR Codes
# using lens correction (see the qrcodes_with_lens_corr.py script for higher performance).
import sensor, image, time, lcd, pyb
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QVGA)
sensor.skip_frames(time = 2000)
sensor.set_auto_gain(False) # must turn this off to prevent image washout...
clock = time.clock()
lcd.init() # Initialize the lcd screen.
while(True):
clock.tick()
img = sensor.snapshot()
for i in range(10):
x = (pyb.rng() % (2*img.width())) - (img.width()//2)
y = (pyb.rng() % (2*img.height())) - (img.height()//2)
r = (pyb.rng() % 127) + 128
g = (pyb.rng() % 127) + 128
b = (pyb.rng() % 127) + 128
img.lens_corr(1.8) # strength of 1.8 is good for the 2.8mm lens.
for code in img.find_qrcodes():
img.draw_rectangle(code.rect(), color = (255, 0, 0))
print(code)
img.draw_string(img.draw_string(x, y, code.payload(), color = (r, g, b), scale = 2, mono_space = False)
)
lcd.display(img)
print(clock.fps())
关于二维码的疑问
各位大神们,我在扫描二维码时遇到了问题,我想把二维码扫描到的内容(内容是123)通过串口发送出去,请问具体发送的语句该怎么改呢,我现在用的是下面的程序,但每次扫到二维码时都报错,求大神帮助!!!!!
import time
from pyb import UART
import sensor, image
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QQVGA) # can be QVGA on M7...
sensor.skip_frames(30)
sensor.set_auto_gain(False) # must turn this off to prevent image washout...
uart = UART(3, 19200)
while(True):
img = sensor.snapshot()
img.lens_corr(1.8) # strength of 1.8 is good for the 2.8mm lens.
for code in img.find_qrcodes():
print(code)
write(code.payload)
二维码识别无反应
把例程中的二维码识别代码复制到IDE 发现只能识别例程中的二维码 生成的二维码却无法识别 代码如下
import sensor, image
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QQVGA) # can be QVGA on M7...
sensor.skip_frames(30)
sensor.set_auto_gain(False) # must turn this off to prevent image washout...
while(True):
img = sensor.snapshot()
img.lens_corr(1.8) # strength of 1.8 is good for the 2.8mm lens.
for code in img.find_datamatrices():
print(code)
几张照片如下 二维码是能用手机识别出来的,大家可以帮忙看下吗 谢谢
openmv识别多个二维码
请问,怎样一次识别多个普通二维码?一个平面有两个或者多个普通的二维码,进行一次识别?
怎么在不用单片机的情况下让openmv lcd只显示二维码内容。
openmv扫描二维码,想让lcd只显示其内容
找DM二维码只能识别图像中间区域的二维码,当把二维码移到图像边缘就识别不到了怎么回事?
import sensor, image, time
sensor.reset()
sensor.set_pixformat(sensor.GRAYSCALE)
sensor.set_framesize(sensor.QVGA) # can be QVGA on M7...
sensor.skip_frames(30)
sensor.set_auto_gain(False) # must turn this off to prevent image washout...
clock = time.clock()
while(True):
img = sensor.snapshot()#.lens_corr(0.47)
clock.tick() #必须放在img = sensor.snapshot()下面
for code in img.find_datamatrices( effort = 200):#effort越大帧率越低,上限240,越小帧率越高下限160
print(code)
print("FPS %f" % clock.fps())
同时识别5个二维码并5个二维码同时单个被矩形框起来
怎么解决,for code in qrcodes()?
关于二维码识别的疑问
请问各位大神们,假设说我用识别了一个内容为123的二维码,请问这个123是数字还是字符啊?如果是数字或者字符的话,我想让X=1,Y=2,Z=3。即让XYZ分别等于第一个数字,这样的话我的程序该如何修改呢?麻烦大家帮忙解答下,拜托了!
import sensor, image
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QQVGA) # can be QVGA on M7...
sensor.skip_frames(30)
sensor.set_auto_gain(False) # must turn this off to prevent image washout...
while(True):
img = sensor.snapshot()
img.lens_corr(1.8) # strength of 1.8 is good for the 2.8mm lens.
for code in img.find_qrcodes():
print(code)