scanbot-web-sdk 6.0.0-dev.6 → 7.0.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (287) hide show
  1. package/@types/barcode-scanner-view.d.ts +1 -1
  2. package/@types/core/bridge/compiled/{BarcodeConfigs.d.ts → BarcodeConfigurationTypes.d.ts} +558 -173
  3. package/@types/core/bridge/compiled/BarcodeDocumentModel.d.ts +1421 -0
  4. package/@types/core/bridge/compiled/BarcodeDocumentTypes.d.ts +14 -13
  5. package/@types/core/bridge/compiled/BarcodeScannerTypes.d.ts +25 -14
  6. package/@types/core/bridge/compiled/BarcodeTypes.d.ts +58 -56
  7. package/@types/core/bridge/compiled/CheckDocumentModel.d.ts +130 -0
  8. package/@types/core/bridge/compiled/CheckScannerTypes.d.ts +67 -0
  9. package/@types/core/bridge/compiled/CommonFieldType.d.ts +29 -28
  10. package/@types/core/bridge/compiled/CreditCardDocumentModel.d.ts +16 -0
  11. package/@types/core/bridge/compiled/CreditCardTypes.d.ts +35 -33
  12. package/@types/core/bridge/compiled/DocumentDataExtractorConfigurationTypes.d.ts +148 -0
  13. package/@types/core/bridge/compiled/DocumentDataExtractorTypes.d.ts +90 -0
  14. package/@types/core/bridge/compiled/DocumentQualityAnalyzerTypes.d.ts +28 -23
  15. package/@types/core/bridge/compiled/{DocumentDetectorTypes.d.ts → DocumentScannerTypes.d.ts} +49 -47
  16. package/@types/core/bridge/compiled/DocumentsModel.d.ts +489 -0
  17. package/@types/core/bridge/compiled/{EhicTypes.d.ts → EuropeanHealthInsuranceCardTypes.d.ts} +51 -108
  18. package/@types/core/bridge/compiled/FrameAccumulationTypes.d.ts +37 -14
  19. package/@types/core/bridge/compiled/GenericDocument.d.ts +17 -17
  20. package/@types/core/bridge/compiled/Geometry.d.ts +2 -2
  21. package/@types/core/bridge/compiled/ImageTypes.d.ts +1 -0
  22. package/@types/core/bridge/compiled/LicensePlateScannerTypes.d.ts +20 -19
  23. package/@types/core/bridge/compiled/MedicalCertificateTypes.d.ts +108 -105
  24. package/@types/core/bridge/compiled/MrzTypes.d.ts +73 -0
  25. package/@types/core/bridge/compiled/ParametricFilters.d.ts +4 -3
  26. package/@types/core/bridge/compiled/{PdfConfig.d.ts → PdfConfigurationTypes.d.ts} +48 -45
  27. package/@types/core/bridge/compiled/{GenericTextLineScannerTypes.d.ts → TextPatternScannerTypes.d.ts} +20 -39
  28. package/@types/core/bridge/compiled/TiffTypes.d.ts +48 -50
  29. package/@types/core/bridge/compiled/VinScannerTypes.d.ts +79 -0
  30. package/@types/core/bridge/worker-bridge.d.ts +512 -374
  31. package/@types/core/worker/ScanbotSDK.Core.d.ts +28 -22
  32. package/@types/core-types.d.ts +15 -12
  33. package/@types/cropping-view.d.ts +8 -4
  34. package/@types/document-data-extractor-view.d.ts +22 -0
  35. package/@types/document-scanner-view.d.ts +16 -7
  36. package/@types/index.d.ts +37 -24
  37. package/@types/interfaces/i-cropping-view-handle.d.ts +2 -0
  38. package/@types/interfaces/i-document-data-extractor-scanner-handle.d.ts +3 -0
  39. package/@types/interfaces/{i-text-data-scanner-handle.d.ts → i-text-pattern-scanner-handle.d.ts} +1 -1
  40. package/@types/model/configuration/barcode-scanner-configuration.d.ts +1 -0
  41. package/@types/model/configuration/cropping-view-configuration.d.ts +1 -0
  42. package/@types/model/configuration/document-data-extractor-configuration.d.ts +9 -0
  43. package/@types/model/configuration/document-scanner-configuration.d.ts +8 -4
  44. package/@types/model/configuration/initialization-options.d.ts +1 -2
  45. package/@types/model/configuration/mrz-scanner-configuration.d.ts +4 -4
  46. package/@types/model/configuration/selection-overlay-configuration.d.ts +5 -0
  47. package/@types/model/configuration/text-pattern-scanner-configuration.d.ts +9 -0
  48. package/@types/model/configuration/view-finder-scanner-configuration.d.ts +2 -1
  49. package/@types/model/configuration/vin-scanner-configuration.d.ts +4 -4
  50. package/@types/scanbot-sdk.d.ts +276 -210
  51. package/@types/scanner-view.d.ts +2 -0
  52. package/@types/service/document-data-extractor.d.ts +13 -0
  53. package/@types/service/ocr-engine.d.ts +3 -3
  54. package/@types/service/pdf-generator.d.ts +6 -1
  55. package/@types/service/simple-mrz-recognizer.d.ts +4 -4
  56. package/@types/service/storage/indexed-db/sb-indexed-db.d.ts +60 -0
  57. package/@types/service/storage/local/sb-local-storage.d.ts +11 -0
  58. package/@types/service/storage/sb-storage.d.ts +33 -0
  59. package/@types/service/storage/utils/create-worker-vite.d.ts +1 -0
  60. package/@types/service/storage/utils/create-worker.d.ts +1 -0
  61. package/@types/service/storage/utils/sb-storage-error.d.ts +5 -0
  62. package/@types/service/storage/utils/sb-storage-utils.d.ts +10 -0
  63. package/@types/service/text-pattern-scanner.d.ts +14 -0
  64. package/@types/service/tiff-generator.d.ts +7 -4
  65. package/@types/service/vin-scanner.d.ts +16 -0
  66. package/@types/{text-data-scanner-view.d.ts → text-pattern-scanner-view.d.ts} +10 -10
  67. package/@types/ui2/{controllers → barcode/controllers}/barcode-scanner-controller.d.ts +1 -1
  68. package/@types/ui2/{controllers → barcode/controllers}/multiple-scanning-mode-controller.d.ts +1 -1
  69. package/@types/ui2/{controllers → barcode/controllers}/single-scanning-mode-controller.d.ts +1 -1
  70. package/@types/ui2/{model → barcode/model}/counted-barcodes.d.ts +2 -2
  71. package/@types/ui2/{utils → barcode/utils}/barcode-mapper/expected-barcode-mapper.d.ts +2 -2
  72. package/@types/ui2/{utils → barcode/utils}/barcode-mapper/i-barcode-mapper.d.ts +2 -2
  73. package/@types/ui2/{utils → barcode/utils}/barcode-mapper/user-barcode-mapper.d.ts +1 -1
  74. package/@types/ui2/{utils → barcode/utils}/camera-config.d.ts +2 -2
  75. package/@types/ui2/{utils → barcode/utils}/styled-badge.d.ts +3 -1
  76. package/@types/ui2/{utils → barcode/utils}/styled-box.d.ts +1 -1
  77. package/@types/ui2/barcode/utils/styled-button.d.ts +14 -0
  78. package/@types/ui2/{utils → barcode/utils}/useScanningViewSize.d.ts +1 -1
  79. package/@types/ui2/{views → barcode/views}/action-button/action-button-container.d.ts +3 -3
  80. package/@types/ui2/{views → barcode/views}/action-button/action-button.d.ts +1 -1
  81. package/@types/ui2/{views → barcode/views}/ar/ar-badge.d.ts +2 -2
  82. package/@types/ui2/{views → barcode/views}/ar/ar-overlay-barcode-info.d.ts +2 -2
  83. package/@types/ui2/{views → barcode/views}/ar/vertical-positions.d.ts +2 -2
  84. package/@types/ui2/{views → barcode/views}/barcode-info/barcode-info.d.ts +1 -1
  85. package/@types/ui2/{views → barcode/views}/barcode-scanner.d.ts +8 -8
  86. package/@types/ui2/{views → barcode/views}/camera-permission-denied.d.ts +1 -1
  87. package/@types/ui2/{views → barcode/views}/dialog/barcode-info-dialog.d.ts +1 -1
  88. package/@types/ui2/{views → barcode/views}/dialog/barcode-mapping-error-dialog.d.ts +1 -1
  89. package/@types/ui2/{views → barcode/views}/dialog/base/confirmation-dialog.d.ts +1 -1
  90. package/@types/ui2/{views → barcode/views}/dialog/base/styled-dialog.d.ts +1 -0
  91. package/@types/ui2/{views → barcode/views}/dialog/count-edit-dialog.d.ts +1 -1
  92. package/@types/ui2/{views → barcode/views}/dialog/find-and-pick-submit-dialog.d.ts +1 -1
  93. package/@types/ui2/{views → barcode/views}/drawer/barcode-result-drawer.d.ts +1 -1
  94. package/@types/ui2/{views → barcode/views}/drawer/barcode-result-sidebar.d.ts +1 -1
  95. package/@types/ui2/{views → barcode/views}/drawer/counting-button.d.ts +1 -1
  96. package/@types/ui2/{views → barcode/views}/drawer/hooks/use-drag-listener.d.ts +1 -1
  97. package/@types/ui2/{views → barcode/views}/drawer/subviews/barcode-drawer-empty-state.d.ts +1 -1
  98. package/@types/ui2/{views → barcode/views}/drawer/subviews/barcode-list-item.d.ts +1 -1
  99. package/@types/ui2/{views → barcode/views}/drawer/subviews/barcode-list.d.ts +1 -1
  100. package/@types/ui2/{views → barcode/views}/drawer/subviews/drawer-header-content.d.ts +1 -1
  101. package/@types/ui2/{views → barcode/views}/drawer/subviews/swipe-underlay.d.ts +1 -1
  102. package/@types/ui2/{views → barcode/views}/form/dialog-button.d.ts +4 -1
  103. package/@types/ui2/{views → barcode/views}/navigation-bar.d.ts +1 -1
  104. package/@types/ui2/{views → barcode/views}/styled-text.d.ts +2 -1
  105. package/@types/ui2/configuration/DocumentQualityAnalyzerTypes.d.ts +1 -0
  106. package/@types/ui2/configuration/DocumentScannerTypes.d.ts +1 -0
  107. package/@types/ui2/configuration/Geometry.d.ts +1 -1
  108. package/@types/ui2/configuration/ParametricFilters.d.ts +1 -0
  109. package/@types/ui2/configuration/{ActionBarConfiguration.d.ts → barcode/ActionBarConfiguration.d.ts} +1 -1
  110. package/@types/ui2/configuration/{ArTrackingOverlayConfiguration.d.ts → barcode/ArTrackingOverlayConfiguration.d.ts} +1 -1
  111. package/@types/ui2/configuration/{BarcodeInfoMapping.d.ts → barcode/BarcodeInfoMapping.d.ts} +1 -1
  112. package/@types/ui2/configuration/{BarcodeRecognizerConfiguration.d.ts → barcode/BarcodeRecognizerConfiguration.d.ts} +3 -3
  113. package/@types/ui2/configuration/{BarcodeScannerConfiguration.d.ts → barcode/BarcodeScannerConfiguration.d.ts} +1 -1
  114. package/@types/ui2/configuration/barcode/BarcodeScannerTypes.d.ts +2 -0
  115. package/@types/ui2/configuration/{BarcodeScannerUIResult.d.ts → barcode/BarcodeScannerUIResult.d.ts} +1 -1
  116. package/@types/ui2/configuration/{BarcodeTextLocalization.d.ts → barcode/BarcodeTextLocalization.d.ts} +1 -1
  117. package/@types/ui2/configuration/barcode/BarcodeTypes.d.ts +1 -0
  118. package/@types/ui2/configuration/{CameraConfiguration.d.ts → barcode/CameraConfiguration.d.ts} +1 -1
  119. package/@types/ui2/configuration/{CameraPermission.d.ts → barcode/CameraPermission.d.ts} +1 -1
  120. package/@types/ui2/configuration/{Common.d.ts → barcode/Common.d.ts} +1 -1
  121. package/@types/ui2/configuration/barcode/CommonFieldType.d.ts +1 -0
  122. package/@types/ui2/configuration/{FindAndPickScanningModeUseCase.d.ts → barcode/FindAndPickScanningModeUseCase.d.ts} +1 -1
  123. package/@types/ui2/configuration/barcode/GenericDocument.d.ts +1 -0
  124. package/@types/ui2/configuration/barcode/Geometry.d.ts +1 -0
  125. package/@types/ui2/configuration/{MultipleScanningModeUseCase.d.ts → barcode/MultipleScanningModeUseCase.d.ts} +1 -1
  126. package/@types/ui2/configuration/{ScanbotAlertDialog.d.ts → barcode/ScanbotAlertDialog.d.ts} +1 -1
  127. package/@types/ui2/configuration/{SingleScanningModeUseCase.d.ts → barcode/SingleScanningModeUseCase.d.ts} +1 -1
  128. package/@types/ui2/configuration/{TopBarConfiguration.d.ts → barcode/TopBarConfiguration.d.ts} +1 -1
  129. package/@types/ui2/configuration/{UserGuidanceConfiguration.d.ts → barcode/UserGuidanceConfiguration.d.ts} +1 -1
  130. package/@types/ui2/configuration/{ViewFinderConfiguration.d.ts → barcode/ViewFinderConfiguration.d.ts} +1 -1
  131. package/@types/ui2/configuration/common/ActionBarConfiguration.d.ts +42 -0
  132. package/@types/ui2/configuration/common/CameraConfiguration.d.ts +60 -0
  133. package/@types/ui2/configuration/common/CameraPermission.d.ts +62 -0
  134. package/@types/ui2/configuration/common/Common.d.ts +467 -0
  135. package/@types/ui2/configuration/common/NavigationBarConfiguration.d.ts +11 -0
  136. package/@types/ui2/configuration/common/ScanbotAlertDialog.d.ts +74 -0
  137. package/@types/ui2/configuration/common/TopBarConfiguration.d.ts +55 -0
  138. package/@types/ui2/configuration/common/UserGuidanceConfiguration.d.ts +64 -0
  139. package/@types/ui2/configuration/common/ViewFinderConfiguration.d.ts +93 -0
  140. package/@types/ui2/configuration/document/AcknowledgementScreenConfiguration.d.ts +125 -0
  141. package/@types/ui2/configuration/document/CameraScreenConfiguration.d.ts +659 -0
  142. package/@types/ui2/configuration/document/CroppingConfiguration.d.ts +1 -0
  143. package/@types/ui2/configuration/document/CroppingResult.d.ts +1 -0
  144. package/@types/ui2/configuration/document/CroppingScreenConfiguration.d.ts +141 -0
  145. package/@types/ui2/configuration/document/CroppingTextLocalization.d.ts +1 -0
  146. package/@types/ui2/configuration/document/DocumentScannerCameraConfiguration.d.ts +60 -0
  147. package/@types/ui2/configuration/document/DocumentScannerGuidanceVisibility.d.ts +11 -0
  148. package/@types/ui2/configuration/document/DocumentScannerOutputSettings.d.ts +38 -0
  149. package/@types/ui2/configuration/document/DocumentScannerScreens.d.ts +26 -0
  150. package/@types/ui2/configuration/document/DocumentScannerTextLocalization.d.ts +608 -0
  151. package/@types/ui2/configuration/document/DocumentScannerUIResult.d.ts +5 -0
  152. package/@types/ui2/configuration/document/DocumentScannerUserGuidance.d.ts +99 -0
  153. package/@types/ui2/configuration/document/DocumentScanningFlow.d.ts +91 -0
  154. package/@types/ui2/configuration/document/IntroductionScreenConfiguration.d.ts +188 -0
  155. package/@types/ui2/configuration/document/ReorderPagesScreenConfiguration.d.ts +1 -0
  156. package/@types/ui2/configuration/document/ReviewScreenConfiguration.d.ts +372 -0
  157. package/@types/ui2/configuration/native/DocumentData.d.ts +37 -0
  158. package/@types/ui2/configuration/native/PageData.d.ts +58 -0
  159. package/@types/ui2/configuration/native/PageImageSource.d.ts +13 -0
  160. package/@types/ui2/configuration/utils.d.ts +8 -0
  161. package/@types/ui2/configuration.d.ts +46 -21
  162. package/@types/ui2/document/assets/auto-capture-disabled-icon.d.ts +4 -0
  163. package/@types/ui2/document/assets/auto-capture-icon.d.ts +4 -0
  164. package/@types/ui2/document/assets/captured-circle-icon.d.ts +5 -0
  165. package/@types/ui2/document/assets/delete-icon.d.ts +4 -0
  166. package/@types/ui2/document/assets/file-add-icon.d.ts +4 -0
  167. package/@types/ui2/document/assets/image-error-icon.d.ts +5 -0
  168. package/@types/ui2/document/assets/image-retake.d.ts +4 -0
  169. package/@types/ui2/document/assets/loading-spinner-icon.d.ts +2 -0
  170. package/@types/ui2/document/assets/shutter-button-auto-icon.d.ts +4 -0
  171. package/@types/ui2/document/assets/shutter-button-manual-icon.d.ts +5 -0
  172. package/@types/ui2/document/assets/shutter-button-spinner-icon.d.ts +4 -0
  173. package/@types/ui2/document/assets/the-hand.d.ts +10 -0
  174. package/@types/ui2/document/controller/acknowledgment-screen-controller.d.ts +16 -0
  175. package/@types/ui2/document/controller/camera-screen-controller.d.ts +20 -0
  176. package/@types/ui2/document/controller/cropping-screen-controller.d.ts +14 -0
  177. package/@types/ui2/document/controller/document-scanner-controller.d.ts +14 -0
  178. package/@types/ui2/document/controller/review-screen-controller.d.ts +18 -0
  179. package/@types/ui2/document/controller/zoom-screen-controller.d.ts +11 -0
  180. package/@types/ui2/document/model/document-detection-ui-result.d.ts +8 -0
  181. package/@types/ui2/document/model/sb-document.d.ts +62 -0
  182. package/@types/ui2/document/model/sb-page.d.ts +38 -0
  183. package/@types/ui2/document/model/utils/sb-document-data.d.ts +10 -0
  184. package/@types/ui2/document/model/utils/sb-page-data.d.ts +7 -0
  185. package/@types/ui2/document/utils/SBThemeProvider.d.ts +4 -0
  186. package/@types/ui2/document/utils/button-accessibility-styling.d.ts +40 -0
  187. package/@types/ui2/document/views/acknowledgement-screen/acknowledgement-confirmation.d.ts +19 -0
  188. package/@types/ui2/document/views/acknowledgement-screen/acknowledgement-fade.d.ts +9 -0
  189. package/@types/ui2/document/views/acknowledgement-screen/acknowledgement-image.d.ts +6 -0
  190. package/@types/ui2/document/views/acknowledgement-screen/acknowledgement-screen-bottom-bar.d.ts +12 -0
  191. package/@types/ui2/document/views/acknowledgement-screen/quality-insufficient-banner.d.ts +10 -0
  192. package/@types/ui2/document/views/camera-screen/bottom-bar.d.ts +33 -0
  193. package/@types/ui2/document/views/camera-screen/camera-permission-denied.d.ts +9 -0
  194. package/@types/ui2/document/views/camera-screen/camera-select-dropdown.d.ts +14 -0
  195. package/@types/ui2/document/views/camera-screen/introduction/assets/CheckIcon.d.ts +3 -0
  196. package/@types/ui2/document/views/camera-screen/introduction/assets/CreditCardsIcon.d.ts +3 -0
  197. package/@types/ui2/document/views/camera-screen/introduction/assets/DocumentsIcon.d.ts +3 -0
  198. package/@types/ui2/document/views/camera-screen/introduction/assets/IdCardsIcon.d.ts +3 -0
  199. package/@types/ui2/document/views/camera-screen/introduction/assets/MedicalCertsIcon.d.ts +3 -0
  200. package/@types/ui2/document/views/camera-screen/introduction/assets/Props.d.ts +3 -0
  201. package/@types/ui2/document/views/camera-screen/introduction/assets/ReceiptsIcon.d.ts +3 -0
  202. package/@types/ui2/document/views/camera-screen/introduction/introduction-image.d.ts +5 -0
  203. package/@types/ui2/document/views/camera-screen/introduction/introduction.d.ts +9 -0
  204. package/@types/ui2/document/views/camera-screen/preview-button.d.ts +11 -0
  205. package/@types/ui2/document/views/camera-screen/scanner-box.d.ts +21 -0
  206. package/@types/ui2/document/views/camera-screen/shutter-button.d.ts +10 -0
  207. package/@types/ui2/document/views/camera-screen/top-bar.d.ts +11 -0
  208. package/@types/ui2/document/views/camera-screen/top-user-guidance.d.ts +8 -0
  209. package/@types/ui2/document/views/camera-screen/use-document-scanner-view.d.ts +31 -0
  210. package/@types/ui2/document/views/camera-screen/user-guidance-text.d.ts +10 -0
  211. package/@types/ui2/document/views/common/alert-dialog.d.ts +11 -0
  212. package/@types/ui2/document/views/common/bar-button.d.ts +17 -0
  213. package/@types/ui2/document/views/common/common-top-bar.d.ts +12 -0
  214. package/@types/ui2/document/views/common/loading-spinner.d.ts +4 -0
  215. package/@types/ui2/document/views/common/styled-menu-item.d.ts +12 -0
  216. package/@types/ui2/document/views/common/styled-menu.d.ts +17 -0
  217. package/@types/ui2/document/views/review-screen/bottom-bar.d.ts +15 -0
  218. package/@types/ui2/document/views/review-screen/carousel-page.d.ts +13 -0
  219. package/@types/ui2/document/views/review-screen/carousel.d.ts +14 -0
  220. package/@types/ui2/document/views/review-screen/page-counter-and-zoom-button.d.ts +10 -0
  221. package/@types/ui2/document/views/review-screen/scroller-navigation-button.d.ts +11 -0
  222. package/@types/ui2/document/views/review-screen/top-bar.d.ts +11 -0
  223. package/@types/ui2/scanbot-sdk-ui.d.ts +4 -0
  224. package/@types/ui2/scanbot-ui-library.d.ts +7 -4
  225. package/@types/ui2/utils/text-styling.d.ts +8 -0
  226. package/@types/ui2/utils/use-time-since-first-render-has-passed.d.ts +1 -0
  227. package/@types/utils/constants.d.ts +0 -2
  228. package/@types/utils/dto/Frame.d.ts +2 -0
  229. package/@types/utils/image-utils.d.ts +2 -1
  230. package/@types/utils/parse-color.d.ts +9 -0
  231. package/@types/utils/react/useIsMounted.d.ts +2 -0
  232. package/@types/utils/react/usePromise.d.ts +4 -3
  233. package/@types/utils/supported-image-mime-types.d.ts +2 -0
  234. package/@types/utils/view-utils.d.ts +1 -1
  235. package/@types/view/barcode-polygon/animated-barcode-selection-overlay.d.ts +8 -2
  236. package/@types/view/polygon/document-polygon.d.ts +1 -0
  237. package/@types/worker/worker-bridge.d.ts +522 -384
  238. package/Libraries.txt +1510 -36
  239. package/bundle/ScanbotSDK.min.js +5 -5
  240. package/bundle/ScanbotSDK.ui2.min.js +18 -18
  241. package/bundle/ScanbotSDK.ui2.min.js.LICENSE.txt +10 -0
  242. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  243. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  244. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  245. package/bundle/bin/barcode-scanner/ScanbotSDK.Asm.wasm +0 -0
  246. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  247. package/bundle/bin/barcode-scanner/ScanbotSDK.Core-simd.js +1 -1
  248. package/bundle/bin/barcode-scanner/ScanbotSDK.Core.js +1 -1
  249. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.js +1 -1
  250. package/bundle/bin/complete/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  251. package/bundle/bin/complete/ScanbotSDK.Asm-simd.wasm +0 -0
  252. package/bundle/bin/complete/ScanbotSDK.Asm.wasm +0 -0
  253. package/bundle/bin/complete/ScanbotSDK.Core-simd-threads.js +1 -1
  254. package/bundle/bin/complete/ScanbotSDK.Core-simd.js +1 -1
  255. package/bundle/bin/complete/ScanbotSDK.Core.js +1 -1
  256. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.js +1 -1
  257. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd-threads.wasm +0 -0
  258. package/bundle/bin/document-scanner/ScanbotSDK.Asm-simd.wasm +0 -0
  259. package/bundle/bin/document-scanner/ScanbotSDK.Asm.wasm +0 -0
  260. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd-threads.js +1 -1
  261. package/bundle/bin/document-scanner/ScanbotSDK.Core-simd.js +1 -1
  262. package/bundle/bin/document-scanner/ScanbotSDK.Core.js +1 -1
  263. package/package.json +3 -3
  264. package/@types/core/bridge/compiled/CheckRecognizerTypes.d.ts +0 -29
  265. package/@types/core/bridge/compiled/FrameUtilities.d.ts +0 -18
  266. package/@types/core/bridge/compiled/GDRTypes.d.ts +0 -38
  267. package/@types/core/bridge/compiled/GenericDocumentRecognizerConfigs.d.ts +0 -150
  268. package/@types/core/bridge/compiled/GenericDocumentRecognizerTypes.d.ts +0 -83
  269. package/@types/core/bridge/compiled/GenericDocumentTypes.d.ts +0 -15
  270. package/@types/core/bridge/compiled/MRZTypes.d.ts +0 -52
  271. package/@types/generic-document-recognizer-view.d.ts +0 -22
  272. package/@types/interfaces/i-generic-document-recognizer-scanner-handle.d.ts +0 -3
  273. package/@types/model/configuration/generic-document-recognizer-configuration.d.ts +0 -9
  274. package/@types/model/configuration/text-data-scanner-configuration.d.ts +0 -9
  275. package/@types/service/generic-document-recognizer.d.ts +0 -13
  276. package/@types/service/text-data-recognizer.d.ts +0 -14
  277. package/@types/ui2/configuration/BarcodeScannerTypes.d.ts +0 -1
  278. package/@types/ui2/configuration/BarcodeTypes.d.ts +0 -1
  279. package/@types/ui2/configuration/CommonFieldType.d.ts +0 -1
  280. package/@types/ui2/configuration/GenericDocument.d.ts +0 -1
  281. package/@types/ui2/utils/styled-button.d.ts +0 -7
  282. /package/@types/core/bridge/compiled/{OcrElements.d.ts → OcrTypes.d.ts} +0 -0
  283. /package/@types/ui2/{utils → barcode/utils}/find-and-pick.ts/expected-barcode-counter.d.ts +0 -0
  284. /package/@types/ui2/{utils → barcode/utils}/styled-input.d.ts +0 -0
  285. /package/@types/ui2/{views → barcode/views}/drawer/subviews/barcode-drawer-header.d.ts +0 -0
  286. /package/@types/ui2/configuration/{BarcodeItemMapper.d.ts → barcode/BarcodeItemMapper.d.ts} +0 -0
  287. /package/@types/ui2/configuration/{BarcodeUseCase.d.ts → barcode/BarcodeUseCase.d.ts} +0 -0
