Skip to content

Files

Latest commit

Jun 1, 2018
e544113 · Jun 1, 2018

History

History

generation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jun 1, 2018
Jun 1, 2018
Jun 1, 2018
Jun 1, 2018
Jun 1, 2018
Jun 1, 2018

Scripts to generate training data

First define bounding boxes for a set of background images (see the data folder for how to get background images):

python generation/annotate.py data/background/*.jpg

Then paste other images into the defined bounding boxes:

python generation/generate.py \
  --test-stamps generation/stamps/test*.png \
  --train-stamps generation/stamps/train*.png \
  --image-folder data/backgrounds \
  --search-path data/bounding_boxes

Alternatively just use pregenerated data (see the data folder).