FaceAnalyser.computeGlassesAttributes Method¶
Module: FaceAnalyser
Definition¶
Computes the glasses attributes of a detected face. This function must be used for a portrait image with only one face in it.
compute_glasses_attributes(self, image: Image, detected_face: DetectedFace, landmarks: PointList) -> GlassesAttributes
Parameters
imageImagein Source image to process.detected_faceDetectedFacein Detected face to process.landmarksPointListin Estimated landmarks of the detected face. Must be computed with the face analyser.
Returns
The estimated glasses attributes of the detected face.
Exceptions
An error has occurred during Face Library execution.
GlassesAttributes computeGlassesAttributes(Image image, DetectedFace detectedFace, PointList landmarks)
Parameters
imageImagein Source image to process.detectedFaceDetectedFacein Detected face to process.landmarksPointListin Estimated landmarks of the detected face. Must be computed with the face analyser.
Returns
The estimated glasses attributes of the detected face.
Exceptions
An error has occurred during Face Library execution.
public GlassesAttributes ComputeGlassesAttributes(Image image, DetectedFace detectedFace, PointList landmarks)
Parameters
imageImagein Source image to process.detectedFaceDetectedFacein Detected face to process.landmarksPointListin Estimated landmarks of the detected face. Must be computed with the face analyser.
Returns
The estimated glasses attributes of the detected face.
Exceptions
An error has occurred during Face Library execution.
public GlassesAttributes computeGlassesAttributes(Image image, DetectedFace detectedFace, PointList landmarks) throws FaceException
Parameters
imageImagein Source image to process.detectedFaceDetectedFacein Detected face to process.landmarksPointListin Estimated landmarks of the detected face. Must be computed with the face analyser.
Returns
The estimated glasses attributes of the detected face.
Exceptions
An error has occurred during Face Library execution.
public func computeGlassesAttributes(image: Image, detectedFace: DetectedFace, landmarks: PointList) throws -> GlassesAttributes
Parameters
imageImagein Source image to process.detectedFaceDetectedFacein Detected face to process.landmarksPointListin Estimated landmarks of the detected face. Must be computed with the face analyser.
Returns
The estimated glasses attributes of the detected face.
Exceptions
An error has occurred during Face Library execution.
int id3FaceAnalyser_ComputeGlassesAttributes (
ID3_FACE_ANALYSER hFaceAnalyser,
ID3_FACE_IMAGE hImage,
ID3_DETECTED_FACE hDetectedFace,
ID3_FACE_POINT_LIST hLandmarks,
id3FaceGlassesAttributes * sGlassesAttributes)
Parameters
hFaceAnalyserID3_FACE_ANALYSERin Handle to the FaceAnalyser object.hImageID3_FACE_IMAGEin Source image to process.hDetectedFaceID3_DETECTED_FACEin Detected face to process.hLandmarksID3_FACE_POINT_LISTin Estimated landmarks of the detected face. Must be computed with the face analyser.sGlassesAttributesid3FaceGlassesAttributes *out The estimated glasses attributes of the detected face.
Returns