rambo 5 maanden geleden
bovenliggende
commit
b5954edfdb
3 gewijzigde bestanden met toevoegingen van 4 en 6 verwijderingen
  1. 1 4
      python/api.py
  2. 3 1
      python/service/deal_image.py
  3. 0 1
      python/settings.py

+ 1 - 4
python/api.py

@@ -192,15 +192,12 @@ def fromExcelHandler(params: HandlerDetail):
         config_data["temp_class"] = temp_class_dict
         return_data = run_main.check_before_cutout(config_data)
         cutout_res = run_main.check_for_cutout_image_first_call_back(return_data)
+        print("cutout_res", cutout_res)
         check_for_detail_first_res = None
         if cutout_res:
             return_data_check_before_detail = run_main.check_before_detail(
                     config_data
                 )
-            print(
-                    "return_data_check_before_detail======> 测试 ==>",
-                    return_data_check_before_detail,
-                )
             check_for_detail_first_res = run_main.check_for_detail_first_call_back(
                     return_data_check_before_detail
                 )

+ 3 - 1
python/service/deal_image.py

@@ -178,7 +178,9 @@ class DealImage(BaseDealImage):
 
         # 遍历目标文件夹,获取有拍摄信息的图片,并按拍摄时间排序
         files = self.list_dir(image_dir)
-        print("files", files)
+        print("\033[32m绿色文本\033[0m")
+        print("files", files, image_dir)
+        print("\033[32m绿色文本\033[0m")
         original_photo_list = []  # 原始图片列表
         for file in files:
             # -----图片清洗

+ 0 - 1
python/settings.py

@@ -2,7 +2,6 @@ from dotenv import load_dotenv, find_dotenv
 from pathlib import Path  # Python 3.6+ only
 import configparser, json, pytz
 import pillow_avif
-
 TIME_ZONE = pytz.timezone("Asia/Shanghai")
 from numpy import true_divide
 from databases import (