Class DeepAcousticsPrediction

java.lang.Object
rawDeepLearningClassifier.dlClassification.genericModel.StandardPrediction
rawDeepLearningClassifier.dlClassification.deepAcoustics.DeepAcousticsPrediction
All Implemented Interfaces:
PredictionResult

public class DeepAcousticsPrediction extends StandardPrediction
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
  • 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()