scanning

How to stop continuous scanning by zxing-android-embedded in Android

心已入冬 提交于 2019-12-07 04:51:35
问题 I am using Zxing-android-embedded (https://github.com/journeyapps/zxing-android-embedded) to scan QR codes. I have imported the library from github . When the app starts , the camera is scanning the code repeatedly as long as the camera is placed on a barcode. I want to stop the scanning(but not the camera preview) once the barcode is detected and show a dialog box with "Confirm" button, "Cancel" button, and a input box. When user press the "Confirm" or "Cancel" button it should start

BufferedImage color saturation

微笑、不失礼 提交于 2019-12-07 03:35:53
问题 I'm writing a simple scanning application using jfreesane and Apache PDFBox. Here is the scanning code: InetAddress address = InetAddress.getByName("192.168.0.17"); SaneSession session = SaneSession.withRemoteSane(address); List<SaneDevice> devices = session.listDevices(); SaneDevice device = devices.get(0); device.open(); device.getOption("resolution").setIntegerValue(300); BufferedImage bimg = device.acquireImage(); File file = new File("test_scan.png"); ImageIO.write(bimg, "png", file);

Fix the orientation of a PDF in order to scale it

大兔子大兔子 提交于 2019-12-06 08:04:35
I am having some issues with a PDF containing a rotation property created by a Xerox scanner. The below function was originally created to scale the height of an input PDF by the amount given by the variable scaleHeight. This works fine for input documents without rotation. When testing a document with a 270 degree rotation, I found that the rotation property which would have made the document appear in a portrait orientation was ignored. Instead, the document appeared in a landscape orientation in the output PDF. So I updated the function below to apply the scaling only when there is no

Web TWAIN scanning solution for ASP.Net? [closed]

喜欢而已 提交于 2019-12-06 05:27:21
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I know some of you will discourage scanning through a web page, unfortunately, it is a requirement. I want to view my options in the situation, and maybe, some of you may have already gone through this and had a workable solution. Problem is, we need to have a universal approach in scanning documents through the

Are there any different between Scan image through camera and capturing image from camera?

坚强是说给别人听的谎言 提交于 2019-12-06 02:01:42
I need to know that different between scanning and taking photo from camera . As example we normally , SCAN QR code , bar code , like thing using android phone.They are also image. we can take photo from camera. it also image. So ,is it Scanning QR code , mean take image and processing it or are there have any special thing take image from pixel values ? Biggest difference is that when you capture an image you get a processed jpg file, when you're scanning you're working with raw YUV byte array. When talking about a picture you usually need to worry about quality, flash, aperture, shutter

BufferedImage color saturation

痴心易碎 提交于 2019-12-05 06:52:44
I'm writing a simple scanning application using jfreesane and Apache PDFBox . Here is the scanning code: InetAddress address = InetAddress.getByName("192.168.0.17"); SaneSession session = SaneSession.withRemoteSane(address); List<SaneDevice> devices = session.listDevices(); SaneDevice device = devices.get(0); device.open(); device.getOption("resolution").setIntegerValue(300); BufferedImage bimg = device.acquireImage(); File file = new File("test_scan.png"); ImageIO.write(bimg, "png", file); device.close(); And making PDF: PDDocument document = new PDDocument(); float width = bimg.getWidth();

WIA 2.0 Duplex scanning

坚强是说给别人听的谎言 提交于 2019-12-04 11:16:11
Since Vista, Windows is shipped with WIA 2.0 (wiaaut.dll). According to the following KB article and many of my findings on various forums, duplex scanning is no longer possible using WIA 2.0. Yet, the article mentions the use of native WIA 2.0, what would make duplex scanning possible. ( https://support.microsoft.com/en-us/kb/2709992 ) According to the WIA 2.0 documentation ( https://msdn.microsoft.com/en-us/library/windows/desktop/ms630196(v=vs.85).aspx ), duplex scanning is possible but using the new WIA_IPS_DOCUMENT_HANDLING_SELECT (3088) property. My issues are: I have no idea how to use

Web TWAIN scanning solution for ASP.Net? [closed]

*爱你&永不变心* 提交于 2019-12-04 10:23:36
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I know some of you will discourage scanning through a web page, unfortunately, it is a requirement. I want to view my options in the situation, and maybe, some of you may have already gone through this and had a workable solution. Problem is, we need to have a universal approach in scanning documents through the webpage without any external helper apps that does this for us. I know this is a tall

Does iphone provide any API to detect human thumb Impression?

我与影子孤独终老i 提交于 2019-12-04 02:16:03
问题 I wish to develop an app in iPhone in which user's thumb will be scanned first. The impression of the thumb should be used as a signature for email or report. Please suggest if its possible to do or not. If its possible then are there any tutorials or link. Thanks in advance, Prerna 回答1: Unfortunately no, iPhone detects touches as points, it's not sensitive enough to detect the human thumb with the fine marks of a thumbprint. Many have tried, some may even provide code, but ultimately it can

PIL: Create one-dimensional histogram of image color lightness?

。_饼干妹妹 提交于 2019-12-03 08:51:49
问题 I've been working on a script, and I need it to basically: Make the image greyscale (or bitonal, I will play with both to see which one works better). Process each individual column and create a net intensity value for each column. Spit the results into an ordered list. There is a really easy way to do this with ImageMagick (although you need a few Linux utilities to process the output text), but I'm not really seeing how to do this with Python and PIL. Here's what I have so far: from PIL