Package anlavn.opencv
Class FaceRecognition.Result
java.lang.Object
anlavn.opencv.FaceRecognition.Result
- Enclosing class:
- FaceRecognition
-
Field Summary
FieldsModifier and TypeFieldDescriptionboolean
Is face match together or not after face recognition:
true
if Testing Face match Original Face andpercentMatch
greater than or equal toRequirementPercent
.
false
if Testing Face does not match Original Face orpercentMatch
less thanRequirementPercent
.Percent match after face recognition.State of result after face recognition:
[True]
if Testing Face match Original Face andpercentMatch
greater than or equal toRequirementPercent
.
[False]
if Testing Face does not match Original Face orpercentMatch
less thanRequirementPercent
.
[Empty Error]
if Original Face or Testing Face not exists.
[Invalid Version]
if the current version of FaceRecognition does not match the requirements version. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
state
State of result after face recognition:
[True]
if Testing Face match Original Face andpercentMatch
greater than or equal toRequirementPercent
.
[False]
if Testing Face does not match Original Face orpercentMatch
less thanRequirementPercent
.
[Empty Error]
if Original Face or Testing Face not exists.
[Invalid Version]
if the current version of FaceRecognition does not match the requirements version. Then the program will stop immediately.
[Connection Error]
if an exception occurs when checking the requirements version. Then the program will stop immediately.
[Face Recognition Error]
if an exception occurs when recognizing face. Like:
1. No or too many faces in the frame.
2. Brightness is too low.
3. The distance between the face and the camera is too far.
4. There are masks, glasses, hair covering the face... -
percentMatch
Percent match after face recognition. Have value [0.0 -> 100.0]. The higher, the more accurate. -
isMatch
public boolean isMatchIs face match together or not after face recognition:
true
if Testing Face match Original Face andpercentMatch
greater than or equal toRequirementPercent
.
false
if Testing Face does not match Original Face orpercentMatch
less thanRequirementPercent
.
-
-
Constructor Details
-
Result
public Result()
-