Table of Contents

Class FaceInfo

Namespace
VisioForge.Core.FaceAI
Assembly
VisioForge.Core.FaceAI.dll

Contains information about a detected face including its location, encoding, and dimensions.

[Serializable]
public class FaceInfo

Inheritance

Inherited Members

Remarks

The VisioForge.Core.FaceAI.FaceInfo class encapsulates all data associated with a detected face, including its position in the frame, biometric encoding for recognition, size, and any resize ratio applied during detection. This class requires x64 architecture.

Constructors

FaceInfo(Location, FaceEncoding, Size, double)

Initializes a new instance of the VisioForge.Core.FaceAI.FaceInfo class.

public FaceInfo(Location location, FaceEncoding encoding, Size size, double resizeRatio)

Parameters

location Location

The location of the face in the image.

encoding FaceEncoding

The biometric encoding of the face.

size Size

The size of the face region.

resizeRatio double

The resize ratio applied during detection.

Remarks

This class requires x64 architecture due to dependencies on native libraries used by FaceRecognitionDotNet. Attempting to instantiate this class in an x86 process will throw an exception.

Exceptions

Exception

Thrown when the application is not running as an x64 process.

Properties

Encoding

Gets the biometric encoding of the detected face.

public FaceEncoding Encoding { get; }

Property Value

FaceEncoding

Location

Gets the location of the detected face in the image.

public Location Location { get; }

Property Value

Location

ResizeRatio

Gets or sets the resize ratio that was applied during face detection.

public double ResizeRatio { get; set; }

Property Value

double

Remarks

This value is important for mapping detected face coordinates back to the original image dimensions.

Size

Gets or sets the size of the detected face region.

public Size Size { get; set; }

Property Value

Size