Skip to content

Commit 1bfb190

Browse files
update parameter pages
1 parent f2d9342 commit 1bfb190

File tree

11 files changed

+472
-646
lines changed

11 files changed

+472
-646
lines changed

parameters/file/capture-vision-template.md

Lines changed: 114 additions & 143 deletions
Large diffs are not rendered by default.

parameters/file/image-parameter.md

Lines changed: 66 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -3,75 +3,55 @@ layout: default-layout
33
title: ImageParameter - Dynamsoft Capture Vision Parameter File
44
description: ImageParameter in the Dynamsoft Capture Vision Parameter File is an object for configuring common image processing steps.
55
keywords: image parameter, image processing, setting
6-
needAutoGenerateSidebar: true
7-
needGenerateH3Content: true
8-
noTitleIndex: false
96
---
107

118
# ImageParameter Object
129

13-
The ImageParameter object is designed to configure and organize parameters for image processing stages, including but not limited to convert color-to-grayscale stage, enhance grayscale image stage, binarize image stage, detect text zone stage, and detect texture stage. You can configure detailed parameters for each stage.
10+
The `ImageParameter` object is designed to configure and organize parameters for image processing stages, including convert color-to-grayscale, enhance grayscale, binarize image, detect text zones, and detect texture stages. You can configure detailed parameters for each stage.
11+
12+
## Example
1413

1514
```json
1615
{
1716
"ImageParameterOptions": [
1817
{
19-
"Name" : "ip_default",
18+
"Name": "ip_default",
2019
"BaseImageParameterName": "ip_base",
21-
"ApplicableStages":[
22-
{ "Stage": "SST_SCALE_IMAGE", "ImageScaleSetting" : {} },
23-
{ "Stage": "SST_CONVERT_TO_GRAYSCALE", "ColourConversionModes" : [] },
24-
{ "Stage": "SST_TRANSFORM_GRAYSCALE", "GrayscaleTransformationModes" : [] },
25-
{ "Stage": "SST_ENHANCE_GRAYSCALE", "GrayscaleEnhancementModes" : [] },
26-
{ "Stage": "SST_BINARIZE_IMAGE", "BinarizationModes" : [] },
27-
{ "Stage": "SST_DETECT_TEXTURE", "TextureDetectionModes" : [] },
28-
{ "Stage": "SST_REMOVE_TEXTURE_FROM_GRAYSCALE" },
29-
{ "Stage": "SST_BINARIZE_TEXTURE_REMOVED_GRAYSCALE" },
30-
{ "Stage": "SST_FIND_CONTOURS" },
31-
{ "Stage": "SST_DETECT_SHORTLINES", "ShortlineDetectionMode": {} },
32-
{ "Stage": "SST_ASSEMBLE_LINES", "LineAssemblyMode": {} },
33-
{ "Stage": "SST_DETECT_TEXT_ZONES", "TextDetectionMode": {} },
34-
{ "Stage": "SST_REMOVE_TEXT_ZONES_FROM_BINARY", "IfEraseTextZone": 0 }
20+
"ApplicableStages": [
21+
{"Stage": "SST_SCALE_IMAGE", "ImageScaleSetting": {}},
22+
{"Stage": "SST_CONVERT_TO_GRAYSCALE", "ColourConversionModes": []},
23+
{"Stage": "SST_TRANSFORM_GRAYSCALE", "GrayscaleTransformationModes": []},
24+
{"Stage": "SST_ENHANCE_GRAYSCALE", "GrayscaleEnhancementModes": []},
25+
{"Stage": "SST_BINARIZE_IMAGE", "BinarizationModes": []},
26+
{"Stage": "SST_DETECT_TEXTURE", "TextureDetectionModes": []},
27+
{"Stage": "SST_REMOVE_TEXTURE_FROM_GRAYSCALE"},
28+
{"Stage": "SST_BINARIZE_TEXTURE_REMOVED_GRAYSCALE"},
29+
{"Stage": "SST_FIND_CONTOURS"},
30+
{"Stage": "SST_DETECT_SHORTLINES", "ShortlineDetectionMode": {}},
31+
{"Stage": "SST_ASSEMBLE_LINES", "LineAssemblyMode": {}},
32+
{"Stage": "SST_DETECT_TEXT_ZONES", "TextDetectionMode": {}},
33+
{"Stage": "SST_REMOVE_TEXT_ZONES_FROM_BINARY", "IfEraseTextZone": 0}
3534
]
3635
}
3736
]
3837
}
3938
```
4039

41-
- [Name]({{ site.dcvb_parameters_reference }}image-parameter/name.html)
42-
- [BaseImageParameterName]({{ site.dcvb_parameters_reference }}image-parameter/base-image-parameter-name.html)
43-
- [ApplicableStages]({{ site.dcvb_parameters_reference }}image-parameter/applicable-stages.html)
44-
- [Scale Image Stage]({{ site.dcvb_parameters_reference }}image-parameter/stage-scale-image.html)
45-
- [ImageScaleSetting]({{ site.dcvb_parameters_reference }}image-parameter/image-scale-settings.html)
46-
- [Convert to Grayscale Stage]({{ site.dcvb_parameters_reference }}image-parameter/stage-convert-to-grayscale.html)
47-
- [ColourConversionModes]({{ site.dcvb_parameters_reference }}image-parameter/colour-conversion-modes.html)
48-
- [Transform Grayscale Stage]({{ site.dcvb_parameters_reference }}image-parameter/stage-transform-grayscale.html)
49-
- [GrayscaleTransformationModes]({{ site.dcvb_parameters_reference }}image-parameter/grayscale-transformation-modes.html)
50-
- [Enhance Grayscale Stage]({{ site.dcvb_parameters_reference }}image-parameter/stage-enhance-grayscale.html)
51-
- [GrayscaleEnhancementModes]({{ site.dcvb_parameters_reference }}image-parameter/grayscale-enhancement-modes.html)
52-
- [Binarize Image Stage]({{ site.dcvb_parameters_reference }}image-parameter/stage-binarize-image.html)
53-
- [BinarizationModes]({{ site.dcvb_parameters_reference }}image-parameter/binarization-modes.html)
54-
- [Detect Texture Stage]({{ site.dcvb_parameters_reference }}image-parameter/stage-detect-texture.html)
55-
- [TextureDetectionModes]({{ site.dcvb_parameters_reference }}image-parameter/texture-detection-modes.html)
56-
- [Remove Texture From Grayscale Stage]({{ site.dcvb_parameters_reference }}image-parameter/stage-remove-texture-from-grayscale.html)
57-
- [Binarize Texture Removed Grayscale Stage]({{ site.dcvb_parameters_reference }}image-parameter/stage-binarize-texture-removed-grayscale.html)
58-
- [Find Contours Stage]({{ site.dcvb_parameters_reference }}image-parameter/stage-find-contours.html)
59-
- [Detect Shortlines Stage]({{ site.dcvb_parameters_reference }}image-parameter/stage-detect-shortlines.html)
60-
- [ShortlineDetectionMode]({{ site.dcvb_parameters_reference }}image-parameter/shortline-detection-mode.html)
61-
- [Assemble Lines Stage]({{ site.dcvb_parameters_reference }}image-parameter/stage-assemble-lines.html)
62-
- [LineAssemblyMode]({{ site.dcvb_parameters_reference }}image-parameter/line-assembly-mode.html)
63-
- [Detect Text Zones Stage]({{ site.dcvb_parameters_reference }}image-parameter/stage-detect-text-zones.html)
64-
- [TextDetectionMode]({{ site.dcvb_parameters_reference }}image-parameter/text-detection-mode.html)
65-
- [Remove Text Zones From Binary Stage]({{ site.dcvb_parameters_reference }}image-parameter/stage-remove-text-zones-from-binary.html)
66-
- [IfEraseTextZone]({{ site.dcvb_parameters_reference }}image-parameter/if-erase-text-zone.html)
67-
68-
## Definition and Reference
69-
70-
Each algorithm section of the funtional products has a default `ImageParameter` settings. You can either skip the ImageParameter settings to implement the default settings or define your own `ImageParameter` objects and specify them in the sections you want to customize.
71-
72-
### Define an ImageParameter Object
73-
74-
`ImageParameter` objects are configured under `ImageParameterOptions` and each object has a unique name as its identifier.
40+
## Parameters
41+
42+
| Parameter Name | Type | Required/Optional | Description |
43+
| -------------- | ---- | ----------------- | ----------- |
44+
| [`Name`]({{site.dcvb_parameters_reference}}image-parameter/name.html) | String | Required | The unique identifier for this `ImageParameter` object. |
45+
| [`BaseImageParameterName`]({{site.dcvb_parameters_reference}}image-parameter/base-image-parameter-name.html) | String | Optional | The name of another `ImageParameter` object to inherit settings from. |
46+
| [`ApplicableStages`]({{site.dcvb_parameters_reference}}image-parameter/applicable-stages.html) | Array | Optional | An array of stage objects defining the image processing pipeline. |
47+
48+
## Usage
49+
50+
Each functional product has default `ImageParameter` settings. You can either use the defaults or define custom `ImageParameter` objects for specific sections.
51+
52+
### Defining ImageParameter Objects
53+
54+
`ImageParameter` objects are configured under `ImageParameterOptions`, each with a unique name:
7555

