(1) Putting cold water on my wrists. Maybe it would have worked if I tried it longer, but it didn't.
(2) Walking forward as if pushing through something with a forward lean. I was in a small building and this was awkward and my body searched through the crouching and hip swinging gaits as I tried this, I thought it might have been better in a bigger space and might give it a try sometime.
(3) What did work was the 'chest barrier' which is holding the chest absolutely rigid and NOT paying attention to whatever my body is doing to breathe. Since I have been practicing diaphragmatic breathing heavily I find that my body does that automatically and it just doesn't expand through or past my chest.
This works amazingly well. When I tried it I got flash of a scene from Neon Genesis Evangelion where the robot is raging out of control and they pull the power cable on it and it tries smashing it's way into the control room while an observer stands his or her [1] ground at the window before the battery runs out.
I added a "pull the cable" visualization and definitely sense that brave observer appear in my head, although I also realized that in this mind-body interaction it is the mind that is to blame because it brought in some trouble that it thought about from elsewhere. Trying to control the body consciously is a disaster in this situation because disturbances from the mind are coupled efficiently into the body and disturbances from the body are coupled into the mind. So I focus on holding the chest and only on holding the chest.
I started with a script similar to the one you're using (though hand-crafted) with my ScanSnap S1500 (though I have mine run the PDF conversion in the background so I can immediately scan another document without having to wait - this is easy to do now with scanpdf). I've been doing this for about 12 years now, originally manually sorting into directories and using "pdfgrep" to find stuff but more recently I've put everything into a paperless-ngx instance (gradually tagging all the old documents).
I've switched my hand-crafted scripts recently to use scanpdf[1] which seems to give better results (once I tweaked it to be a little less eager to downconvert to B+W). I experimented with using OpenCV models for cropping and straightening (based on examples in a stackoverflow thread at [2]) but I found results were worse than scanpdf so far.
Paperless-ngx supports a folder on disk that you can drop files into and have them ingested. Throw in a samba container pointed at the same directory in your docker-compose and you’ve replicated the same setup.