Skip to content

Commit a33234c

Browse files
authored
Add custom image dir option
1 parent f98b4e4 commit a33234c

35 files changed

Lines changed: 57 additions & 14 deletions

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ RUN git clone https://github.com/python-pillow/Pillow.git \
3636
&& python3 setup.py build_ext --enable-freetype install
3737

3838
RUN python3 setup.py install
39+
RUN pip3 install -r requirements-hw.txt
3940

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ include README.md
22
include LICENSE
33
include trdg/fonts/latin/*
44
include trdg/fonts/cn/*
5-
include trdg/pictures/*
5+
include trdg/images/*
66
include trdg/dicts/*
77
include trdg/texts/*

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,14 +119,14 @@ But scanned document usually aren't that clear are they? Add `-bl` and `-rbl` to
119119

120120
### Background
121121

122-
Maybe you want another background? Add `-b` to define one of the three available backgrounds: gaussian noise (0), plain white (1), quasicrystal (2) or picture (3).
122+
Maybe you want another background? Add `-b` to define one of the three available backgrounds: gaussian noise (0), plain white (1), quasicrystal (2) or image (3).
123123

124124
![15](samples/15.jpg "0")
125125
![16](samples/16.jpg "1")
126126
![17](samples/17.jpg "2")
127127
![23](samples/23.jpg "3")
128128

129-
When using picture background (3). A picture from the pictures/ folder will be randomly selected and the text will be written on it.
129+
When using image background (3). A image from the images/ folder will be randomly selected and the text will be written on it.
130130

131131
### Handwritten
132132

custom/1.png

15.4 KB
Loading

custom/2.png

160 KB
Loading

custom/3.png

38.1 KB
Loading

custom/4.png

521 KB
Loading

custom/5.png

16.2 KB
Loading

custom/6.png

55 KB
Loading

custom/7.png

38.5 KB
Loading

0 commit comments

Comments
 (0)