Show / Hide Table of Contents

    Class WebcamController

    Get images from multiple webcams.

    Inheritance
    Object
    WebcamController
    Namespace: ArucoUnity.Utilities
    Assembly: Assembly-CSharp.dll
    Syntax
    public class WebcamController : MonoBehaviour
    Remarks

    Based on: http://answers.unity3d.com/answers/1155328/view.html

    Fields

    | Improve this Doc View Source

    starting

    Declaration
    protected bool starting
    Field Value
    Type Description
    Boolean

    Properties

    | Improve this Doc View Source

    Devices

    Gets the used webcams.

    Declaration
    public List<WebCamDevice> Devices { get; }
    Property Value
    Type Description
    List<WebCamDevice>
    | Improve this Doc View Source

    Ids

    Gets the ids of the webcams to use.

    Declaration
    public List<int> Ids { get; }
    Property Value
    Type Description
    List<Int32>
    | Improve this Doc View Source

    IsConfigured

    Gets if the controller is configured.

    Declaration
    public bool IsConfigured { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    IsStarted

    Gets if the webcams started.

    Declaration
    public bool IsStarted { get; }
    Property Value
    Type Description
    Boolean
    | Improve this Doc View Source

    Textures

    Gets the textures of the used webcams.

    Declaration
    public List<WebCamTexture> Textures { get; }
    Property Value
    Type Description
    List<WebCamTexture>
    | Improve this Doc View Source

    Textures2D

    Gets Textures converted in Texture2D.

    Declaration
    public List<Texture2D> Textures2D { get; }
    Property Value
    Type Description
    List<Texture2D>
    | Improve this Doc View Source

    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 Source

    Awake()

    Initializes the properties.

    Declaration
    protected void Awake()
    | Improve this Doc View Source

    Configure()

    Configures Devices and Textures from Ids.

    Declaration
    public void Configure()
    | Improve this Doc View Source

    StartingAsync()

    Waits for Unity to start the webcams to set Textures2D, Textures and call .

    Declaration
    protected IEnumerator StartingAsync()
    Returns
    Type Description
    IEnumerator
    | Improve this Doc View Source

    StartWebcams()

    Starts the webcams.

    Declaration
    public void StartWebcams()
    | Improve this Doc View Source

    StopWebcams()

    Stops the webcams.

    Declaration
    public void StopWebcams()

    Events

    | Improve this Doc View Source

    Started

    Called when the webcams started.

    Declaration
    public event Action<WebcamController> Started
    Event Type
    Type Description
    Action<WebcamController>
    • Improve this Doc
    • View Source
    Back to top Aruco Unity - Erwan Normand