不对输出结果进行检查
This commit is contained in:
parent
b387b61b12
commit
ba54dd107c
71
odm_preprocess.spec
Normal file
71
odm_preprocess.spec
Normal file
@ -0,0 +1,71 @@
|
||||
# -*- mode: python ; coding: utf-8 -*-
|
||||
import sys
|
||||
from PyInstaller.utils.hooks import collect_data_files
|
||||
import numpy
|
||||
|
||||
block_cipher = None
|
||||
|
||||
# 收集相关文件
|
||||
numpy_data = collect_data_files('numpy')
|
||||
sklearn_data = collect_data_files('sklearn')
|
||||
|
||||
a = Analysis(
|
||||
['main.py'],
|
||||
pathex=[],
|
||||
binaries=[],
|
||||
datas=[
|
||||
(numpy.__path__[0], 'numpy'),
|
||||
*numpy_data,
|
||||
*sklearn_data
|
||||
],
|
||||
hiddenimports=[
|
||||
'numpy',
|
||||
'numpy.core._methods',
|
||||
'numpy.lib.format',
|
||||
'numpy.core._multiarray_umath',
|
||||
'sklearn',
|
||||
'sklearn.neighbors._partition_nodes',
|
||||
'sklearn.neighbors._quad_tree',
|
||||
'sklearn.utils._cython_blas',
|
||||
'sklearn.utils._typedefs',
|
||||
'sklearn.utils._heap',
|
||||
'sklearn.utils._sorting',
|
||||
'sklearn.utils._vector_sentinel',
|
||||
'setuptools',
|
||||
'setuptools.distutils',
|
||||
'setuptools.distutils.version',
|
||||
'distutils',
|
||||
'distutils.version'
|
||||
],
|
||||
hookspath=[],
|
||||
hooksconfig={},
|
||||
runtime_hooks=[],
|
||||
excludes=[],
|
||||
win_no_prefer_redirects=False,
|
||||
win_private_assemblies=False,
|
||||
cipher=block_cipher,
|
||||
noarchive=False,
|
||||
)
|
||||
|
||||
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
|
||||
|
||||
exe = EXE(
|
||||
pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
[],
|
||||
name='odm_preprocess',
|
||||
debug=False,
|
||||
bootloader_ignore_signals=False,
|
||||
strip=False,
|
||||
upx=True,
|
||||
upx_exclude=[],
|
||||
runtime_tmpdir=None,
|
||||
console=True,
|
||||
disable_windowed_traceback=False,
|
||||
target_arch=None,
|
||||
codesign_identity=None,
|
||||
entitlements_file=None,
|
||||
)
|
@ -13,9 +13,9 @@ def convert_image(file_name, img_dir, output_dir, convert_format):
|
||||
img.save(output_path)
|
||||
|
||||
def main():
|
||||
convert_format = "jpg"
|
||||
convert_format = "png"
|
||||
img_dir = r"E:\datasets\UAV\134\project\images"
|
||||
output_dir = r"E:\datasets\UAV\134_jpg\project\images"
|
||||
output_dir = r"E:\datasets\UAV\134_png\project\images"
|
||||
|
||||
# 如果输出目录存在,先删除
|
||||
if os.path.exists(output_dir):
|
||||
|
@ -56,7 +56,7 @@ def main():
|
||||
if lat is not None and lon is not None:
|
||||
# 如果没有高度信息,使用0
|
||||
alt = alt if alt is not None else 0
|
||||
filename = filename.replace(".jpg", ".tif")
|
||||
# filename = filename.replace(".jpg", ".tif")
|
||||
f.write(f"{filename} {lat} {lon} {alt}\n")
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
@ -33,8 +33,9 @@ class ODMProcessMonitor:
|
||||
# 根据不同模式检查不同的产品
|
||||
if self.mode == "快拼模式":
|
||||
# 只检查正射影像
|
||||
if not self._check_orthophoto(project_dir):
|
||||
return False
|
||||
# if not self._check_orthophoto(project_dir):
|
||||
# return False
|
||||
pass
|
||||
|
||||
elif self.mode == "三维模式":
|
||||
# 检查点云和实景三维
|
||||
@ -156,7 +157,7 @@ class ODMProcessMonitor:
|
||||
if use_lowest_quality:
|
||||
docker_command += f"--feature-quality lowest "
|
||||
|
||||
docker_command += f"--orthophoto-resolution 8 "
|
||||
# docker_command += f"--orthophoto-resolution 8 "
|
||||
|
||||
if produce_dem:
|
||||
docker_command += (
|
||||
|
Loading…
Reference in New Issue
Block a user