Added sign prediction class for java

parent 8290eb8e
package ru.niisi.Piktomir;
* An immutable result returned by a Classifier describing what was recognized.
public class SignPrediction {
* A unique identifier for what has been recognized. Specific to the class, not the instance of
* the object.
private final String id;
* Display name for the recognition.
private final String label;
* A sortable score for how good the recognition is relative to others. Higher should be better.
private final float confidence;
* Optional location within the source image for the location of the recognized object.
private float x;
private float y;
private float w;
private float h;
public SignPrediction(
final String id, final String label, final float confidence, final float x, final float y, final float w,final float h) { = id;
this.label = label;
this.confidence = confidence;
this.x = x;
this.y = y;
this.w = w;
this.h = h;
public String getId() {
return id;
public String getLabel() {
return label;
public Float getConfidence() {
return confidence;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment