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
Nested Classes - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.The maximum allowed queue size; - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Called whenever PAMGuard stops.Deprecated.Get the allowed data types for the model.The can be null in which case only data units with raw data are allowed.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.intDeprecated.Get the number of output classes.Deprecated.Get OrcaSpot paramsintDeprecated.Get the current number of raw data units in the queue.Deprecated.longDeprecated.Deprecated.Deprecated.booleanisModelType(URI uri) Deprecated.Check whether a URI is compatible with a classification frameworkvoidDeprecated.Prepare the model.booleanrestoreSettings(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.Set and load the model.voidsetOrcaSpotParams(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:DLClassiferModelGet the name of the model.- Specified by:
 getNamein interfaceDLClassiferModel- Returns:
 - the name of the model.
 
 - 
getModelUI
Deprecated.Description copied from interface:DLClassiferModelGet any UI components for the model. Can be null.- Specified by:
 getModelUIin interfaceDLClassiferModel- Returns:
 - UI components for the model.
 
 - 
getDLModelSettings
Deprecated.Description copied from interface:DLClassiferModelA settings object that can be saved.- Specified by:
 getDLModelSettingsin interfaceDLClassiferModel- Returns:
 - the settings object.
 
 - 
runModel
public ArrayList<? extends PredictionResult> runModel(ArrayList<? extends PamDataUnit> rawDataUnits) Deprecated.Description copied from interface:DLClassiferModelRun 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:
 runModelin interfaceDLClassiferModel- Returns:
 - the deep learning model.
 
 - 
prepModel
public void prepModel()Deprecated.Description copied from interface:DLClassiferModelPrepare the model. This is called on PAMGuard start up and before processing in viewer mode.- Specified by:
 prepModelin 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:DLClassiferModelCalled whenever PAMGuard stops.- Specified by:
 closeModelin interfaceDLClassiferModel
 - 
getUnitName
Deprecated.- Specified by:
 getUnitNamein 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:
 getUnitTypein interfacePamSettings- Returns:
 - A Name specific to the type, e.g. Click detector
 
 - 
getSettingsReference
Deprecated.- Specified by:
 getSettingsReferencein interfacePamSettings- Returns:
 - The serialisable object that will be stored
 
 - 
getSettingsVersion
public long getSettingsVersion()Deprecated.- Specified by:
 getSettingsVersionin interfacePamSettings- Returns:
 - An integer version number for the settings
 
 - 
restoreSettings
Deprecated.- Specified by:
 restoreSettingsin interfacePamSettings- Parameters:
 pamControlledUnitSettings-- 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:DLClassiferModelGet the number of output classes.- Specified by:
 getNumClassesin interfaceDLClassiferModel- Returns:
 - the number of output classes.
 
 - 
getClassNames
Deprecated.Description copied from interface:DLClassiferModelGet the number of output classes.- Specified by:
 getClassNamesin interfaceDLClassiferModel- Returns:
 - the number of output classes.
 
 - 
getDLControl
Deprecated.Description copied from interface:DLClassiferModelReference to the dlControl- Specified by:
 getDLControlin interfaceDLClassiferModel- Returns:
 - reference to the DL control.
 
 - 
getModelStatus
Deprecated.Description copied from interface:DLClassiferModelCheck whether a model has been selected and can be loaded successfully.- Specified by:
 getModelStatusin interfaceDLClassiferModel
 - 
isModelType
Deprecated.Description copied from interface:DLClassiferModelCheck whether a URI is compatible with a classification framework- Specified by:
 isModelTypein interfaceDLClassiferModel- Parameters:
 uri- - the URI to the model- Returns:
 - true if the model is compatible.
 
 - 
setModel
Deprecated.Description copied from interface:DLClassiferModelSet and load the model.- Specified by:
 setModelin interfaceDLClassiferModel- Returns:
 - the status of the model e.g. if there has been an error loading
 
 - 
getAllowedDataTypes
Deprecated.Description copied from interface:DLClassiferModelGet the allowed data types for the model.The can be null in which case only data units with raw data are allowed.- Specified by:
 getAllowedDataTypesin interfaceDLClassiferModel- Returns:
 - a list of the allowed data types.
 
 
 -