Skip to content

v1.5.0

Compare
Choose a tag to compare
@TeruyaHaroldo TeruyaHaroldo released this 09 Nov 12:19
· 329 commits to development since this release

New Feature

  • Limit face capture setting minimum face width size percentage in relation with the camera preview;
  • Limit face capture setting maximum face width size percentage in relation with the camera preview;

⚡ Improvements

Create a pattern to the errors and messages events:

  • The event onError send KeyError constants.
  • The event onMessage send Message constants.

Add input validations in the methods:

  • setFaceNumberOfImages: cannot be negative;
  • faceTimeBetweenImages: cannot be negative;
  • setFacePaddingPercent: cannot be negative;
  • setFaceImageSize: cannot be negative;
  • setFaceCaptureMinSize: must be in the [0, 1] interval;
  • setFaceCaptureMaxSize: must be in the [0, 1] interval;
  • setFrameNumberOfImages: cannot be negative;
  • setFrameTimeBetweenImages: cannot be negative;

📝 Update Readme

  • Add method setFaceCaptureMinSize;
  • Add method setFaceCaptureMaxSize;

Add KeyError definitions (used by onError):

  • NOT_STARTED_PREVIEW: Tried to start a process that depends on to start the camera preview;
  • INVALID_CAPTURE_TYPE: Tried to start a non-existent capture type;
  • INVALID_FACE_NUMBER_OF_IMAGES: Tried to input invalid face number of images to capture;
  • INVALID_FACE_TIME_BETWEEN_IMAGES: Tried to input invalid face time interval to capture face;
  • INVALID_FACE_PADDING_PERCENT: Tried to input invalid face padding percent;
  • INVALID_FACE_IMAGE_SIZE: Tried to input invalid image width or height;
  • INVALID_FACE_CAPTURE_MIN_SIZE: Tried to input invalid face capture minimum size;
  • INVALID_FACE_CAPTURE_MAX_SIZE: Tried to input invalid face capture maximum size;
  • INVALID_FRAME_NUMBER_OF_IMAGES: Tried to input invalid frame number of images to capture;
  • INVALID_FRAME_TIME_BETWEEN_IMAGES: Tried to input invalid frame time interval to capture face;

Add Message definitions (used by onMessage):

  • INVALID_CAPTURE_FACE_MIN_SIZE: Face bounding box width percentage in relation of the screen width is less than the setted (setFaceCaptureMinSize);
  • INVALID_CAPTURE_FACE_MAX_SIZE: Face bounding box width percentage in relation of the screen width is more than the setted (setFaceCaptureMaxSize);

⬆️ Upgrade Dependencies

  • android-yoonit-camera update from v1.2.0 to v1.3.0;
  • ios-yoonit-camera update from 1.2.0 to 1.3.0;