2.9.0
💥 Breaking Changes
Detection Size
The detection validation by size is not related only to face anymore. It's applicable to QR code detection too. Soon, this feature will be applicable to the "computer vision" features.
- [Method]
setFaceCaptureMinSize
renamed tosetDetectionMinSize
: is applicable whenroi
enabled; - [Method]
setFaceCaptureMaxSize
renamed tosetDetectionMaxSize
: ignored whenroi
enabled;
Region of Interest
ROI
is not related only to face detection, it's generic and can be applicable to QR code detection. Soon, the ROI
will be applicable to the entire camera frame. In the name of the consistency and pattern, changes made necessary not only internal, but also method's names and some were removed:
- [Method]
setFaceROIEnable
renamed tosetROI
; - [Method]
setFaceROITopOffset
renamed tosetROITopOffset
; - [Method]
setFaceROIRightOffset
renamed tosetROIRightOffset
; - [Method]
setFaceROIBottomOffset
renamed tosetROIBottomOffset
; - [Method]
setFaceROILeftOffset
renamed tosetROILeftOffset
; - [Method]
setFaceROIAreaOffset
renamed tosetROIAreaOffset
; - [Method]
setFaceROIMinSize
removed; - [Method]
setFaceDetectionBox
renamed tosetDetectionBox
;
✨ New Feature
Function | Input Type | Default Value | Description |
---|---|---|---|
setTorch | Bool | false |
Enable/disable device torch. Available only to camera lens "back" . |
setDetectionColor | alpha: Int, red: Int, green: Int, blue: Int |
(255, 255, 255, 255) |
Set detection box color. |
setROIAreaOffsetColor | alpha: Int, red: Int, green: Int, blue: Int |
(100, 255, 255, 255) |
Set display of the region of interest area offset color. |
♻️ Refactor
- [Message]
INVALID_CAPTURE_FACE_MIN_SIZE
renamed toINVALID_MINIMUM_SIZE
; - [Message]
INVALID_CAPTURE_FACE_MAX_SIZE
renamed toINVALID_MAXIMUM_SIZE
; - [Message]
INVALID_CAPTURE_FACE_OUT_OF_ROI
renamed toINVALID_OUT_OF_ROI
; - [Message]
INVALID_CAPTURE_FACE_ROI_MIN_SIZE
removed;
🐛 Bug Fix
- Fix region of interest offset area that sometimes was not updating;
- Fix Head Movements definitions in the Demo;
🎨 Code Style & Comments
- Change comments related to
ROI
anddetectionBox
features;
📝 Update Readme
- Update KeyError definitions;
- Update Message definitions;
- Update Head Movements definitions;