|
|
@@ -27,8 +27,10 @@ class DealCutout:
|
|
|
self.get_online_data.refresh_headers()
|
|
|
num = 0
|
|
|
result_array = []
|
|
|
+ save_root_path = ""
|
|
|
for image_data in self.need_cutout_images:
|
|
|
num += 1
|
|
|
+ save_root_path = "{}/已扣图".format(image_data["root_path"])
|
|
|
upload_pic_dict = {}
|
|
|
upload_pic_dict = DealOneImageBeforehand(
|
|
|
image_data=image_data,
|
|
|
@@ -45,7 +47,7 @@ class DealCutout:
|
|
|
token=self.token,
|
|
|
).run(image_data, upload_pic_dict)
|
|
|
result_array.append(result)
|
|
|
- return result_array
|
|
|
+ return result_array, save_root_path
|
|
|
|
|
|
def normalMode(self):
|
|
|
"""普通模式"""
|
|
|
@@ -53,8 +55,10 @@ class DealCutout:
|
|
|
num = 0
|
|
|
result_array = []
|
|
|
print("self.need_cutout_images", self.need_cutout_images)
|
|
|
+ save_root_path = ""
|
|
|
for image_data in self.need_cutout_images:
|
|
|
num += 1
|
|
|
+ save_root_path = "{}/已扣图".format(image_data["root_path"])
|
|
|
result = DealOneImageBeforehand(
|
|
|
image_data=image_data,
|
|
|
lock=self.lock,
|
|
|
@@ -63,7 +67,7 @@ class DealCutout:
|
|
|
token=self.token,
|
|
|
).get_image_cut_noraml(image_data)
|
|
|
result_array.append(result)
|
|
|
- return result_array
|
|
|
+ return result_array, save_root_path
|
|
|
|
|
|
|
|
|
class DealCloths:
|
|
|
@@ -86,8 +90,10 @@ class DealCloths:
|
|
|
self.get_online_data.refresh_headers()
|
|
|
num = 0
|
|
|
result_array = []
|
|
|
+ save_root_path = ""
|
|
|
for image_data in self.need_cutout_images:
|
|
|
num += 1
|
|
|
+ save_root_path = "{}/已扣图".format(image_data["root_path"])
|
|
|
upload_pic_dict = {}
|
|
|
hand = DealOneImageBeforehand(
|
|
|
image_data=image_data,
|
|
|
@@ -98,4 +104,4 @@ class DealCloths:
|
|
|
)
|
|
|
upload_pic_dict = hand.get_image_cut_cloths(image_data)
|
|
|
result_array.append(upload_pic_dict)
|
|
|
- return result_array
|
|
|
+ return result_array, save_root_path
|