Closed yathit closed 4 years ago
I'm happy to take pull requests for desired features, but I don't have a lot of bandwidth to implement these.
Sure. There are quite a lot of steps in that canonical approach.
Since business card recognition is pretty simple, I am thinking to use simpler optimization process, or even tensorflow lit, since already available in Flutter.
If the image is equally divided into four pieces, all these four pieces are pretty similar and just need to find the corner. I guess Tensorflow's object detection can find the corner object.
One thing you should take into account before you get too far down this road: this Image library has been performing excruciatingly slow on mobile devices with Flutter, taking several minutes to decode an image in some cases. It's an ongoing issue that I have no idea how to resolve on my side.
For business card scanner application, I would like to find quadrilateral contour of the scanned image. Following Scanning Documents from Photos Using OpenCV, the following steps are required.
Resize and convert to grayscale
Bilateral filter preserv edges
Create black and white image based on adaptive threshold
Median filter clears small details
Add black border in case that page is touching an image border