Releases: doo/scanbot-document-scanner-sdk-ios-spm
Releases Β· doo/scanbot-document-scanner-sdk-ios-spm
6.1.1
- π 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
andmaxZoom
inSBSDKZoomRange
.
- Fixes a bug that did not properly store a
β οΈ Breaking Changes:- Changed signature of
SBSDKScannedPage
methodapply(rotation: SBSDKImageRotation?, polygon: SBSDKPolygon?, filters: [SBSDKParametricFilter]?)
toapply(rotation: SBSDKImageRotation, polygon: SBSDKPolygon?, filters: [SBSDKParametricFilter]?)
to properly expose it to Objective-C.
- Changed signature of
6.1.1-RC1
- π Bug fixes:
- Fixes a bug that did not properly store a
SBSDKScannedDocument
without pages.
- Fixes a bug that did not properly store a
6.1.0
- π New:
- Added a new property
hardwareButtonsEnabled
that enables snapping from the hardware volume buttons and the new hardware camera control button toSBSDKDocumentScannerViewController
, 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
toSBSDKUI2DocumentScannerCameraConfiguration
. - Added a new mode
SBSDKUI2PageSnapFeedbackNone
to disable the animation when a page is captured.
- Added a new property
- π 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 inSBSDKUI2ShutterButton
. - Fixed a memory leak in
SBSDKUI2DocumentScannerViewController
when the document scanner is dismissed.
β οΈ Breaking Changes:- Replaced the buggy initializer
init?(json: Data)
inSBSDKUI2DocumentScanningFlow
by the static functionSBSDKUI2DocumentScanningFlow.fromJson(json: String)?
.
- Replaced the buggy initializer
6.0.0
- π New:
- Added new RTU-UI V2 component, see
SBSDKUI2DocumentScannerController
. - Added document capture animation in
SBSDKDocumentScannerViewController
. - Added new optional delegate function
documentScannerViewControllerCaptureAnimationConfiguration(_ controller: SBSDKDocumentScannerViewController) -> SBSDKDocumentAnimationConfiguration
inSBSDKDocumentScannerViewController
. - Added class
SBSDKDocumentAnimationConfiguration
to configure document capture animation. - Added classes
SBSDKScannedDocument
andSBSDKScannedPage
. - Added support for the new
SBSDKScannedDocument
class toSBSDKTIFFImageWriter
. - Added new property
isAnimatingCapture
toSBSDKDocumentScannerViewController
. - Added new class
SBSDKDocumentScannerPolygonConfiguration
. - Added new properties
polygonConfigurationAccepted
,polygonConfigurationRejected
andautoSnapProgressPolygonConfiguration
toSBSDKDocumentScannerViewController
. - Added new optional delegate method
documentScannerViewController(_ controller: SBSDKDocumentScannerViewController, polygonConfigurationFor: SBSDKDocumentDetectionStatus) -> SBSDKDocumentScannerPolygonConfiguration
to protocolSBSDKDocumentScannerViewControllerDelegate
. - Added new optional delegate method
imageEditingViewController(_ editingViewController: didDetectPolygon:)
toSBSDKImageEditingViewControllerDelegate
.
- Added new RTU-UI V2 component, see
- π Improvements:
- Improved sharpness of captured images in
SBSDKDocumentScannerViewController
by tweaking various timing related default values, such asinitialScanDelay
andautoSnappingDelay
.
- Improved sharpness of captured images in
- π 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
andmaxZoom
values. - Fixed a bug that did not mirror the front camera as expected.
- Fixed a UI issue in
β οΈ 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 protocolSBSDKDocumentScannerViewControllerDelegate
. - Removed optional delegate method
documentScannerViewController(_ controller:, polygonFillColorFor:) -> UIColor
from protocolSBSDKDocumentScannerViewControllerDelegate
. - Removed properties
polygonLineWidth
,polygonLineColorAccepted
,polygonLineColorRejected
,polygonFillColorAccepted
,polygonFillColorRejected
,polygonAutoSnapProgressEnabled
,polygonAutoSnapProgressColor
,polygonAutoSnapProgressLineWidth
andpolygonCornerRadius from
SBSDKDocumentScannerViewController`.
- Deprecated
5.2.2
- π Bug fixes:
- Fixed the false positive document detection (introduced in v5.2.0).
5.2.1
- π Bug fixes:
- Fixed a bug in
compression
ofSBSDKTIFFImageWriterParameters
where theSBSDKTIFFImageWriter
was not using the chosen compression value.
- Fixed a bug in
β οΈ Breaking Changes:- Removed
ccittfax3
andccittfax4
options fromSBSDKTIFFImageWriterCompressionOptions
, you should now useccitt_t4
andccitt_t6
respectively.
- Removed
5.2.0
- π Improvements:
- Improved document detection on booklet documents.
- Improved performance of
SBSDKDocumentQualityAnalyzer
.
5.1.3
- No changes made.
5.1.1
- π Bug fixes:
- Fixes a crash with all Classic UI components when energy saving is disabled.
5.1.0
- π New:
- Added read-only, Key-Value observable property
pages
of type[SBSDKDocumentPage]
toSBSDKDocument
. - 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
andSBSDKSimulatedCameraMockData
. - Added
isCameraFrozen
property toSBSDKBaseScannerViewController
. - Added property
acceptedBrightnessThreshold
toSBSDKDocumentScanner
,SBSDKDocumentScannerViewController
,SBSDKUIDocumentScannerBehaviourConfiguration
andSBSDKUIFinderDocumentScannerBehaviorConfiguration
. - Added property
averageBrightness
toSBSDKDocumentDetectionMetrics
.
- Added read-only, Key-Value observable property
- π 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 classSBSDKDocumentPage
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
inSBSDKUIFinderDocumentScannerUIConfiguration
to correctly mention its default value.
- Fixes a bug with the asynchronous functions of
β οΈ 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:)
tocameraSession(_ session:, didOutput:)
in protocolSBSDKCameraSessionDelegate
. - Changed the type of numeric parametric filter parameters from Float to Double.
- Changed the order of parameters in the initializer of
SBSDKCustomBinarizationFilter
.