openpaperwork / pyinsane

Python library to access and use image scanners (Linux/Windows/etc) (Sane/WIA) -- Moved to Gnome's Gitlab
https://gitlab.gnome.org/World/OpenPaperwork/pyinsane
63 stars 24 forks source link

Progress of scanning #6

Closed freekode closed 11 years ago

freekode commented 11 years ago

It will be amazing. Can I get progress of scanning, in this version of library?

jflesch commented 11 years ago

Sadly it doesn't seem to be possible. I'm using HP scanners, and the HP driver doesn't report the scan progression as it should. If I remember correctly, they only report the progression and return the image ... once the whole scan has already been done ... Also, afaik, hand scanners can't report any progression as well.

jflesch commented 11 years ago

FYI, as a workaround, Paperwork keep track of how long the last scan took, and assume the next scan will be as long. With this (crappy) assumption, it's easy to make a progress bar.

freekode commented 11 years ago

Thank you! I am developing web-application with node.js, which use your library. I have not found better library than your, for SANE server.