public class DetectedObject extends Object
| Constructor and Description |
|---|
DetectedObject(int exampleNumber,
double centerX,
double centerY,
double width,
double height,
INDArray classPredictions,
double confidence) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
getBottomRightXY()
Get the bottom right X/Y coordinates of the detected object
|
int |
getPredictedClass()
Get the index of the predicted class (based on maximum predicted probability)
|
double[] |
getTopLeftXY()
Get the top left X/Y coordinates of the detected object
|
String |
toString() |
public DetectedObject(int exampleNumber,
double centerX,
double centerY,
double width,
double height,
INDArray classPredictions,
double confidence)
exampleNumber - Index of the example in the current minibatch. For single images, this is always 0centerX - Center X position of the detected objectcenterY - Center Y position of the detected objectwidth - Width of the detected objectheight - Height of the detected objectclassPredictions - Row vector of class probabilities for the detected objectpublic double[] getTopLeftXY()
public double[] getBottomRightXY()
public int getPredictedClass()
Copyright © 2021. All rights reserved.