Skip to content

Commit 495bbc1

Browse files
Merge pull request #717 from dynamsoft-docs/preview
Preview
2 parents cbb1206 + 6850006 commit 495bbc1

13 files changed

+949
-781
lines changed

parameters/scenario-settings/image-scale-and-colour-conversion-v7.6.0.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,25 @@ In the following JSON template, we configured 4
3636
{
3737
"ImageParameter": {
3838
"ColourConversionModes": [
39-
// Use the default mode for grayscale process
39+
// Use the default mode for grayscale process
4040
{
4141
"Mode": "CICM_GENERAL"
4242
},
43-
// Use the Blue channel only for grayscale process
43+
// Use the Blue channel only for grayscale process
4444
{
4545
"Mode": "CICM_GENERAL",
4646
"BlueChannelWeight": 1000,
4747
"RedChannelWeight": 0,
4848
"GreenChannelWeight": 0
4949
},
50-
// Use the Red channel only for grayscale process
50+
// Use the Red channel only for grayscale process
5151
{
5252
"Mode": "CICM_GENERAL",
5353
"BlueChannelWeight": 0,
5454
"RedChannelWeight": 1000,
5555
"GreenChannelWeight": 0
5656
},
57-
// Use the Green channel only for grayscale process
57+
// Use the Green channel only for grayscale process
5858
{
5959
"Mode": "CICM_GENERAL",
6060
"BlueChannelWeight": 0,

parameters/scenario-settings/image-scale-and-colour-conversion.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,25 @@ In the following JSON template, we configured 4
3636
{
3737
"ImageParameter": {
3838
"ColourConversionModes": [
39-
// Use the default mode for grayscale process
39+
// Use the default mode for grayscale process
4040
{
4141
"Mode": "CICM_GENERAL"
4242
},
43-
// Use the Blue channel only for grayscale process
43+
// Use the Blue channel only for grayscale process
4444
{
4545
"Mode": "CICM_GENERAL",
4646
"BlueChannelWeight": 1000,
4747
"RedChannelWeight": 0,
4848
"GreenChannelWeight": 0
4949
},
50-
// Use the Red channel only for grayscale process
50+
// Use the Red channel only for grayscale process
5151
{
5252
"Mode": "CICM_GENERAL",
5353
"BlueChannelWeight": 0,
5454
"RedChannelWeight": 1000,
5555
"GreenChannelWeight": 0
5656
},
57-
// Use the Green channel only for grayscale process
57+
// Use the Green channel only for grayscale process
5858
{
5959
"Mode": "CICM_GENERAL",
6060
"BlueChannelWeight": 0,

parameters/scenario-settings/read-from-diff-source-v7.6.0.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ int main()
8484
reader->InitLicense("your license here");
8585
Mat image = cv::imread("your img file path");
8686
if (image.type() == CV_8UC3) {
87-
ret = reader->DecodeBuffer(image.data, image.cols, image.rows, image.cols * 3, IPF_RGB_888);
88-
}
87+
ret = reader->DecodeBuffer(image.data, image.cols, image.rows, image.cols * 3, IPF_RGB_888);
88+
}
8989
else if (image.type() == CV_8UC1) {
9090
ret = reader->DecodeBuffer(image.data, image.cols, image.rows, image.cols, IPF_GRAYSCALED);
9191
}
@@ -191,7 +191,7 @@ int main()
191191
cerr << "ERROR: Can't initialize camera capture" << endl;
192192
return 1;
193193
}
194-
194+
195195
int iRet = -1;
196196
CBarcodeReader reader;
197197
iRet = reader.InitLicense("enter your license");

parameters/structure-and-interfaces-of-parameters-v7.6.0.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Dynamsoft Barcode Reader uses a template to set parameters. A template contains
2424
- One or more `FormatSpecification` can be referenced through `FormatSpecificationNameArray` in `RegionDefinition`;
2525
- In a JSON template file/string, you can use `ImageParameterContentArray`/`RegionDefinitionArray`/`FormatSpecificationArray` field to define multiple `ImageParameter`/`RegionDefinition`/`FormatSpecification`, for example:
2626

27-
```JSON
27+
```json
2828
{
2929
"ImageParameterContentArray": [
3030
{
@@ -134,7 +134,7 @@ When setting parameters through a JSON template, Dynamsoft Barcode Reader will p
134134
- Parameters not defined in `ImageParameter`/`RegionDefinition`/`FormatSpecification` will be filled with default values
135135
- `FormatSpecification` is automatically split into multiple settings for a single barcode format, for example:
136136

137-
```JSON
137+
```json
138138
Template you set
139139
{
140140
"ImageParameter":{
@@ -153,7 +153,7 @@ Template you set
153153
```
154154

155155

156-
```JSON
156+
```json
157157
Template used by DBR
158158
{
159159
"ImageParameter":{

parameters/structure-and-interfaces-of-parameters-v9.2.0.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Dynamsoft Barcode Reader uses a template to set parameters. A template contains
2828
* One or more `FormatSpecification` can be referenced through `FormatSpecificationNameArray` in `RegionDefinition`;
2929
* In a JSON template file/string, you can use `ImageParameterContentArray`/`RegionDefinitionArray`/`FormatSpecificationArray` field to define multiple `ImageParameter`/`RegionDefinition`/`FormatSpecification`, for example:
3030

31-
```JSON
31+
```json
3232
{
3333
"FormatSpecificationArray": [{
3434
"Name": "IP1_BF_QR_CODE"
@@ -152,7 +152,7 @@ When setting parameters through a JSON template, Dynamsoft Barcode Reader will p
152152
* Parameters not defined in `ImageParameter`/`RegionDefinition`/`FormatSpecification` will be filled with default values
153153
* `FormatSpecification` is automatically split into multiple settings for a single barcode format, for example:
154154

155-
```JSON
155+
```json
156156
Template you set
157157
{
158158
"ImageParameter":{
@@ -170,7 +170,7 @@ Template you set
170170
}
171171
```
172172

173-
```JSON
173+
```json
174174
Template used by DBR
175175
{
176176
"ImageParameter":{

parameters/structure-and-interfaces-of-parameters-v9.6.31.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Dynamsoft Barcode Reader uses a template to set parameters. A template contains
2727
* One or more `FormatSpecification` can be referenced through `FormatSpecificationNameArray` in `RegionDefinition`;
2828
* In a JSON template file/string, you can use `ImageParameterContentArray`/`RegionDefinitionArray`/`FormatSpecificationArray` field to define multiple `ImageParameter`/`RegionDefinition`/`FormatSpecification`, for example:
2929

30-
```JSON
30+
```json
3131
{
3232
"FormatSpecificationArray": [{
3333
"Name": "IP1_BF_QR_CODE"
@@ -153,7 +153,7 @@ When setting parameters through a JSON template, Dynamsoft Barcode Reader will p
153153
* Parameters not defined in `ImageParameter`/`RegionDefinition`/`FormatSpecification` will be filled with default values
154154
* `FormatSpecification` is automatically split into multiple settings for a single barcode format, for example:
155155

156-
```JSON
156+
```json
157157
Template you set
158158
{
159159
"ImageParameter":{
@@ -171,7 +171,7 @@ Template you set
171171
}
172172
```
173173

174-
```JSON
174+
```json
175175
Template used by DBR
176176
{
177177
"ImageParameter":{

performance/flexibility-extensibility.md

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -21,26 +21,26 @@ DBR classifies and organizes a series of algorithm/result control parameters to
2121

2222
The following simple example reflects the relationship between top-level objects:
2323

24-
```JSON
24+
```json
2525
{
26-
"FormatSpecificationArray": [{
27-
"Name": "IP1_BF_QR_CODE"
28-
}],
29-
"ImageParameter": {
30-
"FormatSpecificationNameArray": [
31-
"IP1_BF_QR_CODE"
32-
],
33-
34-
"Name": "default",
35-
36-
"RegionDefinitionNameArray": [
37-
"region1"
38-
]
39-
},
40-
"RegionDefinition": {
41-
"Name": "region1"
42-
},
43-
"Version": "3.0"
26+
"FormatSpecificationArray": [{
27+
"Name": "IP1_BF_QR_CODE"
28+
}],
29+
"ImageParameter": {
30+
"FormatSpecificationNameArray": [
31+
"IP1_BF_QR_CODE"
32+
],
33+
34+
"Name": "default",
35+
36+
"RegionDefinitionNameArray": [
37+
"region1"
38+
]
39+
},
40+
"RegionDefinition": {
41+
"Name": "region1"
42+
},
43+
"Version": "3.0"
4444
}
4545
```
4646

@@ -179,11 +179,11 @@ In the following JSON template, we configured two different binarization modes (
179179
{
180180
"ImageParameter": {
181181
"BinarizationModes": [
182-
// Use the default arguments of BM_LOCAL_BLOCK
182+
// Use the default arguments of BM_LOCAL_BLOCK
183183
{
184184
"Mode": "BM_LOCAL_BLOCK"
185185
},
186-
// Use customed blocksize on BM_LOCAL_BLOCK
186+
// Use customed blocksize on BM_LOCAL_BLOCK
187187
{
188188
"Mode": "BM_LOCAL_BLOCK",
189189
"BlockSizeX": 11,

0 commit comments

Comments
 (0)