Let's learn what is LandingLens first. LandingLens is a platform made by Landing AI which was founded by Andrew Ng. LandingLens is a thing that lets you make AI without programming or doing math. Landing AI is also my Dads company.
I wrote this code on google colab that controlls to webcam and asks LandingLens for the result. So you wont have to use any camera app. You can take pictures for the training data and testing data.
Then I downloaded all of the data by clicking the files tab on the side and downloading them onto LandingLens
Start labeling by clicking on a image and go to the top left corner and click labbeling. Then you go to the select defect button and type create defect Then, start making boxes.
and then I pressed train!
I gathered a few more images and tested them to see how the model performed, It looks cool.
Then I copied the curl command and a program that uses the LandingLens API to make the it predict stuff the same... but with the webcam!
Here is how you can use it yourself. for now just press the first 2 cells and type training and then you can take all the pictures Then you load them onto LandingLens by clicking the file tab on the side!
After that you label the pictures. Then on the side click model and run live After you do that when it asks you for the api key and api secret part type your api key and secret from the LandingLens thing to do that click on deploy and click on the icon on the top right corner and click api key and press generate and then paste the api keys and api secrets onto your notebook also paste the link from the curl command and do not use my link or else you are going to authencation error Then you click the runtime button and click
Result: