Path: blob/master/Model-1/GapClassification-CharClass.ipynb
427 views
Kernel: Python 3
Character Segmentation using Char Classifier
This is experimental solution, UNFINISHED
In [1]:
Out[1]:
/home/breta/anaconda3/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
OpenCV: 3.1.0
Numpy: 1.14.1
TensorFlow: 1.6.0
In [2]:
Gloval Variables
In [3]:
Load Image and Separate Words
In [4]:
Out[4]:
In [5]:
Out[5]:
Load Trained Model
In [6]:
Out[6]:
INFO:tensorflow:Restoring parameters from models/gap-clas/CNN-CG
INFO:tensorflow:Restoring parameters from models/char-clas/en/CharClassifier
Successfully loaded.
In [7]:
In [8]:
Out[8]:
['you', 'i', 'the', 'to', 'a', 'it', 'and', 'that', 'of', 'is']
Applying Model
In [15]:
In [16]:
Out[16]:
address
aum
muss