Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twain device (scanner) control in Java

I want to scan a number of papers through Java. I found the mm's computing twain library.

When I run the example TwainExample.java at the site, I receive this error.

uk.co.mmscomputing.device.twain.TwainIOException: Cannot load Twain Source Manager.

On the other hand, almost the same code works with ImageJ as a plugin. Yet, when I used this code by itself I still receive the same exception.

I wonder why this is not working.

like image 486
Any Thing Avatar asked Dec 30 '12 08:12

Any Thing


People also ask

What is TWAIN scanner device?

TWAIN is a widely-used program that lets you scan an image (using a scanner ) directly into the application (such as PhotoShop) where you want to work with the image.


2 Answers

You can try download TWAINDSM.DLL for 64bit and put it in C:/windows/system32, or 32 if you have it. Find it on SourceForge

Regards

like image 57
José Luis Tovar Avatar answered Sep 17 '22 19:09

José Luis Tovar


In the past I've used Morena library successfully. It is commercial, however there is a Personal non-commercial license if that does the job for you. Even worked from a signed applet.

like image 41
Milos Stojiljkovic Avatar answered Sep 17 '22 19:09

Milos Stojiljkovic