Update auto_pack_img.py

This commit is contained in:
Canadew
2024-10-09 14:22:06 +08:00
committed by GitHub
parent 698e4d86ec
commit 5459536c43
+3 -2
View File
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import random
import cv2
@@ -123,7 +124,7 @@ images = load_images_from_folder(folder)
stitched_image = stitch_images_bin_packing(images)
cv2.imwrite('auto_img_zh_cn.png', stitched_image)
cv2.imwrite('images/auto_img_zh_cn.png', stitched_image)
folder = 'en'
@@ -132,4 +133,4 @@ images = load_images_from_folder(folder)
stitched_image = stitch_images_bin_packing(images)
cv2.imwrite('auto_img_en.png', stitched_image)
cv2.imwrite('images/auto_img_en.png', stitched_image)