Spaces:
Runtime error
Runtime error
Update create_print_layover.py
Browse files- create_print_layover.py +4 -2
create_print_layover.py
CHANGED
@@ -171,7 +171,9 @@ def control_texture(texture_image, direction, overlap, width, height):
|
|
171 |
import cv2
|
172 |
color_extract(texture_image, width, height)
|
173 |
create_image_with_feather_tile(texture_image, width, height, overlap)
|
174 |
-
|
175 |
-
|
|
|
|
|
176 |
os.remove('tiled_image.png')
|
177 |
cv2.imwrite('tiled_image_2.png', control_tile_image)
|
|
|
171 |
import cv2
|
172 |
color_extract(texture_image, width, height)
|
173 |
create_image_with_feather_tile(texture_image, width, height, overlap)
|
174 |
+
img1 = cv2.imread(''color_image.jpg')
|
175 |
+
img2 = cv2.imread('tiled_image.png')
|
176 |
+
control_tile_image = stitch_images_with_control(img1,
|
177 |
+
img2, overlap, direction)
|
178 |
os.remove('tiled_image.png')
|
179 |
cv2.imwrite('tiled_image_2.png', control_tile_image)
|