Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/alicevision/meshroom.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorCandice Bentéjac <candice.bentejac@gmail.com>2022-07-12 12:50:34 +0300
committerCandice Bentéjac <candice.bentejac@gmail.com>2022-07-12 15:56:24 +0300
commit8fb0c778d12af5d3d51567407a6d38132e53d796 (patch)
treec5340b8fa0f2f3e7adb8c1b28290eec5e917ef6b /tests
parent7ec65d828cec87224841eb8786c9cb4c63f7d201 (diff)
Add support for external pipelines using project files
- Support loading external pipelines as templates with project files - Add template files for some standard pipelines - Remove the hard-coded generation of new pipelines - Update multiviewPipeline test: the multiviewPipeline test relied on the hard-coded generation of pipelines.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_multiviewPipeline.py36
1 files changed, 26 insertions, 10 deletions
diff --git a/tests/test_multiviewPipeline.py b/tests/test_multiviewPipeline.py
index c5ef6d86..4c072fba 100644
--- a/tests/test_multiviewPipeline.py
+++ b/tests/test_multiviewPipeline.py
@@ -9,18 +9,34 @@ from meshroom.core.node import Node
def test_multiviewPipeline():
- graph1 = meshroom.multiview.photogrammetry(inputImages=['/non/existing/fileA'])
- graph2 = meshroom.multiview.photogrammetry(inputImages=[])
- graph2b = meshroom.multiview.photogrammetry(inputImages=[])
- graph3 = meshroom.multiview.photogrammetry(inputImages=['/non/existing/file1', '/non/existing/file2'])
- graph4 = meshroom.multiview.photogrammetry(inputViewpoints=[
- {'path': '/non/existing/file1', 'intrinsicId': 50},
- {'path': '/non/existing/file2', 'intrinsicId': 55}
- ])
- graph4b = meshroom.multiview.photogrammetry(inputViewpoints=[
+ graph1InputImages = ['/non/existing/fileA']
+ graph1 = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
+ graph1CameraInit = graph1.node("CameraInit_1")
+ graph1CameraInit.viewpoints.extend([{'path': image} for image in graph1InputImages])
+
+ graph2InputImages = [] # common to graph2 and graph2b
+ graph2 = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
+ graph2CameraInit = graph2.node("CameraInit_1")
+ graph2CameraInit.viewpoints.extend([{'path': image} for image in graph2InputImages])
+ graph2b = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
+ graph2bCameraInit = graph2b.node("CameraInit_1")
+ graph2bCameraInit.viewpoints.extend([{'path': image} for image in graph2InputImages])
+
+ graph3InputImages = ['/non/existing/file1', '/non/existing/file2']
+ graph3 = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
+ graph3CameraInit = graph3.node("CameraInit_1")
+ graph3CameraInit.viewpoints.extend([{'path': image} for image in graph3InputImages])
+
+ graph4InputViewpoints = [
{'path': '/non/existing/file1', 'intrinsicId': 50},
{'path': '/non/existing/file2', 'intrinsicId': 55}
- ])
+ ] # common to graph4 and graph4b
+ graph4 = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
+ graph4CameraInit = graph4.node("CameraInit_1")
+ graph4CameraInit.viewpoints.extend(graph4InputViewpoints)
+ graph4b = loadGraph(meshroom.core.pipelineTemplates["photogrammetry"])
+ graph4bCameraInit = graph4b.node("CameraInit_1")
+ graph4bCameraInit.viewpoints.extend(graph4InputViewpoints)
assert graph1.findNode('CameraInit').viewpoints.at(0).path.value == '/non/existing/fileA'
assert len(graph2.findNode('CameraInit').viewpoints) == 0