/HKLP-Double-Row

generates HK license plates 2 rows

Primary LanguagePython

HKLP-Double-Row

generates HK license plates 2 rows

To run

python fake_plate_generator.py

Run with arguments to indicate number of images wanted (Default is 1000)

'--img_dir', '-id' : put generated image directory

'--num_imgs', '-ni' : put number of generated images wanted

'--resample', '-r' : put resample value such that it shrinks image by ImageSize/resample and re-enlarges it

'--gaussian', '-g' : put range of gaussian blur

'--noise', '-n' : put range of noise strength

python fake_plate_generator.py -id `pwd`/output/ -ni 100 -r 3 -g 4 -n 5

Images are stored in the folder test_plate

Background images are randomly selected from the folder "/fake_resources/plate_background_use"

Numbers and Lettters are randomly selected from the folder "/fake_resources/numbers" and "/fake_resources/numbers respectively"

Sample Command to Generate Images for OCR training:

python fake_plate_generator_for_ocr_training.py -id /Users/fei/tmp/fakeplate/double_row/ -ni 100 -r 9 -g 10 -rb 7 -n 5