Show / Hide Table of Contents

Class Location

Describes the left, top, right and bottom location of a face. This class cannot be inherited.

Inheritance
System.Object
Location
Implements
System.IEquatable<Location>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FaceRecognitionDotNet
Assembly: FaceRecognitionDotNet.dll
Syntax
public sealed class Location : IEquatable<Location>

Constructors

| Improve this Doc View Source

Location(Int32, Int32, Int32, Int32)

Initializes a new instance of the Location structure with the specified left, top, right and bottom.

Declaration
public Location(int left, int top, int right, int bottom)
Parameters
Type Name Description
System.Int32 left

The x-axis value of the left side of the rectangle of face.

System.Int32 top

The y-axis value of the top of the rectangle of face.

System.Int32 right

The x-axis value of the right side of the rectangle of face.

System.Int32 bottom

The y-axis value of the bottom of the rectangle of face.

| Improve this Doc View Source

Location(Int32, Int32, Int32, Int32, Double)

Initializes a new instance of the Location structure with the specified left, top, right, bottom and confidence.

Declaration
public Location(int left, int top, int right, int bottom, double confidence)
Parameters
Type Name Description
System.Int32 left

The x-axis value of the left side of the rectangle of face.

System.Int32 top

The y-axis value of the top of the rectangle of face.

System.Int32 right

The x-axis value of the right side of the rectangle of face.

System.Int32 bottom

The y-axis value of the bottom of the rectangle of face.

System.Double confidence

The confidence of detected face.

Properties

| Improve this Doc View Source

Bottom

Gets the y-axis value of the bottom of the rectangle of face.

Declaration
public int Bottom { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Confidence

Gets the confidence of detected face.

Declaration
public double Confidence { get; }
Property Value
Type Description
System.Double
| Improve this Doc View Source

Left

Gets the x-axis value of the left side of the rectangle of face.

Declaration
public int Left { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Right

Gets the x-axis value of the right side of the rectangle of face.

Declaration
public int Right { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

Top

Gets the y-axis value of the top of the rectangle of face.

Declaration
public int Top { get; }
Property Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

Equals(Location)

Compares two Location class for equality.

Declaration
public bool Equals(Location other)
Parameters
Type Name Description
Location other

The face location to compare to this instance.

Returns
Type Description
System.Boolean
true
if both Location class contain the same Left, Top, Right and Bottom values; otherwise,
false
.
| Improve this Doc View Source

Equals(Object)

Determines whether the specified System.Object is a Location and whether it contains the same face location as this Location.

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
System.Object obj

The System.Object to compare.

Returns
Type Description
System.Boolean
true
if obj is a Location and contains the same Left, Top, Right and Bottom values as this Location; otherwise,
false
.
Overrides
System.Object.Equals(System.Object)
| Improve this Doc View Source

GetHashCode()

Returns the hash code for this Location.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

The hash code for this Location class.

Overrides
System.Object.GetHashCode()

Operators

| Improve this Doc View Source

Equality(Location, Location)

Compares two Location class for equality.

Declaration
public static bool operator ==(Location location1, Location location2)
Parameters
Type Name Description
Location location1

The first Location class to compare.

Location location2

The second Location class to compare.

Returns
Type Description
System.Boolean
true
if both the Left, Top, Right and Bottom face location of location1 and location2 are equal; otherwise,
false
.
| Improve this Doc View Source

Inequality(Location, Location)

Compares two Location class for inequality.

Declaration
public static bool operator !=(Location location1, Location location2)
Parameters
Type Name Description
Location location1

The first Location class to compare.

Location location2

The second Location class to compare.

Returns
Type Description
System.Boolean
true
if location1 and location2 have different Left, Top, Right or Bottom coordinates;
false
if location1 and location2 have the same Left, Top, Right and Bottom face location.

Implements

System.IEquatable<T>
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX