Solution to scan documents by browser

Asked

Viewed 2,753 times

11

I want users to digitalizem documentos straight from browser and then up to server.

I found APIS who do this but all get paid and the licenses dearest !

Can someone present a solution ? Even if the customer has to install one plugin or something that displays the output of a scanner as if it were from a webcam .

Follows a fiddle that presents something similar to what I want: Image capture fiddle by browser (spun in mozzarella)

                          Exemplo que fiz usando o Fiddle

Exemplo que fiz usando o Fiddle

That would be a solution that meets well and seems to be easier to be reached, but of course if there is a plugin that directly accesses the scanner even better.

  • emulate webcam from a scanner? wouldn’t be the other way around?

  • @Danielomnie is just that, similar to programs that emulate a webcam from the user’s screen, if there is one that transmits a " buffer " of scanned documents as if they were

  • 1

    I don’t understand.. if you have a scanner, why do you need a webcam to simulate a scanner? rsrsr.. connect directly to the scanner.

  • @Danielomine without plugin installation the browser does not have direct access to several peripherals including a scanner, but has direct access to webcam via Html5(Webrtc API).

  • then you want to make it available for public access, right?

  • @Danielomine need something similar to this http://jsfiddle.net/codepo8/agaRe/4/ code that solves on a pc that has an emulated camera with the output scanned document ( here only ran in firefox ) .

  • 1

    That’s what I asked. The description is backwards. algo que emule uma webcam a partir de um scanner. It should be "something that emulates a scanner from a webcam"

  • @Danielomine I’ll try to improve !

  • 2

    @Danielomine I think what he said is right. He wants the scanner to appear as webcam pro browser pick up by API. Scanner is true (physical), but will "simulate" the protocol of a webcam.

  • Solved your problem?

  • not yet @durtto ;/

  • 2

    The question is very good. Unfortunately I do not know how to answer, but my intuition tells me that if existing product licenses are so expensive (from what I saw in a fast Googlada, on the order of 1500 dollars up), it is a sign that it is not a trivial task to be performed. If you have control of your customers' machine (that is, if the use is more for an Intranet than for the Internet), you can think about building your own client. Details here: http://stackoverflow.com/a/3504353/2896619

  • @Luizvieira also noticed this ! My main expectation was that there would be a program that would do this . If you were to create by hand, this tutorial teaches how to emulate a camera http://www.codeproject.com/Articles/437617/DirectShow-Virtual-Video-Capture-Source-Filter-in , in which case it uses screen capture and there are several open source projects that communicate with the http scanner://www.findbestopensource.com/tagged/Twain . If I took the capture part of an open source project from a scanner and threw over that tutorial I think it would work. But for my level of programming it is very difficult !

Show 8 more comments

3 answers

2

Modern scanners have diverse capabilities and provide Apis. Unfortunately, Apis do not have a standard protocol because each manufacturer sets its own standard. To develop something as you want it is gambiarra and even if you succeed, it may not last long. It may not even be used. A "large" and complex investment for something that may not be useful or return investment due to the tendency that in the short or medium term devices may provide a univerval pattern in their Apis.

However, this is personal opinion. To better understand, search for TWAIN-compatible devices: http://twain.org/scannerdriverdevelopers/specification-and-tools.html

TWAIN is an NPO (Non Profit Organization), that is, a non-profit organization. This is a strong attraction and motivates global acceptance.

If you really want to develop such a solution, this is the way it is because several manufacturers have already adopted it. But do not be fooled because the market changes overnight. It may happen that "tomorrow" a pattern emerges that can be better accepted than TWAIN.

If you wait for an answer where you can copy and paste ready-made codes and see everything working effortlessly, forget it. It is not a trivial task and, who has already developed solutions will not provide for free, even more in forums and question and answer sites.

  • I agree Daniel. My biggest hope when asking the question was that there was already a plugin or program ( like manycam that allows selecting different fonts to be the output of the emulated cam) that did this . Developing everything seems to be complicated and would probably have to spend a lot of time studying the protocol . I found open source apps that communicated with the scanner and scanned the code, but it was hard to understand. So since I am no ninja in programming and I did not find API , plugin or anything open source p facilitate development I think will be next .

1

There is no simple way to develop such a project! Only if you rely on the camera of a smartphone instead of a scanner actually said!

You, in such a project, will have problems with scanner drivers and even with the compatibility of the feature with certain browsers.

If you choose to try to continue with this project focusing on scanners, you should search for technologies that enable the use of the scanner on the website such as some script in Javascript, Python, PHP and etc, or take the camera of the smartphone that the integration is much simpler.

  • 1

    Not to mention scanner drivers, mobile device compatibility, cost of investing in this technology and dozens of errors that can occur in this type of adventure.

0

I already needed to do this and the only way I could find was by creating an activex component and installing it in the browser.

Due to the complexity my client gave up this process and we opted for a simple upload field.

But the way is this, create an activex component in c# even, install in the browser there yes you get this process.

Good luck

  • Today, in 2016, we still have to use multiple libraries because of browser incompatibilities and no (non-technical) client would understand that it is easier to create a system that works in one browser than one that works in several. Imagine what it would be like to create and maintain this solution for various scanners/drivers/OS/browsers/devices, insane.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.