Live data from Hacker News

Show HN: Digitizing photos of whiteboards using the command line

gist.github.com

1–10 of 37 posts

Re: Show HN: Digitizing photos of whiteboards using the command line

#5
Great work, thanks heaps for this! This'll help me clean up files quickly and easily, as we do the same thing a lot of the time too :)

NB: This works fine on the Windows version of ImageMagick, however if (like me) you want to wrap it in a batch file you must escape the -level command by changing the "60%,91%,0.1" to "60%%,91%%,0.1" or else the batch file will misinterpret it, since %1 refers to variable names (the same as bash scripts). If you don't, you'll just get a black PNG file.

Re: Show HN: Digitizing photos of whiteboards using the command line

#7
Looks much better than the original photos.

On a slightly related note, camscanner, an app for android (and IOS?) does something similar, but can also correct for the angle at which the photo was taken (I think it has to detect squares/rectangles in the photo). Does anyone know if this is possible using the command line too?

Re: Show HN: Digitizing photos of whiteboards using the command line

#9
post #7

Looks much better than the original photos. On a slightly related note, camscanner, an app for android (and IOS?) does something similar, but can also correct for the angle at which the photo was taken (I think it has to detect squares/rectangles in the photo). Does anyone know if this is possible using the command line too?

Maybe have a look at http://www.imagemagick.org/Usage/distorts/

Re: Show HN: Digitizing photos of whiteboards using the command line

#10

Nice idea, would it be possible to do some OCR at the end?

Take a look at Tesseract, which last time I looked was the best codebase to use in this area. It's part of Google's open source multilingual OCR suite, which is in two parts (layout analysis and actual OCR code being segregated): https://code.google.com/p/tesseract-ocr/
Post reply on HN