Using Ruby to control a scanner on Windows

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-forum.com/.

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-forum.com/\.