public class ALFaceDetection extends ALProxy
| Constructor and Description |
|---|
ALFaceDetection(Session session) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Boolean |
clearDatabase()
Remove all faces from the database.
|
void |
clearStats() |
void |
enableRecognition(java.lang.Boolean param1)
deprecated
|
void |
enableTracking(java.lang.Boolean param1)
deprecated
|
void |
exit()
Exits and unregisters the module.
|
java.lang.Boolean |
forgetPerson(java.lang.String pId)
Delete from the database all faces instances of a person.
|
java.lang.Integer |
getActiveCamera()
Gets extractor active camera
|
java.lang.String |
getBrokerName()
Gets the name of the parent broker.
|
java.lang.Integer |
getCurrentPeriod()
Gets the current period.
|
java.lang.Float |
getCurrentPrecision()
Gets the current precision.
|
java.util.List<java.lang.String> |
getEventList()
Get the list of events updated in ALMemory.
|
java.lang.Integer |
getFrameRate()
Gets extractor framerate
|
java.lang.Object |
getLearnedFacesList()
Returns the list of learned faces.
|
java.util.List<java.lang.String> |
getMemoryKeyList()
Get the list of events updated in ALMemory.
|
java.lang.Object |
getMethodHelp(java.lang.String methodName)
Retrieves a method's description.
|
java.util.List<java.lang.String> |
getMethodList()
Retrieves the module's method list.
|
java.lang.Object |
getModuleHelp()
Retrieves the module's description.
|
java.lang.Integer |
getMyPeriod(java.lang.String name)
Gets the period for a specific subscription.
|
java.lang.Float |
getMyPrecision(java.lang.String name)
Gets the precision for a specific subscription.
|
java.util.List<java.lang.String> |
getOutputNames()
Get the list of values updated in ALMemory.
|
java.lang.Integer |
getResolution()
Gets extractor resolution
|
java.lang.Object |
getSubscribersInfo()
Gets the parameters given by the module.
|
java.lang.String |
getUsage(java.lang.String name)
Gets the method usage string.
|
java.lang.Boolean |
importOldDatabase(java.lang.String policy)
Imports the content of an old face reco DB
|
java.lang.Boolean |
isPaused()
Gets extractor pause status
|
java.lang.Boolean |
isProcessing()
Gets extractor running status
|
java.lang.Boolean |
isRecognitionEnabled()
Returns if recognition is enabled.
|
java.lang.Boolean |
isRunning(java.lang.Integer id)
Returns true if the method is currently running.
|
java.lang.Boolean |
isStatsEnabled() |
java.lang.Boolean |
isTraceEnabled() |
java.lang.Boolean |
isTrackingEnabled()
(BETA) Returns if tracking is enabled.
|
java.lang.Boolean |
learnFace(java.lang.String pId)
Add a new face in the database.
|
void |
pause(java.lang.Boolean paused)
Changes the pause status of the extractor
|
java.lang.Boolean |
ping()
Just a ping.
|
java.lang.Boolean |
reLearnFace(java.lang.String pId)
use in a new learning process the latest images where a face has been wrongly recognized
|
java.lang.Boolean |
setActiveCamera(java.lang.Integer cameraId)
Sets extractor active camera
|
java.lang.Boolean |
setFrameRate(java.lang.Integer framerate)
Sets the extractor framerate for all the subscribers
|
java.lang.Boolean |
setFrameRate(java.lang.String subscriberName,
java.lang.Integer framerate)
Sets the extractor framerate for a chosen subscriber
|
void |
setParameter(java.lang.String paramName,
java.lang.Object value)
DEPRECATED: Sets pause and resolution
|
void |
setRecognitionEnabled(java.lang.Boolean enable)
enable/disable the recognition stageProcess will be faster when disabled when you don't need to recognize people
|
java.lang.Boolean |
setResolution(java.lang.Integer resolution)
Sets extractor resolution
|
void |
setTrackingEnabled(java.lang.Boolean enable)
(BETA) Choose to enable or disable tracking.
|
void |
stop(java.lang.Integer id)
returns true if the method is currently running
|
void |
subscribe(java.lang.String name)
Subscribes to the extractor.
|
void |
subscribe(java.lang.String name,
java.lang.Integer period,
java.lang.Float precision)
Subscribes to the extractor.
|
void |
unsubscribe(java.lang.String name)
Unsubscribes from the extractor.
|
void |
updatePeriod(java.lang.String name,
java.lang.Integer period)
Updates the period if relevant.
|
void |
updatePrecision(java.lang.String name,
java.lang.Float precision)
Updates the precision if relevant.
|
java.lang.String |
version()
Returns the version of the module.
|
java.lang.Boolean |
wait(java.lang.Integer id,
java.lang.Integer timeoutPeriod)
Wait for the end of a long running method that was called using 'post'
|
call, connect, connect, disconnect, getNaoqiType, getService, isProxyReady, setServicepublic ALFaceDetection(Session session) throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Integer getResolution()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean setResolution(java.lang.Integer resolution)
throws CallError,
java.lang.InterruptedException
resolution - New resolutionCallErrorjava.lang.InterruptedExceptionpublic void setRecognitionEnabled(java.lang.Boolean enable)
throws CallError,
java.lang.InterruptedException
enable - True/FalseCallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isRecognitionEnabled()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void setParameter(java.lang.String paramName,
java.lang.Object value)
throws CallError,
java.lang.InterruptedException
paramName - Name of the parameter to setvalue - New valueCallErrorjava.lang.InterruptedExceptionpublic void setTrackingEnabled(java.lang.Boolean enable)
throws CallError,
java.lang.InterruptedException
enable - True/FalseCallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isTrackingEnabled()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean learnFace(java.lang.String pId)
throws CallError,
java.lang.InterruptedException
pId - The name of the person to saveCallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean reLearnFace(java.lang.String pId)
throws CallError,
java.lang.InterruptedException
pId - The name of the person to saveCallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean forgetPerson(java.lang.String pId)
throws CallError,
java.lang.InterruptedException
pId - The name of the person to forgetCallErrorjava.lang.InterruptedExceptionpublic java.lang.Integer getFrameRate()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean importOldDatabase(java.lang.String policy)
throws CallError,
java.lang.InterruptedException
policy - Merging policy if an imported entry has the same name as an existing one.
It can be either:
"overwrite" to replace the existing entry by the imported one,
"merge" to merge data from both entries (if they don't relate to the same person, face recognition may fail),
"keep" to keep the existing entry and skip the imported one.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Object getLearnedFacesList()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Integer getActiveCamera()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isPaused()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean setActiveCamera(java.lang.Integer cameraId)
throws CallError,
java.lang.InterruptedException
cameraId - Id of the camera that will become the active cameraCallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isProcessing()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void pause(java.lang.Boolean paused)
throws CallError,
java.lang.InterruptedException
paused - New pause satusCallErrorjava.lang.InterruptedExceptionpublic void enableRecognition(java.lang.Boolean param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean clearDatabase()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void enableTracking(java.lang.Boolean param1)
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isStatsEnabled()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void clearStats()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isTraceEnabled()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic void exit()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.String version()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean ping()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getMethodList()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Object getMethodHelp(java.lang.String methodName)
throws CallError,
java.lang.InterruptedException
methodName - The name of the method.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Object getModuleHelp()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean wait(java.lang.Integer id,
java.lang.Integer timeoutPeriod)
throws CallError,
java.lang.InterruptedException
id - The ID of the method that was returned when calling the method using 'post'timeoutPeriod - The timeout period in ms. To wait indefinately, use a timeoutPeriod of zero.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean isRunning(java.lang.Integer id)
throws CallError,
java.lang.InterruptedException
id - The ID of the method that was returned when calling the method using 'post'CallErrorjava.lang.InterruptedExceptionpublic void stop(java.lang.Integer id)
throws CallError,
java.lang.InterruptedException
id - the ID of the method to wait forCallErrorjava.lang.InterruptedExceptionpublic java.lang.String getBrokerName()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.String getUsage(java.lang.String name)
throws CallError,
java.lang.InterruptedException
name - The name of the method.CallErrorjava.lang.InterruptedExceptionpublic void subscribe(java.lang.String name,
java.lang.Integer period,
java.lang.Float precision)
throws CallError,
java.lang.InterruptedException
name - Name of the module which subscribes.period - Refresh period (in milliseconds) if relevant.precision - Precision of the extractor if relevant.CallErrorjava.lang.InterruptedExceptionpublic void subscribe(java.lang.String name)
throws CallError,
java.lang.InterruptedException
name - Name of the module which subscribes.CallErrorjava.lang.InterruptedExceptionpublic void unsubscribe(java.lang.String name)
throws CallError,
java.lang.InterruptedException
name - Name of the module which had subscribed.CallErrorjava.lang.InterruptedExceptionpublic void updatePeriod(java.lang.String name,
java.lang.Integer period)
throws CallError,
java.lang.InterruptedException
name - Name of the module which has subscribed.period - Refresh period (in milliseconds).CallErrorjava.lang.InterruptedExceptionpublic void updatePrecision(java.lang.String name,
java.lang.Float precision)
throws CallError,
java.lang.InterruptedException
name - Name of the module which has subscribed.precision - Precision of the extractor.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Integer getCurrentPeriod()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Float getCurrentPrecision()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Integer getMyPeriod(java.lang.String name)
throws CallError,
java.lang.InterruptedException
name - Name of the module which has subscribed.CallErrorjava.lang.InterruptedExceptionpublic java.lang.Float getMyPrecision(java.lang.String name)
throws CallError,
java.lang.InterruptedException
name - name of the module which has subscribedCallErrorjava.lang.InterruptedExceptionpublic java.lang.Object getSubscribersInfo()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getOutputNames()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getEventList()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.util.List<java.lang.String> getMemoryKeyList()
throws CallError,
java.lang.InterruptedException
CallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean setFrameRate(java.lang.String subscriberName,
java.lang.Integer framerate)
throws CallError,
java.lang.InterruptedException
subscriberName - Name of the subcriberframerate - New framerateCallErrorjava.lang.InterruptedExceptionpublic java.lang.Boolean setFrameRate(java.lang.Integer framerate)
throws CallError,
java.lang.InterruptedException
framerate - New framerateCallErrorjava.lang.InterruptedExceptionAldebaran SDK for Java
Copyright 2006-2015 Aldebaran Robotics. All Rights Reserved.