|
|
@@ -26,10 +26,13 @@ async def checkSelect(params: CheckSelectImages):
|
|
|
image_list=image_list, need_cutout_images=need_cutout_images
|
|
|
)
|
|
|
else:
|
|
|
- need_cutout_images = service.check_need_cutout_images(file_path,need_cutout_images)
|
|
|
+ need_cutout_images = service.check_need_cutout_images(
|
|
|
+ file_path, need_cutout_images
|
|
|
+ )
|
|
|
# print("need_cutout_images",need_cutout_images)
|
|
|
- # if len([x for x in need_cutout_images if x["need_cutout"]]) == 0:
|
|
|
- # raise UnicornException("您所选文件夹下没有jpg/png图片,或对应图片已扣图")
|
|
|
+ #
|
|
|
+ if len([x for x in need_cutout_images if x["need_cutout"]]) == 0:
|
|
|
+ raise UnicornException("您所选文件夹下没有jpg/png图片,或对应图片已扣图")
|
|
|
return success(need_cutout_images)
|
|
|
|
|
|
@app.post("/api/segment_images", description="执行抠图操作")
|