Skip to content

Commit

Permalink
update to internal commit 54e0f0cc
Browse files Browse the repository at this point in the history
  • Loading branch information
DMGithubPublisher committed Jun 27, 2024
1 parent a75eb8f commit db02737
Show file tree
Hide file tree
Showing 5 changed files with 204 additions and 23 deletions.
1 change: 1 addition & 0 deletions _data/product_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ version_info_list:
- 2.2.0_c
- 2.0.0_c
- 2.0.0_dotnet
- 2.2.10_java
- 2.0.0_java
- value: 1.x
child:
Expand Down
132 changes: 132 additions & 0 deletions programming-old/java/api-reference/dlr-runtime-settings-v2.0.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
---
layout: default-layout
title: Class DLRRuntimeSettings - Dynamsoft Label Recognizer Java Edition
description: This page shows the DLRRuntimeSettings struct of Dynamsoft Label Recognizer for Java Language.
keywords: DLRRuntimeSettings, struct, java
needAutoGenerateSidebar: true
needGenerateH3Content: true
noTitleIndex: true
permalink: /programming/java/api-reference/dlr-runtime-settings-v2.0.0.html
---


# DLRRuntimeSettings
Defines a struct to configure the text recognizer runtime settings. These settings control the text recognition process.

```java
class com.dynamsoft.dlr.DLRRuntimeSettings
```

## Attributes

