howlowck / train-faces

UI for training faces for Microsoft Cognitive Services Face API
https://howlowck.github.io/train-faces/
MIT License
15 stars 9 forks source link

The Webcam cannot capture picture #19

Open buhongw7583c opened 5 years ago

buhongw7583c commented 5 years ago

Dear Hao, I found the API you created is really easy to use. I got an issue recently when trying to capture picture from the webcamera. I am very sure the API has the permission to use my camera but it just does not work. Please see the picture below.

The problem happens using the webAPI or my local API, both on my surface and Mac book.

Have you encountered the issue before or is there any special configurations that i should do to enable the camera working? Really appreciate your wonderful work.

image

howlowck commented 5 years ago

hi @buhongw7583c i'm really sorry for the impossibly late response.. but I believe browsers have stopped supporting webcams on HTTP hosts.. For the camera to show up on localhost, you'd need to serve through HTTPS