dynamsoft-capture-vision-react-native 3.4.1300 → 3.4.3010

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 (198) hide show
  1. package/LICENSE +4 -4
  2. package/README.md +62 -62
  3. package/android/README.md +14 -14
  4. package/android/build.gradle +167 -163
  5. package/android/gradle.properties +20 -20
  6. package/android/settings.gradle +5 -5
  7. package/android/src/main/AndroidManifest.xml +6 -6
  8. package/android/src/main/AndroidManifest_noPackage.xml +5 -5
  9. package/android/src/main/cpp/CMakeLists.txt +21 -21
  10. package/android/src/main/cpp/ImgHO.cpp +94 -94
  11. package/android/src/main/cpp/ImgHO.h +34 -34
  12. package/android/src/main/cpp/JsiCore.cpp +296 -296
  13. package/android/src/main/cpp/JsiCore.h +51 -51
  14. package/android/src/main/cpp/JsiCvr.cpp +332 -332
  15. package/android/src/main/cpp/JsiCvr.h +54 -54
  16. package/android/src/main/cpp/JsiDbr.cpp +283 -283
  17. package/android/src/main/cpp/JsiDbr.h +26 -26
  18. package/android/src/main/cpp/JsiDce.cpp +59 -59
  19. package/android/src/main/cpp/JsiDce.h +17 -17
  20. package/android/src/main/cpp/JsiDcp.cpp +51 -51
  21. package/android/src/main/cpp/JsiDcp.h +31 -31
  22. package/android/src/main/cpp/JsiDdn.cpp +50 -50
  23. package/android/src/main/cpp/JsiDdn.h +28 -28
  24. package/android/src/main/cpp/JsiDlr.cpp +60 -60
  25. package/android/src/main/cpp/JsiDlr.h +26 -26
  26. package/android/src/main/cpp/JsiUtility.cpp +604 -604
  27. package/android/src/main/cpp/JsiUtility.h +26 -26
  28. package/android/src/main/cpp/RawBuffer.cpp +23 -23
  29. package/android/src/main/cpp/RawBuffer.h +24 -24
  30. package/android/src/main/cpp/android_log.h +14 -14
  31. package/android/src/main/dysJniLibsFor86/debug/arm64-v8a/librn_dys.so +0 -0
  32. package/android/src/main/dysJniLibsFor86/debug/armeabi-v7a/librn_dys.so +0 -0
  33. package/android/src/main/dysJniLibsFor86/debug/x86/librn_dys.so +0 -0
  34. package/android/src/main/dysJniLibsFor86/debug/x86_64/librn_dys.so +0 -0
  35. package/android/src/main/dysJniLibsFor86/release/arm64-v8a/librn_dys.so +0 -0
  36. package/android/src/main/dysJniLibsFor86/release/armeabi-v7a/librn_dys.so +0 -0
  37. package/android/src/main/dysJniLibsFor86/release/x86/librn_dys.so +0 -0
  38. package/android/src/main/dysJniLibsFor86/release/x86_64/librn_dys.so +0 -0
  39. package/android/src/main/java/com/dynamsoft/reactnativelib/CVRModule.kt +137 -137
  40. package/android/src/main/java/com/dynamsoft/reactnativelib/CameraViewManager.kt +62 -62
  41. package/android/src/main/java/com/dynamsoft/reactnativelib/DCEModule.kt +125 -125
  42. package/android/src/main/java/com/dynamsoft/reactnativelib/DynamsoftBaseModule.kt +8 -8
  43. package/android/src/main/java/com/dynamsoft/reactnativelib/ISAModule.kt +73 -73
  44. package/android/src/main/java/com/dynamsoft/reactnativelib/ImageEditorViewManager.kt +14 -14
  45. package/android/src/main/java/com/dynamsoft/reactnativelib/ImageEditorViewModule.kt +35 -35
  46. package/android/src/main/java/com/dynamsoft/reactnativelib/ImageManagerModule.kt +15 -15
  47. package/android/src/main/java/com/dynamsoft/reactnativelib/LicenseModule.kt +29 -29
  48. package/android/src/main/java/com/dynamsoft/reactnativelib/MultiCrossFilterModule.kt +83 -83
  49. package/android/src/main/java/com/dynamsoft/reactnativelib/ReactNativeDcvPackage.kt +32 -32
  50. package/android/src/main/java/com/dynamsoft/reactnativelib/VersionsModule.kt +41 -41
  51. package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/Basic.kt +44 -44
  52. package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/ForCore.kt +50 -50
  53. package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/ForCvr.kt +129 -129
  54. package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/ForDBR.kt +157 -157
  55. package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/ForDCE.kt +110 -110
  56. package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/ForDCP.kt +49 -49
  57. package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/ForDDN.kt +85 -85
  58. package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/ForDLR.kt +72 -72
  59. package/android/src/main/java/com/dynamsoft/reactnativelib/basicutils/ImageUtil.kt +58 -58
  60. package/android/src/main/java/com/dynamsoft/reactnativelib/core/ImageSourceAdapterModuleImpl.kt +120 -120
  61. package/android/src/main/java/com/dynamsoft/reactnativelib/cvr/CaptureVisionRouterModuleImpl.kt +306 -306
  62. package/android/src/main/java/com/dynamsoft/reactnativelib/dce/CameraEnhancerModuleImpl.kt +247 -247
  63. package/android/src/main/java/com/dynamsoft/reactnativelib/dce/CameraLifeCycleOwner.java +14 -14
  64. package/android/src/main/java/com/dynamsoft/reactnativelib/dce/CameraViewManagerImpl.kt +77 -77
  65. package/android/src/main/java/com/dynamsoft/reactnativelib/dce/ImageEditorViewManagerImpl.kt +15 -15
  66. package/android/src/main/java/com/dynamsoft/reactnativelib/dce/ImageEditorViewModuleImpl.kt +110 -110
  67. package/android/src/main/java/com/dynamsoft/reactnativelib/dce/RNCameraView.kt +20 -20
  68. package/android/src/main/java/com/dynamsoft/reactnativelib/dce/RNImageEditorView.kt +19 -19
  69. package/android/src/main/java/com/dynamsoft/reactnativelib/license/LicenseModuleImpl.kt +39 -39
  70. package/android/src/main/java/com/dynamsoft/reactnativelib/utility/ImageManagerModuleImpl.kt +120 -120
  71. package/android/src/main/java/com/dynamsoft/reactnativelib/utility/MultiCrossFilterModuleImpl.kt +111 -111
  72. package/app.plugin.js +21 -21
  73. package/dynamsoft-capture-vision-react-native.podspec +24 -24
  74. package/ios/CPP/DSImageData+HostObject.h +18 -18
  75. package/ios/CPP/DSImageData+HostObject.mm +38 -38
  76. package/ios/CPP/ImageDataHostObject.cpp +87 -87
  77. package/ios/CPP/ImageDataHostObject.hpp +35 -35
  78. package/ios/CPP/MutableRawBuffer.cpp +23 -23
  79. package/ios/CPP/MutableRawBuffer.hpp +23 -23
  80. package/ios/CPP/RNDynamsoft+JSI.h +22 -22
  81. package/ios/CPP/RNDynamsoft+JSI.mm +303 -303
  82. package/ios/CPP/RNDynamsoft+Json.h +93 -93
  83. package/ios/CPP/RNDynamsoft+Json.m +733 -733
  84. package/ios/CPP/YeetJSIUtils.h +56 -56
  85. package/ios/CPP/YeetJSIUtils.mm +208 -208
  86. package/ios/RNDynamsoftCameraView.h +31 -31
  87. package/ios/RNDynamsoftCameraView.m +108 -108
  88. package/ios/RNDynamsoftCameraViewManager.h +14 -14
  89. package/ios/RNDynamsoftCameraViewManager.m +195 -195
  90. package/ios/RNDynamsoftCaptureVisionRouter.h +18 -18
  91. package/ios/RNDynamsoftCaptureVisionRouter.mm +532 -532
  92. package/ios/RNDynamsoftImageEditorView.h +17 -17
  93. package/ios/RNDynamsoftImageEditorView.m +25 -25
  94. package/ios/RNDynamsoftImageEditorViewManager.h +14 -14
  95. package/ios/RNDynamsoftImageEditorViewManager.mm +183 -183
  96. package/ios/RNDynamsoftImageManager.h +14 -14
  97. package/ios/RNDynamsoftImageManager.mm +369 -369
  98. package/ios/RNDynamsoftImageSourceAdapter.h +19 -19
  99. package/ios/RNDynamsoftImageSourceAdapter.mm +255 -255
  100. package/ios/RNDynamsoftLicense.h +14 -14
  101. package/ios/RNDynamsoftLicense.m +62 -62
  102. package/ios/RNDynamsoftMultiCrossFilter.h +14 -14
  103. package/ios/RNDynamsoftMultiCrossFilter.m +145 -145
  104. package/ios/RNDynamsoftVersions.h +13 -13
  105. package/ios/RNDynamsoftVersions.m +27 -27
  106. package/package.json +48 -48
  107. package/src/NativeDynamsoftVersionsModule.tsx +20 -20
  108. package/src/VersionsModule.tsx +7 -7
  109. package/src/core/CapturedResultBase.tsx +18 -18
  110. package/src/core/CapturedResultItem.tsx +23 -23
  111. package/src/core/CoreModule.tsx +9 -9
  112. package/src/core/DSRect.tsx +29 -29
  113. package/src/core/EnumCaptureResultItemType.tsx +52 -52
  114. package/src/core/EnumColourChannelUsageType.tsx +26 -26
  115. package/src/core/EnumCrossVerificationStatus.tsx +46 -46
  116. package/src/core/EnumGrayscaleEnhancementMode.tsx +46 -46
  117. package/src/core/EnumGrayscaleTransformationMode.tsx +35 -35
  118. package/src/core/EnumImageFileFormat.tsx +6 -6
  119. package/src/core/EnumPixelFormat.tsx +53 -53
  120. package/src/core/ImageData.tsx +87 -87
  121. package/src/core/ImageSourceAdapter.tsx +160 -160
  122. package/src/core/NativeDynamsoftImageSourceAdapterModule.tsx +29 -29
  123. package/src/core/Point.tsx +13 -13
  124. package/src/core/Quadrilateral.tsx +12 -12
  125. package/src/core/index.tsx +18 -18
  126. package/src/cvr/CaptureVisionRouter.tsx +683 -683
  127. package/src/cvr/CaptureVisionRouterModule.tsx +9 -9
  128. package/src/cvr/CapturedResult.tsx +123 -123
  129. package/src/cvr/CapturedResultFilter.tsx +13 -13
  130. package/src/cvr/CapturedResultReceiver.tsx +71 -71
  131. package/src/cvr/EnumPresetTemplate.tsx +81 -81
  132. package/src/cvr/NativeDynamsoftCaptureVisionRouterModule.tsx +25 -25
  133. package/src/cvr/SimplifiedCaptureVisionSettings.tsx +61 -61
  134. package/src/cvr/index.tsx +11 -11
  135. package/src/dbr/BarcodeDetails.tsx +51 -51
  136. package/src/dbr/BarcodeReaderModule.tsx +9 -9
  137. package/src/dbr/BarcodeResultItem.tsx +65 -65
  138. package/src/dbr/DecodedBarcodesResult.tsx +14 -14
  139. package/src/dbr/ECISegment.tsx +23 -23
  140. package/src/dbr/EnumBarcodeFormat.tsx +112 -112
  141. package/src/dbr/EnumDeblurMode.tsx +29 -29
  142. package/src/dbr/EnumLocalizationMode.tsx +27 -27
  143. package/src/dbr/EnumQRCodeErrorCorrectionLevel.tsx +6 -6
  144. package/src/dbr/SimplifiedBarcodeReaderSettings.tsx +80 -80
  145. package/src/dbr/index.tsx +9 -9
  146. package/src/dce/CameraEnhancer.tsx +254 -254
  147. package/src/dce/CameraEnhancerModule.tsx +9 -9
  148. package/src/dce/CameraView.tsx +100 -100
  149. package/src/dce/DynamsoftCameraViewNativeComponent.ts +96 -96
  150. package/src/dce/DynamsoftImageEditorViewNativeComponent.ts +9 -9
  151. package/src/dce/EnumCameraPosition.tsx +25 -25
  152. package/src/dce/EnumDrawingLayerId.tsx +17 -17
  153. package/src/dce/EnumEnhancedFeatures.tsx +24 -24
  154. package/src/dce/EnumFocusMode.tsx +6 -6
  155. package/src/dce/EnumResolution.tsx +8 -8
  156. package/src/dce/EnumTorchState.tsx +10 -10
  157. package/src/dce/FeedBack.tsx +28 -28
  158. package/src/dce/ImageEditorView.tsx +131 -131
  159. package/src/dce/NativeDynamsoftCameraViewModule.tsx +47 -47
  160. package/src/dce/NativeDynamsoftImageEditorViewModule.ts +9 -9
  161. package/src/dce/index.tsx +13 -13
  162. package/src/dcp/CodeParserDedicatorModule.tsx +9 -9
  163. package/src/dcp/CodeParserModule.tsx +9 -9
  164. package/src/dcp/EnumMappingStatus.tsx +14 -14
  165. package/src/dcp/EnumValidationStatus.tsx +14 -14
  166. package/src/dcp/ParsedResult.tsx +14 -14
  167. package/src/dcp/ParsedResultItem.tsx +50 -50
  168. package/src/dcp/index.tsx +8 -8
  169. package/src/ddn/DeskewedImageResultItem.tsx +40 -40
  170. package/src/ddn/DetectedQuadResultItem.tsx +31 -31
  171. package/src/ddn/DocumentNormalizerModule.tsx +9 -9
  172. package/src/ddn/EnhancedImageResultItem.tsx +20 -20
  173. package/src/ddn/EnumImageColourMode.tsx +14 -14
  174. package/src/ddn/ProcessedDocumentResult.tsx +27 -27
  175. package/src/ddn/SimplifiedDocumentNormalizerSettings.tsx +65 -65
  176. package/src/ddn/index.tsx +11 -11
  177. package/src/dip/ImageProcessingModule.tsx +9 -9
  178. package/src/dip/index.tsx +1 -1
  179. package/src/dlr/CharacterResult.tsx +28 -28
  180. package/src/dlr/LabelRecognizerModule.tsx +9 -9
  181. package/src/dlr/RecognizedTextLinesResult.tsx +19 -19
  182. package/src/dlr/SimplifiedLabelRecognizerSettings.tsx +33 -33
  183. package/src/dlr/TextLineResultItem.tsx +41 -41
  184. package/src/dlr/index.tsx +8 -8
  185. package/src/index.tsx +13 -13
  186. package/src/license/LicenseManager.tsx +49 -49
  187. package/src/license/LicenseModule.tsx +9 -9
  188. package/src/license/NativeDynamsoftLicenseModule.tsx +7 -7
  189. package/src/license/index.tsx +7 -7
  190. package/src/utility/CrossVerificationCriteria.tsx +11 -11
  191. package/src/utility/EnumFilterType.tsx +5 -5
  192. package/src/utility/ImageManager.tsx +348 -348
  193. package/src/utility/MultiFrameResultCrossFilter.tsx +183 -183
  194. package/src/utility/NativeDynamsoftImageManagerModule.tsx +7 -7
  195. package/src/utility/NativeDynamsoftMultiCrossFilterModule.tsx +18 -18
  196. package/src/utility/UtilityModule.tsx +9 -9
  197. package/src/utility/index.tsx +4 -4
  198. package/android/.gitignore +0 -4
