Skip to content

2.5.0

Compare
Choose a tag to compare
@TeruyaHaroldo TeruyaHaroldo released this 02 Apr 17:24
· 16 commits to master since this release
523a70e

💥 Breaking Changes

Face Contours

Temporary disable the methods setFaceContours and setFaceContoursColor due to an error on drawing the contours in devices that has notch.

Detection Size

The detection validation by size is not related only to face anymore. It's applicable to QR code detection too.

  • [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: Float, red: Float, green: Float, blue: Float (1.0, 1.0, 1.0, 1.0) Set detection box color.
setROIAreaOffsetColor alpha: Int, red: Int, green: Int, blue: Int (0.4, 1.0, 1.0, 1.0) 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