Class OrcaSpotClassifier
java.lang.Object
rawDeepLearningClassifier.dlClassification.orcaSpot.OrcaSpotClassifier
- All Implemented Interfaces:
PamSettings
,SettingsNameProvider
,DLClassiferModel
Deprecated.
Calls python.exe to run a python script and then returns a result.
OrcaSpot has been replaced by AnimalSpot - a more generic, faster and easier to setup and use version of the classifier.
- Author:
- Jamie Macaulay
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.The maximum allowed queue size; -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.Called whenever PAMGuard stops.Deprecated.Get the number of output classes.Deprecated.Reference to the dlControlDeprecated.A settings object that can be saved.Deprecated.Get the last prediction.Deprecated.Check whether a model has been selected and can be loaded successfully.Deprecated.Get any UI components for the model.getName()
Deprecated.Get the name of the model.int
Deprecated.Get the number of output classes.Deprecated.Get OrcaSpot paramsint
Deprecated.Get the current number of raw data units in the queue.Deprecated.long
Deprecated.Deprecated.Deprecated.boolean
isModelType
(URI uri) Deprecated.Check whether a URI is compatible with a classification frameworkvoid
Deprecated.Prepare the model.boolean
restoreSettings
(PamControlledUnitSettings pamControlledUnitSettings) Deprecated.ArrayList<? extends PredictionResult>
runModel
(ArrayList<? extends PamDataUnit> rawDataUnits) Deprecated.Run the deep learning model on a list of grouped raw data units and return a corresponding list of model results.Deprecated.Called whenever PAMGuard stops.void
setOrcaSpotParams
(OrcaSpotParams2 orcaSpotParams2) Deprecated.Set the OrcaSpot parameters.
-
Field Details
-
MAX_QUEUE_SIZE
public static final int MAX_QUEUE_SIZEDeprecated.The maximum allowed queue size;- See Also:
-
-
Constructor Details
-
OrcaSpotClassifier
Deprecated.
-
-
Method Details
-
getName
Deprecated.Description copied from interface:DLClassiferModel
Get the name of the model.- Specified by:
getName
in interfaceDLClassiferModel
- Returns:
- the name of the model.
-
getModelUI
Deprecated.Description copied from interface:DLClassiferModel
Get any UI components for the model. Can be null.- Specified by:
getModelUI
in interfaceDLClassiferModel
- Returns:
- UI components for the model.
-
getDLModelSettings
Deprecated.Description copied from interface:DLClassiferModel
A settings object that can be saved.- Specified by:
getDLModelSettings
in interfaceDLClassiferModel
- Returns:
- the settings object.
-
runModel
public ArrayList<? extends PredictionResult> runModel(ArrayList<? extends PamDataUnit> rawDataUnits) Deprecated.Description copied from interface:DLClassiferModel
Run the deep learning model on a list of grouped raw data units and return a corresponding list of model results.Note the reason we use list is that often it is more efficient to get a model to predict a stacked group of inputs rather than one at a time.
- Specified by:
runModel
in interfaceDLClassiferModel
- Returns:
- the deep learning model.
-
prepModel
public void prepModel()Deprecated.Description copied from interface:DLClassiferModel
Prepare the model. This is called on PAMGuard start up.- Specified by:
prepModel
in interfaceDLClassiferModel
-
getOrcaSpotParams
Deprecated.Get OrcaSpot params- Returns:
- the orca spot params.
-
setOrcaSpotParams
Deprecated.Set the OrcaSpot parameters.- Parameters:
orcaSpotParams2
- - the new parameters to set.
-
closeModel
public void closeModel()Deprecated.Description copied from interface:DLClassiferModel
Called whenever PAMGuard stops.- Specified by:
closeModel
in interfaceDLClassiferModel
-
getUnitName
Deprecated.- Specified by:
getUnitName
in interfaceSettingsNameProvider
- Returns:
- A Name specific to this instance of the particular class, e.g. Sperm whale detector, Beaked whale detector, etc.
-
getUnitType
Deprecated.- Specified by:
getUnitType
in interfacePamSettings
- Returns:
- A Name specific to the type, e.g. Click detector
-
getSettingsReference
Deprecated.- Specified by:
getSettingsReference
in interfacePamSettings
- Returns:
- The serialisable object that will be stored
-
getSettingsVersion
public long getSettingsVersion()Deprecated.- Specified by:
getSettingsVersion
in interfacePamSettings
- Returns:
- An integer version number for the settings
-
restoreSettings
Deprecated.- Specified by:
restoreSettings
in interfacePamSettings
- Returns:
- true if successful The object performs final checks (if needed) and then casts the settings data pamcontrolledunitSettings.settings into the correct type and uses as required
-
getRawDataQueue
public int getRawDataQueue()Deprecated.Get the current number of raw data units in the queue.- Returns:
- the number of dtaa units in the queue.
-
getLastPrediction
Deprecated.Get the last prediction. Convenience function as this could be acquired from the data block.- Returns:
- the last prediction.
-
getNumClasses
public int getNumClasses()Deprecated.Description copied from interface:DLClassiferModel
Get the number of output classes.- Specified by:
getNumClasses
in interfaceDLClassiferModel
- Returns:
- the number of output classes.
-
getClassNames
Deprecated.Description copied from interface:DLClassiferModel
Get the number of output classes.- Specified by:
getClassNames
in interfaceDLClassiferModel
- Returns:
- the number of output classes.
-
getDLControl
Deprecated.Description copied from interface:DLClassiferModel
Reference to the dlControl- Specified by:
getDLControl
in interfaceDLClassiferModel
- Returns:
- reference to the DL control.
-
getModelStatus
Deprecated.Description copied from interface:DLClassiferModel
Check whether a model has been selected and can be loaded successfully.- Specified by:
getModelStatus
in interfaceDLClassiferModel
-
isModelType
Deprecated.Description copied from interface:DLClassiferModel
Check whether a URI is compatible with a classification framework- Specified by:
isModelType
in interfaceDLClassiferModel
- Parameters:
uri
- - the URI to the model- Returns:
- true if the model is compatible.
-
setModel
Deprecated.Description copied from interface:DLClassiferModel
Called whenever PAMGuard stops.- Specified by:
setModel
in interfaceDLClassiferModel
- Returns:
-