Class DeepAcousticsPrediction
java.lang.Object
rawDeepLearningClassifier.dlClassification.genericModel.StandardPrediction
rawDeepLearningClassifier.dlClassification.deepAcoustics.DeepAcousticsPrediction
- All Implemented Interfaces:
PredictionResult
A data unit for the Deep Acoustics method which uses object detection models within spectrograms to predict
dolphin whistle detections and then classify to species.
This class is used to wrap the results from a DeepAcousticsResult into a format that can be used by the standard prediction system.
- Author:
- Jamie Macaulay
-
Field Summary
Fields inherited from class rawDeepLearningClassifier.dlClassification.genericModel.StandardPrediction
analysisTime -
Constructor Summary
ConstructorsConstructorDescriptionDeepAcousticsPrediction(org.jamdev.jdl4pam.deepAcoustics.DeepAcousticsResult result) Constructor that takes a DeepAcousticsResult and converts it to a standard prediction. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]Gets the bounding box as an array of doubles.floatGets the confidence score of the prediction.floatGets the height of the detected bounding box.longfloat[]Gets the prediction values from the DeepAcousticsResult.org.jamdev.jdl4pam.deepAcoustics.DeepAcousticsResultGets the DeepAcousticsResult associated with this prediction.floatgetWidth()Gets the width of the detected bounding box.floatgetX()Gets the X coordinate of the detected bounding box.floatgetY()Gets the Y coordinate of the detected bounding box.voidsetParentSegmentID(long uid) voidsetResult(org.jamdev.jdl4pam.deepAcoustics.DeepAcousticsResult result) Sets the DeepAcousticsResult for this prediction.Methods inherited from class rawDeepLearningClassifier.dlClassification.genericModel.StandardPrediction
getAnalysisTime, getClassNames, getFreqLimits, getPrediction, getResultString, getSampleDuration, getStartSample, getTimeMillis, isBinaryClassification, setAnalysisTime, setBinaryClassification, setClassNameID, setDuratioSamples, setFreqLimits, setStartSample, setTimeMillis
-
Constructor Details
-
DeepAcousticsPrediction
public DeepAcousticsPrediction(org.jamdev.jdl4pam.deepAcoustics.DeepAcousticsResult result) Constructor that takes a DeepAcousticsResult and converts it to a standard prediction.- Parameters:
result- The DeepAcousticsResult containing the predictions.
-
-
Method Details
-
getResult
public org.jamdev.jdl4pam.deepAcoustics.DeepAcousticsResult getResult()Gets the DeepAcousticsResult associated with this prediction.- Returns:
- the DeepAcousticsResult object
-
setResult
public void setResult(org.jamdev.jdl4pam.deepAcoustics.DeepAcousticsResult result) Sets the DeepAcousticsResult for this prediction.- Parameters:
result- the DeepAcousticsResult to set
-
getConfidence
public float getConfidence()Gets the confidence score of the prediction.- Returns:
- the confidence as a float
-
getHeight
public float getHeight()Gets the height of the detected bounding box.- Returns:
- the height as a float
-
getY
public float getY()Gets the Y coordinate of the detected bounding box.- Returns:
- the Y coordinate as a float
-
getX
public float getX()Gets the X coordinate of the detected bounding box.- Returns:
- the X coordinate as a float
-
getPredicitions
public float[] getPredicitions()Gets the prediction values from the DeepAcousticsResult.- Returns:
- an array of prediction floats
-
getWidth
public float getWidth()Gets the width of the detected bounding box.- Returns:
- the width as a float
-
getBoundingBox
public double[] getBoundingBox()Gets the bounding box as an array of doubles.- Returns:
- the bounding box coordinates
-
setParentSegmentID
public void setParentSegmentID(long uid) -
getParentSegmentID
public long getParentSegmentID()
-