|
|
|
@ -111,13 +111,14 @@ def get_photo2_align_info(pid): |
|
|
|
|
|
|
|
|
|
|
|
if alignNums != photosNums: |
|
|
|
if alignNums != photosNums: |
|
|
|
notify(f'影棚号:{psid} , PID:{pid},没有对齐,照片数量:{photosNums} 对齐的图片数量:{alignNums}') |
|
|
|
notify(f'影棚号:{psid} , PID:{pid},没有对齐,照片数量:{photosNums} 对齐的图片数量:{alignNums}') |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
|
|
|
|
#处理完成后塞入到指定的队列 |
|
|
|
#处理完成后塞入到指定的队列 |
|
|
|
r = create_redis_connection() |
|
|
|
r = create_redis_connection() |
|
|
|
r.rpush('ai:ai_build_mesh',pid) |
|
|
|
r.rpush('ai:ai_build_mesh',pid) |
|
|
|
|
|
|
|
|
|
|
|
#删除文件夹 |
|
|
|
#删除文件夹 |
|
|
|
shutil.rmtree(os.path.join(config.workdir, pid), ignore_errors=True) |
|
|
|
shutil.rmtree(os.path.join(config.workdir, pid), ignore_errors=True) |
|
|
|
|
|
|
|
|
|
|
|
def create_redis_connection(): |
|
|
|
def create_redis_connection(): |
|
|
|
"""创建 Redis 连接,若连接失败则重试""" |
|
|
|
"""创建 Redis 连接,若连接失败则重试""" |
|
|
|
|