Skip to content

update to internal commit 5cbe6e21 #40

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ dcv_parameters: /capture-vision/docs/core/parameters/reference/
dcv_js_api: /capture-vision/docs/web/programming/javascript/api-reference/
dcv_introduction: /capture-vision/docs/core/introduction/

useVersionTree: true
useVersionTree: false
isDCV: true

assets: /document-normalizer/docs/web/assets/
edit_icon: /document-normalizer/docs/web/assets/img-icon/edit-icon.png
Expand Down
56 changes: 0 additions & 56 deletions _includes/dcvNav.html

This file was deleted.

42 changes: 11 additions & 31 deletions _includes/ddnNav.html
Original file line number Diff line number Diff line change
@@ -1,41 +1,29 @@
<style>
#cp-header .action-buttons { display: none; }
#mdHeader { border-bottom: 0!important; }
#mdHeader { border-bottom: 0 !important; }
#sideBarCnt.sidebar-fixed { position: fixed; top: 88px; max-height: unset; }
.rightSideMenu.rsm-fixed { position: fixed; top: 100px; }
#docHead { top: 151px; }
.productMenu .downloadBtn:hover { color: #ffffff!important; }
@media (max-width: 1679px){
#docHead {
top: 145px;
}
.productMenu .downloadBtn:hover { color: #ffffff !important; }

@media (max-width: 1679px) {
#docHead { top: 145px; }
}
</style>
</style>

<div id="DocumentNormalizer" class="main">
<div id="DocumentNormalizerMenu" class="productMenu">
<div class="container pcProductMenu">
<div class="row">
<div class="col-xs-12">
<ul class="menuList">
<!---->
<li class="title"><a class="orangeLink" href="{{site.docHomePage}}">Dynamsoft Document Normalizer</a></li>
<!-- <li class="item overview">
<a class="textUpperCase" href="{{site.overview}}">Overview</a>
</li>
<li class="item overview">
<a class="textUpperCase" href="{{site.frontPageFolder}}">Release Notes</a>
</li> -->
<li class="item overview">
<a class="textUpperCase" href="{{site.js}}">Documentation</a>
<a class="textUpperCase" href="{{site.docHomePage}}">Documentation</a>
</li>
</ul>
<div class="trialAndPricing fr">
<ul class="menuList">
<li class="item textUpperCase"><a href="{{site.download}}">Free Trial</a></li>
</ul>
<a class="downloadBtn fr hide-lg textUpperCase" href="https://www.dynamsoft.com/document-normalizer/ask-for-quote/">Get Pricing</a>
</div>
<a href="https://www.dynamsoft.com/document-normalizer/ask-for-quote/" class="downloadBtn fr">Get Pricing</a>
<a href="https://www.dynamsoft.com/document-normalizer/downloads/" target="_blank" class="downloadBtn borderBtn fr">Download <span class="hide-md">30-Day Trial</span></a>
</div>
</div>
</div>
Expand All @@ -52,16 +40,8 @@
<div class="row">
<div class="col-xs-12">
<ul class="menuList">
<!---->
<!-- <li class="title"><a class="orangeLink" href="{{site.docHomePage}}">Dynamsoft Document Normalizer</a></li> -->
<!-- <li class="item overview">
<a class="textUpperCase" href="{{site.overview}}">Overview</a>
</li>
<li class="item overview">
<a class="textUpperCase" href="{{site.frontPageFolder}}">Release Notes</a>
</li> -->
<li class="item overview">
<a class="textUpperCase" href="{{site.js}}">Documentation</a>
<li class="item">
<a class="textUpperCase" href="{{site.docHomePage}}">Documentation</a>
</li>
<li class="item">
<a class="textUpperCase" href="https://www.dynamsoft.com/document-normalizer/ask-for-quote/">Get Pricing</a>
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
---
layout: default-layout
title: Interface SimplifiedDocumentNormalizerSettings - Dynamsoft Document Normalizer JS Edition API Reference v2.2.10
description: This page shows the JS edition of the interface SimplifiedDocumentNormalizerSettings in Dynamsoft DDN Module v2.2.10.
keywords: simplified setting, document normalizer, JS
needAutoGenerateSidebar: true
noTitleIndex: true
---

# SimplifiedDocumentNormalizerSettings

This interface defines simplified settings for document normalizer tasks.

## Definition

```typescript
interface SimplifiedDocumentNormalizerSettings {
grayscaleEnhancementModes: Array<Core.EnumGrayscaleEnhancementMode>;
grayscaleTransformationModes: Array<Core.EnumGrayscaleTransformationMode>;
colourMode: EnumImageColourMode;
pageSize: [number, number];
brightness: number;
contrast: number;
scaleDownThreshold: number;
}
```

## grayscaleEnhancementModes

Set the grayscale enhancement modes with an array of enumeration `GrayscaleEnhancementMode`. View the reference page of `GrayscaleEnhancementModes` for more detail about grayscale enhancement modes.

```typescript
grayscaleEnhancementModes: Array<Core.EnumGrayscaleEnhancementMode>;
```

**See also**

* [EnumGrayscaleEnhancementMode]({{ site.enums }}core/grayscale-enhancement-mode.html?lang=js)

## grayscaleTransformationModes

Set the grayscale transformation modes with an array of enumeration `GrayscaleTransformationMode`. View the reference page of `GrayscaleTransformationModes` for more detail about grayscale transformation modes.

```typescript
grayscaleTransformationModes: Array<Core.EnumGrayscaleTransformationMode>;
```

**See also**

* [EnumGrayscaleTransformationMode]({{ site.enums }}core/grayscale-transformation-mode.html?lang=js)

## colourMode

Sets the colour mode of the normalized image with enumeration `ImageColourMode`. View the reference page of `ImageColourMode` for more detail about colour mode.

```typescript
colourMode: EnumImageColourMode;
```

**See also**

* [EnumImageColourMode]({{ site.enums }}document-normalizer/image-colour-mode.html?lang=js)

## pageSize

Sets the page size (width by height in pixels) of the normalized image.

```typescript
pageSize: [number, number];
```

## brightness

Sets the brightness of the normalized image. The value range is [-100,100].

```typescript
brightness: number;
```

## contrast

Sets the contrast of the normalized image. The value range is [-100,100].

```typescript
contrast: number;
```

## scaleDownThreshold

Set the threshold for scaling down the input image during document detection. If the shorter edge size of the image is larger than this threshold,the original may be scaled down to reduce processing time. The default value is 2300.

```typescript
scaleDownThreshold: number;
```
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ interface SimplifiedDocumentNormalizerSettings {
brightness: number;
contrast: number;
scaleDownThreshold: number;
minQuadrilateralAreaRatio: number;
expectedDocumentsCount: number;
}
```

Expand Down Expand Up @@ -91,4 +93,20 @@ Set the threshold for scaling down the input image during document detection. If

```typescript
scaleDownThreshold: number;
```

## minQuadrilateralAreaRatio

The minimum ratio between the target document area and the total image area. Only those exceeding this value will be output (measured in percentages).

```typescript
minQuadrilateralAreaRatio: number;
```

## expectedDocumentsCount

The number of documents expected to be detected.

```typescript
expectedDocumentsCount: number;
```
Loading