andrewdcampbell / OpenCV-Document-Scanner

An interactive document scanner built in Python using OpenCV featuring automatic corner detection, image sharpening, and color thresholding.
479 stars 144 forks source link

Document colors #13

Open joaocps opened 2 years ago

joaocps commented 2 years ago

Hi there!

Is there any possibility to preserve the document colors in the final result? @andrewdcampbell

Kind Regards, João

bytesnake commented 2 years ago

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:

Cheers

gregorylearns commented 1 year ago

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