190
๐ FairScan > Syncthing > Paperlees-ngx
(feddit.org)
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
Be civil.
No spam.
Posts are to be related to self-hosting.
Don't duplicate the full text of your blog or readme if you're providing a link.
Submission headline should match the article title.
No trolling.
Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details.
Resources:
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
No, I use a printer/scanner combo for scanning my files. I trigger a shell script via HomeAssistant which starts the scanner, cleans and fixes the order of the pages for two sided documents, and then puts them into the paperless folder.
But your idea is great!
would you mind to elaborate more on the script? Also, what output format do you use from the scanner?
Its a hacked together shell script. I wanted to learn shell scripting, but I should've probably programmed it in python.
But it basically does this:
I won't share it because it's really ugly and some of the functionality can be done with paperless native, like combining the pages of two scans. Which would've been easier.
Thanks! And that's ok, I'm more interested in the steps than the code itself. Do you apply any optimizations with image magik in step 2?
Yeah, I do this:
magick "$file" -limit memory 1GiB -limit map 2GiB -threshold 60% -define connected-components:area-threshold=5 -define connected-components:mean-color=true -connected-components 8 output.pngIt makes the scan 1-bit black and white. It mostly removes bright background images, if there are any on the pages. I think it works quite well for basic black and white documents, but color graphics and graphs aren't preserved.