Helper class to capture image from running camera
Reference
More...
|
string | CaptureImage (Vector2Int targetDim) |
| Capture image from camera.
|
|
void | SetCamera (Camera cam) |
| Set camera to capture from.
|
|
Helper class to capture image from running camera
Reference
◆ CaptureImage()
string Dojo.Agent.ImageCapture.CaptureImage |
( |
Vector2Int |
targetDim | ) |
|
|
inline |
Capture image from camera.
- Parameters
-
targetDim | target output image dimensions |
- Returns
- base64 encoded png string of captured frame
◆ SetCamera()
void Dojo.Agent.ImageCapture.SetCamera |
( |
Camera |
cam | ) |
|
|
inline |
Set camera to capture from.
- Parameters
-
The documentation for this class was generated from the following file:
- Unity/Assets/Dojo/Agent/ImageCapture.cs