Releases: Yoonit-Labs/android-yoonit-camera
2.5.0
✨ 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
(seeINVALID_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
✨ New Feature
Add new method to change the color encoding of the saved images;
📝 Update Readme
Add method setColorEncodingCapture
definition;
2.3.0
✨ New Feature
Add new method to blur face detection box when enabled;
📝 Update Readme
Add method setBlurFaceDetectionBox
definitions;
2.2.1
🐛 Bug Fix
Fix already set camera lens call
2.2.0
✨ 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
⚡ Improvements
Enable set capture type "none"
, "face"
, "frame"
or "qrcode"
before start preview.
2.0.2
🐛 Bug Fix
- Fix face region of interest var name inputs;
2.0.1
♻️ 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 insetFaceROITopOffset
; - Add
KeyError
,INVALID_FACE_ROI_RIGHT_OFFSET
, for invalid input insetFaceROIRightOffset
; - Add
KeyError
,INVALID_FACE_ROI_BOTTOM_OFFSET
, for invalid input insetFaceROIBottomOffset
; - Add
KeyError
,INVALID_FACE_ROI_LEFT_OFFSET
, for invalid input insetFaceROILeftOffset
;
2.0.0
💥 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
toonQRCodeScanned
; - Change method from
setFaceSaveImages
tosetSaveImageCaptured
; - 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
🥚 Easter Egg
- New easter egg feature;