Do you want to know how to code a website which recognizes images of animals?
YOU'VE COME TO THE RIGHT PLACE!
All you have to do is to follow these steps.
But first, let me explain... what is ml5.js?
It is a librairie which provides access to machine learning algorithms and models in the browser with no other external dependencies. It is an open source with a community of students, coders and artists. With this tool, you could create and explore artificial intelligence in the browser!
If you want to learn how to use this database, please click on this link (23min video): here!
How do we start?
Take your html file and write this code:
Be careful with the line 29 because it is essential to recognize your image, it is directly linked to the ml5 database.
Take now your JavaScript file and write this code:
Finally, take time to customize and make a nice website by using your CSS file
You are not an artist or you need inspiration? These are links where you can found what you are looking for:
here, here and here!
And now... let see the result!
So, as you can see there is a % under the image, it is the degree of certainty of the algorithm. Sometimes it may not work very well and does not recognize the animal, do not panic! It is improving and learning every day to become more and more expert (like us!)
To finish, because I love TED videos... Let's watch it!