final version
This commit is contained in:
parent
2f99a32263
commit
6e12720941
|
|
@ -13,13 +13,9 @@ def coordinates(origin, new_size, angle, sym, live):
|
||||||
if live == 0:
|
if live == 0:
|
||||||
print("Webcam take picture")
|
print("Webcam take picture")
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
#show_img_conditions.show()
|
show_img_conditions.show()
|
||||||
image_path = "goutput.png"
|
image_path = get_head.get_image()
|
||||||
image = cv2.imread(image_path)
|
background_path = remove_bg.rmbg(image_path)
|
||||||
#cv2.imshow('test', image)
|
|
||||||
|
|
||||||
background_path = remove_bg.rmbg("didier.jpg")
|
|
||||||
print(background_path)
|
|
||||||
|
|
||||||
if live == 1:
|
if live == 1:
|
||||||
print("Picture from files")
|
print("Picture from files")
|
||||||
|
|
|
||||||
BIN
image.png
BIN
image.png
Binary file not shown.
|
Before Width: | Height: | Size: 311 KiB After Width: | Height: | Size: 275 KiB |
4
main.py
4
main.py
|
|
@ -15,8 +15,8 @@ coords = []
|
||||||
origin = [200, 0, -63] # origin of the drawing
|
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
|
new_size = [60, 0] # new size of the picture in mm, write 0 if you want to be proportional
|
||||||
angle = 90 # rotation of 180°
|
angle = 90 # rotation of 180°
|
||||||
sym = 'y' # symetry on the x-axis
|
sym = 'x' # symetry on the x-axis
|
||||||
live = 1 # 0 is live, 1 is for saved image
|
live = 0 # 0 is live, 1 is for saved image
|
||||||
|
|
||||||
coords = coords_creation.coordinates(origin, new_size, angle, sym, live)
|
coords = coords_creation.coordinates(origin, new_size, angle, sym, live)
|
||||||
|
|
||||||
|
|
|
||||||
BIN
output.png
BIN
output.png
Binary file not shown.
|
Before Width: | Height: | Size: 213 KiB After Width: | Height: | Size: 124 KiB |
Loading…
Reference in New Issue