Class VisionComponent
Utility methods for Vector’s vision
Vector’s can detect various types of objects through his camera feed.
Implements
Inherited Members
Namespace: Anki.Vector
Assembly: Anki.Vector.dll
Syntax
public class VisionComponent : Component, INotifyPropertyChanged
Properties
| Improve this Doc View SourceCustomObjectDetectionEnabled
Gets a value indicating whether custom object detection is enabled
public bool CustomObjectDetectionEnabled { get; }
Property Type
| Improve this Doc View SourceFaceDetectionEnabled
Gets a value indicating whether face detection is enabled
public bool FaceDetectionEnabled { get; }
Property Type
| Improve this Doc View SourceMirrorModeEnabled
Gets a value indicating whether mirror mode is enabled
public bool MirrorModeEnabled { get; }
Property Type
| Improve this Doc View SourceMotionDetectionEnabled
Gets a value indicating whether motion detection is enabled
public bool MotionDetectionEnabled { get; }
Property Type
Methods
| Improve this Doc View SourceDisableAllVisionModes()
Closes all the running vision modes and waits for a response.
public Task DisableAllVisionModes()
Returns
Type | Description |
---|---|
Task | A task that represents the asynchronous operation. |
DisableCustomObjectDetection()
Disables the custom object detection.
public Task<StatusCode> DisableCustomObjectDetection()
Returns
Type | Description |
---|---|
Task<Status |
A task that represents the asynchronous operation. The task result contains the result of the operation. |
DisableFaceDetection()
Disables face detection on the robot’s camera
public Task<StatusCode> DisableFaceDetection()
Returns
Type | Description |
---|---|
Task<Status |
A task that represents the asynchronous operation. The task result contains the result of the operation. |
DisableMirrorMode()
Disables display of the robot’s camera feed on its face along with any detections (if enabled)
public Task<StatusCode> DisableMirrorMode()
Returns
Type | Description |
---|---|
Task<Status |
A task that represents the asynchronous operation. The task result contains the result of the operation. |
DisableMotionDetection()
Disabled motion detection (not tested).
public Task<StatusCode> DisableMotionDetection()
Returns
Type | Description |
---|---|
Task<Status |
A task that represents the asynchronous operation. The task result contains the result of the operation. |
EnableCustomObjectDetection()
Enables the custom object detection.
public Task<StatusCode> EnableCustomObjectDetection()
Returns
Type | Description |
---|---|
Task<Status |
A task that represents the asynchronous operation. The task result contains the result of the operation. |
EnableFaceDetection(Boolean)
Enable face detection on the robot’s camera
public Task<StatusCode> EnableFaceDetection(bool estimateEspression = false)
Parameters
Type | Name | Description |
---|---|---|
Boolean | estimateEspression | if set to |
Returns
Type | Description |
---|---|
Task<Status |
A task that represents the asynchronous operation. The task result contains the result of the operation. |
EnableMirrorMode()
Enables display of the robot’s camera feed on its face along with any detections (if enabled)
public Task<StatusCode> EnableMirrorMode()
Returns
Type | Description |
---|---|
Task<Status |
A task that represents the asynchronous operation. The task result contains the result of the operation. |
EnableMotionDetection()
Enables motion detection (not tested).
public Task<StatusCode> EnableMotionDetection()
Returns
Type | Description |
---|---|
Task<Status |
A task that represents the asynchronous operation. The task result contains the result of the operation. |