Now in this post, I am planning to show how to create an Object detection app using AI builder in Power Apps.
1- First you need to set up your AI builder, so it did not please follow the link: See more
2- you need to have an excel file that contains the label for prediction
3- A list of pictures, regarding specific objects
we are going to create an application, to detect the Green Teabox in the picture.
Need to create an Excel file for labelling the file.
In the Power Apps, click on the data and entity, then click on the Get Data.
In the choose data source page, click on the Excel connector.
you need to first upload the file into Onedrive. then choose the file.
Browse the link and then click on the Next to load the data.
Select the Green Tea, then click on the Next.
The first row, need to be as header
After transforming the data, click on the Next.
In the Map Entities, for Load setting, choose the “Load to New Entity”, then choose the option “Delete rows that no longer exists”. For the Primary name field, choose the “Lable” and for the filed type, change the Multiline text, to the Text.
Now click on the Next.
the data will be available.
After loading the data, check the Data section, to see the Green Tea.
Then, in Power Apps, click on the Build option, to create an object detector.
choose Object Detection, from the list.
In the new page, choose the name of the Model Name, then click on the Create model.
The first step is to “Select the Object Name” that is the Label of data.
Choose the file Lable Name “Green Tea”.
You need to choose the Label field.
For all objects, choose all labels to select all “Green Tea Rose”, “Green Tea Rose”, and “Green Tea Cinnamon”.
In the next steps upload the images, at least 15 images need to be selected for each label.
Now after loading the images, need to tag it.
For each picture, you need to tag it, again for each label you need to assign a picture.
You need to assign a tag for each picture. As you can see in the picture, you able to add tags for it. select the picture and select the boundary for it then add the related tag for it.
In this example, I already uploaded 30 pictures and tagged all of them.
Now you need to train the model, that is the fourth steps.
The model will be trained and this process takes a couple of minutes.
After a couple of minutes, the Model will be trained and become available to be published.
After the model train, click on it to see the accuracy. Also, you can now publish to be available for application.
Also, you can test it before creating an application to see how it works, click on the “Click Test” option, then import a test image.
Now you can see the classification and object detection.
After publishing the model, back to Home tab and choose a “Blank Canvas” to create an object detection application.
Now, you can create a smart application in mobile format, click on the insert, then select the AI Builder. from AI Builder menu, choose the Object detector.
Now just drag and drop the component into the white area
Just tes the application and import a new image to see how it works ( to run the application click on the Run button at the right side)