Skip to content

Commit a43f34b

Browse files
committed
Update
1 parent 70c51e6 commit a43f34b

File tree

4 files changed

+102
-0
lines changed

4 files changed

+102
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/.vscode
33
/platforms/win/*.dll
44
/platforms/win/*.lib
5+
*.so

dbr.json

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"title": "JSON schema for DBR configuration files",
3+
"$schema": "http://json-schema.org/draft-04/schema#",
4+
"description": "A representation of Dynamsoft Barcode Reader template.",
5+
"type": "object",
6+
"required": ["Version", "ImageParameters"],
7+
"properties": {
8+
"Version": {
9+
"description": "The template version number.",
10+
"type": "string",
11+
"enum": [
12+
"1.0"
13+
]
14+
},
15+
"ImageParameters": {
16+
"description": "Parameters for barcode detection",
17+
"type": "object",
18+
"required": [
19+
"Name"
20+
],
21+
"properties": {
22+
"Name": {
23+
"description": "The name of the ImageParameters object",
24+
"type": "string",
25+
"maxLength": 50,
26+
"minLength": 1
27+
},
28+
"Description": {
29+
"description": "The description of the ImageParameters object",
30+
"type": "string"
31+
},
32+
"BarcodeFormatIds": {
33+
"description": "Sets which types of barcode to be read. Barcode types can be combined",
34+
"type": "array",
35+
"items": {
36+
"type": "string",
37+
"enum": [
38+
"All", "OneD", "CODE_39", "CODE_128", "CODE_93", "CODABAR", "ITF", "EAN_13", "EAN_8", "UPC_A", "UPC_E", "INDUSTRIAL_25", "PDF417", "QR_CODE", "DATAMATRIX"
39+
]
40+
}
41+
},
42+
"MaxBarcodesCount": {
43+
"description": "Sets the maximum number of barcodes to read",
44+
"type": "number",
45+
"maximum": 2147483647,
46+
"minimum": 1,
47+
"default": 2147483647
48+
},
49+
"Timeout": {
50+
"description": "Sets the maximum amount of time (in milliseconds) it should spend searching for a barcode per page",
51+
"type": "number",
52+
"maximum": 2147483647,
53+
"minimum": 0,
54+
"default": 2147483647
55+
},
56+
"ScaleDownThreshold": {
57+
"description": "Sets the threshold value of the image shrinking",
58+
"type": "number",
59+
"maximum": 2147483647,
60+
"minimum": 512,
61+
"default": 2048
62+
},
63+
"DeblurLevel": {
64+
"description": "The blurriness of the barcode",
65+
"type": "number",
66+
"maximum": 9,
67+
"minimum": 0,
68+
"default": 5
69+
}
70+
}
71+
}
72+
}
73+
}

templates/default.settings.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"Version": "1.0",
3+
"GlobalParameters": {
4+
"Name": "GLOBAL_DEFAULT",
5+
"MaxThreadCount": 4
6+
},
7+
"ParameterTemplateArray": [
8+
"tpl_custom.json"
9+
]
10+
}

templates/tpl_custom.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"Version": "1.0",
3+
"ImageParameters": {
4+
"Name": "CUSTOM",
5+
"Timeout": 2147483647,
6+
"MaxImageDimension": 4000000,
7+
"PDFRasterDPI": 300,
8+
"TextFilterMode": "Enable",
9+
"MinImageDimensionToFilterText": 1000000,
10+
"RegionPredetectionMode": "Enable",
11+
"MinImageDimensionToPredetectRegion": 1000000,
12+
"BarcodeFormatIds": ["All"],
13+
"MaxBarcodesCount": 2147483647,
14+
"DeblurLevel": 9,
15+
"Pages": "",
16+
"BarcodeInvertMode": "DarkOnLight"
17+
}
18+
}

0 commit comments

Comments
 (0)