Skip to content

Commit 2bcdc28

Browse files
committed
update how to get the OCR resources
1 parent b205592 commit 2bcdc28

File tree

1 file changed

+7
-6
lines changed
  • _articles/extended-usage

1 file changed

+7
-6
lines changed

_articles/extended-usage/ocr.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,13 @@ Dynamic Web TWAIN provides an OCR add-on to extract text in your scanned images.
1717

1818
* Windows 10 versions >= 1809 and all versions of Windows 11
1919
* A license with the OCR module ([30-day trial application](https://www.dynamsoft.com/customer/license/trialLicense?product=dwt))
20+
* [DynamicWebTWAINOCRResources.zip](https://download2.dynamsoft.com/dwt/DynamicWebTWAINOCRResources.zip)
2021

2122
## How to Use
2223

2324
### Step One - Install the OCR Package
2425

25-
Download [DynamicWebTWAINOCRPack.zip](https://download2.dynamsoft.com/dwt/DynamicWebTWAINOCRPack.zip), unzip it and run `Install.cmd` as admin to install the OCR package. It will copy the `ocr` folder to the service's [installation folder](/_articles/extended-usage/dynamsoft-service-configuration.md#installation-folder). (You need to install Dynamic Web TWAIN Service beforehand.)
26+
Download [DynamicWebTWAINOCRResources.zip](https://download2.dynamsoft.com/dwt/DynamicWebTWAINOCRResources.zip), unzip it and run `Install.cmd` inside the `ocr` folder as admin to install the OCR package. It will copy the `ocr` folder to the service's [installation folder](/_articles/extended-usage/dynamsoft-service-configuration.md#installation-folder). (You need to install Dynamic Web TWAIN Service beforehand.)
2627

2728
### Step Two - Write a Basic Document Scanning Page
2829

@@ -105,12 +106,12 @@ PS: You can find where the resources files are in this [FAQ](/_articles/faq/what
105106

106107
### Step Three - Include the Add-on
107108

108-
Reference the add-on with the following code. It is in the [resources files](/_articles/faq/what-are-the-resources-files.md).
109+
Reference the add-on's JavaScript with the following code. You can find the file in `DynamicWebTWAINOCRResources.zip`.
109110

110-
> If you are using the [dwt package](https://www.npmjs.com/package/dwt), the OCR is already included in the main JavaScript file ( `dynamsoft.webtwain.min.js` or `dynamsoft.webtwain.min.mjs` ) which means you can skip this step.
111+
> If you are using the [npm package](https://www.npmjs.com/package/dwt), the OCR is already included in the main JavaScript file (`dynamsoft.webtwain.min.js` or `dynamsoft.webtwain.min.mjs`), which means you can skip this step.
111112
112-
``` html
113-
<script src="Resources/addon/dynamsoft.webtwain.addon.ocrkit.js"> </script>
113+
```html
114+
<script src="dynamsoft.webtwain.addon.ocrkit.js"></script>
114115
```
115116

116117
Then, you can run the following to check if it is installed correctly:
@@ -210,7 +211,7 @@ Here is the complete code of the demo.
210211
<title>Dynamic Web TWAIN - OCR Demo</title>
211212
<script src="Resources/dynamsoft.webtwain.initiate.js"></script>
212213
<script src="Resources/dynamsoft.webtwain.config.js"></script>
213-
<script src="Resources/addon/dynamsoft.webtwain.addon.ocrkit.js"></script>
214+
<script src="dynamsoft.webtwain.addon.ocrkit.js"></script>
214215
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
215216
<style>
216217
#dwtcontrolContainer {

0 commit comments

Comments
 (0)