コード例 #1
0
ファイル: run.py プロジェクト: sheex2018/NodeMICMAC
        f.write(short_name)
        f.write('\t\t\t</CameraEntry>\n')
        f.write('\t\t</LocCamDataBase>\n')
        f.write('\t</ChantierDescripteur>\n')
        f.write('</Global>\n')


# RUN
if __name__ == '__main__':

    args = config.config()

    log.MM_INFO('Initializing NodeMICMAC app - %s' % system.now())
    log.MM_INFO(args)

    progressbc.set_project_name(args.name)

    project_dir = io.join_paths(args.project_path, args.name)
    image_dir = io.join_paths(project_dir, 'images')

    IN_DOCKER = os.environ.get('DEBIAN_FRONTEND', False)

    if IN_DOCKER:
        mm3d = 'mm3d'
    else:
        mm3d = '/home/drnmppr-micmac/bin/mm3d'  # for dev: locally installed micmac branch

    try:
        log.MM_INFO('Starting..')
        os.chdir(image_dir)
コード例 #2
0
    log.ODM_INFO(args)

    if args.rerun_all:
        log.ODM_INFO("Rerun all -- Removing old data")
        os.system("rm -rf " + " ".join([
            quote(os.path.join(args.project_path, "dense")),
            quote(os.path.join(args.project_path, "database.db")),
            quote(os.path.join(args.project_path, "odm_dem")),
            quote(os.path.join(args.project_path, "odm_georeferencing")),
            quote(os.path.join(args.project_path, "odm_meshing")),
            quote(os.path.join(args.project_path, "odm_texturing")),
            quote(os.path.join(args.project_path, "entwine_pointcloud")),
            quote(os.path.join(args.project_path, "odm_orthophoto")),
        ]))

    progressbc.set_project_name(os.path.basename(args.project_path))

    # Initializes the application and defines the pipeline stages
    dataset = DatasetStage('dataset', args, progress=5.0)
    features = FeaturesStage('features', args, progress=10.0)
    matching = MatchingStage('matching', args, progress=15.0)
    sparse = SparseStage('sparse', args, progress=30.0)
    georegister = GeoregisterStage('georegister', args, progress=32.0)
    dense = DenseStage('dense', args, progress=60.0)
    georeferencing = GeoreferencingStage('georeferencing', args, progress=65.0)
    dem = DEMStage('dem', args, progress=68.0)
    mesh = MeshStage('mesh', args, progress=75.0)
    texture = TextureStage('texture', args, progress=90.0)
    ortho = OrthoStage('ortho', args, progress=100.0)

    # Normal pipeline