[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

using Ruby to control a scanner on Windows

James Dinkel

10/1/2008 7:08:00 PM

Does anybody know if it is possible to control a flatbed or sheetfed
scanner from Ruby, on Windows XP? My goal is to be able to place a
paper on the scanner and then just start a Ruby script that would start
up the scanner, resize the image (with rmagick), and then save the image
to a file. I need so guidance on how to control the scanner though.

James
--
Posted via http://www.ruby-....

1 Answer

John Pritchard-williams

10/2/2008 11:29:00 AM

0

James,

You'd probably need to write a 'C' wrapper for this. Or else perhaps use
some library to send commands via the serial-port (if that is indeed how
it is connected). (I don't know if there is a 'serial-port' library /
gem available for Ruby or not)

Cheers

John


James Dinkel wrote:
> Does anybody know if it is possible to control a flatbed or sheetfed
> scanner from Ruby, on Windows XP? My goal is to be able to place a
> paper on the scanner and then just start a Ruby script that would start
> up the scanner, resize the image (with rmagick), and then save the image
> to a file. I need so guidance on how to control the scanner though.
>
> James

--
Posted via http://www.ruby-....