How can I get food names with the food dection model?
Hi! I'm wondering how I can use the food detection model in the Object Detection Template to differentiate between the types of food.
Now it's just counting the foods detected, but I want to get their names like "apple" or "banana". What function should I use to to print out the detection results (labels)?
Thanks!
Answers
-
Hey @Sihan Z
Hope you will watch this tutorial
https://youtube.com/watch?v=SuKcmN7adAk
You may find what you are looking for!
Good luck
2 -
@سعد الفريدي said:
Hey @Sihan ZHope you will watch this tutorial
https://youtube.com/watch?v=SuKcmN7adAk
You may find what you are looking for!
Good luck
Hi thanks for you reply. I've already watched this video but that's not what I'm looking for. The lens in the video only counts the amount of food detected, but I want to differentiate between different types of food like apple or banana.
0 -
Hey @Sihan Z
Please try this lens of mine
https://snapchat.com/unlock/?type=SNAPCODE&uuid=86909f98156f4f509eb6eb7f8947bb5c&metadata=01If it is what you want, I will share the entire project with you!
2 -
@سعد الفريدي said:
Hey @Sihan ZPlease try this lens of mine
https://snapchat.com/unlock/?type=SNAPCODE&uuid=86909f98156f4f509eb6eb7f8947bb5c&metadata=01If it is what you want, I will share the entire project with you!
Thanks! I've been looking at this multi object detection template as well! It's close to what I want but I don't know how to customize it. I want to change the seven catogaries to something else, like different fruits. Do you know how to do that?
0 -
Hey @Sihan Z
You can change the categories as you like, just download the project in Lens studio:
Follow the following steps:
Now know the content of this project and how to modify what you want according to the following explanations:
Multi Object Detection:
https://docs.snap.com/lens-studio/references/templates/ml/multi-object-detection/The Object Detection Template allows you to instantiate and place UI elements on the screen based on the bounding boxes of the objects of a certain class based on a Machine Learning model output.
Videos:
https://youtube.com/watch?v=SuKcmN7adAk&t=234s&ab_channel=SnapARFeel free to click (Vote Up) to support us
Best,
@سعد الفريدي2 -
These are amazing designs. We would like to use these on mcdonald menu uk website. Do you allow them for commercial purposes? Thank you.
0