Skip to content

This is Used for Generate Random Overlaid Image. It is modified version of leetenki/YOLOv2.

Notifications You must be signed in to change notification settings

kuochiyoug/Random-Overlaid-Image-Generator

Repository files navigation

Random Overlaid Image Generator

This tool contains three main tools:

  • image_generate.py (Python3)

Input: [background_images] , [object_images]
Output: [Images] , [Annotations]
Execution: python3 image_generate.py

This is Used for Generate Random Image. It is modified version of leetenki/YOLOv2. Generate annotated dataset (images + annotation) with input of background images and background removed object images. The object will be randomly rotated, scaled, placed in the specified area or whole area on randomly picked and cropped background images. More details please see the source code.

  • image_cropper.py (Python3)
  • image_cropper_padding.py

Input: [Annotations] , [Images]
Output: [Images]
Execution: python3 image_cropper.py /path/to/annotation/folder /path/to/image/folder /path/to/output/folder float(PERCENTAGE_OF_CROP)

Cropped image through annotation file. It generate the images by cropped out the annotation in annotation files. The generated files name will separate with the classes. PERCENTAGE_OF_CROP is controlling how big you need to crop. 1.0 will be the same size of annotation. image_cropper_padding.py provide cropped image with padding.

  • image_marker.py (Python3)

Input: [Annotations] , [Images]
Output: [Images]
Execution: python3 image_marker.py /path/to/annotation/folder /path/to/image/folder /path/to/output/folder float(PERCENTAGE_OF_MARKING)

Mark out the bounding box through annotation file. It copy the images with bounding box marked. PERCENTAGE_OF_MARKING is controlling how big you need to mark. 1.0 will be the same size of annotation.

  • AutoTrimTransparent.py

Input: [Images]
Output: [Images]
Execution: python3 AutoTrimTransparent.py /path/to/image/folder /path/to/output/folder

Automatic Trim transparent and crop the image to the smallest boundary size.

About

This is Used for Generate Random Overlaid Image. It is modified version of leetenki/YOLOv2.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages