Interface FaceDetection<T>
-
- All Known Implementing Classes:
MicrosoftCognitiveServiceFaceDetection
public interface FaceDetection<T>
- Since:
- 1.0
- Author:
- Andreas Pointner
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<FaceInformation<T>>
detectFaces(ImageWrapper<T> ji)
Detects a face in the image, and returns a FaceInformation object to describe it.double
verifyFace(FaceInformation<T> face1, FaceInformation<T> face2)
Calculates a confidence value, if there is the same person on img1 and on img2
-
-
-
Method Detail
-
detectFaces
Collection<FaceInformation<T>> detectFaces(ImageWrapper<T> ji)
Detects a face in the image, and returns a FaceInformation object to describe it.- Parameters:
ji
- the image where the face should be detected- Returns:
- the information about the detected faces
-
verifyFace
double verifyFace(FaceInformation<T> face1, FaceInformation<T> face2)
Calculates a confidence value, if there is the same person on img1 and on img2- Parameters:
face1
- first faceface2
- second face- Returns:
- confidence value if the two faces on the images are the same
-
-