Hello,
I'm writing a script to scan documents from an Image scanner device.
I imported the pyinsane2 module and everything works fine, but I want to change the location, of where the scanned document is saved. At the moment, it saves the new document in the same directory, where the script, I'm running to scan, is stored as well. So e. g. my script
scan.py
is stored in
C:\Users\Admin\Documents\pyinsane-2.0.2\examples
so the scanned document gets stored in examples too.
The line of code in the script, that causes this loooks like this:
img = scan_session.images[0]
img.save(output_file, "JPEG")
where img is the scanning process and output_file is the name of the document.
So the question is, what to type instead of 'save' to save the document where ever I want to.
I'm running a Windows 10 Computer using python 3.6. Thanks
What I have tried:
I haven't tried anything, because I couldn't find anything to the .save function from python and I don't want to create a folder using mkdir.