From 52cc119445975ba840417138356e4cb4683c42a7 Mon Sep 17 00:00:00 2001 From: kyle-ds <51097593+kyle-ds@users.noreply.github.com> Date: Thu, 3 Aug 2023 13:58:05 -0700 Subject: [PATCH 1/3] Update input.md add eSCL blurb --- indepth/features/input.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/indepth/features/input.md b/indepth/features/input.md index 3b2a418c..71bc5956 100644 --- a/indepth/features/input.md +++ b/indepth/features/input.md @@ -22,6 +22,32 @@ A local scanner refers to a scanner that is plugged in the same desktop via USB > 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. +### Scan From an eSCL Scanner +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. +> See [this blog post](https://www.dynamsoft.com/blog/announcement/dynamic-web-twain-escl-scanner/) for more information about eSCL. + +#### Scan from an eSCL Scanner to PC +> The Dynamsoft Service must be installed on the client PC + +``` javascript +//Get a list of eSCL scanners: +let eSCLDevices = await DWObject.GetDevicesAsync(Dynamsoft.DWT.EnumDWT_DeviceType.ESCLSCANNER); + +//Scan documents from the first eSCL scanner: +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 +await eSCLDevices[0].acquireImage(deviceConfiguration, DWObject); +``` + +#### Scan from an eSCL Scanner to Android +> Install the Android Service on the client device from the [Play Store](https://play.google.com/store/apps/details?id=com.dynamsoft.mobilescan). + +``` javascript +let devices = await DWObject.GetDevicesAsync(); // get the devices list +await DWObject.SelectDeviceAsync(devices[0]); // select the first device +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 +DWObject.AcquireImageAsync(deviceConfiguration); // scan documents with the selected device +``` + ## Capture from cameras ### Use [DirectShow Cameras]({{site.getstarted}}hardware.html#directshow-cameras) From 20eb98499c75046919f05d5098e08334d2d38aed Mon Sep 17 00:00:00 2001 From: kyle-ds <51097593+kyle-ds@users.noreply.github.com> Date: Fri, 4 Aug 2023 12:51:56 -0700 Subject: [PATCH 2/3] Update input.md --- indepth/features/input.md | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/indepth/features/input.md b/indepth/features/input.md index 71bc5956..42dadbc4 100644 --- a/indepth/features/input.md +++ b/indepth/features/input.md @@ -26,26 +26,14 @@ A local scanner refers to a scanner that is plugged in the same desktop via USB 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. > See [this blog post](https://www.dynamsoft.com/blog/announcement/dynamic-web-twain-escl-scanner/) for more information about eSCL. -#### Scan from an eSCL Scanner to PC -> The Dynamsoft Service must be installed on the client PC +- To scan from an eSCL Scanner to PC, the Dynamsoft Service must be installed on the client PC +- 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). +The following code shows how one way to acquire the image via the eSCL protocol. ``` javascript -//Get a list of eSCL scanners: -let eSCLDevices = await DWObject.GetDevicesAsync(Dynamsoft.DWT.EnumDWT_DeviceType.ESCLSCANNER); - -//Scan documents from the first eSCL scanner: -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 -await eSCLDevices[0].acquireImage(deviceConfiguration, DWObject); -``` - -#### Scan from an eSCL Scanner to Android -> Install the Android Service on the client device from the [Play Store](https://play.google.com/store/apps/details?id=com.dynamsoft.mobilescan). - -``` javascript -let devices = await DWObject.GetDevicesAsync(); // get the devices list -await DWObject.SelectDeviceAsync(devices[0]); // select the first device -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 -DWObject.AcquireImageAsync(deviceConfiguration); // scan documents with the selected device +let esclDeviceList=await DWObject.GetDevicesAsync(Dynamsoft.DWT.EnumDWT_DeviceType.ESCLSCANNER) +await DWObject.SelectDeviceAsync(esclDeviceList[0]) +await DWObject.AcquireImageAsync({Resolution:100,IfShowUI:false}) ``` ## Capture from cameras From 648e437e9a156836674dc33541763fe1a5147acf Mon Sep 17 00:00:00 2001 From: kyle-ds <51097593+kyle-ds@users.noreply.github.com> Date: Fri, 4 Aug 2023 12:53:15 -0700 Subject: [PATCH 3/3] Update input.md --- indepth/features/input.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/indepth/features/input.md b/indepth/features/input.md index 42dadbc4..14ff378f 100644 --- a/indepth/features/input.md +++ b/indepth/features/input.md @@ -31,8 +31,13 @@ Many modern scanners and multi-functional printers (MFPs) support the eSCL proto The following code shows how one way to acquire the image via the eSCL protocol. ``` javascript +//Get the list of available eSCL scanners let esclDeviceList=await DWObject.GetDevicesAsync(Dynamsoft.DWT.EnumDWT_DeviceType.ESCLSCANNER) + +//Select the desired scanner from the list await DWObject.SelectDeviceAsync(esclDeviceList[0]) + +//Acquire image (with configuration) await DWObject.AcquireImageAsync({Resolution:100,IfShowUI:false}) ```