I want to write program with python which can get input from scanner and save as jpg. I don't have any idea how to start. please help.
Six years have passed and I came here today looking for the answer to the same question.
Pysane and python-imagescanner in the currently accepted answer are unfortunately no longer active, but after som further searching I found libinsane which seems to be a better option nowadays.