Class PersonTag
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
Properties
Face
Gets the associated face.
public Face Face { get; }
Property Value
Person
Gets the associated person.
public Person Person { get; }
Property Value
Methods
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object obj)
Parameters
objobjectThe object to compare with the current object.
Returns
Equals(PersonTag)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PersonTag other)
Parameters
otherPersonTagAn object to compare with this object.
Returns
FromJsonString(string)
Deserializes a person tag from JSON.
public static PersonTag FromJsonString(string jsonString)
Parameters
jsonStringstring
Returns
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.