2.6.0
✨ New Feature
-
Face ROI Area Offset
- Add new method,
setFaceROIAreaOffset
, to enable or disable the face region of interest area offset. Must have one of the values (top, right, bottom or left) different from0
; - Add new method,
setFaceROIAreaOffsetColor
, to change the region of interest area offset ARGB value color. Default color is white with opacity value of 0.4;
- Add new method,
-
Face Contours
- Add new method,
setFaceContours
, to enable or disable the face contours. Must have set "capture type face" (startCaptureType("frame")
) and "face detection box" (setFaceDetectionBox(true)
); - Add new method,
setFaceContoursColor
, to change the face contours ARGB value color. Default value is white with opacity value of 0.4;
- Add new method,
🏗️ Architectural Changes
- Change the class
CaptureOptions
to a singleton. This means:- Unnecessary pass the instance ahead;
- Unnecessary to create in each class the var
captureOptions
; - Easy reset
captureOptions
, if necessary;
📝 Update Readme
- Add method
setFaceROIAreaOffset
definitions; - Add method
setFaceROIAreaOffsetColor
definitions; - Add new
KeyError
INVALID_FACE_ROI_COLOR
definitions; - Add new
KeyError
INVALID_FACE_CONTOURS_COLOR
definitions;
Function | Parameters | Valid values | Return Type | Description |
---|---|---|---|---|
setFaceContours | enable: Bool |
true or false |
void | Set to show/hide face contours when face detected. |
setFaceContoursColor | alpha: Int, red: Int, green: Int, blue: Int |
Positive value between 0 and 255 | void | Set face contours ARGB color. |
setFaceROIAreaOffset | enable: Bool |
true or false |
void | Set face region of interest offset color visibility. |
setFaceROIAreaOffsetColor | alpha: Int, red: Int, green: Int, blue: Int |
Any positive integer between 0 and 255 | void | Set face region of interest area offset color. Default value is (100, 255, 255, 255). |
KeyError | Description |
---|---|
INVALID_FACE_ROI_COLOR | Tried to input invalid face region of interest area offset ARGB value color. |
INVALID_FACE_CONTOURS_COLOR | Tried to input invalid face contour ARGB value color. |