This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import glob | |
import os | |
import random | |
def create_composite_image(_fg_image , _bg_image): | |
""" | |
Creates composite images from a given set of foreground and background images | |
:param _fg_image: path to foreground images folder | |
:param _bg_image: path to background images folder |