object-detection-react icon indicating copy to clipboard operation
object-detection-react copied to clipboard

npm start :compiled with warnings

Open sunnyzhong812 opened this issue 5 years ago • 7 comments

OS Ubuntu 18.04

err1 err2

sunnyzhong812 avatar Oct 21 '20 03:10 sunnyzhong812

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?

filahf avatar Oct 21 '20 09:10 filahf

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

err3

err4

sunnyzhong812 avatar Oct 22 '20 01:10 sunnyzhong812

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

bourdakos1 avatar Oct 22 '20 02:10 bourdakos1

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

bourdakos1 avatar Oct 22 '20 02:10 bourdakos1

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

sunnyzhong812 avatar Oct 22 '20 05:10 sunnyzhong812

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

bourdakos1 avatar Oct 22 '20 12:10 bourdakos1

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

filahf avatar Oct 22 '20 15:10 filahf