diff --git a/coords_creation.py b/coords_creation.py index 3aa44b7..2a776ad 100644 --- a/coords_creation.py +++ b/coords_creation.py @@ -13,13 +13,9 @@ def coordinates(origin, new_size, angle, sym, live): if live == 0: print("Webcam take picture") time.sleep(2) - #show_img_conditions.show() - image_path = "goutput.png" - image = cv2.imread(image_path) - #cv2.imshow('test', image) - - background_path = remove_bg.rmbg("didier.jpg") - print(background_path) + show_img_conditions.show() + image_path = get_head.get_image() + background_path = remove_bg.rmbg(image_path) if live == 1: print("Picture from files") diff --git a/image.png b/image.png index eb2758b..563a70d 100644 Binary files a/image.png and b/image.png differ diff --git a/main.py b/main.py index 3418732..90d5753 100644 --- a/main.py +++ b/main.py @@ -15,8 +15,8 @@ coords = [] origin = [200, 0, -63] # origin of the drawing new_size = [60, 0] # new size of the picture in mm, write 0 if you want to be proportional angle = 90 # rotation of 180° -sym = 'y' # symetry on the x-axis -live = 1 # 0 is live, 1 is for saved image +sym = 'x' # symetry on the x-axis +live = 0 # 0 is live, 1 is for saved image coords = coords_creation.coordinates(origin, new_size, angle, sym, live) diff --git a/output.png b/output.png index 7575736..4422ea9 100644 Binary files a/output.png and b/output.png differ