docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct KeypointComponent

    KeypointComponent message producer. Keep all the information about keypoints and handles reporting.

    Implements
    IMessageProducer
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Perception.GroundTruth.Labelers
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    [MovedFrom("UnityEngine.Perception.GroundTruth")]
    public struct KeypointComponent : IMessageProducer

    Constructors

    KeypointComponent(int, uint, string, int)

    Creates a new, empty keypoint component

    Declaration
    public KeypointComponent(int inLabelId, uint inInstanceId, string inPose, int inLength)
    Parameters
    Type Name Description
    int inLabelId

    The label ID

    uint inInstanceId

    The instance ID of the entity

    string inPose

    The pose label

    int inLength

    The length of keypoints array. All points will be initialized with an index set to the array location and a state of 0.

    Fields

    keypoints

    Array of all of the keypoints

    Declaration
    public KeypointValue[] keypoints
    Field Value
    Type Description
    KeypointValue[]

    Properties

    instanceId

    The instance id of the entity

    Declaration
    public uint instanceId { readonly get; set; }
    Property Value
    Type Description
    uint

    labelId

    The label id of the entity

    Declaration
    public int labelId { readonly get; set; }
    Property Value
    Type Description
    int

    pose

    Pose ground truth for the current set of keypoints

    Declaration
    public string pose { readonly get; set; }
    Property Value
    Type Description
    string

    Methods

    ToMessage(IMessageBuilder)

    Convert contents int a message.

    Declaration
    public void ToMessage(IMessageBuilder builder)
    Parameters
    Type Name Description
    IMessageBuilder builder

    The message builder that will convert the class's contents into a message

    Implements

    IMessageProducer
    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)