Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Commit

Permalink
Generate fake for each foreground
Browse files Browse the repository at this point in the history
  • Loading branch information
qurben committed Jun 25, 2019
1 parent 342250f commit 33dd7ea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ def get_arguments():

def composite_images(fg_path, bg_path):

for i in range(60):
fg_file = random.choice(glob(fg_path + '/*'))
for fg_file in glob(fg_path + '/*'):
bg_file = random.choice(glob(bg_path + '/*'))

foreground = resize_image(cv2.imread(fg_file, cv2.IMREAD_UNCHANGED), 512)
Expand Down

0 comments on commit 33dd7ea

Please sign in to comment.