New component streamlit_back_camera_input

Streamlit camera input with back camera as default, it’s useful for phone
Just touch on video area to take a picture

Example:

import streamlit as st
from streamlit_back_camera_input import back_camera_input

image = back_camera_input()
if image:
    st.image(image)