cloud-annotations / object-detection-react

⚛️ Real-Time Custom Object Detection with TensorFlow.js
MIT License
255 stars 108 forks source link

npm start :compiled with warnings #27

Open sunnyzhong812 opened 4 years ago

sunnyzhong812 commented 4 years ago

OS Ubuntu 18.04

err1 err2

filahf commented 4 years ago

Nevermind the warnings in the terminal. Those functions can be used as props for ObjectDetectionVideo and therefore replacing the original render function.

What errors are you receiving in your web console?

sunnyzhong812 commented 4 years ago

On localhost and else PC's web console is different, and what causes a blank screen?

err3

err4

bourdakos1 commented 4 years ago

Googling the error message, seems to be a permissions issue maybe? Does your device have a webcam?

bourdakos1 commented 4 years ago

This site seems to have some useful info on debugging the issue: https://blog.addpipe.com/common-getusermedia-errors/

sunnyzhong812 commented 4 years ago

Googling the error message, seems to be a permissions issue maybe? Does your device have a webcam?

Okay, I connect my webcam and allow . It's blank screen, too.

err5

bourdakos1 commented 4 years ago

Hmm no more webcam issue, not sure where to go from here...

filahf commented 4 years ago

I would recommend to make sure that Firefox is up to date and that your vm is set up correctly.

A work around is to install ngrok and tunnel the dev server to a https endpoint. https is required for enabling camera permissions on the web, that's why it wont work on the host