Skip to content

2.6.0

Compare
Choose a tag to compare
@TeruyaHaroldo TeruyaHaroldo released this 07 Apr 14:17
· 10 commits to master since this release
31902fa

💥 Breaking Changes

Changes in the event onImageCaptured. Add the image quality parameters:

  • darkness: image darkness classification;
  • lightness: image lightness classification;
  • sharpness: image sharpness classification;

Before:

func onImageCaptured(
    _ type: String, 
    _ count: Int, 
    _ total: Int, 
    _ imagePath: String
)

Now:

func onImageCaptured(
    _ type: String, 
    _ count: Int, 
    _ total: Int, 
    _ imagePath: String,
    _ darkness: NSNumber?,
    _ lightness: NSNumber?,
    _ sharpness: NSNumber?
)

✨ New Feature

The image quality parameters classify three attributes related to the image captured:

  • darkness;
  • lightness;
  • sharpness;
Event Parameters Description
onImageCaptured type: String, count: Int, total: Int, imagePath: String, darkness: NSNumber?, lightness: NSNumber?, sharpness: NSNumber? Must have started capture type of face/frame (see startCaptureType). Emitted when the image file is created:
  • type: '"face"' or '"frame"'
  • count: current index
  • total: total to create
  • imagePath: the image path
  • darkness: image darkness classification.
  • lightness: image lightness classification.
  • sharpness: image sharpness classification.

    🐛 Bug Fix

    • Fix face analysis "directions" (right/left) when using the back camera lens;

    📝 Update Readme

    • Fix project description;
    • Add image quality parameters description;
    • Add image quality parameters usage;