Skip to content

Commit 04aace1

Browse files
authored
Added more details to README
1 parent 710c9cb commit 04aace1

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

CharClassification/README.md

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,27 @@
11
## Character Classification (of Synthetic Dataset) using Keras (CNN)
22

3-
1. `python3 generate-images.py `
3+
**Step-1:**
44

5-
This generates the synthetic dataset in this and this folder.
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.
66

7-
2. `python3 train_model.py`
7+
**Step-2:**
88

9-
This trains the model on the given dataset.
9+
Download fonts from [here](https://fonts.google.com/). These fonts will be used for randomly selected font-type while creating synthetic dataset.
1010

11-
3. `python3 make_predictions.py <image_path>`
11+
**Step-3:**
1212

13-
This predicts on the test images. Note: You have to specify your test image as an argument.
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:
1414

15+
`python3 generate-images.py`
16+
17+
**Step-4:**
18+
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+
21+
`python3 train_model.py`
22+
23+
**Step-5:**
24+
25+
In order to predict the digit or character in an image, execute the following command. Give the test image path as the argument.
26+
27+
`python3 make_predictions.py <image_path>`

0 commit comments

Comments
 (0)