I want to build a model that classifies images into categories. its input is a single image, and the output is the class to which the model thinks the image belongs.
But it seems like the model searches for a camera feed as input.
How can I use the model the way I need, with a single image input instead of live camera input? is there a build-in option for this kind of use?
I’ll explain in more details -
I’m trying to build a model that receives an image and classifies it into one of two categories.
the model I built with edge impulse is working well on the test data, with 95% accuracy which is more than enough for the purpose i need the model for.
but the problem is that i need the model to receive a single image as input, and to output the class of the image. that’s problematic because it seems like the model built by edge impulse can only receive a camera live feed as input.
my question is - is there a way to make the model receive a single picture as input?
Yes you can do this task easily by using Ingestion Service API and if you want to run your model on your local machine you can use the code from the model as python notebook or just use API for this task.
If you’re on MacOS or Linux, you can use Edge Impulse for Linux to run it locally.
Here is some examples using the Python SDK that will let you classify single images classify-image.py (or even a video frame classify-video.py):