Welcome to Simple Hand-Writing Recognizer homepage

1. What is shwr?


The full name of "shwr" is "Simple Hand-Writing Recognizer".
It is a very simple but effective online handwriting recognition system based on DTW (Dynamic Time Warping) algorithm. It is written in pure C++, so of course it is a cross-platform library.


Find project details

please see http://sourceforge.net/projects/shwr


Download source files

please see http://sourceforge.net/projects/shwr/files






2. How to use it?

It is very easy to use "shwr".
And here is a sample (just like zinnia):
//--------------------------------------------------------------

#include <iostream>
#include "shwr.h"

int main(int argc, char **argv)
{
shwr::Recognizer recognizer;

recognizer.init("simple-handwriting-zh_CN.model");

shwr::Character character;

character.add(0, 353, 233);
character.add(0, 698, 163);
character.add(1, 223, 462);
character.add(1, 808, 379);
character.add(2, 483, 227);
character.add(2, 450, 423);
character.add(2, 393, 608);
character.add(2, 260, 710);
character.add(2, 133, 763);
character.add(3, 475, 484);
character.add(3, 668, 682);
character.add(3, 805, 765);
character.add(3, 933, 771);

std::vector<std::string> words;

recognizer.recognize( &character, &words, 10, 0 );

for(size_t i=0; i<words.size(); i++) std::cout << words[i] << std::endl;

return 0;
}

//--------------------------------------------------------------





3. License?

Free and open-source, BSD License.












กก