Search found 3 matches

by kaz
Sun Feb 18, 2018 7:50 am
Forum: Project Discussion
Topic: Extracting text from QR Codes
Replies: 5
Views: 1563

Re: Extracting text from QR Codes

Sorry, I meant .payload(). The parens are important. Thank you very much. I've tested it before going, it works as expected. One more thing, I've printed some QR codes but the OpenMV Cam doesn't immediately detect it unless on some certain conditions like when the background is white. Also can I us...
by kaz
Wed Feb 14, 2018 7:11 am
Forum: Project Discussion
Topic: Extracting text from QR Codes
Replies: 5
Views: 1563

Re: Extracting text from QR Codes

Do: codes = img.find_qrcodes() for code in codes: img.draw_rectangle(code.rect(), color = (255, 0, 0)) print(code) if codes: if code[0].payload == "LEFT": s1 = pyb.Servo(1) s1.angle(45) This extracts the text for the first QR code seen. The find QR codes method returns a list of objects, so, I put ...
by kaz
Tue Feb 13, 2018 8:30 am
Forum: Project Discussion
Topic: Extracting text from QR Codes
Replies: 5
Views: 1563

Extracting text from QR Codes

Hello there, Can anyone help me with my simple project? I'm very new on the OpenMV M7. I just need to move a mini servo depending on the text read on the QR Code. I've used the sample QR Code and the text on the QR is printed on the "payload". How can i extract the payload and use it as a variable t...

Go to advanced search