Class WebcamController
Get images from multiple webcams.
Namespace: ArucoUnity.Utilities
Assembly: Assembly-CSharp.dll
Syntax
public class WebcamController : MonoBehaviour
Remarks
Fields
| Improve this Doc View Sourcestarting
Declaration
protected bool starting
Field Value
Type | Description |
---|---|
Boolean |
Properties
| Improve this Doc View SourceDevices
Gets the used webcams.
Declaration
public List<WebCamDevice> Devices { get; }
Property Value
Type | Description |
---|---|
List<WebCamDevice> |
Ids
Gets the ids of the webcams to use.
Declaration
public List<int> Ids { get; }
Property Value
Type | Description |
---|---|
List<Int32> |
IsConfigured
Gets if the controller is configured.
Declaration
public bool IsConfigured { get; }
Property Value
Type | Description |
---|---|
Boolean |
IsStarted
Gets if the webcams started.
Declaration
public bool IsStarted { get; }
Property Value
Type | Description |
---|---|
Boolean |
Textures
Gets the textures of the used webcams.
Declaration
public List<WebCamTexture> Textures { get; }
Property Value
Type | Description |
---|---|
List<WebCamTexture> |
Textures2D
Gets Textures converted in Texture2D.
Declaration
public List<Texture2D> Textures2D { get; }
Property Value
Type | Description |
---|---|
List<Texture2D> |
Textures2DFormat
Gets or sets the format of Textures2D, by default
Declaration
public TextureFormat Textures2DFormat { get; set; }
Property Value
Type | Description |
---|---|
TextureFormat |
Methods
| Improve this Doc View SourceAwake()
Initializes the properties.
Declaration
protected void Awake()
Configure()
Declaration
public void Configure()
StartingAsync()
Waits for Unity to start the webcams to set Textures2D, Textures and call
Declaration
protected IEnumerator StartingAsync()
Returns
Type | Description |
---|---|
IEnumerator |
StartWebcams()
Starts the webcams.
Declaration
public void StartWebcams()
StopWebcams()
Stops the webcams.
Declaration
public void StopWebcams()
Events
| Improve this Doc View SourceStarted
Called when the webcams started.
Declaration
public event Action<WebcamController> Started
Event Type
Type | Description |
---|---|
Action<WebcamController> |