How to scan images using RoR

want to introduce a feature of scanning images in my RoR application.
It simply activates a plugged in scanner device and scan the image
available there and save or upload to a folder. kindly suggest me the
way, as yet i didn’t found any suitable and perfect soln.
Thanks in advance

-Naresh-