Captures camera data from the Magic Leap CV (Computer Vision) camera, and feeds it through the CameraCapturer pipeline.
More...
|
| void | StartCameraCapture (MLCameraBase.Identifier cameraIdentifier=MLCameraBase.Identifier.CV, Action< bool > onCameraCaptureStarted=null) |
| | Starts the Camera capture with the target settings.
|
| |
| byte[] | FlipImageVerticallyRGBA (byte[] originalImage) |
| | Flips the image vertically.
|
| |
|
| override void | Awake () |
| | Automatically initializes the singleton instance of the camera capturer.
|
| |
| void | Start () |
| |
| override void | SubscribersChanged () |
| | Called when the subscribers to the OnCameraDataCaptured event change, and starts or stops the camera capture accordingly.
|
| |
|
| bool | IsCameraConnected [get] |
| | Can be used by external scripts to query the status of the camera and see if the camera capture has been started.
|
| |
| static int | TargetImageWidth [get] |
| | Gets the target image width.
|
| |
| static int | TargetImageHeight [get] |
| | Gets the target image height.
|
| |
Captures camera data from the Magic Leap CV (Computer Vision) camera, and feeds it through the CameraCapturer pipeline.
◆ Awake()
| override void MLCVCameraCapturer.Awake |
( |
| ) |
|
|
inlineprotectedvirtual |
Automatically initializes the singleton instance of the camera capturer.
Reimplemented from CameraCapturer.
◆ FlipImageVerticallyRGBA()
| byte[] MLCVCameraCapturer.FlipImageVerticallyRGBA |
( |
byte[] | originalImage | ) |
|
|
inline |
Flips the image vertically.
- Parameters
-
| originalImage | The original image to flip, in RGBA_8888 format. |
- Returns
- The flipped image, in RGBA_8888 format.
◆ Start()
| void MLCVCameraCapturer.Start |
( |
| ) |
|
|
inlineprotected |
◆ StartCameraCapture()
| void MLCVCameraCapturer.StartCameraCapture |
( |
MLCameraBase.Identifier | cameraIdentifier = MLCameraBase::Identifier::CV, |
|
|
Action< bool > | onCameraCaptureStarted = null ) |
|
inline |
Starts the Camera capture with the target settings.
- Parameters
-
| cameraIdentifier | Which camera to use. (Main or CV) |
| width | The width of the video stream. |
| height | The height of the video stream. |
| onCameraCaptureStarted | An action callback that returns true if the video capture started successfully. |
◆ SubscribersChanged()
| override void MLCVCameraCapturer.SubscribersChanged |
( |
| ) |
|
|
inlineprotectedvirtual |
Called when the subscribers to the OnCameraDataCaptured event change, and starts or stops the camera capture accordingly.
Reimplemented from CameraCapturer.
◆ IsCameraConnected
| bool MLCVCameraCapturer.IsCameraConnected |
|
get |
Can be used by external scripts to query the status of the camera and see if the camera capture has been started.
The documentation for this class was generated from the following file: