docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ObjectCountLabeler

    Labeler which produces object counts for each label in the associated IdLabelConfig each frame.

    Inheritance
    object
    CameraLabeler
    ObjectCountLabeler
    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 ObjectCountLabeler : CameraLabeler

    Constructors

    Name Description
    ObjectCountLabeler()

    Creates a new ObjectCountLabeler. This constructor should only be used by serialization. For creation from user code, use ObjectCountLabeler(IdLabelConfig).

    ObjectCountLabeler(IdLabelConfig)

    Creates a new ObjectCountLabeler with the given IdLabelConfig.

    Fields

    Name Description
    objectCountMetricId

    The ID to use for object count annotations in the resulting dataset

    Properties

    Name Description
    labelConfig

    The IdLabelConfig which associates objects with labels.

    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.

    Events

    Name Description
    ObjectCountsComputed

    Fired when the object counts are computed for a frame.

    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)