The find QR codes method returns a list of objects, so, I put the list in a variable above, then look at the first object in the list and get the payload of it. I check to make sure the list is not empty first however.

The find QR codes method returns a list of objects, so, I put the list in a variable above, then look at the first object in the list and get the payload of it. I check to make sure the list is not empty first however.

Thanks for the help but I've come up into an error while trying the code you provided me. The error that appeared says "AttributeError: 'int' object has no attribute 'payload'.

Can you help me again? Here's the full code, and while it displays the error it highlights the line of the code: if code[0].payload == "LEFT":

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 use lists like the ones I've seen on online references to read multiple payloads?

Qr codes require the background to be white. The scanning algorithm looks for certain attributes about the area around a QR code before decoding them. In particular, you absolutely need to have enough of a white border around the codes or the algorithm ignores the codes.

As for your second question... You're asking how to compare against a list? This is a python question. Just a tip, if something seems like a core language problem google for it and the answer will be available on stack overflow. Just about anything you need to know about python has an answer out there. Anyway, do this: