Maybe something like this:
- Scan the qrcode and capture the result
- Setup the camera and unique file path
- Take the Picture
- Save the image path and the result to TinyDB
- Get ready to scan again
I used the Procam extension, along with a File component, a TinyDB, and a Clock component
