Skip to content

Commit 20eb984

Browse files
authored
Update input.md
1 parent 52cc119 commit 20eb984

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

indepth/features/input.md

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,26 +26,14 @@ A local scanner refers to a scanner that is plugged in the same desktop via USB
2626
Many modern scanners and multi-functional printers (MFPs) support the eSCL protocol. The protocol is a vendor-neutral network protocol that allows driverless scanning via ethernet, wireless and USB-connected devices. eSCL-compatible scanners advertise themselves via mDNS so that we can find them easily. mDNS is a zero-configuration service. It is implemented by Apple Bonjour and the open-source Avahi software packages.
2727
> See [this blog post](https://www.dynamsoft.com/blog/announcement/dynamic-web-twain-escl-scanner/) for more information about eSCL.
2828
29-
#### Scan from an eSCL Scanner to PC
30-
> The Dynamsoft Service must be installed on the client PC
29+
- To scan from an eSCL Scanner to PC, the Dynamsoft Service must be installed on the client PC
30+
- To scan from an eSCL Scanner to Android, you must install the Android Service on the client device from the [Play Store](https://play.google.com/store/apps/details?id=com.dynamsoft.mobilescan).
3131

32+
The following code shows how one way to acquire the image via the eSCL protocol.
3233
``` javascript
33-
//Get a list of eSCL scanners:
34-
let eSCLDevices = await DWObject.GetDevicesAsync(Dynamsoft.DWT.EnumDWT_DeviceType.ESCLSCANNER);
35-
36-
//Scan documents from the first eSCL scanner:
37-
let deviceConfiguration = {Resolution:100,IfShowUI:false}; // scanning configuration. Check out the docs to learn more: https://www.dynamsoft.com/web-twain/docs/info/api/WebTwain_Acquire.html#acquireimage
38-
await eSCLDevices[0].acquireImage(deviceConfiguration, DWObject);
39-
```
40-
41-
#### Scan from an eSCL Scanner to Android
42-
> Install the Android Service on the client device from the [Play Store](https://play.google.com/store/apps/details?id=com.dynamsoft.mobilescan).
43-
44-
``` javascript
45-
let devices = await DWObject.GetDevicesAsync(); // get the devices list
46-
await DWObject.SelectDeviceAsync(devices[0]); // select the first device
47-
let deviceConfiguration = {Resolution:100,IfShowUI:false}; // scanning configuration. Check out the docs to learn more: https://www.dynamsoft.com/web-twain/docs/info/api/WebTwain_Acquire.html#acquireimage
48-
DWObject.AcquireImageAsync(deviceConfiguration); // scan documents with the selected device
34+
let esclDeviceList=await DWObject.GetDevicesAsync(Dynamsoft.DWT.EnumDWT_DeviceType.ESCLSCANNER)
35+
await DWObject.SelectDeviceAsync(esclDeviceList[0])
36+
await DWObject.AcquireImageAsync({Resolution:100,IfShowUI:false})
4937
```
5038

5139
## Capture from cameras

0 commit comments

Comments
 (0)