Skip to content

Instantly share code, notes, and snippets.

@demofly
Created April 4, 2014 08:31
Show Gist options
  • Save demofly/9970489 to your computer and use it in GitHub Desktop.
Save demofly/9970489 to your computer and use it in GitHub Desktop.
Позволяет убрать темноватый фон из фоток с надписями на белой маркерной доске
#!/bin/bash
convert $1 -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 $2
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
#!/bin/bash
convert in.jpg \( +clone -blur 0x20 \) -compose Divide_Src -composite -normalize -level 10%,90% -deskew 40% -unsharp 0x5+2+0 out.jpg
@demofly
Copy link
Author

demofly commented Apr 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment