nowfound

Life & fun · April 2, 2014

CL

Command line method for digitizing photos of whiteboards

About a month ago, after searching for an existing solution, I built a little script to take photo's of whiteboards and clean them up/make them into near perfect digital representations. Here's the script: #!/bin/bash convert $1 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 $2 Example Input: Input 1: http://i.imgur.com/CTSIPwm.jpg Input 2: http://i.imgur.com/37GXrwo.jpg Example Output: Output 1: http://i.imgur.com/Qf3jkBW.png Output 2: http://i.imgur.com/oNueb0L.png The…

What it does

In the maker’s words, at launch

About a month ago, after searching for an existing solution, I built a little script to take photo's of whiteboards and clean them up/make them into near perfect digital representations. Here's the script: #!/bin/bash convert $1 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 $2 Example Input: Input 1: http://i.imgur.com/CTSIPwm.jpg Input 2: http://i.imgur.com/37GXrwo.jpg Example Output: Output 1: http://i.imgur.com/Qf3jkBW.png Output 2: http://i.imgur.com/oNueb0L.png The basic procedure was outlined in this excellent post for cleaning up whiteboard photos using GIMP: http://matthew.mceachen.us/blog/how-to-clean-up-photos-of-whiteboards-with-gimp-403.html I just replicated the procedure using Imagemagick. Since I do a ton of work on whiteboards nearly every day, I found this really helpful for managing photos of my whiteboard work. I figured I should share this with you guys, since the HN community seems like the kind of people who'd make use of it.

Does the same job

all alternatives →

More life & fun this month

the category →
  • TL

    Life & fun · 10d ago · louisabraham.github.io

  • Photosynthesis fires two of your iPhone

    Life & fun · 29d ago · photosynthesis.camera

  • SoloUno310

    Take control of hair pulling, nail biting & skin picking

    Life & fun · 28d ago · solouno.io

  • Scroll through all 43,252,003,274,489,856,000 reachable Rubik's Cube permutations.

    Life & fun · 27d ago · everycube.alen.is

  • The Interactive 3D Encyclopedia

    Life & fun · 21d ago · expeditione.fun

  • Hi HN, I built Eigendrum, a web tool that solves the 2D wave equation for arbitrary shapes so you can hear what they sound like as drums. How it works: * Solves -∇²u = λu using finite element analysis (Kφ = λMφ) on a triangle mesh. * Validated to <0.1% error against closed-form solutions for circles (Bessel zeros) and rectangles. * Sound model factors in strike location, Rayleigh damping, and mallet width. * Includes Kac drums I & II to demonstrate identical sound spectra from different geometries. * No frameworks, build steps, or dependencies. Repo and tests:…

    Life & fun · 27d ago · baselashraf81.github.io

Launched alongside, April 2014

the whole month →