Skip to content

5.1.0-RC8

Compare
Choose a tag to compare
@scanbot-ci scanbot-ci released this 30 Apr 10:20
· 52 commits to master since this release
  • πŸŽ‰ New:
    • Added new property regularExpressionPattern to SBSDKBarcodeScanner and SBSDKBarcodeScannerViewController to limit detection results.
    • Added support of the new 'Find and Pick' barcode scanning mode, see SBSDKUI2FindAndPickScanningMode.
    • Added support for continous scanning in SBSDKUI2BarcodeScannerViewController.
    • Added a new configuration class SBSDKHealthInsuranceCardRecognizerParameters to configure the live detection recognizer in SBSDKHealthInsuranceCardRecognizer.
    • Added a new property liveDetectionParameters in SBSDKHealthInsuranceCardRecognizer.
    • Added a new property recognizerParameters in SBSDKHealthInsuranceCardScannerViewController and SBSDKUIHealthInsuranceCardScannerViewController.
    • Added support for new barcode type SBSDKBarcodeTypeMicroPdf417.
    • Added a new class SBSDKBarcodeDocumentConstants which has all the constants related to the barcode document format.
    • Added new classes for all the barcode document formats: SBSDKBarcodeDocumentBoardingPassLeg, SBSDKBarcodeDocumentBoardingPass, SBSDKBarcodeDocumentSwissQR, SBSDKBarcodeDocumentDEMedicalPlanPatient, SBSDKBarcodeDocumentDEMedicalPlanDoctor, SBSDKBarcodeDocumentDEMedicalPlanSubheadingMedicineSubstance, SBSDKBarcodeDocumentDEMedicalPlanSubheadingMedicine, SBSDKBarcodeDocumentDEMedicalPlanSubheadingPrescription, SBSDKBarcodeDocumentDEMedicalPlanSubheading, SBSDKBarcodeDocumentDEMedicalPlan, SBSDKBarcodeDocumentIDCardPDF417, SBSDKBarcodeDocumentGS1Element, SBSDKBarcodeDocumentGS1, SBSDKBarcodeDocumentSEPA, SBSDKBarcodeDocumentMedicalCertificate, SBSDKBarcodeDocumentVCardEntry, SBSDKBarcodeDocumentVCard, SBSDKBarcodeDocumentAAMVATitleData, SBSDKBarcodeDocumentAAMVARegistrationData, SBSDKBarcodeDocumentAAMVAMotorCarrierData, SBSDKBarcodeDocumentAAMVARegistrantAndVehicleData, SBSDKBarcodeDocumentAAMVAVehicleOwnerData, SBSDKBarcodeDocumentAAMVAVehicleData, SBSDKBarcodeDocumentAAMVAVehicleSafetyInspectionData, SBSDKBarcodeDocumentAAMVADLID, SBSDKBarcodeDocumentAAMVARawDocument, SBSDKBarcodeDocumentAAMVA.
    • Added a new class SBSDKBarcodeDocumentRootType which replaces the old SBSDKBarCodeScannerDocumentFormat.
    • Added read-only, Key-Value observable property pages of type [SBSDKDocumentPage] to SBSDKDocument.
    • Added Swift structured concurrency API (async/await) to SBSDKUI2BarcodeScannerViewController, SBSDKUIPDFRenderer, SBSDKPDFRenderer, SBSDKTIFFImageWriter, SBSDKOpticalCharacterRecognizer, SBSDKPDFPagesExtractor and SBSDKTextLayoutRecognizer.
    • Added a new struct SBSDKUI2BarcodeScannerView which is the SwifUI wrapper for SBSDKUI2BarcodeScannerViewController.
    • 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.
  • πŸš€ 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.
    • Improved image quality and capture speed on most iOS devices slightly by capturing HEIF images.
    • The health insurance card recognizer now implements the new scanbot OCR engine. The recognition is faster and more accurate than before.
    • Added support of haptic feedback on capable devices.
    • 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.
  • 🐞 Bug fixes:
    • Fixes a bug with the generic textline recognizer not returning multiline results.
    • Fixes a bug with the asynchronous functions of SBSDKPDFPagesExtractor which returned an empty array of image URLs.
  • ⚠️ 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 functions captureJPEGStillImage to captureStillImage in SBSDKBaseScannerViewController (and all subclasses) and `SBSDKCameraSession'.
    • Renamed function captureOutput(_ output:, didOutput:, from:) to cameraSession(_ session:, didOutput:) in protocol SBSDKCameraSessionDelegate.
    • Replaced the class SBSDKBarcodeDocumentType by SBSDKBarcodeDocumentRootType.
    • Renamed supportedBarcodesTypes(for:) to supportedBarcodeTypes(for:) in the new class SBSDKBarcodeDocumentRootType.
    • Removed the protocol SBSDKBarCodeScannerDocumentFormat and all of it's children classes.
    • Removed default properties of use cases in SBSDKUI2BarcodeUseCase, now use the proper initializer for every use case, e.g. SBSDKUI2SingleScanningMode().
  • πŸš™ Under the hood:
    • Updated third-party libraries zlib to version 1.3.1, libtiff to 4.6.0, libjpeg-turbo to 2.1.5.1, libpng to 1.6.40.