Making a scanner app

I am developing an app and I was wondering, if I made it take a picture of a a sticker or picture could I make the app analyze the picture and then send it on to a another picture that has infromation on it sort of like scanning  qr code, this time with just with a picture.

Hi! I need to make a scanner server - a program in a
server that will listen to other PCs request for using
the scanner, like a printing server. The client needsTake a look at JTwain:
JTwain supports all kinds of digital cameras and scanners.
You can use Java to access, contorl digital cameras and scanners, and of course,
to acquire images with flexible settings.
The developers' guide is available @ http://asprise.com/product/jtwain/devGuide.php
Here is the sample code:
try {
   // the SourceManager manages and controls all the data(image) sources, eg. scanners, digital cameras,
   Source source = SourceManager.instance().getDefaultSource();
   source.open();
   // Enables or disables the UI
   source.setUIEnabled(false);
   Image image = source.acuqireImage();
   ... // Uses image here ...
   // Saves the image into a file
   source.saveLastAcquiredImageIntoFile("test.jpg");
}catch(Exception e) {
   e.printStackTrace();
}finally{
   SourceManager.closeSourceManager();
}Good luck!

Similar Messages

  • Barcode Scanner app using Javascript for windows 8 tablet

    I want to create a barcode scanner app in which i want to start the camera preview, and read the barcode. Is there any sample code? I have used the below code but its working only with windows desktop not working with tablet.
    function openScanner() {
        var
            // barcode main objects
            zxing,
            sampler,
            element,
            // application  references
            isZxingInit = false,
            isDomReady = false,
            isVisible = false,
            isCancelled = false,
            raiseSuccess,
            raiseError;
        // init objects
        initZXing();
        initSampler().done(function () {
            console.log('- MediaCapture has been initialized successfully!');
            // preparing to show camera preview
            createCameraElement();
            showPanel();
            setTimeout(render, 100);
        }, raiseError);
        // initialize ZXing
        function initZXing() {
            if (!isZxingInit) {
                isZxingInit = true;
                zxing = new ZXing.BarcodeReader();
                console.log('zxing==' + zxing);
            } else {
                console.log('- ZXing instance has been recovered!');
        // initialize MediaCapture
        function initSampler() {
            console.log('- Initializing MediaCapture...');
            sampler = new Windows.Media.Capture.MediaCapture();
            return sampler.initializeAsync();
        // initializes dom element
        function createCameraElement() {
            console.log('- Creating DOM element...');
            if (!isDomReady) {
                isDomReady = true;
                element = document.createElement('video');
             //   element.style.display = 'none';
                element.style.position = 'absolute';
                element.style.left = '0px';
                element.style.top = '0px';
              //  element.style.zIndex = 2e9;
                element.style.width = '100%';
                element.style.height = '100%';
                element.onclick = cancel;
                document.body.appendChild(element);
                console.log('- Camera element has been created!');
            } else {
                console.log('- DOM is ready!');
        function showPanel() {
            if (!isVisible) {
                isCancelled = false;
                isVisible = true;
                element.style.display = 'block';
                element.src = URL.createObjectURL(sampler);
                element.play();
        // renders image
        function render() {
            console.log('- Sampling...');
            var frame, canvas = document.createElement('canvas');
            canvas.width = element.videoWidth;
            canvas.height = element.videoHeight;
            canvas.getContext('2d').drawImage(element, 0, 0, canvas.width, canvas.height);
            frame = canvas.msToBlob().msDetachStream();
            loadStream(frame);
        // loads data stream
        function loadStream(buffer) {
            console.log('- Loading stream...');
            Windows.Graphics.Imaging.BitmapDecoder.createAsync(buffer).done(function (decoder) {
                console.log('- Stream has been loaded!');
                if (decoder) {
                    console.log('- Decoding data...');
                    decoder.getPixelDataAsync().then(
                        function onSuccess(pixelDataProvider) {
                            console.log('- Detaching pixel data...');
                            decodeBitmapStream(decoder, pixelDataProvider.detachPixelData());
                        }, raiseError);
                } else {
                    raiseError(new Error('Unable to load camera image'));
            }, raiseError);
        // decode pixel data
        function decodeBitmapStream(decoder, rawPixels) {
            console.log('- Decoding bitmap stream...');
            var pixels, format, pixelBuffer_U8;
            switch (decoder.bitmapPixelFormat) {
                // RGBA 16
                case Windows.Graphics.Imaging.BitmapPixelFormat.rgba16:
                    console.log('- RGBA16 detected...');
                    // allocate a typed array with the raw pixel data
                    pixelBuffer_U8 = new Uint8Array(rawPixels);
                    // Uint16Array provides a typed view into the raw bit pixel data
                    pixels = new Uint16Array(pixelBuffer_U8.buffer);
                    // defining image format
                    format = (decoder.bitmapAlphaMode === Windows.Graphics.Imaging.BitmapAlphaMode.straight ? ZXing.BitmapFormat.rgba32 : ZXing.BitmapFormat.rgb32);
                    break;
                    // RGBA 8
                case Windows.Graphics.Imaging.BitmapPixelFormat.rgba8:
                    console.log('- RGBA8 detected...');
                    // for 8 bit pixel, formats, just use returned pixel array.
                    pixels = rawPixels;
                    // defining image format
                    format = (decoder.bitmapAlphaMode === Windows.Graphics.Imaging.BitmapAlphaMode.straight ? ZXing.BitmapFormat.rgba32 : ZXing.BitmapFormat.rgb32);
                    break;
                    // BGRA 8
                case Windows.Graphics.Imaging.BitmapPixelFormat.bgra8:
                    console.log('- BGRA8 detected...');
                    // basically, this is still 8 bits...
                    pixels = rawPixels;
                    // defining image format
                    format = (decoder.bitmapAlphaMode === Windows.Graphics.Imaging.BitmapAlphaMode.straight ? ZXing.BitmapFormat.bgra32 : ZXing.BitmapFormat.bgr32);
            // checking barcode
            readCode(decoder, pixels, format);
        // decoding barcode
        function readCode(decoder, pixels, format) {
            'use strict';
            console.log('- Decoding with ZXing...');
            var result = zxing.decode(pixels, decoder.pixelWidth, decoder.pixelHeight, format);
            if (result) {
                console.log('- DECODED: ', result);
                close(result);
            } else if (isCancelled) {
                console.log('- CANCELLED!');
                close({ cancelled: true });
            } else {
                render();
        // cancel rendering
        function cancel() {
            isCancelled = true;
        // close panel
        function close(result) {
            element.style.display = 'none';
            element.pause();
            element.src = '';
            isVisible = false;
            element.parentNode.removeChild(element);
            isDomReady = false;
            raiseSuccess(result);
        function raiseSuccess(result) {
            console.log('Result===' + JSON.stringify(result));
        function raiseError(error) {
            console.log('ERROR::::' + error);
    Can anyone tell why its not working on tablet with solution? Thanks in advance

    Hi Asha - we have sample code for barcode scanning here:
    https://code.msdn.microsoft.com/windowsapps/Barcode-scanner-sample-f39aa411
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with undefined
    objects and unknown namespaces.

  • Is there any docunent scanner app for Firefox OS?

    Badly need a document scanner app. But cannot find at marketplace.

    Take a look at …
    http://alternativeto.net/software/readquick/?platform=mac
    It will give you ideas for other similar software to 'readquick'. Just be sure to go to the developers site, some download sites add junk to application installers to get ad revenue, get it from the developer (or the App Store) when you can.

  • Need scanner App for Dock. I have Maverick 10.9.5 and Epson Perfection V500 photo. My present app 3.7.1 won't work. Otherwise I have to go into System Preferences every time I scan to Select to switch from the Printer. Thanks for help.

    Need scanner App for Dock. I have Maverick 10.9.5 and Epson Perfection V500 photo. My present app 3.7.1 won't work. Otherwise I have to go into System Preferences every time I scan to Select to switch from the Printer. Thanks for help.

    You might give VueScan a try. It should work with your scanner. There's a demo version that you can use initially.

  • Having trouble making an in app purchase on iPhone, Help?

    Having a problem making an in app purchase off a game I have downloaded on my iPhone.
    Using my TD VISA DEBIT too make the purchase (basically works as a pre paid visa credit card).
    The price of the in app purchase is $19.99, and I've entered in my billing information 100% correctly (have re checked about a dozen times as it kept saying its invalid!).
    Now that I've tried to make the purchase around 10 times, a pop up comes up on my phone that reads somewhat along the lines of "Your Payment method was declined, please contact iTunes support to continue your purchase".
    Which well.. Brings me here as the 1-800 number that I can call for my area is currently closed!
    (And yes, I do have the enough money on the card lol just so that's out there!)
    Please help me figure this out, even if there is a way I can make it get billed to my phone bill (ROGERS) then I don't mind doing it that way either. Just want to make this purchase and be done with it!
    Thanks.

    There is no telephone support at all for itunes.
    http://www.apple.com/support/itunes/contact/

  • WiFi Scanner apps show my network as open

    I am running Mac OS 10.8.2; I use Airport Utility 6.1; my base station is an Airport Extreme 4th Gen.  I have followed to great detail the instructions and believe I have a 'secure' network but have a question or two.  My password for the base station and the home network is long, non-dictionary, uses symbols, caps and lower case, etc.  I use WPA2 for security.  I have three wi-fi 'scanner' apps:  Apple Store's WiFi Explorer; iStumbler (free); and Air Radar (paid).  I always find over a dozen networks or more running all the time across all the scanner apps, including mine.  I am very concerned about someone else getting onto and using my network's bandwidth.  All the scanner apps show WPA2 security for my home network, but Air Radar says my network is an OPEN NETWORK and all the others have a lock by their name.  Is this a quirk of AirRadar, or do I have an open network?  I also have my network 'hidden' but it shows up anyway across all 3 scanner apps. Does having my network 'hidden' really mean anything as it shows up anyway?  I am pretty sure I am okay but with so many computer uses in the immediate area, I am concerned if someone can get aboard my network.  Any suggestions or advice would be greatly appreciated. Thank you in advance for your consideration.

    I seriously doubt someone was using your connection. Download speeds are influenced by many factors. Your connection to your router, which even with the slowest form of WiFi available today that shouldn't be a factor as all current WiFi is faster then 99% of ISP supplied internet connections, the speed of your connection to your ISPs network, overall internet traffic and the speed of the connection the site you are downloading from has. And to top it off the overall health of your computer. If your computer is buggered up in some way it will affect all speeds the computer runs at.
    Personally I don't care for the Apple branded routers, Airports, as they need a special Apple program to access them and it has been my experience they really aren't that good of hardware. Just because it says Apple on it doesn't make it special and or the best piece of hardware inside the box. And that goes from every Apple product on the market today.

  • HT204266 i was making some in app purchases and it quit letting me make them and told me to contact itunes support

    i was making some in app purchases and it quit letting me make them and told me to contact itunes support

    Then contact them by:
    Contact iTunes

  • HT4509 Barcode scanner app with international keyboard

    Hi,
    is there any barcode scanner app that can be used as an iternational keyboard:
    it should allow to be added from settings
    when this keyboard is selected, the camera should open, allowing to scan barcode, and using it in any app, as normal keyboard?
    thx

    barcode scanner is an electronic device for reading printed barcodes. Like a flatbed scanner, it consists of a light source, a lens and a light sensor translating optical impulses into electrical ones. Nearly all barcode readers contain decoder circuitry analyzing the barcode's image data

  • I've updated my scanner driver but  Lion won't recognize  it and activate the  scanner app

    I've updated the scanner driver to Lion 10.7.1 but  the scanner app cannot be opened.

    Just to check - do you mean you've updated Lion to 10.7.1? (10.7.5 is the current version and ought to be the version you have installed so that you're up-to-date with bug fixes/security updates, etc.)
    Is the problem that since updating the OS Lion won't recognise your scanner?
    Does Image Capture in the Applications folder recognise the scanner?

  • Barcode Scanner app

    There are quite a few Barcode Scanner apps available and I wonder if anyone can advise which is the best one to use? Thanks for your help.

    I prefer QR code scanner pro because it's works pretty well, and its free.
    BlackBerry Application Developer
    Eric Lewis

  • Epson Workforce 325 scanner app will not work.

    Recently downloaded Maverick X and now my Epson Workforce 325 scanner app will not work. I have checked for updates through Epson and they say its an Apple problem, but there is none available through Apple. 
    Do I have to go back to the old Mountain Lion 10.8.5 v software?

    You will have no alternative but to wait for Epson to update their drivers to be compatible w/Mavarick.  Why not call them (tech support) or send them an email? 

  • 5.0 Radio Scanner App

    Hi,,,,,I am from Rochester Ny and have downloaded the 5.0 Police scanner App. Both reg and Pro.
    Is it possibe to set the scanner to a specific channel? Of course I have no ide
    of the new digital channel numer for the west side, so I am looking for that as well.
    It currently scans both east and west side and they walk over each other so we miss
    a lot. Any help would be appreciated. Thanks and Happy New Year!

    I did and it confused me even more. I will have to ask one of the kids in the family to help me. Kids know everything these days to do with electronics

  • Does Apple have any plans on making an Iphone app to control Logic Pro like Motu has done for Digital performer? They make it for free which is a HUGE plus!

    i was wondering if Apple has any intentions on making an Iphone/Ipad app to remotely control Logic like Motu has for Digital performer. Motu has it available for free which is a huge plus but Id be willing to pay for one if Apple came out with one of its own.Im a little mift as to why it hasnt been done, Im sure they are capable of it.

    I've been using Touch.OSC, from Hexler. It is not created by Apple but works like a charm on Logic. I've been using the app for over a year both on my iPad and my iPhone. Check the app on Hexler @ http://hexler.net/software/touchosc. Another app (which I still haven't tried) is lpTouch. You can get more info at http://www.delora.com/delora_products/lptouch/lptouch.html. Both are sold at App Store for $ 4.99. Yeah, it would be cool if Apple included its own iPad/iPhone app to control LogicPro on a future update... but for the stick price of the apps I've mentioned you might have a good 'bang for the buck".

  • Scanner app with Lion?

    I am just about ready to upgrade to lion, but have an issue with my scanners ... Three of them, all epson.. Using Epson scan app has been great, but I read that it will not run on Lion... So I've tried both image capture and vuescan... Both are awful compared to the old epson scan and I don't really see any alternatives.
    What have you with epson scanners done???
    Thanks
    Tom

    I am a graphic designer and have been using an Epson Perfection Photo 4870 for years now. 99% has been TWAIN'd through Photoshop. My main issue always was that, I would have to FILE > IMPORT > TWAIN over and over again, for everything I wanted to scan, and it wasted a lot of time relaunching the Epson scanning software.
    Recently my 2007 MacBook died (two days ago) completely...so I had to purchase a new MacBook Pro with Lion pre-installed. After multiple failed atempts to TWAIN the scanner through Photoshop or even trying to launch the scanner through the Print / Fax settings (which would never launch)...I finally discovered that Image Capture was fully recognizing the scanner.
    So I have ran a few tests scans, photos, artwork, office papers...etc. I haven't tried the transparency abilities yet, but so far, the software seems to retain all the abilities the Epson software did and actually has more features now. All the Image Sharpen, Unsharp Mask, Descreening, Backlight and Dust Removal are all there and seem to function normally. It's got all the DPI options, size, color and even file type options.
    It may take a few more times to really tweek the software and figure out what are the best settings to use now, but I think overall it is going to be just fine. One new feature that I have seen from the get go, is the ability to ROTATE the scanning selection box! Which was NOT available in the Epson software, this is a huge plus which will save time having to readjust alignment in PS if the scanned items ***** on the scanner bed while closing the lid or something. Also, the fact that the software doesn't have to close and relaunch on every scan.
    The main drawback I do see so far though, is that you cannot add the PS.app to the list of destinations to send a scanned file. So at the moment I am just sending scans to a select folder and then opening them in PS to edit. It has the option to send to iPhoto, Image.app and Mail, but not PS. I think if they enable that option, then this Image Capture software will be plenty suficient to use.
    No one likes change...but sometimes it works out ot be better.
    Oh yea, and it does seem to process, preview and scan much quicker than the old Epson Scan software...
    Jeremy

  • After Froyo Update, Pandora and Police Scanner Apps Do Not Work...

    First of all, I truly love my Droid X, it is by far the best phone I have ever owned (Blackberry Storm 2, Blackberry curve, etc.)...
    However, since the Froyo OS Update was installed on my phone, 2 of my favorite apps are not functioning properly...
    The apps are Pandora and Scanner Radio. Both are radio based applications.
    When I open Pandora and attempt to access a radio station, the screen will display, "WE ARE EXPERIENCEING UNEXPECTED TECHNICAL DIFFICULTIES"
    When I open Scanner Radio and attempt to access a frequency, the screen will display, "UNABLE TO CONNECT"
    I have attempted to uninstall/reinstall the application, to restore the phone to factory settings with Verizon's Tech support, to take the battery out, and to do a "hard" restore, all to no avail...
    My question is if anyone has experienced similar problems with these apps since the Froyo OS update? Or, has anyone who has these apps on their Droid X since the Froyo OS update been able to use them normally?
    They both worked perfectly fine prior to Froyo, and are the latest updated versions...
    I would love to hear of any similar experiences, possible solutions, comments, etc.
    Thanks,
    Noah

    Well, that does offer some consolation to me... However, I have been browsing various forums (Motorola, Verizon, Droid X Forums, etc.) which discuss technical issues with the Droid X, and have noticed that others with the Droid X have reported no issues with Pandora after Froyo... 
    I did notice that on pandora's website FAQ section, they did mention issues with the quality post-froyo:
    Why am I experiencing audio issues on Froyo?
    If you have upgraded to Froyo (Android 2.2), you may notice audio-quality issues while listening to Pandora. The Android team is aware of this issue with AAC+ audio and has released a fix, which is gradually being rolled out on the various Android handsets.
    Currently the Sprint HTC EVO and the Google Nexus One have OTA Android OS updates that incorporate this AAC+ audio fix.
    If you have a different handset than the two mentioned, please contact the support team for your handset if you have any further questions about this issue.
    However, my Droid X will not even play the songs... Although, prior to Froyo, it worked great...
    Anyway, I was hoping that someone who has experienced similar issues with their Droid X, might have a solution for the problem...
    * Since my original post, I performed another hard factory reset, only this time I also reformatted my SD Card prior to the reset...
    It seems to have resolved the problem temporarily, however I will wait to see if it lasts more than a few days...
    Anyway, thanks for the comment...

Maybe you are looking for

  • External monitor is not working correctly

    I recently bought an external monitor and just hooked it up. It worked right the first time, and I had the screens mirrored. I tried to change the screen resolution and it went wack. It will not pick up a steady signal on the external monitor or the

  • ITUNES 7 UPDATE

    HI THERE SINCE I UPDATED TO ITUNES 7 I AM NO LONGER ABLE TO LOAD THE PROGRAM, I GET MESSAGE , ITUNES LIBARY CANNOT BE READ BECAUSE IT WAS CREATED BY A NEWER VERSION??

  • PCA report for balance sheet accounts

    Hi, i have assigned Profit Center in Material. So the Cunsumption account hit the Profit center. If i see the GL document profit center assigned at line item, but i couldnot able to view the PCA report for Balance sheet account Can you please help. T

  • I have a lock symbol over my email address, how can it be remove so I can see the rest of my folders

    Hi, I have 12 more folders that I could see and use yesterday. Now they are not there, and I have a lock symbol over my email address. Is this preventing me from being able to see the other folders? Or is this another issue that you tell me how to co

  • Display hints not working after migration to 9.03.

    Has anyone experienced a problem with the display hints not rendering once migrated from 9.0.2 to 9.0.3? I can see the hints in the properties of the attributes, but they are not rendering. Thanks, Aaron Haimovitz