public class VisionControl
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
VisionControl.Config |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_INTERVAL_IN_MS |
Modifier and Type | Method and Description |
---|---|
int |
cancelDetectFace()
Cancel the running detect face process.
|
int |
cancelRecognizePerson()
Cancel the running recognize person process.
|
int |
deleteFaceEnrollData(java.lang.String id)
Delete Face Enroll Data
|
int |
requestDetectFace(VisionConfig.FaceDetectConfig config)
Request detect faces, and the result is returned by
RobotCallback.onDetectFaceResult(java.util.List<com.asus.robotframework.API.results.DetectFaceResult>).
|
int |
requestFaceEnrollList()
Get enrolled FaceID list.
|
int |
requestRecognizePerson(int intervalInMS)
Request robot to recognize person who has enrolled, and the result is returned
by RobotCallback.onRecognizePersonResult(java.util.List<com.asus.robotframework.API.results.RecognizePersonResult>).
|
int |
requestRecognizePerson(VisionConfig.PersonRecognizeConfig config)
Request detect person, and the result is returned by
RobotCallback.onRecognizePersonResult(java.util.List<com.asus.robotframework.API.results.RecognizePersonResult>).
|
int |
startFaceEnrollProgress(java.lang.String id)
Start Face Enroll Progress in RobotFaceEnrollMode.MODE_WITH_POSE_CHECK mode
|
int |
startFaceEnrollProgress(java.lang.String id,
RobotFaceEnrollMode mode)
Start Face Enroll Progress
|
int |
startPictureEnrollProgress(java.lang.String id,
java.lang.String pictureFolderPath)
Start Picture Enroll Progress
1.Letting users choose picture by themselves, you can use file picker and copy the files to the pictureFolderPath then call this api to finish the rest enroll work
(For Example: https://github.com/jaiselrahman/FilePicker)
2.Every Picture size should under 5MB
|
public static final int DEFAULT_INTERVAL_IN_MS
public int cancelDetectFace()
public int cancelRecognizePerson()
public int deleteFaceEnrollData(java.lang.String id)
id
- the specific id you assign to the user when enrollpublic int requestDetectFace(VisionConfig.FaceDetectConfig config)
config
- Configuration of person detectionRobotCallback.onDetectFaceResult(List)
,
VisionConfig.FaceDetectConfig
public int requestFaceEnrollList()
RobotCallback.onEnrollGetAllIDList(Map)
public int requestRecognizePerson(int intervalInMS)
intervalInMS
- Desired interval in millisecondsRobotCallback.onRecognizePersonResult(List)
public int requestRecognizePerson(VisionConfig.PersonRecognizeConfig config)
config
- Configuration of person recognitionRobotCallback.onRecognizePersonResult(List)
public int startFaceEnrollProgress(java.lang.String id)
id
- the unique info to represent every userRobotFaceEnrollMode
public int startFaceEnrollProgress(java.lang.String id, RobotFaceEnrollMode mode)
id
- the unique info to represent every usermode
- the mode of face enrollpublic int startPictureEnrollProgress(java.lang.String id, java.lang.String pictureFolderPath)
1.Letting users choose picture by themselves, you can use file picker and copy the files to the pictureFolderPath then call this api to finish the rest enroll work (For Example: https://github.com/jaiselrahman/FilePicker)
2.Every Picture size should under 5MB
id
- the unique info to represent every userpictureFolderPath
- the folder path where the picture is