I played around with Streamlit the last couple of weeks and I can’t deny that I’m extremely enthusiastic about it. This is all I could wish for!
And I want to use this tool to help automating stuff for the company that I work for now. So I was wondering if the following is possible:
I want to create an app that’s hosted with Streamlit
I would like to use the camera of a smartphone within that app to scan QR codes
Could anyone show me an example of someone who made something like this? I can see examples of camera’s that are being used but not with scanning QR-codes. Even though that would be a great use case if you ask me.
When I test this code, I see that I first need to take a picture before I can encode the QR-code. It is possible to let Streamlit check every frame of the incoming camera footage to check for a QR-code right? Hope so!
I wasn’t aware of a simple way to do that, but it seems like a useful thing to have in the streamlit ecosystem, so I created a new component: New Component: Streamlit camera live input
Hello. Is there a way to store the QR code image in MongoDb, once read, as an image for later reuse/scan?
And if so, how to do that?
I was successful in doing all the above, wuth the exception of storing it in Mongo. It stores it as Null.
Thoughts?
import streamlit as st
from streamlit_qrcode_scanner import qrcode_scanner
qr_code = qrcode_scanner(key='qrcode_scanner')
if qr_code:
st.write(qr_code)