Skip to content

woodies11/CU-ICE-ThaiOCR_CNN

Repository files navigation

CU-ICE-ThaiOCR_CNN

A project experimenting with using synthetically created character images from TrueType font in a CNN system used to recognize handwritten characters.

Setting up the Environment

From Keras MNIST Tutorial

Set Up Python Environment

Create a Virtual Environment using Conda.

conda create -n ENVNAME

Activate the environment.

source activate ENVNAME

Set Up ML Frameworks

You can either use Theano or Tensorflow. Config the backend choice in ~/.keras/keras.json

Theano, Keras, etc.

conda install numpy scipy mkl nose sphinx keras theano matplotlib
pip install sklearn

config in ~/.theanorc Mac OS X 10.13 have some problems with CUDA on my machine (GT750m) so I will use CPU only for now.

GPU Array for CUDA

conda install -c conda-forge pygpu 

Image Generation Tools

conda install pillow

ref: Pillow

Dependencies

for cv2 to work (utility to deal with images)

conda install -c clinicalgraphics vtk

Handy Snippets

Python

Anaconda

Create New Environment

conda create -n ENVNAME

List all Conda Environment

conda env list