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)
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.