Skip to content

Commit 1dead76

Browse files
committed
Added layout analysis
1 parent 7ec7a40 commit 1dead76

5 files changed

Lines changed: 541 additions & 34 deletions

File tree

Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
{
2+
"BarcodeFormatSpecificationOptions": [
3+
{
4+
5+
"MirrorMode": "MM_BOTH",
6+
"Name": "bfs1"
7+
}
8+
],
9+
"BarcodeReaderTaskSettingOptions": [
10+
{
11+
12+
"BarcodeFormatSpecificationNameArray": [
13+
"bfs1"
14+
],
15+
"ExpectedBarcodesCount": 1,
16+
"MaxThreadsInOneTask": 0,
17+
"Name": "task-read-barcodes",
18+
"SectionArray": [
19+
{
20+
"ImageParameterName": "ip-read-barcodes",
21+
"Section": "ST_BARCODE_LOCALIZATION",
22+
"StageArray": [
23+
{
24+
"Stage": "SST_LOCALIZE_CANDIDATE_BARCODES",
25+
"LocalizationModes": [
26+
{
27+
"Mode": "LM_CONNECTED_BLOCKS"
28+
},
29+
{
30+
"Mode": "LM_STATISTICS"
31+
},
32+
{
33+
"Mode": "LM_LINES"
34+
}
35+
]
36+
}
37+
]
38+
},
39+
{
40+
"ImageParameterName": "ip-read-barcodes",
41+
"Section": "ST_BARCODE_DECODING"
42+
}
43+
]
44+
}
45+
],
46+
"CaptureVisionTemplates": [
47+
{
48+
"ImageROIProcessingNameArray": [
49+
"roi-read-barcodes"
50+
],
51+
"Name": "GridDeepDecode",
52+
"Timeout": 500
53+
}
54+
],
55+
"ImageParameterOptions": [
56+
{
57+
"ApplicableStages": [
58+
{
59+
"GrayscaleTransformationModes": [
60+
{
61+
"Mode": "GTM_ORIGINAL"
62+
},
63+
{
64+
"Mode": "GTM_INVERTED"
65+
}
66+
],
67+
"Stage": "SST_TRANSFORM_GRAYSCALE"
68+
},
69+
{
70+
"BinarizationModes": [
71+
{
72+
"BlockSizeX": 17,
73+
"BlockSizeY": 17,
74+
"EnableFillBinaryVacancy": 0,
75+
"ThresholdCompensation": 10,
76+
"Mode": "BM_LOCAL_BLOCK"
77+
},
78+
{
79+
"BlockSizeX": 31,
80+
"BlockSizeY": 31,
81+
"EnableFillBinaryVacancy": 0,
82+
"ThresholdCompensation": 10
83+
}
84+
],
85+
"Stage": "SST_BINARIZE_IMAGE"
86+
}
87+
],
88+
"Name": "ip-read-barcodes"
89+
}
90+
],
91+
"TargetROIDefOptions": [
92+
{
93+
"Name": "roi-read-barcodes",
94+
"TaskSettingNameArray": [
95+
"task-read-barcodes"
96+
]
97+
}
98+
],
99+
"Version": "5.1"
100+
}
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
{
2+
"BarcodeFormatSpecificationOptions": [
3+
{
4+
5+
"MirrorMode": "MM_BOTH",
6+
"Name": "bfs1"
7+
}
8+
],
9+
"BarcodeReaderTaskSettingOptions": [
10+
{
11+
12+
"BarcodeFormatSpecificationNameArray": [
13+
"bfs1"
14+
],
15+
"ExpectedBarcodesCount": 999,
16+
"MaxThreadsInOneTask": 0,
17+
"Name": "task-read-barcodes",
18+
"SectionArray": [
19+
{
20+
"ImageParameterName": "ip-read-barcodes",
21+
"Section": "ST_BARCODE_LOCALIZATION",
22+
"StageArray": [
23+
{
24+
"Stage": "SST_LOCALIZE_CANDIDATE_BARCODES",
25+
"LocalizationModes": [
26+
{
27+
"Mode": "LM_CONNECTED_BLOCKS"
28+
}
29+
]
30+
}
31+
]
32+
},
33+
{
34+
"ImageParameterName": "ip-read-barcodes",
35+
"Section": "ST_BARCODE_DECODING"
36+
}
37+
]
38+
}
39+
],
40+
"CaptureVisionTemplates": [
41+
{
42+
"ImageROIProcessingNameArray": [
43+
"roi-read-barcodes"
44+
],
45+
"Name": "GridFastScan",
46+
"Timeout": 10000
47+
}
48+
],
49+
"ImageParameterOptions": [
50+
{
51+
"ApplicableStages": [
52+
{
53+
"Stage": "SST_SCALE_IMAGE",
54+
"ImageScaleSetting":{
55+
"ScaleType": "ST_SCALE_DOWN",
56+
"ReferenceEdge": "RE_SHORTER_EDGE",
57+
"EdgeLengthThreshold": 99999
58+
}
59+
},
60+
{
61+
"GrayscaleTransformationModes": [
62+
{
63+
"Mode": "GTM_ORIGINAL"
64+
},
65+
{
66+
"Mode": "GTM_INVERTED"
67+
}
68+
],
69+
"Stage": "SST_TRANSFORM_GRAYSCALE"
70+
},
71+
{
72+
"BinarizationModes": [
73+
{
74+
"BlockSizeX": 11,
75+
"BlockSizeY": 11,
76+
"EnableFillBinaryVacancy": 0,
77+
"ThresholdCompensation": 10,
78+
"Mode": "BM_LOCAL_BLOCK"
79+
},
80+
{
81+
"BlockSizeX": 31,
82+
"BlockSizeY": 31,
83+
"EnableFillBinaryVacancy": 0,
84+
"ThresholdCompensation": 10
85+
}
86+
],
87+
"Stage": "SST_BINARIZE_IMAGE"
88+
}
89+
],
90+
"Name": "ip-read-barcodes"
91+
}
92+
],
93+
"TargetROIDefOptions": [
94+
{
95+
"Name": "roi-read-barcodes",
96+
"TaskSettingNameArray": [
97+
"task-read-barcodes"
98+
]
99+
}
100+
],
101+
"Version": "5.1"
102+
}

0 commit comments

Comments
 (0)