docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RenderedObjectInfoLabeler

    Labeler which produces label id, instance id, and visible pixel count in a single metric each frame for each object which takes up one or more pixels in the camera's frame.

    Inheritance
    object
    CameraLabeler
    RenderedObjectInfoLabeler
    Inherited Members
    CameraLabeler.enabled
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: UnityEngine.Perception.GroundTruth
    Assembly: solution.dll
    Syntax
    [Serializable]
    public sealed class RenderedObjectInfoLabeler : CameraLabeler

    Constructors

    Name Description
    RenderedObjectInfoLabeler()

    Creates a new RenderedObjectInfoLabeler. Be sure to assign idLabelConfig before adding to a PerceptionCamera.

    RenderedObjectInfoLabeler(IdLabelConfig)

    Creates a new RenderedObjectInfoLabeler with an IdLabelConfig.

    Fields

    Name Description
    idLabelConfig

    The IdLabelConfig which associates objects with labels.

    objectInfoMetricId

    The ID to use for visible pixels metrics in the resulting dataset

    Methods

    Name Description
    OnBeginRendering()

    Called just before the camera renders each frame the the labeler is enabled and ShouldCaptureThisFrame is true.

    Setup()

    Called just before the first call to OnUpdate() or OnBeginRendering(). Implement this to initialize state.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)