You are home, All of your cabinets are full of food but you wonder :
" I want to cook, but I have no idea what to cook..., I need someone to find a recipe I can do with the ingredients I have !"
Bingo ! You take your phone and only need your favorite app "Food love" to guide you through your cooking journey !
To create our app, we need to use a JavaScript Library in our code that will be ml5.js.
ml5.js aims to make machine learning approachable for a broad audience of artists, creative coders, and students.
In this library we will use a specific function called "imageClassifier()". This function is explained on
this web page.
Thanks to this function, our smartphone will be able to detect the ingredients we have. Indeed, the user will scan his cabinets with the camera and the app will detect the content thanks to the function.
Our new smart phone chef will then propose some recipes to do with the ingredients we have thanks to an existing algorythm.
THE CODE
Different elements need to be present in the code to have it functionnal for the app. We need to have the reference to the library included in our html file.
We also have to create a javascript .js file that will be used for the ml5js.
There after, we can see a snip of how to include ml5 and the function imageclassifier
.png?v=1575913783651)