Skip to content

Commit 52cc119

Browse files
authored
Update input.md
add eSCL blurb
1 parent cd9f88f commit 52cc119

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

indepth/features/input.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,32 @@ A local scanner refers to a scanner that is plugged in the same desktop via USB
2222

2323
> As far as `Dynamic Web TWAIN` is concerned, a network scanner is just like a local scanner because its driver has taken care of the network connection behind the scene.
2424
25+
### Scan From an eSCL Scanner
26+
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.
27+
> See [this blog post](https://www.dynamsoft.com/blog/announcement/dynamic-web-twain-escl-scanner/) for more information about eSCL.
28+
29+
#### Scan from an eSCL Scanner to PC
30+
> The Dynamsoft Service must be installed on the client PC
31+
32+
``` 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
49+
```
50+
2551
## Capture from cameras
2652

2753
### Use [DirectShow Cameras]({{site.getstarted}}hardware.html#directshow-cameras)

0 commit comments

Comments
 (0)