Top Description Fields Constructors Methods
javax.visrec.ml.detection

public Class BoundingBox

extends Object
Class Inheritance

This class represents a bounding box over image at specified position, dimensions, label and score.
Since
1.0

Field Summary

Modifier and TypeField and Description
private final float
private int
private final String
private final float
private final float
private final float
x

private final float
y

Constructor Summary

AccessConstructor and Description
public
BoundingBox(String label, float score, int x, int y, float width, float height)

Method Summary

Modifier and TypeMethod and Description
public float
public int
public String
public float
public float
public float
getX()

public float
getY()

public void
setId(int id)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

heightback to summary
private final float height
idback to summary
private int id
labelback to summary
private final String label
scoreback to summary
private final float score
widthback to summary
private final float width
xback to summary
private final float x
yback to summary
private final float y

Constructor Detail

BoundingBoxback to summary
public BoundingBox(String label, float score, int x, int y, float width, float height)

Method Detail

getHeightback to summary
public float getHeight()
getIdback to summary
public int getId()
getLabelback to summary
public String getLabel()
getScoreback to summary
public float getScore()
getWidthback to summary
public float getWidth()
getXback to summary
public float getX()
getYback to summary
public float getY()
setIdback to summary
public void setId(int id)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override