Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,8 @@ with texture_correct:
|
|
60 |
create_image_with_feather_tile(product_image, x_dim, y_dim, overlap_width)
|
61 |
elif choice == "Direction Print":
|
62 |
control_texture(product_image, what_overlap, overlap_width, x_dim, y_dim)
|
63 |
-
|
|
|
64 |
cv2.imwrite('tiled_image.png', resized_image)
|
65 |
overlay = create_layover(generated_image, 'tiled_image.png', opacity)
|
66 |
create_image_cutout('lay_over_image.png', gen_image_mask)
|
|
|
60 |
create_image_with_feather_tile(product_image, x_dim, y_dim, overlap_width)
|
61 |
elif choice == "Direction Print":
|
62 |
control_texture(product_image, what_overlap, overlap_width, x_dim, y_dim)
|
63 |
+
color_texture_image = cv2.imread('tiled_image_2.png')
|
64 |
+
resized_image = cv2.resize(color_texture_image, (x_dim, y_dim))
|
65 |
cv2.imwrite('tiled_image.png', resized_image)
|
66 |
overlay = create_layover(generated_image, 'tiled_image.png', opacity)
|
67 |
create_image_cutout('lay_over_image.png', gen_image_mask)
|