Need better scanning performance?
CaptureVisionModel Parameters
The CaptureVisionModel object defines how the library finds Convolutional Neural Networks (CNN) model files that support barcode decoding, character recognition and text line recognition.
Supported CNN Model Files
The following model files are currently supported.
Code128Decoder.dataCode39ITFDecoder.dataDataMatrixQRCodeDeblur.dataDataMatrixQRCodeLocalization.dataEAN13Decoder.dataLetterCharRecognition.dataLowercaseCharRecognition.dataMRZCharRecognition.dataMRZLocalization.dataMRZTextLineRecognition.dataNumberCharRecognition.dataNumberLetterCharRecognition.dataNumberLowercaseCharRecognition.dataNumberUppercaseCharRecognition.dataOneDDeblur.dataOneDLocalization.dataPDF417Deblur.dataPDF417Localization.dataTextLineOrientationCls.dataUppercaseCharRecognition.dataVINCharRecognition.data
Example JSON
{
"CaptureVisionModelOptions": [
{
"Name": "NumberLetterCharRecognition",
"DirectoryPath": "D:\\CaptureVisionModel\\",
"MaxModelInstances": 1,
"ModelArgs": {
"CharSet": {
"AddSpecialChars": ["-", ":"],
"ExcludeChars": ["O", "Q"]
}
}
}
]
}
Hierarchical Structure
This tree shows one CaptureVisionModel object inside CaptureVisionModelOptions.
CaptureVisionModel
├── Name
├── DirectoryPath
├── MaxModelInstances
└── ModelArgs
└── CharSet
├── AddSpecialChars
└── ExcludeChars
Top-Level Parameters
Name
The name of the CaptureVisionModel object. It will be used as a unique identifier for the model.
| Parameter Summary |
|---|
| Type String |
| Remarks It must be the filename of the model file. For example, to use the NumberLetterCharRecognition.data model file, you need to set Name to “NumberLetterCharRecognition”. |
DirectoryPath
The directory path of the model file.
| Parameter Summary |
|---|
| Type String |
| Default Value ”” |
MaxModelInstances
The maximum number of instances of the model.
| Parameter Summary |
|---|
| Type int |
| Range [1,256] |
| Default Value 1 (4 for single character model) |
ModelArgs
Sets advanced arguments of the model.
| Parameter Summary |
|---|
| Type JSON object |
| Remarks Currently, CharSet is supported |
Nested Parameter Quick Links
Actual Nested Parameters in the Tree
| Parameter Name | Description |
|---|---|
CharSet |
Defines the character recognition scope for the model by adding special characters and excluding unwanted characters. |