OpenCV-Document-Scanner
OpenCV-Document-Scanner copied to clipboard
Document colors
Hi there!
Is there any possibility to preserve the document colors in the final result? @andrewdcampbell
Kind Regards, João
Some of my notes are containing colors important to their content. My local version has a flag for disabling w/b conversion. You can replicate that by:
- commenting out this range https://github.com/andrewdcampbell/OpenCV-Document-Scanner/blob/master/scan.py#L291-L298
- updating the variable
thresh
towarped
in https://github.com/andrewdcampbell/OpenCV-Document-Scanner/blob/master/scan.py#L302
Cheers
Hi! I made adjustments to the code to add the color flag. It's in my repo, i'll try to put in a pull request