7656
```json
7757
{
@@ -86,7 +66,7 @@ Each algorithm section of the funtional products has a default `ImageParameter`
8666
}
8767
```
8868

89-
You can define a new `ImageParameter` object based on an existing `ImageParameter` object. For example:
69+
You can create a new `ImageParameter` based on an existing one using inheritance:
9070

9171
```json
9272
{
@@ -96,20 +76,19 @@ You can define a new `ImageParameter` object based on an existing `ImageParamete
9676
},
9777
{
9878
"Name": "IP_1",
99-
"BaseImageParameterName" : "IP_0"
79+
"BaseImageParameterName": "IP_0"
10080
}
10181
]
10282
}
10383
```
10484

105-
### Specify an ImageParameter for Task Sections
85+
### Referencing in Task Settings
10686

107-
`ImageParameter` is referenced in task settings under `SectionImageParameterArray` with their names. For example:
87+
Reference `ImageParameter` objects in task settings by name:
10888

10989
```json
11090
{
111-
"SectionArray":
112-
[
91+
"SectionArray": [
11392
{
11493
"Section": "ST_REGION_PREDETECTION",
11594
"ImageParameterName": "IP_0"
@@ -126,30 +105,35 @@ You can define a new `ImageParameter` object based on an existing `ImageParamete
126105
}
127106
```
128107

129-
## Summary of ImageParameter Top-level Parameters
130-
131-
View the parameter references for the details of each `ImageParameter` parameters.
132-
133-
| Parameter Name | Description |
134-
| ---------------------------------- | ----------- |
135-
| [`BaseImageParameterName`](../reference/image-parameter/base-image-parameter-name.md) | Represents the name of another `ImageParameter` object to inherit from. |
136-
| [`Name`](../reference/image-parameter/name.md) | Defines the name of a `ImageParameter` object, which serves as its unique identifier. |
137-
| [`ApplicableStages`](../reference/image-parameter/applicable-stages.md) | Defines the applicable stage parameters with an array of stage objects. |
138-
139108
## Available Stages
140109

141110
| Stage Name | Description |
142111
| ---------- | ----------- |
143-
| [`SST_SCALE_IMAGE`](../reference/image-parameter/stage-scale-image.md) | The stage for scaling up or down the image. |
144-
| [`SST_CONVERT_TO_GRAYSCALE`](../reference/image-parameter/stage-convert-to-grayscale.md) | The stage for converting a colour image to a grayscale image. |
145-
| [`SST_TRANSFORM_GRAYSCALE`](../reference/image-parameter/stage-transform-grayscale.md) | The stage for transforming the grayscale image. Generally used when processing inverted barcodes or text lines. |
146-
| [`SST_ENHANCE_GRAYSCALE`](../reference/image-parameter/stage-enhance-grayscale.md) | The stage for enhancing the quality of the grayscale image. |
147-
| [`SST_BINARIZE_IMAGE`](../reference/image-parameter/stage-binarize-image.md) | The stage for binarizing the image. |
148-
| [`SST_DETECT_TEXTURE`](../reference/image-parameter/stage-detect-texture.md) | The stage for detecting texture on the image. |
149-
| [`SST_REMOVE_TEXTURE_FROM_GRAYSCALE`](../reference/image-parameter/stage-remove-texture-from-grayscale.md) | The stage for removing texture from the grayscale image. |
150-
| [`SST_BINARIZE_TEXTURE_REMOVED_GRAYSCALE`](../reference/image-parameter/stage-binarize-texture-removed-grayscale.md) | The stage for binarizing the texture removed grayscale image. |
151-
| [`SST_FIND_CONTOURS`](../reference/image-parameter/stage-find-contours.md) | The stage for finding contours in the image. |
152-
| [`SST_DETECT_SHORTLINES`](../reference/image-parameter/stage-detect-shortlines.md) | The stage for detecting short lines for document boundary detection. |
153-
| [`SST_ASSEMBLE_LINES`](../reference/image-parameter/stage-assemble-lines.md) | The stage for assembling lines. |
154-
| [`SST_DETECT_TEXT_ZONES`](../reference/image-parameter/stage-detect-text-zones.md) | The stage for detecting text zones on the image. |
155-
| [`SST_REMOVE_TEXT_ZONES_FROM_BINARY`](../reference/image-parameter/stage-remove-text-zones-from-binary.md) | The stage for removing text zones from the binary image. |
112+
| [`SST_SCALE_IMAGE`]({{site.dcvb_parameters_reference}}image-parameter/stage-scale-image.html) | Scales the image up or down. |
113+
| [`SST_CONVERT_TO_GRAYSCALE`]({{site.dcvb_parameters_reference}}image-parameter/stage-convert-to-grayscale.html) | Converts a color image to grayscale. |
114+
| [`SST_TRANSFORM_GRAYSCALE`]({{site.dcvb_parameters_reference}}image-parameter/stage-transform-grayscale.html) | Transforms the grayscale image (e.g., for inverted barcodes). |
115+
| [`SST_ENHANCE_GRAYSCALE`]({{site.dcvb_parameters_reference}}image-parameter/stage-enhance-grayscale.html) | Enhances grayscale image quality. |
116+
| [`SST_BINARIZE_IMAGE`]({{site.dcvb_parameters_reference}}image-parameter/stage-binarize-image.html) | Converts grayscale to binary image. |
117+
| [`SST_DETECT_TEXTURE`]({{site.dcvb_parameters_reference}}image-parameter/stage-detect-texture.html) | Detects texture patterns in the image. |
118+
| [`SST_REMOVE_TEXTURE_FROM_GRAYSCALE`]({{site.dcvb_parameters_reference}}image-parameter/stage-remove-texture-from-grayscale.html) | Removes texture from grayscale image. |
119+
| [`SST_BINARIZE_TEXTURE_REMOVED_GRAYSCALE`]({{site.dcvb_parameters_reference}}image-parameter/stage-binarize-texture-removed-grayscale.html) | Binarizes the texture-removed grayscale image. |
120+
| [`SST_FIND_CONTOURS`]({{site.dcvb_parameters_reference}}image-parameter/stage-find-contours.html) | Finds contours in the image. |
121+
| [`SST_DETECT_SHORTLINES`]({{site.dcvb_parameters_reference}}image-parameter/stage-detect-shortlines.html) | Detects short lines for document boundary detection. |
122+
| [`SST_ASSEMBLE_LINES`]({{site.dcvb_parameters_reference}}image-parameter/stage-assemble-lines.html) | Assembles detected lines. |
123+
| [`SST_DETECT_TEXT_ZONES`]({{site.dcvb_parameters_reference}}image-parameter/stage-detect-text-zones.html) | Detects text zones in the image. |
124+
| [`SST_REMOVE_TEXT_ZONES_FROM_BINARY`]({{site.dcvb_parameters_reference}}image-parameter/stage-remove-text-zones-from-binary.html) | Removes text zones from binary image. |
125+
126+
## Stage Parameters
127+
128+
Each stage can have associated parameters for fine-tuning:
129+
130+
- **SST_SCALE_IMAGE**: [`ImageScaleSetting`]({{site.dcvb_parameters_reference}}image-parameter/image-scale-settings.html)
131+
- **SST_CONVERT_TO_GRAYSCALE**: [`ColourConversionModes`]({{site.dcvb_parameters_reference}}image-parameter/colour-conversion-modes.html)
132+
- **SST_TRANSFORM_GRAYSCALE**: [`GrayscaleTransformationModes`]({{site.dcvb_parameters_reference}}image-parameter/grayscale-transformation-modes.html)
133+
- **SST_ENHANCE_GRAYSCALE**: [`GrayscaleEnhancementModes`]({{site.dcvb_parameters_reference}}image-parameter/grayscale-enhancement-modes.html)
134+
- **SST_BINARIZE_IMAGE**: [`BinarizationModes`]({{site.dcvb_parameters_reference}}image-parameter/binarization-modes.html)
135+
- **SST_DETECT_TEXTURE**: [`TextureDetectionModes`]({{site.dcvb_parameters_reference}}image-parameter/texture-detection-modes.html)
136+
- **SST_DETECT_SHORTLINES**: [`ShortlineDetectionMode`]({{site.dcvb_parameters_reference}}image-parameter/shortline-detection-mode.html)
137+
- **SST_ASSEMBLE_LINES**: [`LineAssemblyMode`]({{site.dcvb_parameters_reference}}image-parameter/line-assembly-mode.html)
138+
- **SST_DETECT_TEXT_ZONES**: [`TextDetectionMode`]({{site.dcvb_parameters_reference}}image-parameter/text-detection-mode.html)
139+
- **SST_REMOVE_TEXT_ZONES_FROM_BINARY**: [`IfEraseTextZone`]({{site.dcvb_parameters_reference}}image-parameter/if-erase-text-zone.html)

parameters/file/image-source.md

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,11 @@ An `ImageSource` object defines an image source to be created and maintained by
3333

3434
| Parameter Name | Description |
3535
| ---------------- | -------------------------------------------------------------------------------------------------------- |
36-
| `Name` | Represents the name of the ImageSource object, which serves as its unique identifier. |
37-
| `Type` | Indicates the type of the `ImageSource` object, which helps CVR create the correct type of image source. |
38-
| `DirectoryPath` | Specifies a local directory, the files within which are fetched as images to process. |
39-
| `FileFilter` | Specifies a file name filter string, which determines which files are fetched. |
40-
| `Recursive` | Indicates whether to fetch files recursively. |
41-
| `PDFReadingMode` | Defines how to handle PDF files. |
42-
| `Pages` | Sets the 0-based page indexes of a file (.tiff or .pdf) for barcode searching. |
36+
| [`Name`]({{ site.dcvb_parameters_reference }}image-source-options/name.html) | Represents the name of the ImageSource object, which serves as its unique identifier. |
37+
| [`Type`]({{ site.dcvb_parameters_reference }}image-source-options/type.html) | Indicates the type of the `ImageSource` object, which helps CVR create the correct type of image source. |
38+
| [`DirectoryPath`]({{ site.dcvb_parameters_reference }}image-source-options/directory-path.html) | Specifies a local directory, the files within which are fetched as images to process. |
39+
| [`FileFilter`]({{ site.dcvb_parameters_reference }}image-source-options/file-filter.html) | Specifies a file name filter string, which determines which files are fetched. |
40+
| [`Recursive`]({{ site.dcvb_parameters_reference }}image-source-options/recursive.html) | Indicates whether to fetch files recursively. |
41+
| [`PDFReadingMode`]({{ site.dcvb_parameters_reference }}image-source-options/pdf-reading-mode.html) | Defines how to handle PDF files. |
42+
| [`Pages`]({{ site.dcvb_parameters_reference }}image-source-options/pages.html) | Sets the 0-based page indexes of a file (.tiff or .pdf) for barcode searching. |
4343

44-
45-
### Sub Parameters of PDFReadingMode
46-
47-
| Parameter Name | Description |
48-
| -------------- | ----------------------------------------------------------------------------------------------------- |
49-
| `Mode` | Specifies the operation mode. Read more about [PDFReadingMode](../../enums/core/pdf-reading-mode.md). |
50-
| `DPI` | Specifies the DPI used when rasterizing a PDF into images. |
51-
| `TargetType` | Specifies a the target type. Read more about [TargetType](../../enums/core/target-type.md). |

0 commit comments

Comments
 (0)