Skip to content

Releases: Yoonit-Labs/android-yoonit-camera

2.5.0

20 Jan 12:21
fa098e6
Compare
Choose a tag to compare

New Feature

  • Add new method setComputerVision: enable/disable computer vision usage;
  • Add new method setComputerVisionLoadModels: load computer vision models to use in the captured images;
  • Add new method computerVisionClearModels: clear loaded models;
  • Add new method destroy: Remove camera preview and listeners;

⚡ Improvements

  • Add validation to setColorEncodingCapture (see INVALID_IMAGE_CAPTURE_COLOR_ENCODING);

📝 Update Readme

  • Add method setComputerVision definitions;
  • Add method setComputerVisionLoadModels definitions;
  • Add method computerVisionClearModels definitions;
  • Add method destroy definitions;
  • Add new INVALID_COMPUTER_VISION_MODEL_PATHS INVALID definitions: Tried to input a non existent computer vision model paths;
  • Add new INVALID_IMAGE_CAPTURE_COLOR_ENCODING INVALID definitions: Tried to input invalid image capture color encoding;

2.4.0

12 Jan 20:57
1e1da98
Compare
Choose a tag to compare

New Feature

Add new method to change the color encoding of the saved images;

📝 Update Readme

Add method setColorEncodingCapture definition;

2.3.0

11 Jan 18:42
59bebb7
Compare
Choose a tag to compare

New Feature

Add new method to blur face detection box when enabled;

📝 Update Readme

Add method setBlurFaceDetectionBox definitions;

2.2.1

07 Jan 18:39
Compare
Choose a tag to compare

🐛 Bug Fix

Fix already set camera lens call

2.2.0

07 Jan 14:22
22e7000
Compare
Choose a tag to compare

New Feature

  • Add new method to set camera lens: "front" or "back".

♻️ Refactor

  • Refactor method getCameraLens to return string: "front" or "back".

📝 Update Readme

  • Add method setCameraLens definition;
  • Add KeyError INVALID_CAMERA_LENS definition;

2.1.0

05 Jan 19:47
Compare
Choose a tag to compare

⚡ Improvements

Enable set capture type "none", "face", "frame" or "qrcode" before start preview.

2.0.2

14 Dec 19:46
Compare
Choose a tag to compare

🐛 Bug Fix

  • Fix face region of interest var name inputs;

2.0.1

14 Dec 18:24
5694a2f
Compare
Choose a tag to compare

♻️ Refactor

Refactor face region of interest inputs into four new methods, top, right, bottom and left offsets.

  • Remove method setFaceROIOffset;
  • Add new method setFaceROITopOffset;
  • Add new method setFaceROIRightOffset;
  • Add new method setFaceROIBottomOffset;
  • Add new method setFaceROILeftOffset;

📝 Update Readme

  • Remove method setFaceROIOffset;
  • Add method setFaceROITopOffset definition;
  • Add method setFaceROIRightOffset definition;
  • Add method setFaceROIBottomOffset definition;
  • Add method setFaceROILeftOffset definition;
  • Add KeyError, INVALID_FACE_ROI_TOP_OFFSET, for invalid input in setFaceROITopOffset;
  • Add KeyError, INVALID_FACE_ROI_RIGHT_OFFSET, for invalid input in setFaceROIRightOffset;
  • Add KeyError, INVALID_FACE_ROI_BOTTOM_OFFSET, for invalid input in setFaceROIBottomOffset;
  • Add KeyError, INVALID_FACE_ROI_LEFT_OFFSET, for invalid input in setFaceROILeftOffset;

2.0.0

07 Dec 19:59
714a39f
Compare
Choose a tag to compare

💥 Breaking Changes

Unify methods setFaceNumberOfImages and setFrameNumberOfImages into setNumberOfImages:

  • Changed for better understanding and usage simplification;
  • The number of images is used to capture face and frame;
  • The number of images value "0" still capture unlimited number of images;
  • Add validation: the number of images value can not be negative;

Unify methods setFaceTimeBetweenImages and setFrameTimeBetweenImages into setTimeBetweenImages;

  • Changed for better understanding and usage simplification;
  • The time between of images is used to capture face and frame;
  • The time between of images value is still in milliseconds;
  • Add validation: the time between of images value can not be negative;

Split methods setFaceImageSize in setOutputImageWidth and setOutputImageHeight;

  • Changed for better understanding;
  • Add validation: the output image width value can not be negative;
  • Add validation: the output image height value can not be negative;

Unify events onFaceImageCreated and onFrameImageCreated into onImageCaptured;

  • Changed for better understanding and usage simplification;
  • The number of images is used to capture face and frame;
  • The event is used when a face or frame image is saved;

⚡ Improvements

Emit onFaceUndetected when started capture type face and no face is detected.
Last version, when started capture face and no face is detected, no event was emitted.

🥅 Catch Errors

Add validation when inputing value in the following methods.
Valid values for each method described in the KeyError section of the README.

  • startCaptureType: Valid values "none", "face", "frame" and "qrcode";
  • setNumberOfImages: Value can not be negative;
  • setTimeBetweenImages: Value can not be negative;
  • setOutputImageWidth: Value can not be negative;
  • setOutputImageHeight: Value can not be negative;
  • setFacePaddingPercent: Value must be between 0 and 1;
  • setFaceCaptureMinSize: Value must be between 0 and 1;
  • setFaceCaptureMaxSize: Value must be between 0 and 1;
  • setFaceROIOffset: Values must be between 0 and 1;
  • setFaceROIMinSize: Value must be between 0 and 1;

♻️ Refactor

  • Change event from onBarcodeScanned to onQRCodeScanned;
  • Change method from setFaceSaveImages to setSaveImageCaptured;
  • Change method startCaptureType for input "barcode" to "qrcode";
  • Change all internal text/file from "barcode" to "qrcode";

📝 Update Readme

  • Add method setNumberOfImages definition;
  • Add method setTimeBetweenImages definition;
  • Add method setOutputImageHeight definition;
  • Add method onImageCaptured definition;
  • Add event onQRCodeScanned definition;
  • Update KeyError section;

1.6.0

30 Nov 20:42
995ecae
Compare
Choose a tag to compare

🥚 Easter Egg

  • New easter egg feature;