@@ -1,112 +1,112 @@
1
- /**
2
- * EnumBarcodeFormat defines the supported barcode formats.
3
- * Using or operator can enable multiple Formats.
4
- * <p>Code Snippet:</p>
5
- *
6
- * ```
7
- * let settings: SimplifiedCaptureVisionSettings = ...;
8
- * settings.barcodeSettings.barcodeFormatIds = EnumBarcodeFormat.BF_ONED | EnumBarcodeFormat.BF_QR_CODE; //Means decode OneD and QRCode
9
- * ```
10
- * @see SimplifiedBarcodeReaderSettings.barcodeFormatIds
11
- * */
12
- const EnumBarcodeFormat = {
13
- /**No barcode format in BarcodeFormat*/
14
- BF_NULL:BigInt(0x00),
15
- /**All supported formats in BarcodeFormat*/
16
- BF_ALL:BigInt(0xFFFFFFFEFFFFFFFFn),
17
- BF_DEFAULT:BigInt(0xFE3BFFFF),
18
- /**Combined value of BF_CODABAR, BF_CODE_128, BF_CODE_39, BF_CODE_39_Extended, BF_CODE_93, BF_EAN_13, BF_EAN_8, INDUSTRIAL_25, BF_ITF, BF_UPC_A, BF_UPC_E, BF_MSI_CODE; */
19
- BF_ONED:BigInt(0x003007FF),
20
- /**Combined value of BF_GS1_DATABAR_OMNIDIRECTIONAL, BF_GS1_DATABAR_TRUNCATED, BF_GS1_DATABAR_STACKED, BF_GS1_DATABAR_STACKED_OMNIDIRECTIONAL, BF_GS1_DATABAR_EXPANDED, BF_GS1_DATABAR_EXPANDED_STACKED, BF_GS1_DATABAR_LIMITED*/
21
- BF_GS1_DATABAR:BigInt(0x0003F800),
22
- /**Code 39 */
23
- BF_CODE_39:BigInt(0x1),
24
- /**Code 128 */
25
- BF_CODE_128:BigInt(0x2),
26
- /**Code 93 */
27
- BF_CODE_93:BigInt(0x4),
28
- /**Codabar */
29
- BF_CODABAR:BigInt(0x8),
30
- /**Interleaved 2 of 5 */
31
- BF_ITF:BigInt(0x10),
32
- /**EAN-13 */
33
- BF_EAN_13:BigInt(0x20),
34
- /**EAN-8 */
35
- BF_EAN_8:BigInt(0x40),
36
- /**UPC-A */
37
- BF_UPC_A:BigInt(0x80),
38
- /**UPC-E */
39
- BF_UPC_E:BigInt(0x100),
40
- /**Industrial 2 of 5 */
41
- BF_INDUSTRIAL_25:BigInt(0x200),
42
- /**CODE39 Extended */
43
- BF_CODE_39_EXTENDED:BigInt(0x400),
44
- /**GS1 Databar Omnidirectional*/
45
- BF_GS1_DATABAR_OMNIDIRECTIONAL:BigInt(0x800),
46
- /**GS1 Databar Truncated*/
47
- BF_GS1_DATABAR_TRUNCATED:BigInt(0x1000),
48
- /**GS1 Databar Stacked*/
49
- BF_GS1_DATABAR_STACKED:BigInt(0x2000),
50
- /**GS1 Databar Stacked Omnidirectional*/
51
- BF_GS1_DATABAR_STACKED_OMNIDIRECTIONAL:BigInt(0x4000),
52
- /**GS1 Databar Expanded*/
53
- BF_GS1_DATABAR_EXPANDED:BigInt(0x8000),
54
- /**GS1 Databar Expaned Stacked*/
55
- BF_GS1_DATABAR_EXPANDED_STACKED:BigInt(0x10000),
56
- /**GS1 Databar Limited*/
57
- BF_GS1_DATABAR_LIMITED:BigInt(0x20000),
58
- /**Patch code. */
59
- BF_PATCHCODE:BigInt(0x00040000),
60
- /**PDF417 */
61
- BF_CODE_32:BigInt(0x01000000),
62
- BF_PDF417:BigInt(0x02000000),
63
- /**QRCode */
64
- BF_QR_CODE:BigInt(0x04000000),
65
- /**DataMatrix */
66
- BF_DATAMATRIX:BigInt(0x08000000),
67
- /**AZTEC */
68
- BF_AZTEC:BigInt(0x10000000),
69
- /**MAXICODE */
70
- BF_MAXICODE:BigInt(0x20000000),
71
- /**Micro QR Code*/
72
- BF_MICRO_QR:BigInt(0x40000000),
73
- /**Micro PDF417*/
74
- BF_MICRO_PDF417:BigInt(0x00080000),
75
- /**GS1 Composite Code*/
76
- BF_GS1_COMPOSITE:BigInt(0x80000000),
77
- /**MSI Code*/
78
- BF_MSI_CODE:BigInt(0x100000),
79
- /*Code 11*/
80
- BF_CODE_11:BigInt(0x200000),
81
- BF_TWO_DIGIT_ADD_ON:BigInt(0x400000),
82
- BF_FIVE_DIGIT_ADD_ON:BigInt(0x800000),
83
- BF_MATRIX_25:BigInt(0x1000000000),
84
- BF_TELEPEN:BigInt(0x2000000000),
85
- BF_TELEPEN_NUMERIC:BigInt(0x4000000000),
86
-
87
- /**Combined value of BF2_USPSINTELLIGENTMAIL, BF2_POSTNET, BF2_PLANET, BF2_AUSTRALIANPOST, BF2_RM4SCC.*/
88
- BF_POSTALCODE:BigInt(0x3F0000000000000),
89
- /**Nonstandard barcode */
90
- BF_NONSTANDARD_BARCODE:BigInt(0x100000000),
91
- /**USPS Intelligent Mail.*/
92
- BF_USPSINTELLIGENTMAIL:BigInt(0x10000000000000),
93
- /**Postnet.*/
94
- BF_POSTNET:BigInt(0x20000000000000n),
95
- /**Planet.*/
96
- BF_PLANET:BigInt(0x40000000000000n),
97
- /**Australian Post.*/
98
- BF_AUSTRALIANPOST:BigInt(0x80000000000000n),
99
- /**Royal Mail 4-State Customer Barcode.*/
100
- BF_RM4SCC:BigInt(0x100000000000000n),
101
- BF_KIX:BigInt(0x200000000000000n),
102
- /**DotCode.*/
103
- BF_DOTCODE:BigInt(0x200000000),
104
- /**_PHARMACODE_ONE_TRACK.*/
105
- BF_PHARMACODE_ONE_TRACK:BigInt(0x400000000),
106
- /**PHARMACODE_TWO_TRACK.*/
107
- BF_PHARMACODE_TWO_TRACK:BigInt(0x800000000),
108
- /**PHARMACODE.*/
109
- BF_PHARMACODE:BigInt(0xC00000000)
110
- }
111
- type EnumBarcodeFormat = bigint;
112
- export { EnumBarcodeFormat };
1
+ /**
2
+ * EnumBarcodeFormat defines the supported barcode formats.
3
+ * Using or operator can enable multiple Formats.
4
+ * <p>Code Snippet:</p>
5
+ *
6
+ * ```
7
+ * let settings: SimplifiedCaptureVisionSettings = ...;
8
+ * settings.barcodeSettings.barcodeFormatIds = EnumBarcodeFormat.BF_ONED | EnumBarcodeFormat.BF_QR_CODE; //Means decode OneD and QRCode
9
+ * ```
10
+ * @see SimplifiedBarcodeReaderSettings.barcodeFormatIds
11
+ * */
12
+ const EnumBarcodeFormat = {
13
+ /**No barcode format in BarcodeFormat*/
14
+ BF_NULL:BigInt(0x00),
15
+ /**All supported formats in BarcodeFormat*/
16
+ BF_ALL:BigInt(0xFFFFFFFEFFFFFFFFn),
17
+ BF_DEFAULT:BigInt(0xFE3BFFFF),
18
+ /**Combined value of BF_CODABAR, BF_CODE_128, BF_CODE_39, BF_CODE_39_Extended, BF_CODE_93, BF_EAN_13, BF_EAN_8, INDUSTRIAL_25, BF_ITF, BF_UPC_A, BF_UPC_E, BF_MSI_CODE; */
19
+ BF_ONED:BigInt(0x003007FF),
20
+ /**Combined value of BF_GS1_DATABAR_OMNIDIRECTIONAL, BF_GS1_DATABAR_TRUNCATED, BF_GS1_DATABAR_STACKED, BF_GS1_DATABAR_STACKED_OMNIDIRECTIONAL, BF_GS1_DATABAR_EXPANDED, BF_GS1_DATABAR_EXPANDED_STACKED, BF_GS1_DATABAR_LIMITED*/
21
+ BF_GS1_DATABAR:BigInt(0x0003F800),
22
+ /**Code 39 */
23
+ BF_CODE_39:BigInt(0x1),
24
+ /**Code 128 */
25
+ BF_CODE_128:BigInt(0x2),
26
+ /**Code 93 */
27
+ BF_CODE_93:BigInt(0x4),
28
+ /**Codabar */
29
+ BF_CODABAR:BigInt(0x8),
30
+ /**Interleaved 2 of 5 */
31
+ BF_ITF:BigInt(0x10),
32
+ /**EAN-13 */
33
+ BF_EAN_13:BigInt(0x20),
34
+ /**EAN-8 */
35
+ BF_EAN_8:BigInt(0x40),
36
+ /**UPC-A */
37
+ BF_UPC_A:BigInt(0x80),
38
+ /**UPC-E */
39
+ BF_UPC_E:BigInt(0x100),
40
+ /**Industrial 2 of 5 */
41
+ BF_INDUSTRIAL_25:BigInt(0x200),
42
+ /**CODE39 Extended */
43
+ BF_CODE_39_EXTENDED:BigInt(0x400),
44
+ /**GS1 Databar Omnidirectional*/
45
+ BF_GS1_DATABAR_OMNIDIRECTIONAL:BigInt(0x800),
46
+ /**GS1 Databar Truncated*/
47
+ BF_GS1_DATABAR_TRUNCATED:BigInt(0x1000),
48
+ /**GS1 Databar Stacked*/
49
+ BF_GS1_DATABAR_STACKED:BigInt(0x2000),
50
+ /**GS1 Databar Stacked Omnidirectional*/
51
+ BF_GS1_DATABAR_STACKED_OMNIDIRECTIONAL:BigInt(0x4000),
52
+ /**GS1 Databar Expanded*/
53
+ BF_GS1_DATABAR_EXPANDED:BigInt(0x8000),
54
+ /**GS1 Databar Expaned Stacked*/
55
+ BF_GS1_DATABAR_EXPANDED_STACKED:BigInt(0x10000),
56
+ /**GS1 Databar Limited*/
57
+ BF_GS1_DATABAR_LIMITED:BigInt(0x20000),
58
+ /**Patch code. */
59
+ BF_PATCHCODE:BigInt(0x00040000),
60
+ /**PDF417 */
61
+ BF_CODE_32:BigInt(0x01000000),
62
+ BF_PDF417:BigInt(0x02000000),
63
+ /**QRCode */
64
+ BF_QR_CODE:BigInt(0x04000000),
65
+ /**DataMatrix */
66
+ BF_DATAMATRIX:BigInt(0x08000000),
67
+ /**AZTEC */
68
+ BF_AZTEC:BigInt(0x10000000),
69
+ /**MAXICODE */
70
+ BF_MAXICODE:BigInt(0x20000000),
71
+ /**Micro QR Code*/
72
+ BF_MICRO_QR:BigInt(0x40000000),
73
+ /**Micro PDF417*/
74
+ BF_MICRO_PDF417:BigInt(0x00080000),
75
+ /**GS1 Composite Code*/
76
+ BF_GS1_COMPOSITE:BigInt(0x80000000),
77
+ /**MSI Code*/
78
+ BF_MSI_CODE:BigInt(0x100000),
79
+ /*Code 11*/
80
+ BF_CODE_11:BigInt(0x200000),
81
+ BF_TWO_DIGIT_ADD_ON:BigInt(0x400000),
82
+ BF_FIVE_DIGIT_ADD_ON:BigInt(0x800000),
83
+ BF_MATRIX_25:BigInt(0x1000000000),
84
+ BF_TELEPEN:BigInt(0x2000000000),
85
+ BF_TELEPEN_NUMERIC:BigInt(0x4000000000),
86
+
87
+ /**Combined value of BF2_USPSINTELLIGENTMAIL, BF2_POSTNET, BF2_PLANET, BF2_AUSTRALIANPOST, BF2_RM4SCC.*/
88
+ BF_POSTALCODE:BigInt(0x3F0000000000000),
89
+ /**Nonstandard barcode */
90
+ BF_NONSTANDARD_BARCODE:BigInt(0x100000000),
91
+ /**USPS Intelligent Mail.*/
92
+ BF_USPSINTELLIGENTMAIL:BigInt(0x10000000000000),
93
+ /**Postnet.*/
94
+ BF_POSTNET:BigInt(0x20000000000000n),
95
+ /**Planet.*/
96
+ BF_PLANET:BigInt(0x40000000000000n),
97
+ /**Australian Post.*/
98
+ BF_AUSTRALIANPOST:BigInt(0x80000000000000n),
99
+ /**Royal Mail 4-State Customer Barcode.*/
100
+ BF_RM4SCC:BigInt(0x100000000000000n),
101
+ BF_KIX:BigInt(0x200000000000000n),
102
+ /**DotCode.*/
103
+ BF_DOTCODE:BigInt(0x200000000),
104
+ /**_PHARMACODE_ONE_TRACK.*/
105
+ BF_PHARMACODE_ONE_TRACK:BigInt(0x400000000),
106
+ /**PHARMACODE_TWO_TRACK.*/
107
+ BF_PHARMACODE_TWO_TRACK:BigInt(0x800000000),
108
+ /**PHARMACODE.*/
109
+ BF_PHARMACODE:BigInt(0xC00000000)
110
+ }
111
+ type EnumBarcodeFormat = bigint;
112
+ export { EnumBarcodeFormat };
@@ -1,29 +1,29 @@
1
- /**
2
- * DeblurMode specifies the image processing algorithms applied to the localized zones containing barcodes,
3
- * aimed at generating a binary image for extracting barcode data during the final phase of the barcode decoding process.
4
- * <p>
5
- * @see {@link SimplifiedBarcodeReaderSettings.deblurModes}
6
- * */
7
- export enum EnumDeblurMode {
8
- DM_END = -1,
9
- /** Skips the process, no deblurring is applied. */
10
- DM_SKIP = 0x0,
11
- /** Applies a direct binarization algorithm for generating the binary image. */
12
- DM_DIRECT_BINARIZATION = 0x1,
13
- /** Utilizes a threshold binarization algorithm for generating the binary image, dynamically determining the threshold based on the image content. */
14
- DM_THRESHOLD_BINARIZATION = 0x2,
15
- /** Employs a gray equalization algorithm to adjust the contrast and brightness, improving the clarity of the gray-scale image before binarization. */
16
- DM_GRAY_EQUALIZATION = 0x4,
17
- /** Implements a smoothing algorithm to reduce noise and artifacts, smoothing out the gray-scale image before binarization. */
18
- DM_SMOOTHING = 0x8,
19
- /** Uses a morphing algorithm to enhance the gray-scale image before binarization. */
20
- DM_MORPHING = 0x10,
21
- /** Engages in a deep analysis of the grayscale image based on the barcode format to intelligently generate the optimized binary image, tailored to complex or severely blurred images. */
22
- DM_DEEP_ANALYSIS = 0x20,
23
- /** Applies a sharpening algorithm to enhance the edges and details of the barcode, making it more distinguishable on the gray-scale image before binarization. */
24
- DM_SHARPENING = 0x40,
25
- /** Decodes the barcodes based on the binary image obtained during the localization process. */
26
- DM_BASED_ON_LOC_BIN = 0x80,
27
- /** Combines sharpening and smoothing algorithms for a comprehensive deblurring effect, targeting both clarity and smoothness of the gray-scale image before binarization. */
28
- DM_SHARPENING_SMOOTHING = 0x100,
29
- }
1
+ /**
2
+ * DeblurMode specifies the image processing algorithms applied to the localized zones containing barcodes,
3
+ * aimed at generating a binary image for extracting barcode data during the final phase of the barcode decoding process.
4
+ * <p>
5
+ * @see {@link SimplifiedBarcodeReaderSettings.deblurModes}
6
+ * */
7
+ export enum EnumDeblurMode {
8
+ DM_END = -1,
9
+ /** Skips the process, no deblurring is applied. */
10
+ DM_SKIP = 0x0,
11
+ /** Applies a direct binarization algorithm for generating the binary image. */
12
+ DM_DIRECT_BINARIZATION = 0x1,
13
+ /** Utilizes a threshold binarization algorithm for generating the binary image, dynamically determining the threshold based on the image content. */
14
+ DM_THRESHOLD_BINARIZATION = 0x2,
15
+ /** Employs a gray equalization algorithm to adjust the contrast and brightness, improving the clarity of the gray-scale image before binarization. */
16
+ DM_GRAY_EQUALIZATION = 0x4,
17
+ /** Implements a smoothing algorithm to reduce noise and artifacts, smoothing out the gray-scale image before binarization. */
18
+ DM_SMOOTHING = 0x8,
19
+ /** Uses a morphing algorithm to enhance the gray-scale image before binarization. */
20
+ DM_MORPHING = 0x10,
21
+ /** Engages in a deep analysis of the grayscale image based on the barcode format to intelligently generate the optimized binary image, tailored to complex or severely blurred images. */
22
+ DM_DEEP_ANALYSIS = 0x20,
23
+ /** Applies a sharpening algorithm to enhance the edges and details of the barcode, making it more distinguishable on the gray-scale image before binarization. */
24
+ DM_SHARPENING = 0x40,
25
+ /** Decodes the barcodes based on the binary image obtained during the localization process. */
26
+ DM_BASED_ON_LOC_BIN = 0x80,
27
+ /** Combines sharpening and smoothing algorithms for a comprehensive deblurring effect, targeting both clarity and smoothness of the gray-scale image before binarization. */
28
+ DM_SHARPENING_SMOOTHING = 0x100,
29
+ }
@@ -1,27 +1,27 @@
1
- /**
2
- * LocalizationMode specifies the strategies used to identify the locations of barcodes within an image.
3
- * @see {@link SimplifiedBarcodeReaderSettings.localizationModes}
4
- * */
5
- export enum EnumLocalizationMode {
6
- LM_END = -1,
7
- /** Omits the localization process entirely. */
8
- LM_SKIP = 0x0,
9
- /** Automatic localization mode selection; not yet implemented. */
10
- LM_AUTO = 0x1,
11
- /** Identifies barcodes by finding connected blocks, offering optimal results, especially recommended for highest priority in most scenarios. */
12
- LM_CONNECTED_BLOCKS = 0x2,
13
- /** Detects barcodes through analysis of patterns of contiguous black and white regions, tailored for QR Codes and DataMatrix codes. */
14
- LM_STATISTICS = 0x4,
15
- /** Locates barcodes by identifying linear patterns, designed primarily for 1D barcodes and PDF417 codes. */
16
- LM_LINES = 0x8,
17
- /** Provides rapid barcode localization, suited for interactive applications where speed is crucial. */
18
- LM_SCAN_DIRECTLY = 0x10,
19
- /** Targets barcode localization through detection of specific mark groups, optimized for Direct Part Marking (DPM) codes. */
20
- LM_STATISTICS_MARKS = 0x20,
21
- /** Combines methods of locating connected blocks and linear patterns to efficiently localize postal codes. */
22
- LM_STATISTICS_POSTAL_CODE = 0x40,
23
- /** Initiates barcode localization from the image center, facilitating faster detection in certain layouts. */
24
- LM_CENTRE = 0x80,
25
- /** Specialized for quick localization of 1D barcodes, enhancing performance in fast-scan scenarios. */
26
- LM_ONED_FAST_SCAN = 0x100,
27
- }
1
+ /**
2
+ * LocalizationMode specifies the strategies used to identify the locations of barcodes within an image.
3
+ * @see {@link SimplifiedBarcodeReaderSettings.localizationModes}
4
+ * */
5
+ export enum EnumLocalizationMode {
6
+ LM_END = -1,
7
+ /** Omits the localization process entirely. */
8
+ LM_SKIP = 0x0,
9
+ /** Automatic localization mode selection; not yet implemented. */
10
+ LM_AUTO = 0x1,
11
+ /** Identifies barcodes by finding connected blocks, offering optimal results, especially recommended for highest priority in most scenarios. */
12
+ LM_CONNECTED_BLOCKS = 0x2,
13
+ /** Detects barcodes through analysis of patterns of contiguous black and white regions, tailored for QR Codes and DataMatrix codes. */
14
+ LM_STATISTICS = 0x4,
15
+ /** Locates barcodes by identifying linear patterns, designed primarily for 1D barcodes and PDF417 codes. */
16
+ LM_LINES = 0x8,
17
+ /** Provides rapid barcode localization, suited for interactive applications where speed is crucial. */
18
+ LM_SCAN_DIRECTLY = 0x10,
19
+ /** Targets barcode localization through detection of specific mark groups, optimized for Direct Part Marking (DPM) codes. */
20
+ LM_STATISTICS_MARKS = 0x20,
21
+ /** Combines methods of locating connected blocks and linear patterns to efficiently localize postal codes. */
22
+ LM_STATISTICS_POSTAL_CODE = 0x40,
23
+ /** Initiates barcode localization from the image center, facilitating faster detection in certain layouts. */
24
+ LM_CENTRE = 0x80,
25
+ /** Specialized for quick localization of 1D barcodes, enhancing performance in fast-scan scenarios. */
26
+ LM_ONED_FAST_SCAN = 0x100,
27
+ }
@@ -1,6 +1,6 @@
1
- export enum EnumQRCodeErrorCorrectionLevel {
2
- QRECL_ERROR_CORRECTION_H = 0,
3
- QRECL_ERROR_CORRECTION_L = 1,
4
- QRECL_ERROR_CORRECTION_M = 2,
5
- QRECL_ERROR_CORRECTION_Q = 3,
6
- }
1
+ export enum EnumQRCodeErrorCorrectionLevel {
2
+ QRECL_ERROR_CORRECTION_H = 0,
3
+ QRECL_ERROR_CORRECTION_L = 1,
4
+ QRECL_ERROR_CORRECTION_M = 2,
5
+ QRECL_ERROR_CORRECTION_Q = 3,
6
+ }
@@ -1,80 +1,80 @@
1
- import type {EnumBarcodeFormat} from "./EnumBarcodeFormat";
2
- import type {EnumLocalizationMode} from "./EnumLocalizationMode";
3
- import type {EnumDeblurMode} from "./EnumDeblurMode";
4
- import type {EnumGrayscaleTransformationMode} from "../core/EnumGrayscaleTransformationMode";
5
- import type {EnumGrayscaleEnhancementMode} from "../core/EnumGrayscaleEnhancementMode";
6
-
7
- /**
8
- * This interface defines simplified settings for barcode reading tasks.
9
- * */
10
- export interface SimplifiedBarcodeReaderSettings {
11
- /**
12
- * A combined value of enumeration BarcodeFormat to specify the targeting barcode formats.
13
- * @see {@link EnumBarcodeFormat}
14
- * */
15
- barcodeFormatIds?: EnumBarcodeFormat | bigint;
16
-
17
- /**@internal*/
18
- _barcodeFormatIdsNumberString?: string;
19
-
20
- /**
21
- * Set the expected barcode count. The default value is 0.
22
- * @remarks
23
- * - Set expectedBarcodesCount to 0 if the barcode count is unknown. The library will try to find at least 1 barcode.
24
- * - Set expectedBarcodesCount to 1 to reach the highest speed for processing single barcode.
25
- * - Set expectedBarcodesCount to “n” if there will be “n” barcodes to process from an image.
26
- * - Set expectedBarcodesCount to the highest expected value if there exists multiple barcodes but the exact count is not confirmed.
27
- * */
28
- expectedBarcodesCount?: number;
29
-
30
- /**
31
- * Set the minimum result confidence to filter out the low confidence results. The default value is 30.
32
- * */
33
- minResultConfidence?: number;
34
-
35
- /**
36
- * Set the minimum barcode text length to filter out the unqualified results.
37
- * */
38
- minBarcodeTextLength?: number;
39
-
40
- /**
41
- * Set the RegEx pattern of the barcode text to filter out the unqualified results.
42
- * */
43
- barcodeTextRegExPattern?: string;
44
- maxThreadsInOneTask?: number;
45
-
46
- /**
47
- * Set the location modes with an array of enumeration LocalizationMode.
48
- * View the reference page of LocalizationModes for more detail about location modes.
49
- * @see {@link EnumLocalizationMode}
50
- * */
51
- localizationModes?: Array<EnumLocalizationMode> | Int32Array;
52
-
53
- /**
54
- * Set the deblur modes with an array of enumeration DeblurMode.
55
- * View the reference page of DeblurModes for more detail about deblur modes.
56
- * @see {@link EnumDeblurMode}
57
- * */
58
- deblurModes?: Array<EnumDeblurMode> | Int32Array;
59
-
60
- /**
61
- * Set the grayscale transformation modes with an array of enumeration GrayscaleTransformationMode.
62
- * View the reference page of GrayscaleTransformationModes for more detail about grayscale transformation modes.
63
- * @see {@link EnumGrayscaleTransformationMode}
64
- * */
65
- grayscaleTransformationModes?: Array<EnumGrayscaleTransformationMode> | Int32Array;
66
-
67
- /**
68
- * Set the grayscale enhancement modes with an array of enumeration GrayscaleEnhancementMode.
69
- * View the reference page of GrayscaleEnhancementModes for more detail about grayscale enhancement modes.
70
- * @see {@link EnumGrayscaleEnhancementMode}
71
- * */
72
- grayscaleEnhancementModes?: Array<EnumGrayscaleEnhancementMode> | Int32Array;
73
-
74
- /**
75
- * Set the threshold for scaling down the input image during barcode localization.
76
- * If the shorter edge size of the image is larger than this threshold, the original may be scaled down to reduce processing time.
77
- * The default value is 2300.
78
- * */
79
- scaleDownThreshold?: number;
80
- }
1
+ import type {EnumBarcodeFormat} from "./EnumBarcodeFormat";
2
+ import type {EnumLocalizationMode} from "./EnumLocalizationMode";
3
+ import type {EnumDeblurMode} from "./EnumDeblurMode";
4
+ import type {EnumGrayscaleTransformationMode} from "../core/EnumGrayscaleTransformationMode";
5
+ import type {EnumGrayscaleEnhancementMode} from "../core/EnumGrayscaleEnhancementMode";
6
+
7
+ /**
8
+ * This interface defines simplified settings for barcode reading tasks.
9
+ * */
10
+ export interface SimplifiedBarcodeReaderSettings {
11
+ /**
12
+ * A combined value of enumeration BarcodeFormat to specify the targeting barcode formats.
13
+ * @see {@link EnumBarcodeFormat}
14
+ * */
15
+ barcodeFormatIds?: EnumBarcodeFormat | bigint;
16
+
17
+ /**@internal*/
18
+ _barcodeFormatIdsNumberString?: string;
19
+
20
+ /**
21
+ * Set the expected barcode count. The default value is 0.
22
+ * @remarks
23
+ * - Set expectedBarcodesCount to 0 if the barcode count is unknown. The library will try to find at least 1 barcode.
24
+ * - Set expectedBarcodesCount to 1 to reach the highest speed for processing single barcode.
25
+ * - Set expectedBarcodesCount to “n” if there will be “n” barcodes to process from an image.
26
+ * - Set expectedBarcodesCount to the highest expected value if there exists multiple barcodes but the exact count is not confirmed.
27
+ * */
28
+ expectedBarcodesCount?: number;
29
+
30
+ /**
31
+ * Set the minimum result confidence to filter out the low confidence results. The default value is 30.
32
+ * */
33
+ minResultConfidence?: number;
34
+
35
+ /**
36
+ * Set the minimum barcode text length to filter out the unqualified results.
37
+ * */
38
+ minBarcodeTextLength?: number;
39
+
40
+ /**
41
+ * Set the RegEx pattern of the barcode text to filter out the unqualified results.
42
+ * */
43
+ barcodeTextRegExPattern?: string;
44
+ maxThreadsInOneTask?: number;
45
+
46
+ /**
47
+ * Set the location modes with an array of enumeration LocalizationMode.
48
+ * View the reference page of LocalizationModes for more detail about location modes.
49
+ * @see {@link EnumLocalizationMode}
50
+ * */
51
+ localizationModes?: Array<EnumLocalizationMode> | Int32Array;
52
+
53
+ /**
54
+ * Set the deblur modes with an array of enumeration DeblurMode.
55
+ * View the reference page of DeblurModes for more detail about deblur modes.
56
+ * @see {@link EnumDeblurMode}
57
+ * */
58
+ deblurModes?: Array<EnumDeblurMode> | Int32Array;
59
+
60
+ /**
61
+ * Set the grayscale transformation modes with an array of enumeration GrayscaleTransformationMode.
62
+ * View the reference page of GrayscaleTransformationModes for more detail about grayscale transformation modes.
63
+ * @see {@link EnumGrayscaleTransformationMode}
64
+ * */
65
+ grayscaleTransformationModes?: Array<EnumGrayscaleTransformationMode> | Int32Array;
66
+
67
+ /**
68
+ * Set the grayscale enhancement modes with an array of enumeration GrayscaleEnhancementMode.
69
+ * View the reference page of GrayscaleEnhancementModes for more detail about grayscale enhancement modes.
70
+ * @see {@link EnumGrayscaleEnhancementMode}
71
+ * */
72
+ grayscaleEnhancementModes?: Array<EnumGrayscaleEnhancementMode> | Int32Array;
73
+
74
+ /**
75
+ * Set the threshold for scaling down the input image during barcode localization.
76
+ * If the shorter edge size of the image is larger than this threshold, the original may be scaled down to reduce processing time.
77
+ * The default value is 2300.
78
+ * */
79
+ scaleDownThreshold?: number;
80
+ }
package/src/dbr/index.tsx CHANGED
@@ -1,10 +1,10 @@
1
- export * from "./BarcodeReaderModule"
2
- export * from "./BarcodeResultItem"
3
- export * from "./DecodedBarcodesResult"
4
- export * from "./EnumBarcodeFormat"
5
- export * from "./EnumDeblurMode"
6
- export * from "./EnumLocalizationMode"
7
- export * from "./BarcodeDetails"
8
- export * from "./EnumQRCodeErrorCorrectionLevel"
9
- export type {SimplifiedBarcodeReaderSettings} from "./SimplifiedBarcodeReaderSettings"
1
+ export * from "./BarcodeReaderModule"
2
+ export * from "./BarcodeResultItem"
3
+ export * from "./DecodedBarcodesResult"
4
+ export * from "./EnumBarcodeFormat"
5
+ export * from "./EnumDeblurMode"
6
+ export * from "./EnumLocalizationMode"
7
+ export * from "./BarcodeDetails"
8
+ export * from "./EnumQRCodeErrorCorrectionLevel"
9
+ export type {SimplifiedBarcodeReaderSettings} from "./SimplifiedBarcodeReaderSettings"
10
10
  export * from "./ECISegment"