|
|
|
@ -128,13 +128,13 @@ def create_rate_xmps(pid): |
|
|
|
|
|
|
|
|
|
|
|
photos1_count = len(os.listdir(photo1_path)) |
|
|
|
photos1_count = len(os.listdir(photo1_path)) |
|
|
|
photos2_count = len(os.listdir(photo2_path)) |
|
|
|
photos2_count = len(os.listdir(photo2_path)) |
|
|
|
if photos1_count + photos2_count < 162: |
|
|
|
# if photos1_count + photos2_count < 162: |
|
|
|
print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} {pid} photo1数量{photos1_count} photo2数量{photos2_count},未能覆盖所有相机,是否继续计算相机位姿?') |
|
|
|
# print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} {pid} photo1数量{photos1_count} photo2数量{photos2_count},未能覆盖所有相机,是否继续计算相机位姿?') |
|
|
|
continue_or_not = input('是否继续计算相机位姿?(y/n)') |
|
|
|
# continue_or_not = input('是否继续计算相机位姿?(y/n)') |
|
|
|
if continue_or_not == 'y': |
|
|
|
# if continue_or_not == 'y': |
|
|
|
pass |
|
|
|
# pass |
|
|
|
else: |
|
|
|
# else: |
|
|
|
sys.exit(0) |
|
|
|
# sys.exit(0) |
|
|
|
|
|
|
|
|
|
|
|
#清除图片exif信息, 旋转图片 180度 |
|
|
|
#清除图片exif信息, 旋转图片 180度 |
|
|
|
rateImages(pid) |
|
|
|
rateImages(pid) |
|
|
|
@ -182,9 +182,10 @@ def create_rate_xmps(pid): |
|
|
|
if xmpAligns == (photos1_count+photos2_count): |
|
|
|
if xmpAligns == (photos1_count+photos2_count): |
|
|
|
upload_xmp(pid) |
|
|
|
upload_xmp(pid) |
|
|
|
else: |
|
|
|
else: |
|
|
|
upload_or_not = input(f'当前照片总数{photos1_count+photos2_count},对齐数量{xmpAligns},没有全部对齐,是否上传oss?(y/n)') |
|
|
|
# upload_or_not = input(f'当前照片总数{photos1_count+photos2_count},对齐数量{xmpAligns},没有全部对齐,是否上传oss?(y/n)') |
|
|
|
if upload_or_not == 'y': |
|
|
|
# if upload_or_not == 'y': |
|
|
|
upload_xmp(pid) |
|
|
|
# upload_xmp(pid) |
|
|
|
|
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} {pid} rate_xmps文件生成完成,共费时{libs.diff_time(start_time)}') |
|
|
|
print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} {pid} rate_xmps文件生成完成,共费时{libs.diff_time(start_time)}') |
|
|
|
|
|
|
|
|
|
|
|
|