From 5459536c4321ff28f3ecde5e79053b382cb0dc43 Mon Sep 17 00:00:00 2001 From: Canadew <110163919+chun-awa@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:22:06 +0800 Subject: [PATCH] Update auto_pack_img.py --- auto_pack_img.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/auto_pack_img.py b/auto_pack_img.py index 99bfc15..3ab6cd7 100644 --- a/auto_pack_img.py +++ b/auto_pack_img.py @@ -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)