Open TheLastProject opened 3 years ago
Hello Sylvia,
I'm sorry that this issue makes it hard for you to use the app.
Generally, it works best when the document is evenly lighted and the edges are clearly visible. I know that other solutions perform better under less than ideal circumstances. However, we are no computer vision experts and do not have a large development team.
The "triangle bug" is frustrating but frankly I don't really understand the upstream code that's causing this.
The latest release (0.0.10) had some improvements with regards to the scanner. Can you confirm you are using that version?
Another thing you could try is to use a third-party scanning app and the share feature to add it to Paperless.
Ah, sorry, I should've checked the version I'm using of course. I'm still on 0.0.9 it seems, which is the latest on F-Droid currently. I'll try 0.0.10 soon and see if that works better. I'll report back tomorrow most likely
I can't quite pinpoint why but 0.0.10 does seem a lot more reliable although I can still see it generate triangles I haven't had it actually create one when I pressed the camera button. So I suppose this count be closed, unless you want me to keep it open until there are no triangles generated at all?
Thanks for confirming, that's great to hear!
I guess we can leave this open since triangular documents are not really common.
So, I just looked into it and the detection code actually checks whether the shape is a quadrilateral:
So... yeah, I'm still clueless as to how this happens. I could even make it detect a line but it took a lot of tries.
Hmm, I wonder if there are 4 points but 1 or 2 of those points happens to be at the exact same place as another point. Hmm...
That might be the case but when moving those points I don't see anything hidden behind.
Some tips for scanning:
Make sure to have enough light, preferably from your phone or a light on the side so you don't cast shadows on the document.
Using a black garbage bag or something as a background to white document helps a lot. In other words, make sure to have enough contrast.
@TheLastProject I see you're Dutch (image is of the tax office...) I use one of those KOMO garbage bags, half unfolded. Works fine with a small desk spotlight on the side.
Often it creates absurd shapes like this triangle. Having only 3 points I can't properly crop... anything. It makes it very hard to actually use this app at all.