Skip to content

2.9.0

Compare
Choose a tag to compare
@TeruyaHaroldo TeruyaHaroldo released this 01 Apr 20:09
· 19 commits to master since this release
ec28300

💥 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 to setDetectionMinSize: is applicable when roi enabled;
  • [Method] setFaceCaptureMaxSize renamed to setDetectionMaxSize: ignored when roi 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 to setROI;
  • [Method] setFaceROITopOffset renamed to setROITopOffset;
  • [Method] setFaceROIRightOffset renamed to setROIRightOffset;
  • [Method] setFaceROIBottomOffset renamed to setROIBottomOffset;
  • [Method] setFaceROILeftOffset renamed to setROILeftOffset;
  • [Method] setFaceROIAreaOffset renamed to setROIAreaOffset;
  • [Method] setFaceROIMinSize removed;
  • [Method] setFaceDetectionBox renamed to setDetectionBox;

✨ 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 to INVALID_MINIMUM_SIZE;
  • [Message] INVALID_CAPTURE_FACE_MAX_SIZE renamed to INVALID_MAXIMUM_SIZE;
  • [Message] INVALID_CAPTURE_FACE_OUT_OF_ROI renamed to INVALID_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 and detectionBox features;

📝 Update Readme