You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CharClassification/README.md
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,26 @@
1
1
## Character Classification (of Synthetic Dataset) using Keras (CNN)
2
2
3
-
**Step-1:**
3
+
**Step1:**
4
4
5
5
Download backgrounds and put the light and dark backgrounds separately. We'll be using them for creating synthetic dataset. We have uploaded sample backgrounds in light_backgrounds and dark_backgrounds for reference.
6
6
7
-
**Step-2:**
7
+
**Step2:**
8
8
9
9
Download fonts from [here](https://fonts.google.com/). These fonts will be used for randomly selected font-type while creating synthetic dataset.
10
10
11
-
**Step-3:**
11
+
**Step3:**
12
12
13
13
Create synthetic data using ImageMagick. We have given an intuition behind creating synthetic data, in our blog. This can be done with following command:
14
14
15
15
`python3 generate-images.py`
16
16
17
-
**Step-4:**
17
+
**Step4:**
18
18
19
19
Training the model on the given dataset. A modified LeNet structure has been used to train our model, using Keras. This can be done with following command:
20
20
21
21
`python3 train_model.py`
22
22
23
-
**Step-5:**
23
+
**Step5:**
24
24
25
25
In order to predict the digit or character in an image, execute the following command. Give the test image path as the argument.
0 commit comments