Execute Inference Model

Description

This component allows you to specify an inference model to be performed on an image file.

inferencemodel-1
Output payloadDescription
cv.PayloadThe result of the inference run is output

Component Property

property nameDescription
image fileSpecifies the file path of a picture saved as a file
Inference modelSpecify the model name of the inference to be performed
Filter1Select to filter inference results
filter1select if you want to filter inference results
filter2select if you want to filter inference results
ConditionSpecify the condition for filter 2
ConversionSpecify a conversion
DrawSpecify if you want to save the inference result as an image
Copy DestinationSpecify where to save the image if "Copy" is specified in "Draw"

Filter

This is used when you want to extract only the results that match the condition from the inference results.

FilterDescription
NoneDo not use filter
Default of the modelUse the filter defined in the model
highest n predictionsretrieve the n data specified by the condition from the higher of multiple predictions
the lowest n predictionsretrieve the n data specified by the condition from the lowest of the multiple predictions
predictions scored higher thanretrieve the n data specified by the condition from the lowest of the multiple predictions
predictions cored lower thanretrieve data from multiple forecasts whose score is less than x specified by the condition
prediction labeled withretrieve data from multiple predictions where the label contains a string specified by the condition

Conversion

Use this to convert the result of inference.

ConversionDescription
NoneDo not use transformation
Default of the modelUse the transformation defined in the model
numberget the number of inference results
first labelget the first label of the inference result
all labelsretrieve all labels in the inference result

Draw

Use to save the inference result as an image.

DrawDescription
NoneDo not save the result of inference as an image
OriginalSave the result of inference as an original image
CopyCreate another file in the destination of the copy and save the result of the inference

Use in combination with CameraTakesPhotos component

You can use the CameraTakesPhotos component when executing an action to perform inference on a photo saved as a file.

inferencemodel-2

Place a Split component between the CameraTakesPhotos component and the ExecuteInferenceModel component as shown in this example.

Since the output of the CameraTakesPhotos component is an array of filenames of the saved photos, the Split component splits the array into individual items to be processed each in the subsequent ExecuteInferenceModel component.