Show / Hide Table of Contents

    Class ArucoCamera

    Captures images of a camera.

    Inheritance
    Object
    Controller
    ArucoCamera
    ArucoWebcam
    StereoArucoCamera
    Implements
    IArucoCamera
    IController
    Inherited Members
    Controller.Configured
    Controller.Ready
    Controller.Started
    Controller.Stopped
    Controller.AutoStart
    Controller.IsConfigured
    Controller.IsReady
    Controller.IsStarted
    Controller.Awake()
    Controller.Start()
    Controller.OnDestroy()
    Controller.AddDependency(IController)
    Controller.RemoveDependency(IController)
    Controller.GetDependencies()
    Controller.Configure()
    Controller.StartController()
    Controller.StopController()
    Controller.OnConfigured()
    Controller.Starting()
    Controller.Stopping()
    Controller.OnStopped()
    Namespace: ArucoUnity.Cameras
    Assembly: Assembly-CSharp.dll
    Syntax
    public abstract class ArucoCamera : Controller, IArucoCamera, IController
    Remarks

    To add a new camera, you need to derive this class. See ArucoWebcam as example. You need to implement Configuring(), Starting(), and UpdatingImages().

    Fields

    | Improve this Doc View Source

    currentBuffer

    Declaration
    protected uint currentBuffer
    Field Value
    Type Description
    UInt32
    | Improve this Doc View Source

    dontFlipCode

    Declaration
    protected readonly int? dontFlipCode
    Field Value
    Type Description
    Nullable<Int32>
    | Improve this Doc View Source

    flipHorizontallyImages

    Declaration
    protected bool flipHorizontallyImages
    Field Value
    Type Description
    Boolean
    | Improve this Doc View Source

    flipVerticallyImages

    Declaration
    protected bool flipVerticallyImages
    Field Value
    Type Description
    Boolean
    | Improve this Doc View Source

    imageBuffers

    Declaration
    protected Cv.Mat[][] imageBuffers
    Field Value
    Type Description
    Cv.Mat[][]
    | Improve this Doc View Source

    imageDataBuffers

    Declaration
    protected byte[][][] imageDataBuffers
    Field Value
    Type Description
    Byte[][][]
    | Improve this Doc View Source

    imagesFlipCode

    Declaration
    protected int? imagesFlipCode
    Field Value
    Type Description
    Nullable<Int32>
    | Improve this Doc View Source

    imagesToTextureDatas

    Declaration
    protected byte[][] imagesToTextureDatas
    Field Value
    Type Description
    Byte[][]
    | Improve this Doc View Source

    imagesToTextures

    Declaration
    protected Cv.Mat[] imagesToTextures
    Field Value
    Type Description
    Cv.Mat[]
    | Improve this Doc View Source

    imagesUpdatedThisFrame

    Declaration
    protected bool imagesUpdatedThisFrame
    Field Value
    Type Description
    Boolean

    Properties

    | Improve this Doc View Source

    CameraNumber

    Declaration
    public abstract int CameraNumber { get; }
    Property Value
    Type Description
    Int32
    | Improve this Doc View Source

    ImageDatas

    Declaration
    public byte[][] ImageDatas { get; }
    Property Value
    Type Description
    Byte[][]
    | Improve this Doc View Source

    ImageDataSizes

    Declaration
    public int[] ImageDataSizes { get; }
    Property Value
    Type Description
    Int32[]
    | Improve this Doc View Source

    ImageRatios

    Declaration
    public float[] ImageRatios { get; }
    Property Value
    Type Description
    Single[]
    | Improve this Doc View Source

    Images

    Declaration
    public Cv.Mat[] Images { get; }
    Property Value
    Type Description
    Cv.Mat[]
    | Improve this Doc View Source

    Name

    Declaration
    public abstract string Name { get; protected set; }
    Property Value
    Type Description
    String
    | Improve this Doc View Source

    NextImageDatas

    Declaration
    protected byte[][] NextImageDatas { get; }
    Property Value
    Type Description
    Byte[][]
    | Improve this Doc View Source

    NextImages

    Declaration
    protected Cv.Mat[] NextImages { get; }
    Property Value
    Type Description
    Cv.Mat[]
    | Improve this Doc View Source

    Textures

    Declaration
    public Texture2D[] Textures { get; }
    Property Value
    Type Description
    Texture2D[]

    Methods

    | Improve this Doc View Source

    Configuring()

    Configures the properties.

    Declaration
    protected override void Configuring()
    Overrides
    Controller.Configuring()
    | Improve this Doc View Source

    OnImagesUpdated()

    Calls UndistortRectifyImages with the NextImages, swaps Images and ImageDatas, the calls ImagesUpdated and applies the changes made on the Images to the Textures.

    Declaration
    protected virtual void OnImagesUpdated()
    | Improve this Doc View Source

    OnStarted()

    Initializes the Images, ImageDataSizes, ImageDatas, NextImages, and NextImageDatas properties from the Textures property.

    Declaration
    protected override void OnStarted()
    Overrides
    Controller.OnStarted()
    | Improve this Doc View Source

    Update()

    When configured and started, calls UpdatingImages() then OnImagesUpdated().

    Declaration
    protected virtual void Update()
    | Improve this Doc View Source

    UpdatingImages()

    Updates NextImages with the new camera images.

    Declaration
    protected abstract bool UpdatingImages()
    Returns
    Type Description
    Boolean

    If NextImages have been updated.

    Events

    | Improve this Doc View Source

    ImagesUpdated

    Declaration
    public event Action ImagesUpdated
    Event Type
    Type Description
    Action
    | Improve this Doc View Source

    UndistortRectifyImages

    Declaration
    public event Action<Cv.Mat[], byte[][]> UndistortRectifyImages
    Event Type
    Type Description
    Action<Cv.Mat[], Byte[][]>

    Implements

    IArucoCamera
    IController
    • Improve this Doc
    • View Source
    Back to top Aruco Unity - Erwan Normand