Show / Hide Table of Contents

    Class ArucoObjectCreator

    Create and display images of an ArUco object ready to be printed.

    See the OpenCV documentation for more information about the marker creation (second section of the following tutorial): http://docs.opencv.org/3.2.0/d5/dae/tutorial_aruco_detection.html

    Inheritance
    Object
    ArucoObjectDisplayer
    ArucoObjectCreator
    Inherited Members
    ArucoObjectDisplayer.ArucoObject
    ArucoObjectDisplayer.DisplayInPlayMode
    ArucoObjectDisplayer.ImagePlanePrefab
    ArucoObjectDisplayer.ImagePlane
    ArucoObjectDisplayer.Image
    ArucoObjectDisplayer.ImageTexture
    ArucoObjectDisplayer.lastArucoObjectOnValidate
    ArucoObjectDisplayer.imagePlaneMaterial
    ArucoObjectDisplayer.Start()
    ArucoObjectDisplayer.Update()
    ArucoObjectDisplayer.OnDestroy()
    ArucoObjectDisplayer.CreateImage()
    ArucoObjectDisplayer.DisplayImage()
    ArucoObjectDisplayer.ResetImage()
    ArucoObjectDisplayer.SetArucoObject(ArucoObject)
    ArucoObjectDisplayer.InitializeImagePlane()
    ArucoObjectDisplayer.ArucoObject_PropertyUpdated(ArucoObject)
    Namespace: ArucoUnity.Objects.Displayers
    Assembly: Assembly-CSharp.dll
    Syntax
    public class ArucoObjectCreator : ArucoObjectDisplayer

    Fields

    | Improve this Doc View Source

    pixelsToMetersFactor

    Declaration
    public const float pixelsToMetersFactor = 0.001F
    Field Value
    Type Description
    Single

    Properties

    | Improve this Doc View Source

    AutoSaveImage

    Gets or sets if the ImageTexture is automatically saved in play mode.

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

    ImageFilename

    Gets or sets the name of the image, without the extension (.png added automatically). If null, it will be generated automatically.

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

    OutputFolder

    Gets or sets the output folder for the image, relative to the Application.persistentDataPath folder (default: ArucoUnity/Images/).

    Declaration
    public string OutputFolder { get; set; }
    Property Value
    Type Description
    String

    Methods

    | Improve this Doc View Source

    PlaceImagePlane()

    Declaration
    protected override void PlaceImagePlane()
    Overrides
    ArucoObjectDisplayer.PlaceImagePlane()
    | Improve this Doc View Source

    SaveImage()

    Save the on a image file in the OutputFolder with ImageFilename as filename.

    Declaration
    public virtual void SaveImage()
    | Improve this Doc View Source

    UpdateImage()

    Calls UpdateImage() then SaveImage() if AutoSaveImage is set. Also set ImageFilename in the editor.

    Declaration
    protected override void UpdateImage()
    Overrides
    ArucoObjectDisplayer.UpdateImage()
    • Improve this Doc
    • View Source
    Back to top Aruco Unity - Erwan Normand