Skip to content

Releases: doo/scanbot-document-scanner-sdk-ios-spm

6.1.1

28 Nov 11:05
Compare
Choose a tag to compare
  • 🐞 Bug fixes:
    • Fixes a bug that did not properly store a SBSDKScannedDocument without pages.
    • Fixes a bug that causes SBSDKTIFFImageWriter to crash when the input images are encrypted.
    • Fixes a crash in scanners when setting the same minZoom and maxZoom in SBSDKZoomRange.
  • ⚠️ Breaking Changes:
    • Changed signature of SBSDKScannedPage method apply(rotation: SBSDKImageRotation?, polygon: SBSDKPolygon?, filters: [SBSDKParametricFilter]?) to apply(rotation: SBSDKImageRotation, polygon: SBSDKPolygon?, filters: [SBSDKParametricFilter]?) to properly expose it to Objective-C.

6.1.1-RC1

12 Nov 15:33
Compare
Choose a tag to compare
  • 🐞 Bug fixes:
    • Fixes a bug that did not properly store a SBSDKScannedDocument without pages.

6.1.0

07 Nov 16:31
Compare
Choose a tag to compare
  • πŸŽ‰ New:
    • Added a new property hardwareButtonsEnabled that enables snapping from the hardware volume buttons and the new hardware camera control button to SBSDKDocumentScannerViewController, available on iOS 17.2 and later.
    • Added new zoom control slider controlled by the new camera control button on all view controllers, available on all the new iPhone 16 series.
    • Added a new property captureWithHardwareButtonsEnabled to SBSDKUI2DocumentScannerCameraConfiguration.
    • Added a new mode SBSDKUI2PageSnapFeedbackNone to disable the animation when a page is captured.
  • πŸš€ Improvements:
    • Document detector: improved detection speed and robustness against orientation changes.
    • Document detector: improved robustness against picking up random contours.
    • Document detector: improved robustness against documents with coloured corners, booklets, handheld documents and cards, documents near edges of tables and overlapping documents.
  • 🐞 Bug fixes:
    • Fixed a bug with the page counters visibility in the RTU-UI V2 document scanner.
    • Fixed a bug in RTU-UI V2 Document Scanner where the document could not be captured in auto snap mode, when enabledInAutoSnappingMode is set to false in SBSDKUI2ShutterButton.
    • Fixed a memory leak in SBSDKUI2DocumentScannerViewController when the document scanner is dismissed.
  • ⚠️ Breaking Changes:
    • Replaced the buggy initializer init?(json: Data) in SBSDKUI2DocumentScanningFlow by the static function SBSDKUI2DocumentScanningFlow.fromJson(json: String)?.

6.0.0

