From 90f492ed5d7bf51f572b83db9f103118e569cae0 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 18 Jul 2021 11:28:09 +0200 Subject: [PATCH 1/2] draft --- gpx2exif.py | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 gpx2exif.py diff --git a/gpx2exif.py b/gpx2exif.py new file mode 100644 index 0000000..0702bed --- /dev/null +++ b/gpx2exif.py @@ -0,0 +1,52 @@ +# WIP - This is a fragment and not ready to be used +# problem: it will update the exif of the input metadata in place, so the image files should be copied to the InternalNodeFolder first +# https://github.com/alicevision/meshroom/blob/develop/meshroom/nodes/aliceVision/Publish.py +# https://github.com/gvellut/gpx2exif +__version__ = "3.0" + +from meshroom.core import desc + + +class InstantMeshes(desc.CommandLineNode): + commandLine = '{gpx2exifPathValue} image {gpxInputValue} {imageFolder} --delta {minutesValue}m{secondsValue}s' + + cpu = desc.Level.NORMAL + ram = desc.Level.NORMAL + + inputs = [ + desc.File( + name="gpx2exifPath", + label='gpx2exif Path', + description='Path to gpx2exif', + value=os.environ.get('gpx2exif',"gpx2exif"), + uid=[0], + group='', + ), + desc.File( + name="gpxInput", + label='GPX input).', + description='Path to the GPX file', + value=os.environ.get('GPX file',""), + uid=[0], + group='', + ), + desc.File( + name="imageInput", + label='Image input).', + description='Path to images', + value=os.environ.get('images',""), + uid=[0], + group='', + ), + + ] + + outputs = [ + desc.File( + name="output", + label="Output mesh", + description="Output mesh (OBJ file format).", + value=desc.Node.internalFolder + 'mesh.obj', + uid=[], + ), + ] From 7f65da840b9fe202f7eb27ba5ee8715a928a40b7 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 16 May 2023 14:48:53 +0200 Subject: [PATCH 2/2] Update gpx2exif.py --- gpx2exif.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpx2exif.py b/gpx2exif.py index 0702bed..8004e16 100644 --- a/gpx2exif.py +++ b/gpx2exif.py @@ -7,7 +7,7 @@ from meshroom.core import desc -class InstantMeshes(desc.CommandLineNode): +class gpx2exif(desc.CommandLineNode): commandLine = '{gpx2exifPathValue} image {gpxInputValue} {imageFolder} --delta {minutesValue}m{secondsValue}s' cpu = desc.Level.NORMAL