.NET API Documentation¶
DemographicEstimator class¶
-
class
DemographicEstimation.
DemographicEstimator
¶ The Demographic Estimator class
-
DemographicEstimator
(string model_file, int max_concurrency)¶ DemographicEstimator constructor: loads model file, sets up the processing.
- Parameters:
model_file (string) – path for the used model
max_concurrency (int) – maximum allowed concurrency, 0 means automatic (using all cores), default: 0
-
DetectFaces
(ImageHeader img_hdr)¶ Detects the faces on an image. This method is async.
- Parameters:
image (ImageHeader) – image of the face(s)
- Return type:
Task<DetectResultsOrError>
-
Estimate
(Face face)¶ Returns the demographic estimation of the detected face. This method is async.
- Parameters:
face (Face) – face to embed.
- Return type:
Task<EstimateResultsOrError>
-
Image header class¶
Result classes¶
Faces¶
Face¶
BoundingBox¶
-
class
DemographicEstimation.
BoundingBox
¶ The BoundingBox class
-
x
: int¶ X coordinate of the top left corner.
-
y
: int¶ Y coordinate of the top left corner.
-
width
: int¶ Width of the bounding box.
-
height
: int¶ Height of the bounding box.
-