15 Oct 14:53
Compare
Choose a tag to compare
  • πŸŽ‰ New:
    • Added new RTU-UI V2 component, see SBSDKUI2DocumentScannerController.
    • Added document capture animation in SBSDKDocumentScannerViewController.
    • Added new optional delegate function documentScannerViewControllerCaptureAnimationConfiguration(_ controller: SBSDKDocumentScannerViewController) -> SBSDKDocumentAnimationConfiguration in SBSDKDocumentScannerViewController.
    • Added class SBSDKDocumentAnimationConfiguration to configure document capture animation.
    • Added classes SBSDKScannedDocument and SBSDKScannedPage.
    • Added support for the new SBSDKScannedDocument class to SBSDKTIFFImageWriter.
    • Added new property isAnimatingCapture to SBSDKDocumentScannerViewController.
    • Added new class SBSDKDocumentScannerPolygonConfiguration.
    • Added new properties polygonConfigurationAccepted, polygonConfigurationRejected and autoSnapProgressPolygonConfiguration to SBSDKDocumentScannerViewController.
    • Added new optional delegate method documentScannerViewController(_ controller: SBSDKDocumentScannerViewController, polygonConfigurationFor: SBSDKDocumentDetectionStatus) -> SBSDKDocumentScannerPolygonConfiguration to protocol SBSDKDocumentScannerViewControllerDelegate.
    • Added new optional delegate method imageEditingViewController(_ editingViewController: didDetectPolygon:) to SBSDKImageEditingViewControllerDelegate.
  • πŸš€ Improvements:
    • Improved sharpness of captured images in SBSDKDocumentScannerViewController by tweaking various timing related default values, such as initialScanDelay and autoSnappingDelay.
  • 🐞 Bug fixes:
    • Fixed a UI issue in SBSDKFinderView where the background color overlapped with the line color.
    • Fixed a crash when zooming with invalid minZoom and maxZoom values.
    • Fixed a bug that did not mirror the front camera as expected.
  • ⚠️ Breaking Changes:
    • Deprecated SBSDKUIDocumentScannerViewController, SBSDKUIFinderDocumentScannerViewController, SBSDKUICroppingViewController and their related classes.
    • Renamed the values of the enum SBSDKDocumentDetectionStatus.
    • Removed optional delegate method documentScannerViewController(_ controller:, polygonLineColorFor:) -> UIColor from protocol SBSDKDocumentScannerViewControllerDelegate.
    • Removed optional delegate method documentScannerViewController(_ controller:, polygonFillColorFor:) -> UIColor from protocol SBSDKDocumentScannerViewControllerDelegate.
    • Removed properties polygonLineWidth, polygonLineColorAccepted, polygonLineColorRejected, polygonFillColorAccepted, polygonFillColorRejected, polygonAutoSnapProgressEnabled, polygonAutoSnapProgressColor, polygonAutoSnapProgressLineWidth and polygonCornerRadius from SBSDKDocumentScannerViewController`.

5.2.2

02 Aug 13:42
Compare
Choose a tag to compare
  • 🐞 Bug fixes:
    • Fixed the false positive document detection (introduced in v5.2.0).

5.2.1

24 Jul 10:21
Compare
Choose a tag to compare
  • 🐞 Bug fixes:
    • Fixed a bug in compression of SBSDKTIFFImageWriterParameters where the SBSDKTIFFImageWriter was not using the chosen compression value.
  • ⚠️ Breaking Changes:
    • Removed ccittfax3 and ccittfax4 options from SBSDKTIFFImageWriterCompressionOptions, you should now use ccitt_t4 and ccitt_t6 respectively.

5.2.0

26 Jun 17:03
Compare
Choose a tag to compare
  • πŸš€ Improvements:
    • Improved document detection on booklet documents.
    • Improved performance of SBSDKDocumentQualityAnalyzer.

5.1.3

26 Jun 16:34
Compare
Choose a tag to compare
  • No changes made.

5.1.1

06 Jun 09:40
Compare
Choose a tag to compare
  • 🐞 Bug fixes:
    • Fixes a crash with all Classic UI components when energy saving is disabled.

5.1.0

21 May 15:20
Compare
Choose a tag to compare
  • πŸŽ‰ New:
    • Added read-only, Key-Value observable property pages of type [SBSDKDocumentPage] to SBSDKDocument.
    • Added possibility to inject an image to simulate a video stream and a captured image to any scanners camera session for UI testing. See Scanbot.testData, SBSDKTestData and SBSDKSimulatedCameraMockData.
    • Added isCameraFrozen property to SBSDKBaseScannerViewController.
    • Added property acceptedBrightnessThreshold to SBSDKDocumentScanner, SBSDKDocumentScannerViewController, SBSDKUIDocumentScannerBehaviourConfiguration and SBSDKUIFinderDocumentScannerBehaviorConfiguration.
    • Added property averageBrightness to SBSDKDocumentDetectionMetrics.
  • πŸš€ Improvements:
    • IMPORTANT: Changed the default backside cameras on all scanners to the triple or dual camera. On some devices with triple camera this results in a different view port (more zoomed in). Please make sure to adapt your zoom ranges and factors.
    • Made properties polygon, filter, parametricFilters, documentImageSizeLimit, documentImage, documentImageURL,
      documentPreviewImage, documentPreviewImageURL of class SBSDKDocumentPage Key-Value observable.
    • SBSDKPDFPagesExtractor functions now create the output directory if it doesn't exist yet.
    • Added support for structured logging (OSLog) to the SDK (iOS 14+).
  • 🐞 Bug fixes:
    • Fixes a bug with the asynchronous functions of SBSDKPDFPagesExtractor which returned an empty array of image URLs.
    • Fixed the documentation of isShutterButtonHidden in SBSDKUIFinderDocumentScannerUIConfiguration to correctly mention its default value.
  • ⚠️ Breaking Changes:
    • Important: The default backfacing camera in all scanners has been changed from the ultra-wide or wide camera to the triple or dual camera.
    • Renamed function captureOutput(_ output:, didOutput:, from:) to cameraSession(_ session:, didOutput:) in protocol SBSDKCameraSessionDelegate.
    • Changed the type of numeric parametric filter parameters from Float to Double.
    • Changed the order of parameters in the initializer of SBSDKCustomBinarizationFilter.