dynamsoft-capture-vision-bundle 3.2.5000__cp310-cp310-win_amd64.whl → 3.4.1000__cp310-cp310-win_amd64.whl
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.
- dynamsoft_capture_vision_bundle/ConfusableChars.data +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftBarcodeReaderx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftCaptureVisionRouterx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftCodeParserDedicatorx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftCodeParserx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftCorex64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftDocumentNormalizerx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftIdentityUtilityx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftImageProcessingx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftLabelRecognizerx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftLicensex64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftNeuralNetworkx64.dll +0 -0
- dynamsoft_capture_vision_bundle/DynamsoftUtilityx64.dll +0 -0
- dynamsoft_capture_vision_bundle/Models/Code128Decoder.data +0 -0
- dynamsoft_capture_vision_bundle/Models/Code39ITFDecoder.data +0 -0
- dynamsoft_capture_vision_bundle/Models/DataMatrixQRCodeDeblur.data +0 -0
- dynamsoft_capture_vision_bundle/Models/DataMatrixQRCodeLocalization.data +0 -0
- dynamsoft_capture_vision_bundle/Models/EAN13Decoder.data +0 -0
- dynamsoft_capture_vision_bundle/Models/LetterCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/LowercaseCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/MRZCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/MRZLocalization.data +0 -0
- dynamsoft_capture_vision_bundle/Models/MRZTextLineRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/NumberCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/NumberLetterCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/NumberLowercaseCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/NumberUppercaseCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/OneDDeblur.data +0 -0
- dynamsoft_capture_vision_bundle/Models/OneDLocalization.data +0 -0
- dynamsoft_capture_vision_bundle/Models/PDF417Deblur.data +0 -0
- dynamsoft_capture_vision_bundle/Models/PDF417Localization.data +0 -0
- dynamsoft_capture_vision_bundle/Models/UppercaseCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/Models/VINCharRecognition.data +0 -0
- dynamsoft_capture_vision_bundle/OverlappingChars.data +0 -0
- dynamsoft_capture_vision_bundle/ParserResources/AADHAAR.data +0 -0
- dynamsoft_capture_vision_bundle/ParserResources/AAMVA_DL_ID.data +1 -0
- dynamsoft_capture_vision_bundle/ParserResources/GS1_AI.data +66 -0
- dynamsoft_capture_vision_bundle/ParserResources/MRTD.data +1 -0
- dynamsoft_capture_vision_bundle/ParserResources/SOUTH_AFRICA_DL.data +1 -0
- dynamsoft_capture_vision_bundle/ParserResources/VIN.data +0 -0
- dynamsoft_capture_vision_bundle/Templates/MRZScanner.json +125 -16
- dynamsoft_capture_vision_bundle/_DynamsoftBarcodeReader.cp310-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftCaptureVisionRouter.cp310-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftCodeParser.cp310-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftCodeParserDedicator.cp310-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftCore.cp310-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftDocumentNormalizer.cp310-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftIdentityUtility.cp310-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftImageProcessing.cp310-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftLabelRecognizer.cp310-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftLicense.cp310-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/_DynamsoftUtility.cp310-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/__init__.py +2 -2
- dynamsoft_capture_vision_bundle/core.py +72 -3
- dynamsoft_capture_vision_bundle/cvr.py +21 -11
- dynamsoft_capture_vision_bundle/dbr.py +72 -3
- dynamsoft_capture_vision_bundle/dcp.py +2 -2
- dynamsoft_capture_vision_bundle/dcpd.py +2 -2
- dynamsoft_capture_vision_bundle/ddn.py +2 -2
- dynamsoft_capture_vision_bundle/dip.py +2 -2
- dynamsoft_capture_vision_bundle/dlr.py +68 -2
- dynamsoft_capture_vision_bundle/id_utility.py +98 -0
- dynamsoft_capture_vision_bundle/license.py +2 -2
- dynamsoft_capture_vision_bundle/utility.py +35 -5
- {dynamsoft_capture_vision_bundle-3.2.5000.dist-info → dynamsoft_capture_vision_bundle-3.4.1000.dist-info}/METADATA +5 -3
- dynamsoft_capture_vision_bundle-3.4.1000.dist-info/RECORD +75 -0
- {dynamsoft_capture_vision_bundle-3.2.5000.dist-info → dynamsoft_capture_vision_bundle-3.4.1000.dist-info}/WHEEL +1 -1
- {dynamsoft_capture_vision_bundle-3.2.5000.dist-info → dynamsoft_capture_vision_bundle-3.4.1000.dist-info}/top_level.txt +1 -1
- dynamsoft_capture_vision_bundle/ParserResources/AADHAAR.dcpres +0 -1
- dynamsoft_capture_vision_bundle/ParserResources/AADHAAR_Map.txt +0 -3
- dynamsoft_capture_vision_bundle/ParserResources/AAMVA_DL_ID.dcpres +0 -1
- dynamsoft_capture_vision_bundle/ParserResources/AAMVA_DL_ID_WITH_MAG_STRIPE.dcpres +0 -1
- dynamsoft_capture_vision_bundle/ParserResources/AAMVA_Map.txt +0 -77
- dynamsoft_capture_vision_bundle/ParserResources/GS1_AI.dcpres +0 -1
- dynamsoft_capture_vision_bundle/ParserResources/GS1_AI_Map.txt +0 -643
- dynamsoft_capture_vision_bundle/ParserResources/MRTD_Map.txt +0 -255
- dynamsoft_capture_vision_bundle/ParserResources/MRTD_TD1_ID.dcpres +0 -1
- dynamsoft_capture_vision_bundle/ParserResources/MRTD_TD2_FRENCH_ID.dcpres +0 -1
- dynamsoft_capture_vision_bundle/ParserResources/MRTD_TD2_ID.dcpres +0 -1
- dynamsoft_capture_vision_bundle/ParserResources/MRTD_TD2_VISA.dcpres +0 -1
- dynamsoft_capture_vision_bundle/ParserResources/MRTD_TD3_PASSPORT.dcpres +0 -1
- dynamsoft_capture_vision_bundle/ParserResources/MRTD_TD3_VISA.dcpres +0 -1
- dynamsoft_capture_vision_bundle/ParserResources/SOUTH_AFRICA_DL.dcpres +0 -1
- dynamsoft_capture_vision_bundle/ParserResources/SOUTH_AFRICA_DL_Map.txt +0 -3
- dynamsoft_capture_vision_bundle/ParserResources/VIN.dcpres +0 -1
- dynamsoft_capture_vision_bundle/ParserResources/VIN_Map.txt +0 -150
- dynamsoft_capture_vision_bundle/_DynamsoftNeuralNetwork.cp310-win_amd64.pyd +0 -0
- dynamsoft_capture_vision_bundle/dnn.py +0 -24
- dynamsoft_capture_vision_bundle-3.2.5000.dist-info/RECORD +0 -82
- {dynamsoft_capture_vision_bundle-3.2.5000.dist-info → dynamsoft_capture_vision_bundle-3.4.1000.dist-info}/licenses/LICENSE.txt +0 -0
|
@@ -8,7 +8,9 @@
|
|
|
8
8
|
"SemanticProcessingNameArray": [
|
|
9
9
|
"sp_passport_and_id"
|
|
10
10
|
],
|
|
11
|
-
"Timeout": 2000
|
|
11
|
+
"Timeout": 2000,
|
|
12
|
+
"MaxParallelTasks": 0,
|
|
13
|
+
"OutputOriginalImage": 1
|
|
12
14
|
},
|
|
13
15
|
{
|
|
14
16
|
"Name": "ReadPassport",
|
|
@@ -18,7 +20,9 @@
|
|
|
18
20
|
"SemanticProcessingNameArray": [
|
|
19
21
|
"sp_passport"
|
|
20
22
|
],
|
|
21
|
-
"Timeout": 2000
|
|
23
|
+
"Timeout": 2000,
|
|
24
|
+
"MaxParallelTasks": 0,
|
|
25
|
+
"OutputOriginalImage": 1
|
|
22
26
|
},
|
|
23
27
|
{
|
|
24
28
|
"Name": "ReadId",
|
|
@@ -48,20 +52,24 @@
|
|
|
48
52
|
"SemanticProcessingNameArray": [
|
|
49
53
|
"sp_mrz"
|
|
50
54
|
],
|
|
51
|
-
"Timeout": 2000
|
|
55
|
+
"Timeout": 2000,
|
|
56
|
+
"MaxParallelTasks": 0,
|
|
57
|
+
"OutputOriginalImage": 1
|
|
52
58
|
}
|
|
53
59
|
],
|
|
54
60
|
"TargetROIDefOptions": [
|
|
55
61
|
{
|
|
56
62
|
"Name": "roi_passport_and_id",
|
|
57
63
|
"TaskSettingNameArray": [
|
|
58
|
-
"task_passport_and_id"
|
|
64
|
+
"task_passport_and_id",
|
|
65
|
+
"task-detect-document"
|
|
59
66
|
]
|
|
60
67
|
},
|
|
61
68
|
{
|
|
62
69
|
"Name": "roi_passport",
|
|
63
70
|
"TaskSettingNameArray": [
|
|
64
|
-
"task_passport"
|
|
71
|
+
"task_passport",
|
|
72
|
+
"task-detect-document"
|
|
65
73
|
]
|
|
66
74
|
},
|
|
67
75
|
{
|
|
@@ -79,7 +87,8 @@
|
|
|
79
87
|
{
|
|
80
88
|
"Name": "roi_mrz",
|
|
81
89
|
"TaskSettingNameArray": [
|
|
82
|
-
"task_mrz"
|
|
90
|
+
"task_mrz",
|
|
91
|
+
"task-detect-document"
|
|
83
92
|
]
|
|
84
93
|
}
|
|
85
94
|
],
|
|
@@ -125,11 +134,11 @@
|
|
|
125
134
|
],
|
|
126
135
|
"BinarizationModes": [
|
|
127
136
|
{
|
|
128
|
-
"BlockSizeX":
|
|
129
|
-
"BlockSizeY":
|
|
137
|
+
"BlockSizeX": 41,
|
|
138
|
+
"BlockSizeY": 41,
|
|
130
139
|
"Mode": "BM_LOCAL_BLOCK",
|
|
131
140
|
"EnableFillBinaryVacancy": 0,
|
|
132
|
-
"ThresholdCompensation":
|
|
141
|
+
"ThresholdCompensation": 10
|
|
133
142
|
}
|
|
134
143
|
],
|
|
135
144
|
"ConfusableCharactersCorrection": {
|
|
@@ -305,7 +314,10 @@
|
|
|
305
314
|
"Stage": "SST_LOCALIZE_TEXT_LINES",
|
|
306
315
|
"LocalizationModes":[
|
|
307
316
|
{
|
|
308
|
-
"Mode": "LM_NEURAL_NETWORK"
|
|
317
|
+
"Mode": "LM_NEURAL_NETWORK",
|
|
318
|
+
"ModelNameArray": [
|
|
319
|
+
"MRZLocalization"
|
|
320
|
+
]
|
|
309
321
|
},
|
|
310
322
|
{
|
|
311
323
|
"Mode": "LM_GENERAL"
|
|
@@ -355,7 +367,10 @@
|
|
|
355
367
|
"Stage": "SST_LOCALIZE_TEXT_LINES",
|
|
356
368
|
"LocalizationModes":[
|
|
357
369
|
{
|
|
358
|
-
"Mode": "LM_NEURAL_NETWORK"
|
|
370
|
+
"Mode": "LM_NEURAL_NETWORK",
|
|
371
|
+
"ModelNameArray": [
|
|
372
|
+
"MRZLocalization"
|
|
373
|
+
]
|
|
359
374
|
},
|
|
360
375
|
{
|
|
361
376
|
"Mode": "LM_GENERAL"
|
|
@@ -406,7 +421,10 @@
|
|
|
406
421
|
"Stage": "SST_LOCALIZE_TEXT_LINES",
|
|
407
422
|
"LocalizationModes":[
|
|
408
423
|
{
|
|
409
|
-
"Mode": "LM_NEURAL_NETWORK"
|
|
424
|
+
"Mode": "LM_NEURAL_NETWORK",
|
|
425
|
+
"ModelNameArray": [
|
|
426
|
+
"MRZLocalization"
|
|
427
|
+
]
|
|
410
428
|
},
|
|
411
429
|
{
|
|
412
430
|
"Mode": "LM_GENERAL"
|
|
@@ -456,7 +474,10 @@
|
|
|
456
474
|
"Stage": "SST_LOCALIZE_TEXT_LINES",
|
|
457
475
|
"LocalizationModes":[
|
|
458
476
|
{
|
|
459
|
-
"Mode": "LM_NEURAL_NETWORK"
|
|
477
|
+
"Mode": "LM_NEURAL_NETWORK",
|
|
478
|
+
"ModelNameArray": [
|
|
479
|
+
"MRZLocalization"
|
|
480
|
+
]
|
|
460
481
|
},
|
|
461
482
|
{
|
|
462
483
|
"Mode": "LM_GENERAL"
|
|
@@ -509,7 +530,10 @@
|
|
|
509
530
|
"Stage": "SST_LOCALIZE_TEXT_LINES",
|
|
510
531
|
"LocalizationModes":[
|
|
511
532
|
{
|
|
512
|
-
"Mode": "LM_NEURAL_NETWORK"
|
|
533
|
+
"Mode": "LM_NEURAL_NETWORK",
|
|
534
|
+
"ModelNameArray": [
|
|
535
|
+
"MRZLocalization"
|
|
536
|
+
]
|
|
513
537
|
},
|
|
514
538
|
{
|
|
515
539
|
"Mode": "LM_GENERAL"
|
|
@@ -536,14 +560,38 @@
|
|
|
536
560
|
]
|
|
537
561
|
}
|
|
538
562
|
],
|
|
563
|
+
"DocumentNormalizerTaskSettingOptions": [
|
|
564
|
+
{
|
|
565
|
+
"Name": "task-detect-document",
|
|
566
|
+
"SectionArray": [
|
|
567
|
+
{
|
|
568
|
+
"Section": "ST_DOCUMENT_DETECTION",
|
|
569
|
+
"ImageParameterName": "ip-document"
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
"Section": "ST_DOCUMENT_DESKEWING",
|
|
573
|
+
"ImageParameterName": "ip-document"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"Section": "ST_IMAGE_ENHANCEMENT",
|
|
577
|
+
"ImageParameterName": "ip-document"
|
|
578
|
+
}
|
|
579
|
+
]
|
|
580
|
+
}
|
|
581
|
+
],
|
|
539
582
|
"CaptureVisionModelOptions": [
|
|
540
583
|
{
|
|
541
584
|
"Name": "MRZCharRecognition",
|
|
542
585
|
"MaxModelInstances": 4
|
|
543
586
|
},
|
|
544
587
|
{
|
|
545
|
-
"Name": "MRZTextLineRecognition"
|
|
546
|
-
|
|
588
|
+
"Name": "MRZTextLineRecognition"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"Name": "MRZLocalization",
|
|
592
|
+
"ModelArgs": {
|
|
593
|
+
"InputImageLongerEdge": 640
|
|
594
|
+
}
|
|
547
595
|
}
|
|
548
596
|
],
|
|
549
597
|
"ImageParameterOptions": [
|
|
@@ -593,6 +641,67 @@
|
|
|
593
641
|
}
|
|
594
642
|
}
|
|
595
643
|
]
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"Name": "ip-document",
|
|
647
|
+
"ApplicableStages": [
|
|
648
|
+
{
|
|
649
|
+
"Stage": "SST_DETECT_TEXT_ZONES",
|
|
650
|
+
"TextDetectionMode": {
|
|
651
|
+
"Mode": "TTDM_WORD",
|
|
652
|
+
"Direction": "HORIZONTAL",
|
|
653
|
+
"Sensitivity": 7
|
|
654
|
+
}
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"Stage": "SST_BINARIZE_IMAGE",
|
|
658
|
+
"BinarizationModes": [
|
|
659
|
+
{
|
|
660
|
+
"Mode": "BM_LOCAL_BLOCK",
|
|
661
|
+
"BlockSizeX": 30,
|
|
662
|
+
"BlockSizeY": 30,
|
|
663
|
+
"EnableFillBinaryVacancy": 0,
|
|
664
|
+
"ThresholdCompensation": 5
|
|
665
|
+
}
|
|
666
|
+
]
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"Stage": "SST_BINARIZE_TEXTURE_REMOVED_GRAYSCALE",
|
|
670
|
+
"BinarizationModes": [
|
|
671
|
+
{
|
|
672
|
+
"Mode": "BM_LOCAL_BLOCK",
|
|
673
|
+
"BlockSizeX": 30,
|
|
674
|
+
"BlockSizeY": 30,
|
|
675
|
+
"EnableFillBinaryVacancy": 0,
|
|
676
|
+
"ThresholdCompensation": 5
|
|
677
|
+
}
|
|
678
|
+
]
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"Stage": "SST_CONVERT_TO_GRAYSCALE",
|
|
682
|
+
"ColourConversionModes": [
|
|
683
|
+
{
|
|
684
|
+
"Mode": "CICM_GENERAL"
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
"Mode": "CICM_EDGE_ENHANCEMENT"
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"Mode": "CICM_HSV",
|
|
691
|
+
"ReferChannel": "H_CHANNEL"
|
|
692
|
+
}
|
|
693
|
+
]
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
"Stage": "SST_DETECT_TEXTURE",
|
|
697
|
+
"TextureDetectionModes": [
|
|
698
|
+
{
|
|
699
|
+
"Mode": "TDM_GENERAL_WIDTH_CONCENTRATION",
|
|
700
|
+
"Sensitivity": 8
|
|
701
|
+
}
|
|
702
|
+
]
|
|
703
|
+
}
|
|
704
|
+
]
|
|
596
705
|
}
|
|
597
706
|
],
|
|
598
707
|
"SemanticProcessingOptions": [
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = "4.0.40.
|
|
1
|
+
__version__ = "4.0.40.7449"
|
|
2
2
|
|
|
3
3
|
import sys
|
|
4
4
|
|
|
@@ -288,6 +288,7 @@ class EnumRegionObjectElementType(IntEnum):
|
|
|
288
288
|
ROET_SOURCE_IMAGE = _DynamsoftCore.ROET_SOURCE_IMAGE
|
|
289
289
|
ROET_TARGET_ROI = _DynamsoftCore.ROET_TARGET_ROI
|
|
290
290
|
ROET_ENHANCED_IMAGE = _DynamsoftCore.ROET_ENHANCED_IMAGE
|
|
291
|
+
ROET_AUXILIARY_REGION = _DynamsoftCore.ROET_AUXILIARY_REGION
|
|
291
292
|
class EnumTransformMatrixType(IntEnum):
|
|
292
293
|
TMT_LOCAL_TO_ORIGINAL_IMAGE = _DynamsoftCore.TMT_LOCAL_TO_ORIGINAL_IMAGE
|
|
293
294
|
TMT_ORIGINAL_TO_LOCAL_IMAGE = _DynamsoftCore.TMT_ORIGINAL_TO_LOCAL_IMAGE
|
|
@@ -331,7 +332,7 @@ class CoreModule:
|
|
|
331
332
|
Returns:
|
|
332
333
|
str: A string representing the version of the core module.
|
|
333
334
|
"""
|
|
334
|
-
return __version__ + " (
|
|
335
|
+
return __version__ + " (Algorithm " + _DynamsoftCore.CCoreModule_GetVersion() + ")"
|
|
335
336
|
|
|
336
337
|
|
|
337
338
|
def __init__(self):
|
|
@@ -969,7 +970,9 @@ class CapturedResultItem:
|
|
|
969
970
|
Returns:
|
|
970
971
|
CapturedResultItem: The referenced item in the captured result item.
|
|
971
972
|
"""
|
|
972
|
-
|
|
973
|
+
if not hasattr(self, '_ref_item'):
|
|
974
|
+
self._ref_item = _DynamsoftCore.CCapturedResultItem_GetReferenceItem(self)
|
|
975
|
+
return self._ref_item
|
|
973
976
|
|
|
974
977
|
def get_target_roi_def_name(self) -> str:
|
|
975
978
|
"""
|
|
@@ -1656,6 +1659,72 @@ class PredetectedRegionElement(RegionObjectElement):
|
|
|
1656
1659
|
return _DynamsoftCore.CPredetectedRegionElement_GetLabelName(self)
|
|
1657
1660
|
|
|
1658
1661
|
_DynamsoftCore.CPredetectedRegionElement_register(PredetectedRegionElement)
|
|
1662
|
+
|
|
1663
|
+
class AuxiliaryRegionElement(RegionObjectElement):
|
|
1664
|
+
"""
|
|
1665
|
+
The AuxiliaryRegionElement class represents a region element that is auxiliary to a predetected region element.
|
|
1666
|
+
It is a subclass of the CRegionObjectElement.
|
|
1667
|
+
|
|
1668
|
+
Methods:
|
|
1669
|
+
get_name(self) -> str: Gets the name of this auxiliary region.
|
|
1670
|
+
get_confidence(self) -> int: Gets the confidence level of this auxiliary region detection.
|
|
1671
|
+
set_name(self, name: str) -> None: Sets the name/type of this auxiliary region.
|
|
1672
|
+
set_location(self, location: Quadrilateral) -> int: Sets the location of the auxiliary region element.
|
|
1673
|
+
set_confidence(self, confidence: int) -> None: Sets the confidence level of this auxiliary region detection.
|
|
1674
|
+
"""
|
|
1675
|
+
def __init__(self):
|
|
1676
|
+
_DynamsoftCore.Class_init(self, _DynamsoftCore.CImageProcessingModule_CreateAuxiliaryRegionElement())
|
|
1677
|
+
|
|
1678
|
+
def get_name(self) -> str:
|
|
1679
|
+
"""
|
|
1680
|
+
Gets the name of this auxiliary region.
|
|
1681
|
+
|
|
1682
|
+
Returns:
|
|
1683
|
+
Returns a string representing the region name (e.g., "PortraitZone", "SignatureArea").
|
|
1684
|
+
"""
|
|
1685
|
+
return _DynamsoftCore.CAuxiliaryRegionElement_GetName(self)
|
|
1686
|
+
|
|
1687
|
+
def get_confidence(self) -> int:
|
|
1688
|
+
"""
|
|
1689
|
+
Gets the confidence level of this auxiliary region detection.
|
|
1690
|
+
|
|
1691
|
+
Returns:
|
|
1692
|
+
Returns the confidence value, typically in the range [0, 100].
|
|
1693
|
+
"""
|
|
1694
|
+
return _DynamsoftCore.CAuxiliaryRegionElement_GetConfidence(self)
|
|
1695
|
+
|
|
1696
|
+
def set_name(self, name: str) -> None:
|
|
1697
|
+
"""
|
|
1698
|
+
Sets the name/type of this auxiliary region.
|
|
1699
|
+
|
|
1700
|
+
Args:
|
|
1701
|
+
name(str): The region name to set (e.g., "PortraitZone", "SignatureArea").
|
|
1702
|
+
"""
|
|
1703
|
+
_DynamsoftCore.CAuxiliaryRegionElement_SetName(self, name)
|
|
1704
|
+
|
|
1705
|
+
def set_location(self, location: Quadrilateral) -> int:
|
|
1706
|
+
"""
|
|
1707
|
+
Sets the location of this auxiliary region.
|
|
1708
|
+
|
|
1709
|
+
Args:
|
|
1710
|
+
location(Quadrilateral): A quadrilateral defining the region boundaries.
|
|
1711
|
+
|
|
1712
|
+
Returns:
|
|
1713
|
+
Returns 0 if success, otherwise an error code.
|
|
1714
|
+
"""
|
|
1715
|
+
return _DynamsoftCore.CAuxiliaryRegionElement_SetLocation(self, location)
|
|
1716
|
+
|
|
1717
|
+
def set_confidence(self, confidence: int) -> None:
|
|
1718
|
+
"""
|
|
1719
|
+
Sets the confidence level of this auxiliary region detection.
|
|
1720
|
+
|
|
1721
|
+
Args:
|
|
1722
|
+
confidence(int): The confidence value to set, typically in the range [0, 100].
|
|
1723
|
+
"""
|
|
1724
|
+
return _DynamsoftCore.CAuxiliaryRegionElement_SetConfidence(self, confidence)
|
|
1725
|
+
|
|
1726
|
+
_DynamsoftCore.CAuxiliaryRegionElement_register(AuxiliaryRegionElement)
|
|
1727
|
+
|
|
1659
1728
|
class IntermediateResultUnit:
|
|
1660
1729
|
"""
|
|
1661
1730
|
The IntermediateResultUnit class represents an intermediate result unit used in image processing.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = "3.
|
|
1
|
+
__version__ = "3.4.10.7449"
|
|
2
2
|
|
|
3
3
|
if __package__ or "." in __name__:
|
|
4
4
|
from .core import *
|
|
@@ -218,11 +218,9 @@ class CapturedResult(CapturedResultBase):
|
|
|
218
218
|
Returns:
|
|
219
219
|
A list of CapturedResultItem objects with all items in the captured result.
|
|
220
220
|
"""
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
list.append(_DynamsoftCaptureVisionRouter.CCapturedResult_GetItem(self, i))
|
|
225
|
-
return list
|
|
221
|
+
if not hasattr(self, '_items') or self._items is None:
|
|
222
|
+
self._items = _DynamsoftCaptureVisionRouter.CCapturedResult_GetItems(self)
|
|
223
|
+
return self._items
|
|
226
224
|
|
|
227
225
|
def __getitem__(self, index: int) -> CapturedResultItem:
|
|
228
226
|
return _DynamsoftCaptureVisionRouter.CCapturedResult_GetItem(self, index)
|
|
@@ -721,7 +719,7 @@ class IntermediateResultReceiver:
|
|
|
721
719
|
return _DynamsoftCaptureVisionRouter.CIntermediateResultReceiver_OnRawTextLinesUnitReceived(self, result, info)
|
|
722
720
|
|
|
723
721
|
def on_logic_lines_unit_received(self, result: "LogicLinesUnit", info: IntermediateResultExtraInfo) -> None:
|
|
724
|
-
return _DynamsoftCaptureVisionRouter.CIntermediateResultReceiver_OnLogicLinesUnitReceived(self, result)
|
|
722
|
+
return _DynamsoftCaptureVisionRouter.CIntermediateResultReceiver_OnLogicLinesUnitReceived(self, result, info)
|
|
725
723
|
|
|
726
724
|
def on_enhanced_image_received(self, result: "EnhancedImageUnit", info: IntermediateResultExtraInfo) -> None:
|
|
727
725
|
return _DynamsoftCaptureVisionRouter.CIntermediateResultReceiver_OnEnhancedImageReceived(self, result, info)
|
|
@@ -804,6 +802,7 @@ class CaptureVisionRouter:
|
|
|
804
802
|
)
|
|
805
803
|
self._input = None
|
|
806
804
|
self._intermediate_result_manager = None
|
|
805
|
+
self._cross_filter = []
|
|
807
806
|
__destroy__ = _DynamsoftCaptureVisionRouter.delete_CCaptureVisionRouter
|
|
808
807
|
|
|
809
808
|
def init_settings(self, content: str) -> Tuple[int, str]:
|
|
@@ -1081,6 +1080,9 @@ class CaptureVisionRouter:
|
|
|
1081
1080
|
- error_code (int): The error code indicating the status of the operation.
|
|
1082
1081
|
- error_message <str>: A descriptive message explaining the error.
|
|
1083
1082
|
"""
|
|
1083
|
+
if any(filter is x for x in self._cross_filter):
|
|
1084
|
+
return (0, "Success.")
|
|
1085
|
+
self._cross_filter.append(filter)
|
|
1084
1086
|
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_AddResultFilter(
|
|
1085
1087
|
self, filter
|
|
1086
1088
|
)
|
|
@@ -1097,9 +1099,17 @@ class CaptureVisionRouter:
|
|
|
1097
1099
|
- error_code (int): The error code indicating the status of the operation.
|
|
1098
1100
|
- error_message <str>: A descriptive message explaining the error.
|
|
1099
1101
|
"""
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1102
|
+
index = -1
|
|
1103
|
+
for i, x in enumerate(self._cross_filter):
|
|
1104
|
+
if x is filter:
|
|
1105
|
+
index = i
|
|
1106
|
+
break
|
|
1107
|
+
if index != -1:
|
|
1108
|
+
self._cross_filter.pop(index)
|
|
1109
|
+
return _DynamsoftCaptureVisionRouter.CCaptureVisionRouter_RemoveResultFilter(
|
|
1110
|
+
self, filter
|
|
1111
|
+
)
|
|
1112
|
+
return (0, "Success.")
|
|
1103
1113
|
def add_capture_state_listener(
|
|
1104
1114
|
self, listener: CaptureStateListener
|
|
1105
1115
|
) -> Tuple[int, str]:
|
|
@@ -1322,7 +1332,7 @@ class CaptureVisionRouterModule:
|
|
|
1322
1332
|
Returns:
|
|
1323
1333
|
A string representing the version of the capture vision router module.
|
|
1324
1334
|
"""
|
|
1325
|
-
return __version__ + " (
|
|
1335
|
+
return __version__ + " (Algorithm " + _DynamsoftCaptureVisionRouter.CCaptureVisionRouterModule_GetVersion() + ")"
|
|
1326
1336
|
|
|
1327
1337
|
def __init__(self):
|
|
1328
1338
|
_DynamsoftCaptureVisionRouter.Class_init(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = "11.
|
|
1
|
+
__version__ = "11.4.10.7449"
|
|
2
2
|
|
|
3
3
|
if __package__ or "." in __name__:
|
|
4
4
|
from .core import *
|
|
@@ -672,6 +672,48 @@ class AztecDetails(BarcodeDetails):
|
|
|
672
672
|
|
|
673
673
|
|
|
674
674
|
_DynamsoftBarcodeReader.CAztecDetails_register(AztecDetails)
|
|
675
|
+
class ECISegment:
|
|
676
|
+
"""
|
|
677
|
+
Represents the Extended Channel Interpretation (ECI) information within a barcode.
|
|
678
|
+
|
|
679
|
+
Attributes:
|
|
680
|
+
eci_value (int): ECI assignment number as defined by ISO/IEC 15424.
|
|
681
|
+
charset_encoding (str): Charset encoding name defined by IANA (e.g. "UTF-8", "ISO-8859-1").
|
|
682
|
+
start_index (int): Start index of this ECI segment in the decoded barcode bytes.
|
|
683
|
+
length (int): Length (in bytes) of this segment within the decoded barcode bytes.
|
|
684
|
+
"""
|
|
685
|
+
_thisown = property(
|
|
686
|
+
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"
|
|
687
|
+
)
|
|
688
|
+
eci_value: int = property(
|
|
689
|
+
_DynamsoftBarcodeReader.CECISegment_eciValue_get,
|
|
690
|
+
_DynamsoftBarcodeReader.CECISegment_eciValue_set,
|
|
691
|
+
doc="ECI assignment number as defined by ISO/IEC 15424.",
|
|
692
|
+
)
|
|
693
|
+
charset_encoding: str = property(
|
|
694
|
+
_DynamsoftBarcodeReader.CECISegment_charsetEncoding_get,
|
|
695
|
+
_DynamsoftBarcodeReader.CECISegment_charsetEncoding_set,
|
|
696
|
+
doc="Charset encoding name defined by IANA (e.g. \"UTF-8\", \"ISO-8859-1\").",
|
|
697
|
+
)
|
|
698
|
+
start_index: int = property(
|
|
699
|
+
_DynamsoftBarcodeReader.CECISegment_startIndex_get,
|
|
700
|
+
_DynamsoftBarcodeReader.CECISegment_startIndex_set,
|
|
701
|
+
doc="Start index of this ECI segment in the decoded barcode bytes.",
|
|
702
|
+
)
|
|
703
|
+
length: int = property(
|
|
704
|
+
_DynamsoftBarcodeReader.CECISegment_length_get,
|
|
705
|
+
_DynamsoftBarcodeReader.CECISegment_length_set,
|
|
706
|
+
doc="Length (in bytes) of this segment within the decoded barcode bytes.",
|
|
707
|
+
)
|
|
708
|
+
def __init__(self):
|
|
709
|
+
_DynamsoftBarcodeReader.Class_init(
|
|
710
|
+
self, _DynamsoftBarcodeReader.new_CECISegment()
|
|
711
|
+
)
|
|
712
|
+
|
|
713
|
+
__destroy__ = _DynamsoftBarcodeReader.delete_CECISegment
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
_DynamsoftBarcodeReader.CECISegment_register(ECISegment)
|
|
675
717
|
|
|
676
718
|
class BarcodeResultItem(CapturedResultItem):
|
|
677
719
|
"""
|
|
@@ -689,6 +731,7 @@ class BarcodeResultItem(CapturedResultItem):
|
|
|
689
731
|
get_details(self) -> BarcodeDetails: Gets the details of the decoded barcode result.
|
|
690
732
|
is_dpm(self) -> bool: Gets whether the decoded barcode is a DPM code.
|
|
691
733
|
is_mirrored(self) -> bool: Gets whether the decoded barcode is mirrored.
|
|
734
|
+
get_eci_segments(self) -> List[ECISegment]: Gets all the ECI segments in the barcode.
|
|
692
735
|
"""
|
|
693
736
|
_thisown = property(
|
|
694
737
|
lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag"
|
|
@@ -796,7 +839,20 @@ class BarcodeResultItem(CapturedResultItem):
|
|
|
796
839
|
"""
|
|
797
840
|
return _DynamsoftBarcodeReader.CBarcodeResultItem_IsMirrored(self)
|
|
798
841
|
|
|
842
|
+
def get_eci_segments(self) -> List[ECISegment]:
|
|
843
|
+
"""
|
|
844
|
+
Gets all the ECI segments in the barcode.
|
|
799
845
|
|
|
846
|
+
Returns:
|
|
847
|
+
A list of ECISegment objects.
|
|
848
|
+
"""
|
|
849
|
+
count = _DynamsoftBarcodeReader.CBarcodeResultItem_GetECISegmentsCount(self)
|
|
850
|
+
result = []
|
|
851
|
+
for i in range(count):
|
|
852
|
+
eci = _DynamsoftBarcodeReader.CBarcodeResultItem_GetECISegment(self, i)
|
|
853
|
+
if eci is not None:
|
|
854
|
+
result.append(eci)
|
|
855
|
+
return result
|
|
800
856
|
_DynamsoftBarcodeReader.CBarcodeResultItem_register(BarcodeResultItem)
|
|
801
857
|
|
|
802
858
|
class DecodedBarcodesResult(CapturedResultBase):
|
|
@@ -923,8 +979,21 @@ class DecodedBarcodeElement(RegionObjectElement):
|
|
|
923
979
|
def set_location(self, location: Quadrilateral) -> int:
|
|
924
980
|
return _DynamsoftBarcodeReader.CDecodedBarcodeElement_SetLocation(self, location)
|
|
925
981
|
|
|
982
|
+
def get_eci_segments(self) -> List[ECISegment]:
|
|
983
|
+
"""
|
|
984
|
+
Gets all the ECI segments in the barcode.
|
|
985
|
+
|
|
986
|
+
Returns:
|
|
987
|
+
A list of ECISegment objects.
|
|
988
|
+
"""
|
|
989
|
+
count = _DynamsoftBarcodeReader.CDecodedBarcodeElement_GetECISegmentsCount(self)
|
|
990
|
+
result = []
|
|
991
|
+
for i in range(count):
|
|
992
|
+
eci = _DynamsoftBarcodeReader.CDecodedBarcodeElement_GetECISegment(self, i)
|
|
993
|
+
if eci is not None:
|
|
994
|
+
result.append(eci)
|
|
995
|
+
return result
|
|
926
996
|
|
|
927
|
-
# Register CDecodedBarcodeElement in _DynamsoftBarcodeReader:
|
|
928
997
|
_DynamsoftBarcodeReader.CDecodedBarcodeElement_register(DecodedBarcodeElement)
|
|
929
998
|
class ExtendedBarcodeResult(DecodedBarcodeElement):
|
|
930
999
|
_thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
|
|
@@ -1141,7 +1210,7 @@ class BarcodeReaderModule:
|
|
|
1141
1210
|
Returns:
|
|
1142
1211
|
A string representing the version of the barcode reader module.
|
|
1143
1212
|
"""
|
|
1144
|
-
return __version__ + " (
|
|
1213
|
+
return __version__ + " (Algorithm " + _DynamsoftBarcodeReader.CBarcodeReaderModule_GetVersion() + ")"
|
|
1145
1214
|
|
|
1146
1215
|
def __init__(self):
|
|
1147
1216
|
_DynamsoftBarcodeReader.Class_init(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = "3.0.40.
|
|
1
|
+
__version__ = "3.0.40.7449"
|
|
2
2
|
|
|
3
3
|
if __package__ or "." in __name__:
|
|
4
4
|
from . import _DynamsoftCodeParser
|
|
@@ -195,7 +195,7 @@ class CodeParserModule:
|
|
|
195
195
|
Returns:
|
|
196
196
|
A string representing the version of the code parser module.
|
|
197
197
|
"""
|
|
198
|
-
return __version__ + " (
|
|
198
|
+
return __version__ + " (Algorithm " + _DynamsoftCodeParser.CCodeParserModule_GetVersion() + ")"
|
|
199
199
|
|
|
200
200
|
def __init__(self):
|
|
201
201
|
_DynamsoftCodeParser.Class_init(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = "3.0.30.
|
|
1
|
+
__version__ = "3.0.30.7449"
|
|
2
2
|
|
|
3
3
|
if __package__ or "." in __name__:
|
|
4
4
|
from . import _DynamsoftCodeParserDedicator
|
|
@@ -18,4 +18,4 @@ class DynamsoftCodeParserDedicatorModule:
|
|
|
18
18
|
Returns:
|
|
19
19
|
A string representing the version of the Dynamsoft Code Parser Dedicator module.
|
|
20
20
|
"""
|
|
21
|
-
return __version__ + " (
|
|
21
|
+
return __version__ + " (Algorithm " + _DynamsoftCodeParserDedicator.getversion() + ")"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = "3.0.40.
|
|
1
|
+
__version__ = "3.0.40.7449"
|
|
2
2
|
|
|
3
3
|
if __package__ or "." in __name__:
|
|
4
4
|
from .core import *
|
|
@@ -381,7 +381,7 @@ class DocumentNormalizerModule:
|
|
|
381
381
|
Returns:
|
|
382
382
|
A string representing the version of the document normalizer module.
|
|
383
383
|
"""
|
|
384
|
-
return __version__ + " (
|
|
384
|
+
return __version__ + " (Algorithm " + _DynamsoftDocumentNormalizer.CDocumentNormalizerModule_GetVersion() + ")"
|
|
385
385
|
|
|
386
386
|
def __init__(self):
|
|
387
387
|
_DynamsoftDocumentNormalizer.Class_init(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
__version__ = "3.0.30.
|
|
1
|
+
__version__ = "3.0.30.7449"
|
|
2
2
|
|
|
3
3
|
if __package__ or "." in __name__:
|
|
4
4
|
from . import _DynamsoftImageProcessing
|
|
@@ -21,4 +21,4 @@ class DynamsoftImageProcessingModule:
|
|
|
21
21
|
Returns:
|
|
22
22
|
A string representing the version of the Dynamsoft Image Processing module.
|
|
23
23
|
"""
|
|
24
|
-
return __version__ + " (
|
|
24
|
+
return __version__ + " (Algorithm " + _DynamsoftImageProcessing.getversion() + ")"
|