gradio-app / gradio

Build and share delightful machine learning apps, all in Python. 🌟 Star to support our work!
http://www.gradio.app
Apache License 2.0
31.83k stars 2.37k forks source link

Adding Rear Camera Support for Mobile Phones #818

Closed ArcaneSheep closed 1 year ago

ArcaneSheep commented 2 years ago

Currently the source=webcam option to input images and videos defaults to the Front camera of the Mobile Phone, it would be great to have it supported for the Rear camera as well as it would be required in certain situations. Hope this gets added :)

rizkidewanto commented 2 years ago

For temporary solution, you can set the device from "Automatic" to "Back Camera" in Android. But yes, would love to default "rear camera" support as well 😁

rremani1990 commented 2 years ago

Streamlit webrtc provides that option to select the device, would be cool if it can be added to gradio as well.

Susensio commented 1 year ago

@rizkidewanto how can i set the device? is it a chome setting? system?

olmerg commented 1 year ago

maybe it can help medium change facing mode in webcam front end

abidlabs commented 1 year ago

Closing in favor of #4252 as it is more general