Skip to content

Commit 29559d8

Browse files
Merge pull request #95 from dynamsoft-docs/preview
update to internal commit fd2af608
2 parents 069da83 + 5fc14ca commit 29559d8

File tree

4 files changed

+50
-61
lines changed

4 files changed

+50
-61
lines changed

_includes/sidelist-parameter-reference.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@
136136
<li><a href="{{ site.dcvb_parameters_reference }}image-parameter/stage-binarize-texture-removed-grayscale.html" class="otherLinkColour">Binarize Texture Removed Grayscale Stage</a>
137137
<ul>
138138
<li><a href="{{ site.dcvb_parameters_reference }}image-parameter/stage-binarize-texture-removed-grayscale.html#stage" class="otherLinkColour">Stage</a></li>
139+
<li><a href="{{ site.dcvb_parameters_reference }}image-parameter/binarization-modes.html" class="otherLinkColour">BinarizationModes</a></li>
139140
</ul>
140141
</li>
141142
<li><a href="{{ site.dcvb_parameters_reference }}image-parameter/stage-convert-to-grayscale.html" class="otherLinkColour">Convert to Grayscale Stage</a>

_includes/sidelist-parameters-organization.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@
353353
<li><a href="{{ site.dcvb_parameters_reference }}image-parameter/stage-binarize-texture-removed-grayscale.html" class="otherLinkColour">Binarize Texture Removed Grayscale Stage</a>
354354
<ul>
355355
<li><a href="{{ site.dcvb_parameters_reference }}image-parameter/stage-binarize-texture-removed-grayscale.html#stage" class="otherLinkColour">Stage</a></li>
356+
<li><a href="{{ site.dcvb_parameters_reference }}image-parameter/binarization-modes.html" class="otherLinkColour">BinarizationModes</a></li>
356357
</ul>
357358
</li>
358359
<li><a href="{{ site.dcvb_parameters_reference }}image-parameter/stage-convert-to-grayscale.html" class="otherLinkColour">Convert to Grayscale Stage</a>

parameters/reference/image-parameter/binarization-modes.md

Lines changed: 38 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,20 @@ Parameter `BinarizationModes` helps control the process of binarization, i.e., c
1717

