scanning

C# WIA with Automatic Document Feeder (ADF) retuns only one page on certain scanners

六眼飞鱼酱① 提交于 2019-12-18 05:03:45
问题 I have a HP Scanjet 7000 (duplex & ADF scanner) and a HP Scanjet 5500c (only ADF) and a scanner program I'm developing which uses WIA 2.0 on Windows 7. The problem is that the code works perfectly on the older scanner model, but on the newer one the code seems to run just fine through the first page, then fail on the second. If I step through the code around the following line; image = (WIA.ImageFile)wiaCommonDialog.ShowTransfer(item, wiaFormatTIFF, false); the old scanner stops and waits for

Java SE Sanning API Morena7

假如想象 提交于 2019-12-13 01:29:20
问题 I try to use Morena 7 in my java desktop application to scan document. I read morena documentation and download the API But i have a problem in that line BufferedImage bimage = SynchronousHelper.scanImage(device); It's like SynchronousHelper class is not found. Someone have an idea please? Thanks! 回答1: Thanks for all. I found the mistake, the SynchronousHelper.java is in the full package that i've download In the "examples" directory. 来源: https://stackoverflow.com/questions/27247604/java-se

Card.io sdk not reading expiry date

妖精的绣舞 提交于 2019-12-11 18:52:59
问题 I'm trying to scan my master-card (Titanium) using Card.io SDK. Scanner scan the card number properly but it is failing to read expiry date. I have to to enter the date manually. 回答1: Dave from card.io here. Yes, as you have observed, at this time the card.io SDK scans only the card number, and not the expiry date or other information. 来源: https://stackoverflow.com/questions/24030414/card-io-sdk-not-reading-expiry-date

How to output multiple file extensions stored in a .txt file on Powershell

淺唱寂寞╮ 提交于 2019-12-11 14:42:26
问题 my purpose is to output the files with the extensions that match the ones I store on a .txt file but I don't know how to make it work. The way I am trying to do now does not generate any output or output the files of the extensions that are not on the text file (Extension.txt) I indicate. How am I supposed to fix this? The content in my .txt file is: *.xlsx,*.xlsm,*.xlsb,*.xltx,*.xltm,*.xls,*.xml My current code is as followed: $fileHeaders = @('country','cDrive','dDrive') $extensions = ${C

WIA scanning in a WPF application

谁说我不能喝 提交于 2019-12-11 10:43:44
问题 I'm using WIA 2.0 to scan images from a HP scanner. The problem is that saved TIFFs are around 9MBs big (A4 page at 300dpi, grayscale). I convert WIA's ImageFile that contains scan in TIFF format to BitmapSource like this: public static BitmapSource ConvertScannedImage(ImageFile imageFile) { if (imageFile == null) return null; // save the image out to a temp file string fileName = Path.GetTempFileName(); // this is pretty hokey, but since SaveFile won't overwrite, we // need to do something

Use MediaScannerConnection scanFile To Scan Downloaded Image File

Deadly 提交于 2019-12-11 09:53:09
问题 I am working on an app in which I save image(s) to a directory but the Images wont show up in gallery until I restart the phone. Here's My Code Snippet public class SaveTask extends AsyncTask<String , String , String> { private Context context; private ProgressDialog pDialog; String image_url; URL myFileUrl; String myFileUrl1; Bitmap bmImg = null; File file ; public SaveTask(Context context) { this.context = context; } @Override protected void onPreExecute() { // TODO Auto-generated method

Angular 4 DWT JavaScript Library not working in model

ⅰ亾dé卋堺 提交于 2019-12-11 07:36:50
问题 Currently, I want use DWT Javascript library to scan the documents I followed these steps http://www.codepool.biz/javascript-global-library-angular-cli.html for a new project, it worked perfectly fine. When I try to incorporate into my main project I'm facing few issues like the progress bar model is will be present all the time no matter what happens . but when using the same code inside the model, not able to get the result. code <ng-template #scanModal let-c="close " let-d="dismiss "> <div

Tool or plugin to extract class and all of its dependencies from VS project

风流意气都作罢 提交于 2019-12-11 03:53:39
问题 I have a very large project with lots of files. I need to extract only a few classes into a separate DLL, but the problem is that the classes have many dependencies on other files. Trying to make it manually, I've already spent several hours, and still there are limitless errors related to missing files. Is there any solution to automate this process? 回答1: I don't know of a tool that will automate the whole process, but you could use NDepend to help you. Starting with the class that you want

Disable scanning of CDI beans in WAR

一世执手 提交于 2019-12-11 03:36:20
问题 I have WAR package with CDI beans. Deployment of the package is very slow because every time during deployment the package is scanned for CDI beans. Is there any option to disable this process? 回答1: The correct way is to disable discovery in the beans.xml of the relevant archive: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp

scan image, create links from content (php hopefully)

不想你离开。 提交于 2019-12-11 01:21:40
问题 I'm not sure if this could work, but I've got pictures of maps with #'s inside a little box on top of the map to show locations. See my image example: I'm hoping to find a script to 'scan' the image and create links from the number locations (and overlay those links where the boxes are) In the image example, all the boxes have a 3 in them, but on the other maps they may go from 1 to 400. So I'm hoping to be able to get a link overlay on the boxes sending to another image. Ie, map box #3 would