| Attribute | Type |
|---------- | ---- |
| [`maxThreadCount`](#maxthreadcount) | *int* |
| [`characterModelName`](#charactermodelname) | *String* |
| [`referenceRegion`](#referenceregion) | [`DLRReferenceRegion`](dlr-reference-region.md) |
| [`textArea`](#textarea) | [`DLRQuadrilateral`](dlr-quadrilateral.md) |
| [`dictionaryPath`](#dictionarypath) | *String* |
| [`dictionaryCorrectionThreshold`](#dictionarycorrectionthreshold) | [`DLRDictionaryCorrectionThreshold`](dlr-dictionary-correction-threshold.md) |
| [`binarizationModes`](#binarizationmodes) | *int\[\]* |
| [`furtherModes`](#furthermodes) | [`DLRFurtherModes`](dlr-further-modes.md)|

 

### maxThreadCount
Sets the number of threads the algorithm will use to recognize label.

```java
int maxThreadCount
```

**Value Range**

[1, 4]

**Default value**

4

**Remarks**

To keep a balance between speed and quality, the library concurrently runs four different threads by default.

 

### characterModelName
The name of the CharacterModel.

```java
String characterModelName
```

 

### referenceRegion
Sets the reference region to search for text.

```java
DLRReferenceRegion referenceRegion
```

 

### textArea
Sets the text area relative to the reference region.

```java
Quadrilateral textArea
```

 

### dictionaryPath
Sets the path of the dictionary file.

```java
String dictionaryPath
```

 

### dictionaryCorrectionThreshold
Sets the threshold of dictionary error correction.

```java
DLRDictionaryCorrectionThreshold dictionaryCorrectionThreshold
```


 

### binarizationModes
Sets the mode and priority for binarization.

```java
int[] binarizationModes
```

**Value Range**

Each array item can be any one of the [`EnumBinarizationMode`]({{ site.dlr_enumerations }}binarization-mode.html) Enumeration items.

**Default value**

`[EnumBinarizationMode.BM_LOCAL_BLOCK, EnumBinarizationMode.BM_SKIP, EnumBinarizationMode.BM_SKIP, EnumBinarizationMode.BM_SKIP, EnumBinarizationMode.BM_SKIP, EnumBinarizationMode.BM_SKIP, EnumBinarizationMode.BM_SKIP, EnumBinarizationMode.BM_SKIP]`

**Remarks**

The array index represents the priority of the item. The smaller index is, the higher priority is.

 

### furtherModes
Sets further modes.

```java
DLRFurtherModes furtherModes
```

**See also**

[`DLRFurtherModes`](dlr-further-modes.md)
19 changes: 19 additions & 0 deletions programming-old/java/api-reference/dlr-runtime-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class com.dynamsoft.dlr.DLRRuntimeSettings
| [`dictionaryCorrectionThreshold`](#dictionarycorrectionthreshold) | [`DLRDictionaryCorrectionThreshold`](dlr-dictionary-correction-threshold.md) |
| [`binarizationModes`](#binarizationmodes) | *int\[\]* |
| [`furtherModes`](#furthermodes) | [`DLRFurtherModes`](dlr-further-modes.md)|
| [`timeout`](#timeout) | *int* |

 

Expand Down Expand Up @@ -132,3 +133,21 @@ DLRFurtherModes furtherModes

[`DLRFurtherModes`](dlr-further-modes.md)

 

### timeout

Sets the maximum amount of time (in milliseconds) that should be spent searching for labels per page. It does not include the time taken to load/decode an image (TIFF, PNG, etc.) from disk into memory.

```cpp
int timeout
```

**Value Range**
[0, 0x7fffffff]

**Default value**
10000

**Remarks**
If you want to stop searching for labels after a certain period of time, you can use this parameter to set a timeout.
22 changes: 22 additions & 0 deletions programming-old/java/release-notes/java-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,28 @@ permalink: /programming/java/release-notes/java-2.html

# Release Notes - Java 2.x

## 2.2.10 (06/27/2024)

### Highlights

{%- include release-notes/product-highlight-2.2.md -%}

### Changelog

#### New

- Added a new property [`timeout`](../../java/api-reference/dlr-runtime-settings.md#timeout) to [`DLRRuntimeSettings`](../../java/api-reference/dlr-runtime-settings.md) class.
- Added modes parameter `CharacterNormalizationModes` to normalize the text. The parameter is available under the following classes:
- `LabelRecognizerParameter`
- `TextArea`
- `LineSpecification`

#### Improved

- Reduced the size of MRZ model from 10MB to 2.56MB.
- Improved single-line text confidence. This enables users to implement a result confidence filter to improve the recognition accuracy.
- Improved character segmentation when processing some connected characters. This improves the recognition accuracy.

## 2.0 (08/26/2021)

### Highlights
Expand Down
53 changes: 30 additions & 23 deletions programming/cplusplus/user-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,26 @@ In this guide, you will learn step by step on how to build a label recognizer ap
<span style="font-size:20px">Table of Contents</span>

- [User Guide - C++](#user-guide---c)
- [Requirements](#requirements)
- [Installation](#installation)
- [Build Your First Application](#build-your-first-application)
- [Create A New Project](#create-a-new-project)
- [For Windows](#for-windows)
- [For Linux](#for-linux)
- [Include the Library](#include-the-library)
- [Initialize a Capture Vision Router Instance](#initialize-a-capture-vision-router-instance)
- [Recognize and Output Recognition Results](#recognize-and-output-recognition-results)
- [Release the Allocated Memory](#release-the-allocated-memory)
- [Build and Run the Project](#build-and-run-the-project)
- [On windows](#on-windows)
- [On Linux](#on-linux)
- [Process Multiple Images](#process-multiple-images)
- [Preparation Steps](#preparation-steps)
- [Add an Image Source as the Input](#add-an-image-source-as-the-input)
- [Add Captured Result Receiver](#add-captured-result-receiver)
- [Start Recognition](#start-recognition)
- [Release Allocated Memory](#release-allocated-memory)
- [Build and Run the Project Again](#build-and-run-the-project-again)
- [Requirements](#requirements)
- [Installation](#installation)
- [Build Your First Application](#build-your-first-application)
- [Create A New Project](#create-a-new-project)
- [For Windows](#for-windows)
- [For Linux](#for-linux)
- [Include the Library](#include-the-library)
- [Initialize a Capture Vision Router Instance](#initialize-a-capture-vision-router-instance)
- [Recognize and Output Recognition Results](#recognize-and-output-recognition-results)
- [Release the Allocated Memory](#release-the-allocated-memory)
- [Build and Run the Project](#build-and-run-the-project)
- [On windows](#on-windows)
- [On Linux](#on-linux)
- [Process Multiple Images](#process-multiple-images)
- [Preparation Steps](#preparation-steps)
- [Add an Image Source as the Input](#add-an-image-source-as-the-input)
- [Add Captured Result Receiver](#add-captured-result-receiver)
- [Start Recognition](#start-recognition)
- [Release Allocated Memory](#release-allocated-memory)
- [Build and Run the Project Again](#build-and-run-the-project-again)

## Requirements

Expand Down Expand Up @@ -138,10 +138,17 @@ Let's start by creating a console application which demonstrates the minimum cod
1. Initialize the license key

```cpp
int errorcode = 0;
char error[512];

CLicenseManager::InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", error, 512);
cout << "License initialization: " << error << endl;
errorcode = CLicenseManager::InitLicense("DLS2eyJvcmdhbml6YXRpb25JRCI6IjIwMDAwMSJ9", error, 512);
if (errorcode != ErrorCode::EC_OK && errorcode != ErrorCode::EC_LICENSE_CACHE_USED)
{
cout << "License initialization failed: ErrorCode: " << errorcode << ", ErrorString: " << error << endl;
}
else
{
// other codes...
}
```

>Note:
Expand Down

0 comments on commit db02737

Please sign in to comment.