Skip to content

ImageProcessing-ElectronicPublications/noteshrink-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

noteshrink

Convert scans of handwritten notes to beautiful.

Requirements

  • stb. Copy to src/ext.

Usage

./noteshrink IMAGE_IN IMAGE_OUT.png

Build

mkdir build
cd build
cmake ..
make

Demo

./noteshrink ../images/test.jpg ../images/testout.png
Palette:
0: #e6e6b6
1: #e78178
2: #838575
3: #4f927a
4: #444541
5: #d44e4f
Save png: ../images/testout.png
done
optipng -q ../images/testout.png

images/test.jpg:
test 35113 bytes.

images/testout.png:
testout 7281 bytes.

See all imageset: noteshrink-demo.