Some tools for manipulating the data from the KanjiVG project. This is now integrated into my fork of Tegaki (http://github.com/rogerbraun/Project-Tegaki)
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
.ruby-version
Gemfile
Gemfile.lock
README
csv_all_kanji.rb
kvg2sexp.rb
sexp_all_kanji.rb
test_images.rb
xml_all_kanji.rb

README

kvg-tools
=========

These are tools for converting the KanjiVG data at kanjivg.tagaini.net to points and strokes. Right now it only converts to pointy images in png, to S-Expressions and to single files in the Project Tegaki format. These can be used to train zinnia (http://zinnia.sourceforge.net/) models and other machine learning engines.

Usage
=====
Download the xml release of the KanjiVG data at https://github.com/KanjiVG/kanjivg/releases.
To S-Expressions:
SOURCE=kanjivg-RELEASENUMBER.xml ruby sexp_all_kanji.rb
To csv files of the format: #stroke,x,y
SOURCE=kanjivg-RELEASENUMBER.xml ruby csv_all_kanji.rb
To tegaki xml format:
SOURCE=kanjivg-RELEASENUMBER.xml ruby xml_all_kanji.rb
License
-------

This package is distributed under the terms of the GNU General Public
License.