mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 02:08:08 +02:00
[nodes] create default values from os.environ directly in nodes
This commit is contained in:
parent
c38c2d3407
commit
0bdad5a588
3 changed files with 5 additions and 5 deletions
|
@ -6,14 +6,12 @@ from .core.graph import Graph
|
|||
def photogrammetryPipeline():
|
||||
# type: () -> Graph
|
||||
graph = Graph('pipeline')
|
||||
cameraInit = graph.addNewNode('CameraInit',
|
||||
sensorDatabase=os.environ.get('ALICEVISION_SENSOR_DB', None))
|
||||
cameraInit = graph.addNewNode('CameraInit')
|
||||
featureExtraction = graph.addNewNode('FeatureExtraction',
|
||||
input=cameraInit.outputSfm)
|
||||
imageMatching = graph.addNewNode('ImageMatching',
|
||||
input=cameraInit.outputSfm,
|
||||
featuresDirectory=featureExtraction.output,
|
||||
tree=os.environ.get('ALICEVISION_VOCTREE', None),
|
||||
)
|
||||
featureMatching = graph.addNewNode('FeatureMatching',
|
||||
input=cameraInit.outputSfm,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import sys
|
||||
import os
|
||||
from meshroom.core import desc
|
||||
|
||||
|
||||
|
@ -24,7 +25,7 @@ class CameraInit(desc.CommandLineNode):
|
|||
sensorDatabase = desc.File(
|
||||
label='Sensor Database',
|
||||
description='''Camera sensor width database path.''',
|
||||
value='',
|
||||
value=os.environ.get('ALICEVISION_SENSOR_DB', ''),
|
||||
uid=[0],
|
||||
isOutput=False,
|
||||
)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import sys
|
||||
import os
|
||||
from meshroom.core import desc
|
||||
|
||||
|
||||
|
@ -23,7 +24,7 @@ class ImageMatching(desc.CommandLineNode):
|
|||
tree = desc.File(
|
||||
label='Tree',
|
||||
description='''Input name for the vocabulary tree file.''',
|
||||
value='',
|
||||
value=os.environ.get('ALICEVISION_VOCTREE', ''),
|
||||
uid=[0],
|
||||
isOutput=False,
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue