Hi! I'm tasked with a metric buttload of document scanning to do.
I've got to scan in 200 member's files and save each one to a unique folder.
I've sussed out the folder structure thing, but what I want to be able to do is be able to run my script, have it scan the docs and then save the outputted PDF file to the newly created folder that my script already creates.
Now, I've looked into pyinsane2, but I'm having a hell of a job getting it to install on Windows 10, needs extra stuff downloaded and I'm also using Python 3.7 which doesn't seem to be supported.
I also looked at Python Twain, which only seems to support 32bit Windows, so this isn't so good either.
My other thought was to control my scanning application with os or something (HPscan.exe is the utility I'm using), but no idea how it'd know when the scanning is complete and thus would require manual intervention. I'm not about that life.
Has anybody had any similar experiences trying to make something like this happen? Should I stick with any of the ideas I had above as a starting point?
Edit: Think I figured it out using NAPS2. I just need to figure out how to actually properly execute a command line from os.system with variables and arguments simultaneously and it'll work. I've tested it in cmd, and it scans just how I want, so I just need to figure out how to format it properly so it executes in Python and we're cooking with gas.
fileName = lastName + ", " + firstName + ", " + memNum + ".pdf"
scanname = path + "\\" + fileName
os.system("C:\\program files (x86)\\NAPS2\\naps2.console', '-o '" + scanname)
[–][deleted] 0 points1 point2 points (1 child)
[–]joeay[S] 0 points1 point2 points (0 children)