-
Notifications
You must be signed in to change notification settings - Fork 5
/
README.md~
42 lines (32 loc) · 1.57 KB
/
README.md~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Handwriting_recognisation using Tkinter GUI in Python
# Processing and OpenCV code in C++ which is executed through Python wrapper
1. Install tesseract , PIL and OpenCV in Ubuntu
2. To run GUI :
> python tkinter_image.py
i . Draw the image
ii. Click "Save" to save the image and coordinates ::
a. Image saved as "Image.jpg"
b. Coordinates saved in "letter_sampleNew.txt"
iii. Click "Clear" to clear the image (Optional)
3. To refactor the coordinates and display it :
i. Click "Factor $ Save"
a. Factored coordinates saved in "letter_factor.txt"
# To be run only for cursive writing (point 4)
4. To run the OpenCV- segmentation code
i. Click "Segment_OpenCV"
The final segmented image is saved as "ImageFinal.jpg"
6. To show the recognisation using Tesseract
i. Click "Cursive" for recognisation of cursive word(after step4)
ii. Click "Character" for recognisation of single charact(ignore4)
iii. For non-cursive word :
a. In new terminal goto required directory :
> tesseract Image.jpg out -l eng -psm 6
b. Open "out.txt" , ignore step 7
7. Open Output terminal to get the recognised word
or
Open file "tess_output.txt" to get the recognised word
8. Click "Clear" to remove everything and redraw
Simulator Picture :
![Simulator](https://raw.githubusercontent.com/abhinavcoder/handwriting_recognisation/master/README_PICS/Tkinter.png)
Segmented word from OpenCV :
![Image](https://raw.githubusercontent.com/abhinavcoder/handwriting_recognisation/master/README_PICS/segmented.png)