mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-28 05:57:38 +02:00
[aliceVision] Add Viewpoint parameter on CameraInit
This commit is contained in:
parent
c5ce41f49e
commit
f8d9251c61
1 changed files with 15 additions and 1 deletions
|
@ -1,12 +1,26 @@
|
||||||
import sys
|
import sys
|
||||||
|
from collections import OrderedDict
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from meshroom.core import desc
|
from meshroom.core import desc
|
||||||
|
|
||||||
|
|
||||||
|
Viewpoint = OrderedDict([
|
||||||
|
("path", desc.File(label="Image", description="Image filepath", value="", uid=[0], isOutput=False)),
|
||||||
|
("focal", desc.FloatParam(label="Focal Length", description="Focal Length", value=0.0, uid=[0], range=(5, 200, 1))),
|
||||||
|
])
|
||||||
|
|
||||||
|
|
||||||
class CameraInit(desc.CommandLineNode):
|
class CameraInit(desc.CommandLineNode):
|
||||||
internalFolder = '{cache}/{nodeType}/{uid0}/'
|
internalFolder = '{cache}/{nodeType}/{uid0}/'
|
||||||
commandLine = 'aliceVision_cameraInit {allParams}'
|
commandLine = 'aliceVision_cameraInit {allParams}'
|
||||||
|
|
||||||
|
viewpoints = desc.ListAttribute(
|
||||||
|
elementDesc=desc.GroupAttribute(label="Viewpoint", description="", groupDesc=Viewpoint, group='allParams'),
|
||||||
|
label="Viewpoints",
|
||||||
|
description="Input viewpoints",
|
||||||
|
group=""
|
||||||
|
)
|
||||||
imageDirectory = desc.File(
|
imageDirectory = desc.File(
|
||||||
label='Image Directory',
|
label='Image Directory',
|
||||||
description='''Input images folder.''',
|
description='''Input images folder.''',
|
||||||
|
@ -91,4 +105,4 @@ class CameraInit(desc.CommandLineNode):
|
||||||
values=['fatal', 'error', 'warning', 'info', 'debug', 'trace'],
|
values=['fatal', 'error', 'warning', 'info', 'debug', 'trace'],
|
||||||
exclusive=True,
|
exclusive=True,
|
||||||
uid=[],
|
uid=[],
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue