public class

FritzVisionObjectPredictor

ai.fritz.fritzvisionobjectmodel.FritzVisionObjectPredictor

Class Overview

Predicts the different objects that are found in an image.

Learn more

Summary

Public Constructors
FritzVisionObjectPredictor()
FritzVisionObjectPredictor(FritzVisionObjectPredictorOptions options)
Public Methods
FritzVisionObjectResult predict(FritzVisionImage visionImage)
Detect objects in a given image.
void setOptions(FritzVisionObjectPredictorOptions options)
Set the prediction options.

Public Constructors

public FritzVisionObjectPredictor ()

public FritzVisionObjectPredictor (FritzVisionObjectPredictorOptions options)

Public Methods

public FritzVisionObjectResult predict (FritzVisionImage visionImage)

Detect objects in a given image.

Given an image, tries to identify over 100 objects in it.

1. Center crop the image 2. Resize the cropped image to 300x300 to pass into the model. 3. Run inference on the image 4. Get the bounding box coordinates for the cropped image. 5. Get the bounding box coordinates for the original image.

Parameters
visionImage - the image to run inference on.
Returns
  • a FritzVisionObjectResult

public void setOptions (FritzVisionObjectPredictorOptions options)

Set the prediction options.