TextRecognitionDataGenerator icon indicating copy to clipboard operation
TextRecognitionDataGenerator copied to clipboard

About the background image change

Open rindon520 opened this issue 5 years ago • 11 comments

When using an image background, can the default background image be changed?

rindon520 avatar Aug 26 '20 09:08 rindon520

Images are taken from the images/ directory. You can change the images in it if you want a different background.

Belval avatar Aug 26 '20 19:08 Belval

thank you for your reply. I also need to ask, what is the background switching command? I have changed the pictures in images/ to other pictures. image

rindon520 avatar Sep 08 '20 10:09 rindon520

Images are taken from the images/ directory. You can change the images in it if you want a different background.

Thank you for your reply. I have replaced the pictures in the images/ directory, what is the generation command? image

rindon520 avatar Sep 08 '20 10:09 rindon520

trdg -c 1000 -b 3 will generate 1000 images with image background.

Belval avatar Sep 08 '20 13:09 Belval

trdg -c 1000 -b 3

image image I used this command to generate 100 pictures with background, but no text was generated on the pictures I replaced.

rindon520 avatar Sep 09 '20 07:09 rindon520

Could be a bug, please share the image.

Belval avatar Sep 11 '20 13:09 Belval

Could be a bug, please share the image.

可能是错误,请分享图片。

bricks

rindon520 avatar Sep 14 '20 12:09 rindon520

water Pictures have been shared, please reply, thank you!

rindon520 avatar Sep 21 '20 08:09 rindon520

Same problem

bupt-yfh avatar Sep 26 '20 13:09 bupt-yfh

Hi! Sorry this one fell through the cracks.

The reason why the background does not change is that the pip package is probably installed in a different location so you are looking at a different directory. You can try running python3 trdg/run.py -c 1000 -b 3.

EDIT: You can also use --image_dir [path to your images] to fix the issue.

Belval avatar Sep 27 '20 21:09 Belval

Hi! Sorry this one fell through the cracks.

The reason why the background does not change is that the pip package is probably installed in a different location so you are looking at a different directory. You can try running python3 trdg/run.py -c 1000 -b 3.

EDIT: You can also use --image_dir [path to your images] to fix the issue.

The problem is solved. Thank you very much!

rindon520 avatar Sep 28 '20 11:09 rindon520