public class

FritzVisionObjectResult

extends FritzVisionResult
java.lang.Object
   ↳ ai.fritz.vision.outputs.FritzVisionResult
     ↳ ai.fritz.fritzvisionobjectmodel.FritzVisionObjectResult

Summary

[Expand]
Inherited Fields
From class ai.fritz.vision.outputs.FritzVisionResult
Public Constructors
FritzVisionObjectResult(FritzVisionImage inputImage, List<FritzVisionObject> visionObjects)
Public Methods
void drawBoundingBoxes(Canvas canvas, Size canvasSize)
void drawBoundingBoxes(Canvas canvas)
Draw the bounding boxes
Bitmap getResultBitmap(Size canvasSize)
Get a bitmap with the bounding boxes drawn on.
Bitmap getResultBitmap()
Get a bitmap with the bounding boxes drawn on.
List<FritzVisionObject> getVisionObjects()
[Expand]
Inherited Methods
From class ai.fritz.vision.outputs.FritzVisionResult
From class java.lang.Object

Public Constructors

public FritzVisionObjectResult (FritzVisionImage inputImage, List<FritzVisionObject> visionObjects)

Public Methods

public void drawBoundingBoxes (Canvas canvas, Size canvasSize)

public void drawBoundingBoxes (Canvas canvas)

Draw the bounding boxes

public Bitmap getResultBitmap (Size canvasSize)

Get a bitmap with the bounding boxes drawn on.

Parameters
canvasSize - the desired size of the bitmap returned.
Returns
  • a bitmap scaled to the given size.

public Bitmap getResultBitmap ()

Get a bitmap with the bounding boxes drawn on.

Returns
  • a bitmap of the orginal image with the bounding boxes.

public List<FritzVisionObject> getVisionObjects ()