cloud-annotations / object-detection-react

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

Could not open ObjectDetectionVideo.js in the #36

Open Gatienorti opened 3 years ago

Gatienorti commented 3 years ago

Hi i have this issue with firefox and googlechrome even tho they say also than the model is not here you can see just under in the console than the camera still running and the object recognition is working

Gatienorti commented 3 years ago

problem

bourdakos1 commented 3 years ago

Oh interesting, looking at the code I'm guessing its a race condition where your webcam was ready faster than the model. I don't do a check if the model is ready and never noticed the bug because I guess my webcam is slow haha... Should be a quick fix, thanks for opening the issue :)

Gatienorti commented 3 years ago

It's weird cause I run in a 4-year-old laptop with a very bad webcam ;). I guess I can make it work with a delay on the camera launch also then?

bourdakos1 commented 3 years ago

You should be able to just click the “X” button to dismiss the error. Also, when this is a production build the error won’t pop up like this