@@ -1,23 +1,24 @@
1
1
  import { DeepPartial, PartiallyConstructible } from "../common";
2
+ import { EuropeanHealthInsuranceCardIssuingCountry } from "./DocumentDataExtractorConfigurationTypes";
2
3
  /**
3
- The result of the health insurance card recognition
4
+ The result of the health insurance card recognition.
4
5
  */
5
- export declare class RecognitionResult extends PartiallyConstructible {
6
+ export declare class EuropeanHealthInsuranceCardRecognitionResult extends PartiallyConstructible {
6
7
  /**
7
8
  Health insurance card fields
8
9
  */
9
- readonly fields: RecognitionResult.Field[];
10
+ readonly fields: EuropeanHealthInsuranceCardRecognitionResult.Field[];
10
11
  /**
11
- Detection status
12
+ Recognition status.
12
13
  @defaultValue "FAILED_DETECTION";
13
14
  */
14
- readonly status: RecognitionResult.DetectionStatus;
15
- /** @param source {@displayType `DeepPartial<RecognitionResult>`} */
16
- constructor(source?: DeepPartial<RecognitionResult>);
15
+ readonly status: EuropeanHealthInsuranceCardRecognitionResult.RecognitionStatus;
16
+ /** @param source {@displayType `DeepPartial<EuropeanHealthInsuranceCardRecognitionResult>`} */
17
+ constructor(source?: DeepPartial<EuropeanHealthInsuranceCardRecognitionResult>);
17
18
  }
18
- export declare namespace RecognitionResult {
19
+ export declare namespace EuropeanHealthInsuranceCardRecognitionResult {
19
20
  /**
20
- Card detection status
21
+ Card recognition status.
21
22
 
22
23
  - `SUCCESS`:
23
24
  Detection successful. The fields array is filled with all of the extracted data. All validatable fields have passed validation.
@@ -26,15 +27,16 @@ export declare namespace RecognitionResult {
26
27
  - `INCOMPLETE_VALIDATION`:
27
28
  A potential EHIC was found but one or more fields failed validation.
28
29
  */
29
- type DetectionStatus = "SUCCESS" | "FAILED_DETECTION" | "INCOMPLETE_VALIDATION";
30
+ type RecognitionStatus = "SUCCESS" | "FAILED_DETECTION" | "INCOMPLETE_VALIDATION";
31
+ const RecognitionStatusValues: RecognitionStatus[];
30
32
  /**
31
- Health insurance card field
33
+ Health insurance card field.
32
34
  */
33
35
  class Field extends PartiallyConstructible {
34
36
  /**
35
37
  Health insurance card field type
36
38
  */
37
- readonly type: RecognitionResult.Field.FieldType;
39
+ readonly type: EuropeanHealthInsuranceCardRecognitionResult.Field.FieldType;
38
40
  /**
39
41
  Recognized value
40
42
  */
@@ -44,117 +46,58 @@ export declare namespace RecognitionResult {
44
46
  */
45
47
  readonly confidence: number;
46
48
  /**
47
- Field validation status
49
+ Field validation status.
48
50
  @defaultValue "NOT_VALIDATED";
49
51
  */
50
- readonly validationStatus: RecognitionResult.Field.ValidationStatus;
52
+ readonly validationStatus: EuropeanHealthInsuranceCardRecognitionResult.Field.ValidationStatus;
51
53
  /** @param source {@displayType `DeepPartial<Field>`} */
52
54
  constructor(source?: DeepPartial<Field>);
53
55
  }
54
56
  namespace Field {
55
57
  /**
56
- Health insurance card field validation status
58
+ Health insurance card field validation status.
57
59
 
58
60
  - `NOT_VALIDATED`:
59
- Field shouldn't be validated
61
+ Field shouldn't be validated.
60
62
  - `FAILURE`:
61
- Field is not valid
63
+ Field is not valid.
62
64
  - `SUCCESS`:
63
- Field is valid
65
+ Field is valid.
64
66
  - `CONFIRMED`:
65
- Field is valid and confirmed across multiple frames
67
+ Field is valid and confirmed across multiple frames.
66
68
  */
67
69
  type ValidationStatus = "NOT_VALIDATED" | "FAILURE" | "SUCCESS" | "CONFIRMED";
70
+ const ValidationStatusValues: ValidationStatus[];
68
71
  /**
69
- Health insurance card field type
72
+ Health insurance card field type.
70
73
 
71
74
  - `SURNAME`:
72
- Surname
75
+ Surname.
73
76
  - `GIVEN_NAME`:
74
- Given name
77
+ Given name.
75
78
  - `DATE_OF_BIRTH`:
76
- Date of birth
79
+ Date of birth.
77
80
  - `PERSONAL_IDENTIFICATION_NUMBER`:
78
- Personal identification number
81
+ Personal identification number.
79
82
  - `INSTITUTION_NUMBER`:
80
- Institution number
83
+ Institution number.
81
84
  - `INSTITUTION_NAME`:
82
- Institution name
85
+ Institution name.
83
86
  - `CARD_NUMBER`:
84
- Card number
87
+ Card number.
85
88
  - `CARD_EXPIRATION_DATE`:
86
- Card expiration date
89
+ Card expiration date.
87
90
  - `COUNTRY`:
88
- Country
91
+ Country.
89
92
  */
90
93
  type FieldType = "SURNAME" | "GIVEN_NAME" | "DATE_OF_BIRTH" | "PERSONAL_IDENTIFICATION_NUMBER" | "INSTITUTION_NUMBER" | "INSTITUTION_NAME" | "CARD_NUMBER" | "CARD_EXPIRATION_DATE" | "COUNTRY";
94
+ const FieldTypeValues: FieldType[];
91
95
  }
92
96
  }
93
97
  /**
94
- Health insurance card issuing country
95
-
96
- - `AUSTRIA`:
97
- Austria (Validation on the personal identification number is performed as described in "site:www.sozialversicherung.at Was ist die Versicherungsnummer?")
98
- - `BELGIUM`:
99
- Belgium
100
- - `BULGARIA`:
101
- Bulgaria
102
- - `CROATIA`:
103
- Croatia
104
- - `CYPRUS`:
105
- Cyprus
106
- - `CZECH_REPUBLIC`:
107
- Czech Republic
108
- - `DENMARK`:
109
- Denmark
110
- - `ESTONIA`:
111
- Estonia
112
- - `FINLAND`:
113
- Finland
114
- - `FRANCE`:
115
- France
116
- - `GERMANY`:
117
- Germany (Validation performed according to "Spezifikation für Musterkarten und Testkarten (eGK, HBA, SMC), Anhang A" and "GS1 Struktur der Kenn-Nummer (ICCSN) der elektronischen Gesundheitskarte")
118
- - `GREECE`:
119
- Greece
120
- - `HUNGARY`:
121
- Hungary
122
- - `IRELAND`:
123
- Ireland
124
- - `ITALY`:
125
- Italy
126
- - `LATVIA`:
127
- Latvia
128
- - `LITHUANIA`:
129
- Lithuania
130
- - `LUXEMBOURG`:
131
- Luxembourg
132
- - `MALTA`:
133
- Malta
134
- - `NETHERLANDS`:
135
- Netherlands
136
- - `POLAND`:
137
- Poland
138
- - `PORTUGAL`:
139
- Portugal
140
- - `ROMANIA`:
141
- Romania
142
- - `SLOVAKIA`:
143
- Slovakia
144
- - `SLOVENIA`:
145
- Slovenia
146
- - `SPAIN`:
147
- Spain
148
- - `SWEDEN`:
149
- Sweden
150
- - `SWITZERLAND`:
151
- Switzerland
152
- */
153
- export type IssuingCountry = "AUSTRIA" | "BELGIUM" | "BULGARIA" | "CROATIA" | "CYPRUS" | "CZECH_REPUBLIC" | "DENMARK" | "ESTONIA" | "FINLAND" | "FRANCE" | "GERMANY" | "GREECE" | "HUNGARY" | "IRELAND" | "ITALY" | "LATVIA" | "LITHUANIA" | "LUXEMBOURG" | "MALTA" | "NETHERLANDS" | "POLAND" | "PORTUGAL" | "ROMANIA" | "SLOVAKIA" | "SLOVENIA" | "SPAIN" | "SWEDEN" | "SWITZERLAND";
154
- /**
155
- Parameters for frame accumulation
98
+ Configuration for the European health insurance card (EHIC) recognizer.
156
99
  */
157
- export declare class RecognizerParameters extends PartiallyConstructible {
100
+ export declare class EuropeanHealthInsuranceCardRecognizerConfiguration extends PartiallyConstructible {
158
101
  /**
159
102
  List of allowed countries for the EHIC. If:
160
103
  - single country: validation rules for the given country are used starting from the first
@@ -171,48 +114,48 @@ export declare class RecognizerParameters extends PartiallyConstructible {
171
114
  If the country cannot be inferred within `maxCountryDetectionAttempts` successive frames in which the
172
115
  part of the card number that stores the country code was successfully OCR'd, then the country is
173
116
  inferred to be Unknown and no validation rules are applied. Field accumulation then proceeds normally.
174
- In this case recognize() can eventually return Success and the document will have a CountryType of Unknown
117
+ In this case recognize() can eventually return Success and the document will have a CountryType of Unknown.
175
118
  @defaultValue [];
176
119
  */
177
- readonly allowedCountries: IssuingCountry[];
120
+ allowedCountries: EuropeanHealthInsuranceCardIssuingCountry[];
178
121
  /**
179
- Minimum year of birth
122
+ Minimum year of birth.
180
123
  @defaultValue 0;
181
124
  */
182
- readonly minBirthYear: number;
125
+ minBirthYear: number;
183
126
  /**
184
- Maximum year of birth
127
+ Maximum year of birth.
185
128
  @defaultValue 2999;
186
129
  */
187
- readonly maxBirthYear: number;
130
+ maxBirthYear: number;
188
131
  /**
189
- Minimum card expiration year
132
+ Minimum card expiration year.
190
133
  @defaultValue 0;
191
134
  */
192
- readonly minExpirationYear: number;
135
+ minExpirationYear: number;
193
136
  /**
194
- Maximum card expiration year
137
+ Maximum card expiration year.
195
138
  @defaultValue 2999;
196
139
  */
197
- readonly maxExpirationYear: number;
140
+ maxExpirationYear: number;
198
141
  /**
199
142
  Maximum number of attempts before giving up on country detection. After the specified number of
200
143
  attempts, the country field is considered to be unknown and validation is skipped.
201
144
  This option is ignored if allowedCountries is not empty.
202
145
  @defaultValue 5;
203
146
  */
204
- readonly maxCountryDetectionAttempts: number;
147
+ maxCountryDetectionAttempts: number;
205
148
  /**
206
149
  Minimum number of accumulated frames that should have equal result for a field.
207
150
  Once satisfied, the corresponding field is considered to be successfully-recognized and won't be considered in the subsequent frames.
208
151
  @defaultValue 4;
209
152
  */
210
- readonly minEqualFrameCount: number;
153
+ minEqualFrameCount: number;
211
154
  /**
212
- Maximum number of partial frame results to keep in cache while waiting to gather minEqualFrameCount equal results
155
+ Maximum number of partial frame results to keep in cache while waiting to gather minEqualFrameCount equal results.
213
156
  @defaultValue 10;
214
157
  */
215
- readonly maxAccumulatedFrameCount: number;
216
- /** @param source {@displayType `DeepPartial<RecognizerParameters>`} */
217
- constructor(source?: DeepPartial<RecognizerParameters>);
158
+ maxAccumulatedFrameCount: number;
159
+ /** @param source {@displayType `DeepPartial<EuropeanHealthInsuranceCardRecognizerConfiguration>`} */
160
+ constructor(source?: DeepPartial<EuropeanHealthInsuranceCardRecognizerConfiguration>);
218
161
  }
@@ -1,41 +1,64 @@
1
1
  import { DeepPartial, PartiallyConstructible } from "../common";
2
2
  /**
3
- Method used to confirm a result
3
+ Method used to confirm a result.
4
4
 
5
5
  - `EXACT`:
6
6
  Require seeing the same result multiple times to confirm it.
7
- E.g. if the results are "John B. Doe", "John B.", "B. Doe", "John B. Doe" then the confirmation count for
8
- "John B. Doe" is 2.
7
+ E.g. if the seen values are "John B. Doe", "John B.", "B. Doe", "John B. Doe" then the confirmation count for
8
+ the value "John B. Doe" is 2 and for the rest it's 1.
9
+ A field's value is considered CONFIRMED if its confirmation count is greater or equal to minConfirmations.
9
10
  - `INTERPOLATE`:
10
- Interpolate between results to confirm them.
11
- E.g. if the results are "John X. Doe", "John B.", "B. Doe" then the confirmation count for
12
- "John B. Doe" is 2 as each substring of "John B. Doe" is least twice.
11
+ Interpolate between seen values to generate the most likely true value.
12
+ E.g. if the seen values are "John X. Doe", "John B.", "B. Doe" then the most likely true value
13
+ can be interpolated to be "John B. Doe".
14
+ The interpolated value is considered CONFIRMED if each character
15
+ in it has been seen at least minConfirmations times.
13
16
  */
14
17
  export type ConfirmationMethod = "EXACT" | "INTERPOLATE";
18
+ export declare const ConfirmationMethodValues: ConfirmationMethod[];
15
19
  /**
16
- Configuration for how to accumulate results
20
+ Configuration for how to accumulate results.
17
21
  */
18
- export declare class ResultAccumulationConfig extends PartiallyConstructible {
22
+ export declare class ResultAccumulationConfiguration extends PartiallyConstructible {
19
23
  /**
20
- Method used to confirm a result
24
+ Method used to confirm a result.
21
25
  @defaultValue "EXACT";
22
26
  */
23
27
  confirmationMethod: ConfirmationMethod;
24
28
  /**
25
- Number of confirmations required to consider a result confirmed (see ConfirmationMethod)
29
+ Number of confirmations required to consider a result confirmed (see ConfirmationMethod).
30
+ Requiring more confirmations will increase the reliability of the result but also the time to
31
+ gather enough confirmations.
26
32
  @defaultValue 3;
27
33
  */
28
34
  minConfirmations: number;
29
35
  /**
30
- Minimum confidence required to consider a field confirmed
36
+ Minimum confidence required to consider a field confirmed.
31
37
  @defaultValue 0.8;
32
38
  */
33
39
  minConfidenceForStableField: number;
34
40
  /**
35
- Will auto-clear the cache if this number of frames have been a different document type or empty
41
+ Will auto-clear the cache if this number of frames have been a different document type or empty.
36
42
  @defaultValue 4;
37
43
  */
38
44
  autoClearThreshold: number;
39
- /** @param source {@displayType `DeepPartial<ResultAccumulationConfig>`} */
40
- constructor(source?: DeepPartial<ResultAccumulationConfig>);
45
+ /** @param source {@displayType `DeepPartial<ResultAccumulationConfiguration>`} */
46
+ constructor(source?: DeepPartial<ResultAccumulationConfiguration>);
47
+ }
48
+ /**
49
+ Configure the frame accumulation process.
50
+ */
51
+ export declare class AccumulatedResultsVerifierConfiguration extends PartiallyConstructible {
52
+ /**
53
+ Maximum number of accumulated frames to inspect to verify a scan result.
54
+ @defaultValue 3;
55
+ */
56
+ maximumNumberOfAccumulatedFrames: number;
57
+ /**
58
+ Minimum number of accumulated frames that have an equal result in order for the result to be considered verified.
59
+ @defaultValue 2;
60
+ */
61
+ minimumNumberOfRequiredFramesWithEqualRecognitionResult: number;
62
+ /** @param source {@displayType `DeepPartial<AccumulatedResultsVerifierConfiguration>`} */
63
+ constructor(source?: DeepPartial<AccumulatedResultsVerifierConfiguration>);
41
64
  }
@@ -40,7 +40,6 @@ If the same value is recognized in multiple frames, the value is considered CONF
40
40
  it will have the status NONE. This is the least strict validation method, as it does not protect
41
41
  from systemic OCR errors, but in practice it still provides good results for most fields.
42
42
 
43
-
44
43
  - `INVALID`:
45
44
  Field value failed validation. This status is used for fields that have validation rules, like
46
45
  IBAN, date fields, etc. that have check digits or a known format that can be validated.
@@ -55,7 +54,7 @@ from systemic OCR errors, but in practice it still provides good results for mos
55
54
  A CONFIRMED value gives a strong guarantee that the field value has been read out without errors,
56
55
  but not as strong as VALID. The value may still be incorrect, due to systemic OCR errors.
57
56
  In case of OCR errors, increase the number of frames needed to confirm the value in the
58
- recognizer configuration
57
+ recognizer configuration.
59
58
  - `INFERRED`:
60
59
  Field value was inferred from other fields or from domain knowledge.
61
60
  The field value may differ from what is actually written in the document in unexpected situations.
@@ -68,10 +67,10 @@ from systemic OCR errors, but in practice it still provides good results for mos
68
67
  The value of this field is always empty, although the field may be non-empty in the document.
69
68
  */
70
69
  export type FieldValidationStatus = "INVALID" | "NONE" | "CONFIRMED" | "INFERRED" | "VALID" | "IGNORED";
70
+ export declare const FieldValidationStatusValues: FieldValidationStatus[];
71
71
  /**
72
72
  Type of parsing applied to field.
73
73
 
74
-
75
74
  - `ISO_DATE`:
76
75
  Field value is parsed as ISO 8601 date in format YYYY-MM-DD.
77
76
  - `ISO_COUNTRY_ALPHA_2`:
@@ -86,8 +85,9 @@ Type of parsing applied to field.
86
85
  Field value is parsed as "Male", "Female".
87
86
  */
88
87
  export type FieldDataFormat = "ISO_DATE" | "ISO_COUNTRY_ALPHA_2" | "ISO_COUNTRY_ALPHA_3" | "ISO_COUNTRY_NUMERIC" | "ISO_COUNTRY_NAME" | "GENDER";
88
+ export declare const FieldDataFormatValues: FieldDataFormat[];
89
89
  /**
90
- Parsed data
90
+ Parsed data.
91
91
  */
92
92
  export declare class FieldParsedData extends PartiallyConstructible {
93
93
  /**
@@ -102,7 +102,7 @@ export declare class FieldParsedData extends PartiallyConstructible {
102
102
  constructor(source?: DeepPartial<FieldParsedData>);
103
103
  }
104
104
  /**
105
- Generic Document Type
105
+ Generic Document Type.
106
106
  */
107
107
  export declare class FieldType extends PartiallyConstructible {
108
108
  /**
@@ -122,7 +122,7 @@ export declare class FieldType extends PartiallyConstructible {
122
122
  */
123
123
  readonly commonType: CommonFieldType | null;
124
124
  /**
125
- A document can contain multiple fields of the same name, the property serves for storing natural order of such fields, null if multiple entries aren't allowed for this field
125
+ A document can contain multiple fields of the same name, the property serves for storing natural order of such fields, null if multiple entries aren't allowed for this field.
126
126
  @defaultValue null;
127
127
  */
128
128
  readonly listIndex: number | null;
@@ -130,7 +130,7 @@ export declare class FieldType extends PartiallyConstructible {
130
130
  constructor(source?: DeepPartial<FieldType>);
131
131
  }
132
132
  /**
133
- Generic document field
133
+ Generic document field.
134
134
  */
135
135
  export declare class Field extends PartiallyConstructible {
136
136
  /**
@@ -142,12 +142,12 @@ export declare class Field extends PartiallyConstructible {
142
142
  */
143
143
  readonly value: OcrResult | null;
144
144
  /**
145
- Confidence weight
145
+ Confidence weight.
146
146
  @defaultValue 1.0;
147
147
  */
148
148
  readonly confidenceWeight: number;
149
149
  /**
150
- Crop of the field
150
+ Crop of the field.
151
151
  @defaultValue null;
152
152
  */
153
153
  readonly image: RawImage | null;
@@ -161,7 +161,7 @@ export declare class Field extends PartiallyConstructible {
161
161
  */
162
162
  readonly validationStatus: FieldValidationStatus;
163
163
  /**
164
- Parsed data
164
+ Parsed data.
165
165
  @defaultValue [];
166
166
  */
167
167
  readonly parsedData: FieldParsedData[];
@@ -169,7 +169,7 @@ export declare class Field extends PartiallyConstructible {
169
169
  constructor(source?: DeepPartial<Field>);
170
170
  }
171
171
  /**
172
- Generic Document Type
172
+ Generic Document Type.
173
173
  */
174
174
  export declare class GenericDocumentType extends PartiallyConstructible {
175
175
  /**
@@ -185,7 +185,7 @@ export declare class GenericDocumentType extends PartiallyConstructible {
185
185
  */
186
186
  readonly normalizedName: string;
187
187
  /**
188
- A document can contain multiple fields of the same name, the property serves for storing natural order of such fields, null if multiple entries aren't allowed for this field
188
+ A document can contain multiple fields of the same name, the property serves for storing natural order of such fields, null if multiple entries aren't allowed for this field.
189
189
  @defaultValue null;
190
190
  */
191
191
  readonly listIndex: number | null;
@@ -193,7 +193,7 @@ export declare class GenericDocumentType extends PartiallyConstructible {
193
193
  constructor(source?: DeepPartial<GenericDocumentType>);
194
194
  }
195
195
  /**
196
- Generic document
196
+ Generic document.
197
197
  */
198
198
  export declare class GenericDocument extends PartiallyConstructible {
199
199
  /**
@@ -211,18 +211,18 @@ export declare class GenericDocument extends PartiallyConstructible {
211
211
  /**
212
212
  Coordinates of the document in the parent document coordinate system
213
213
  */
214
- readonly quad: Point[] | null;
214
+ readonly quad: Point[];
215
215
  /**
216
216
  Coordinates of the document in the root document coordinate system
217
217
  */
218
- readonly quadInRoot: Point[] | null;
218
+ readonly quadInRoot: Point[];
219
219
  /**
220
- Image crop of the document
220
+ Image crop of the document.
221
221
  @defaultValue null;
222
222
  */
223
223
  readonly crop: RawImage | null;
224
224
  /**
225
- The average confidence in the accuracy of the document recognition result
225
+ The average confidence in the accuracy of the document recognition result.
226
226
  @defaultValue 0.0;
227
227
  */
228
228
  readonly confidence: number;
@@ -1,7 +1,7 @@
1
1
  import { DeepPartial, PartiallyConstructible } from "../common";
2
2
  import { Point } from "../common";
3
3
  /**
4
- Represents a line segment in 2D space
4
+ Represents a line segment in 2D space.
5
5
  */
6
6
  export declare class LineSegmentInt extends PartiallyConstructible {
7
7
  /**
@@ -16,7 +16,7 @@ export declare class LineSegmentInt extends PartiallyConstructible {
16
16
  constructor(source?: DeepPartial<LineSegmentInt>);
17
17
  }
18
18
  /**
19
- Represents a line segment in 2D space
19
+ Represents a line segment in 2D space.
20
20
  */
21
21
  export declare class LineSegmentFloat extends PartiallyConstructible {
22
22
  /**
@@ -11,3 +11,4 @@ Image rotation.
11
11
  90 degrees counterclockwise rotation.
12
12
  */
13
13
  export type ImageRotation = "NONE" | "CLOCKWISE_90" | "CLOCKWISE_180" | "COUNTERCLOCKWISE_90";
14
+ export declare const ImageRotationValues: ImageRotation[];
@@ -1,40 +1,41 @@
1
1
  import { DeepPartial, PartiallyConstructible } from "../common";
2
2
  import { RawImage } from "../common";
3
3
  /**
4
- Type of the scanner internally to scan the license plate
4
+ Type of the scanner internally to scan the license plate.
5
5
 
6
6
  - `CLASSIC`:
7
- Classic scanning strategy
7
+ Classic scanning strategy.
8
8
  - `ML`:
9
- ML-based scanning strategy
9
+ ML-based scanning strategy.
10
10
  */
11
- export type ScannerStrategy = "CLASSIC" | "ML";
11
+ export type LicensePlateScannerStrategy = "CLASSIC" | "ML";
12
+ export declare const LicensePlateScannerStrategyValues: LicensePlateScannerStrategy[];
12
13
  /**
13
- Configuration for the license plate scanner
14
+ Configuration for the license plate scanner.
14
15
  */
15
- export declare class ScannerConfiguration extends PartiallyConstructible {
16
+ export declare class LicensePlateScannerConfiguration extends PartiallyConstructible {
16
17
  /**
17
- Maximum number of accumulated frames to inspect before actual result is returned
18
+ Maximum number of accumulated frames to inspect before actual result is returned.
18
19
  @defaultValue 3;
19
20
  */
20
21
  maximumNumberOfAccumulatedFrames: number;
21
22
  /**
22
- Minimum number of accumulated frames that have equal result
23
+ Minimum number of accumulated frames that have equal result.
23
24
  @defaultValue 2;
24
25
  */
25
26
  minimumNumberOfRequiredFramesWithEqualScanningResult: number;
26
27
  /**
27
- Strategy to use for scanning
28
+ Strategy to use for scanning.
28
29
  @defaultValue "ML";
29
30
  */
30
- scannerStrategy: ScannerStrategy;
31
- /** @param source {@displayType `DeepPartial<ScannerConfiguration>`} */
32
- constructor(source?: DeepPartial<ScannerConfiguration>);
31
+ scannerStrategy: LicensePlateScannerStrategy;
32
+ /** @param source {@displayType `DeepPartial<LicensePlateScannerConfiguration>`} */
33
+ constructor(source?: DeepPartial<LicensePlateScannerConfiguration>);
33
34
  }
34
35
  /**
35
- The result of the license plate scanning
36
+ The result of the license plate scanning.
36
37
  */
37
- export declare class ScannerResult extends PartiallyConstructible {
38
+ export declare class LicensePlateScannerResult extends PartiallyConstructible {
38
39
  /**
39
40
  Country code
40
41
  */
@@ -48,20 +49,20 @@ export declare class ScannerResult extends PartiallyConstructible {
48
49
  */
49
50
  readonly rawText: string;
50
51
  /**
51
- Recognition confidence
52
+ Recognition confidence.
52
53
  @defaultValue 0.0;
53
54
  */
54
55
  readonly confidence: number;
55
56
  /**
56
- Text validation result
57
+ Text validation result.
57
58
  @defaultValue false;
58
59
  */
59
60
  readonly validationSuccessful: boolean;
60
61
  /**
61
- The part of the image on which the plate was detected
62
+ The part of the image on which the plate was detected.
62
63
  @defaultValue null;
63
64
  */
64
65
  readonly croppedImage: RawImage | null;
65
- /** @param source {@displayType `DeepPartial<ScannerResult>`} */
66
- constructor(source?: DeepPartial<ScannerResult>);
66
+ /** @param source {@displayType `DeepPartial<LicensePlateScannerResult>`} */
67
+ constructor(source?: DeepPartial<LicensePlateScannerResult>);
67
68
  }