blackary / streamlit-camera-input-live

Alternative version of st.camera_input which returns the webcam images live, without any button press needed
MIT License
32 stars 10 forks source link

[FIX] Resolve readme.MD bug in Usage instructions #10

Closed pselvana closed 7 months ago

pselvana commented 7 months ago

Variable value is not defined and the captured camera response resides in the image variable. -- updated variable

Furthermore, looks like at initial load of the component the image can be None until browser camera access is provided and the camera component is fully initialized and will fail on streamlit's Image component validating image.format without checking for image being valid. -- added if guard

pselvana commented 7 months ago

@blackary - do you have some time to review this change?

blackary commented 7 months ago

@blackary - do you have some time to review this change?

Yup, good catch -- thanks!