cloud-annotations / object-detection-react

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

How to do this with a single .jpeg file? #13

Closed Arykelton closed 4 years ago

Arykelton commented 4 years ago

Hello friend, this may be a dumb question, but how do you make this code work by pointing to just one image instead of a webcam stream? I would just like to detect objects in just one image but I couldn't and I didn't find an easy way to do it on the internet, but I believe it is possible to do it in an easy way. Could you give me a hand?

I tried to modify useWebcam to capture only one frame but I was unsuccessful.

bourdakos1 commented 4 years ago

I cant give a detailed answer at the moment, but check out the sdk it has some instructions on how to use object detection with image tags https://github.com/cloud-annotations/object-detection-js

I can be more helpful in a couple days