论坛里面大多数方法我都试了,返回的都是1,我就觉得很奇怪
def find_max(blobs):
max_size=0
for blob in blobs:
if blob[2]*blob[3] > max_size:
max_blob=blob
max_size = blob[2]*blob[3]
print(max_blob.code())
return max_blob
论坛里面大多数方法我都试了,返回的都是1,我就觉得很奇怪
def find_max(blobs):
max_size=0
for blob in blobs:
if blob[2]*blob[3] > max_size:
max_blob=blob
max_size = blob[2]*blob[3]
print(max_blob.code())
return max_blob
请问这个扫码识别得到的code.payload(),扫码结果是123+321 ,我将它赋值给message,然后通过比对message是否等于字符串123+321,一直显示不相等,请问这个code,payload()输出的是什么类型的数据啊?
while(b==1):
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():
img.draw_rectangle(code.rect(), color = (255, 0, 0))
message = code.payload()
if message =='123+321'
print("0")