1818
```json
1919
{
20-
"BinarizationModes": [
20+
"BinarizationModes" :
21+
[
2122
{
22-
"Mode": "BM_LOCAL_BLOCK",
23-
"BlockSizeX": 5,
24-
"BlockSizeY": 5,
23+
"BinarizationThreshold" : -1,
24+
"BlockSizeX" : 0,
25+
"BlockSizeY" : 0,
2526
"EnableFillBinaryVacancy" : 1,
26-
"ThresholdCompensation" : 5,
27-
"LibraryFileName" : "",
28-
"LibraryParameters" : ""
29-
},
30-
{
31-
"Mode": "BM_THRESHOLD",
32-
"BinarizationThreshold": 125
27+
"GrayscaleEnhancementModesIndex" : -1,
28+
"Mode" : "BM_LOCAL_BLOCK",
29+
"MorphOperation" : "None",
30+
"MorphOperationKernelSizeX" : 0,
31+
"MorphOperationKernelSizeY" : 0,
32+
"MorphShape" : "Rectangle",
33+
"ThresholdCompensation" : 10
3334
}
3435
]
3536
}
@@ -282,93 +283,70 @@ Parameter `BinarizationModes` consist of a group of binarization mode objects. E
282283

283284
If the `BinarizationModes` is not configured in your template file, the following settings will be used as the default settings.
284285

285-
#### For Barcode Decoding
286+
#### For Stage SST_BINARIZE_IMAGE
286287

287288
```json
288289
{
289290
"BinarizationModes" :
290291
[
291292
{
293+
"BinarizationThreshold" : -1,
292294
"BlockSizeX" : 0,
293295
"BlockSizeY" : 0,
294296
"EnableFillBinaryVacancy" : 1,
295297
"GrayscaleEnhancementModesIndex" : -1,
296298
"Mode" : "BM_LOCAL_BLOCK",
297-
"MorphOperation" : "Close",
298-
"MorphOperationKernelSizeX" : -1,
299-
"MorphOperationKernelSizeY" : -1,
299+
"MorphOperation" : "None",
300+
"MorphOperationKernelSizeX" : 0,
301+
"MorphOperationKernelSizeY" : 0,
300302
"MorphShape" : "Rectangle",
301303
"ThresholdCompensation" : 10
302304
}
303305
]
304306
}
305307
```
306308

307-
#### For Label Recognizing
309+
#### For Stage SST_BINARIZE_TEXTURE_REMOVED_GRAYSCALE
308310

309311
```json
310312
{
311313
"BinarizationModes" :
312314
[
313315
{
316+
"BinarizationThreshold" : -1,
314317
"BlockSizeX" : 0,
315318
"BlockSizeY" : 0,
316319
"EnableFillBinaryVacancy" : 1,
317320
"GrayscaleEnhancementModesIndex" : -1,
318-
"Mode" : "BM_LOCAL_BLOCK",
319-
"MorphOperation" : "Close",
320-
"MorphOperationKernelSizeX" : -1,
321-
"MorphOperationKernelSizeY" : -1,
321+
"Mode" : "BM_AUTO",
322+
"MorphOperation" : "None",
323+
"MorphOperationKernelSizeX" : 0,
324+
"MorphOperationKernelSizeY" : 0,
322325
"MorphShape" : "Rectangle",
323326
"ThresholdCompensation" : 10
324327
}
325328
]
326329
}
327330
```
328331

329-
#### For Document Normalizing
332+
#### For DeformationResistingModes
330333

331334
```json
332335
{
333-
"BinarizationModes" :
334-
[
335-
{
336-
"BlockSizeX" : 0,
337-
"BlockSizeY" : 0,
338-
"EnableFillBinaryVacancy" : 0,
339-
"GrayscaleEnhancementModesIndex" : -1,
340-
"Mode" : "BM_LOCAL_BLOCK",
341-
"MorphOperation" : "Close",
342-
"MorphOperationKernelSizeX" : -1,
343-
"MorphOperationKernelSizeY" : -1,
344-
"MorphShape" : "Rectangle",
345-
"ThresholdCompensation" : 10
346-
}
347-
]
348-
}
349-
```
350-
351-
#### For Text Line Specification
352-
353-
Re-binarize the text line area to support the character segmentation.
354-
355-
```json
356-
{
357-
"BinarizationModes" :
358-
[
359-
{
360-
"BlockSizeX": 11,
361-
"BlockSizeY": 11,
362-
"EnableFillBinaryVacancy": 1,
363-
"GrayscaleEnhancementModesIndex": -1,
364-
"Mode": "BM_LOCAL_BLOCK",
365-
"MorphOperation": "Erode",
366-
"MorphOperationKernelSizeX": -1,
367-
"MorphOperationKernelSizeY": -1,
368-
"MorphShape": "Rectangle",
369-
"ThresholdCompensation": 10
370-
}
371-
]
336+
"BinarizationMode" :
337+
{
338+
"BinarizationThreshold" : -1,
339+
"BlockSizeX" : 0,
340+
"BlockSizeY" : 0,
341+
"EnableFillBinaryVacancy" : 1,
342+
"GrayscaleEnhancementModesIndex" : -1,
343+
"Mode" : "BM_LOCAL_BLOCK",
344+
"MorphOperation" : "None",
345+
"MorphOperationKernelSizeX" : 0,
346+
"MorphOperationKernelSizeY" : 0,
347+
"MorphShape" : "Rectangle",
348+
"ThresholdCompensation" : 10
349+
}
372350
}
373351
```
374352

parameters/reference/image-parameter/stage-binarize-texture-removed-grayscale.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,19 @@ The parameters that available under the Binarize texture removed grayscale image
1414

1515
```json
1616
{
17-
"Stage":"SST_BINARIZE_TEXTURE_REMOVED_GRAYSCALE"
17+
"Stage":"SST_BINARIZE_TEXTURE_REMOVED_GRAYSCALE",
18+
"BinarizationModes" : []
1819
},
1920
```
2021

2122
## Stage
2223

2324
The stage name of binarize texture removed grayscale image stage is `SST_BINARIZE_TEXTURE_REMOVED_GRAYSCALE`.
25+
26+
## BinarizationModes
27+
28+
Defines the binarization options with an array of [`BinarizationMode`](binarization-modes.md) objects. The modes in the array will be executed sequentially until the task is completed.
29+
30+
| Stage Parameter Summary |
31+
| :---------------------- |
32+
| **Type**<br>An array of [`BinarizationMode`](binarization-modes.md) objects |

0 commit comments

Comments
 (0)