Skip to content

Online handwriting Chinese character recognition using Tensorflow 2, based on CASIA's GB2312 level-1 dataset

Notifications You must be signed in to change notification settings

Jesseatgao/casia-olhwcr-tf

Repository files navigation

CASIA OLHWCR-TF

Online handwriting Chinese character recognition using Tensorflow 2, Keras & Flask , based on CASIA's GB2312 level-1 dataset

SCREENSHOTS

screenshots

INSTALLATION

  • from within source directory locally

    pip install .

USAGE

✉️
The model restored from the pre-saved checkpoint (located in 'olccr/recognition/conf/checkpoint/weights.hdf5') is not fully trained, and its hyperparameters are not tuned. The app above is just for demonstrating the idea. Further training and experimentation should be done.

Running recognition App

From the Bash/CMD shell execute the following command, then visit http://127.0.0.1:5000/:

(ENV)$ olccr

Re-training model

  • Preparing raw data

Run the following command to unzip and patch the raw data:

(ENV)$ olccr_prepare
  • Making dataset

To generate the training and validation dataset, simply run:

(ENV)$ olccr_preprocess -t -v
  • Training model

Run or re-run after interruption the following command to train or resume training the network, respectively

(ENV)$ olccr_train -V 1

Installing trained weights

With default setup, for example, the checkpointed weights should be saved as olccr/data/ckpts/weights.hdf5. To apply the latest weights, copy it to the App's recognition configuration directory olccr/recognition/conf/checkpoint/ replacing the same name file, then restart the App.

REFERENCES

About

Online handwriting Chinese character recognition using Tensorflow 2, based on CASIA's GB2312 level-1 dataset

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages