Use the object detection model in Power Automate
Sign in to Power Automate, select the My flows tab, and then select New > +Instant-from blank.
Name your flow, select Manually trigger a flow under Choose how to trigger this flow, and then select Create.
Expand Manually trigger a flow, select +Add an input, select File as the input type, and set as input title My Image.
Select + New step, search for AI Builder in the Search for filters and actions box, and then select Detect and count objects in images in the list of actions.
Select the object detection model you want to use, and in the Image field, specify My Image from the trigger:
To retrieve the name of the detected object or objects on the image, use the Detected object name field.
Congratulations! You've created a flow that uses an object detection AI Builder model. Select Save in the upper-right corner, and then select Test to try out your flow.
Example object detection flow
The following example shows the creation of a flow that is triggered by an image. This flow counts the number of green tea bottles in the image.
To learn more about all the triggers and actions you can use, see the Power Automate documentation.
|AI Model||Yes||model||Object detection model to use for analysis||Trained and published object detection models|
|Image||Yes||file||Image to process|
|Detected object name||string||The detected object name||Among the tags defined at model creation|
|Detected object ID||string||The detected object ID|
|Confidence score||float||How confident the model is in its prediction||Value in the range of 0 to 1. Values close to 1 indicate greater confidence that the extracted value is accurate|
|Coordinates height||float||Coordinates left of the object|
|Coordinates left||float||Coordinates left of the object|
|Coordinates top||float||Coordinates top of the object|
|Coordinates width||float||Coordinates width of the object|