Table of Contents

Class PersonTag

Namespace
TCSystem.MetaData
Assembly
TCSystem.MetaData.dll

Associates a person with a detected face in an image.

public sealed class PersonTag : IEquatable<PersonTag>
Inheritance
PersonTag
Implements
Inherited Members
Extension Methods

Constructors

PersonTag(Person, Face)

Associates a person with a detected face in an image.

public PersonTag(Person _person, Face _face)

Parameters

_person Person

The associated person.

_face Face

The associated face.

Properties

Face

Gets the associated face.

public Face Face { get; }

Property Value

Face

Person

Gets the associated person.

public Person Person { get; }

Property Value

Person

Methods

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Equals(PersonTag)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(PersonTag other)

Parameters

other PersonTag

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

FromJsonString(string)

Deserializes a person tag from JSON.

public static PersonTag FromJsonString(string jsonString)

Parameters

jsonString string

Returns

PersonTag

The person tag, or null for null or empty input.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

ToJsonString()

Serializes the person tag to compact JSON.

public string ToJsonString()

Returns

string

The serialized person tag.

ToString()

Serializes the person tag to indented JSON.

public override string ToString()

Returns

string

The formatted JSON.