Forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - thuang

Pages: [1]
1
Python and Java API / Removing Photos from Chunk
« on: April 20, 2016, 01:00:55 AM »
What's the code equivalent to right-clicking a photo and "Change Path" and applying to all cameras? (In other words, how do I remove all current photos in a chunk?)


Got it (used remove() function and looped through chunk.cameras)

2
Python and Java API / Re: Building texture
« on: November 11, 2015, 01:49:05 AM »
Hello Alexey!

I got it working with adding the buildUV line:

Code: [Select]
texture_dict[texture_key].buildUV(mapping = mapping, count = 1)
texture_dict[texture_key].buildTexture(blending=PhotoScan.MosaicBlending, size=4096)

Thank you very much! Project is finally done with this  :)


3
Python and Java API / Building texture
« on: November 11, 2015, 01:10:19 AM »
Hello,

I've been trying to build textures with default settings and I've tried the following three (with no success):

texture_dict[texture_key] is the chunk that should be building the texture.

Code: [Select]

texture_dict[texture_key].buildUV(mapping = mapping, count = 1)
texture_dict[texture_key].buildTexture(blending = blending , color_correction = color_corr, size = atlas_size)

Code: [Select]
texture_dict[texture_key].buildTexture(blending=PhotoScan.MosaicBlending, size=4096)

Code: [Select]
texture_dict[texture_key].buildTexture(mapping = "adaptive", blending = "mosaic", color_correction = False, size = 4096, count = 1)

What's the correct way to do so?

EDIT: Should I perhaps be doing the second code and adding the buildUV function? (Currently processing right now). Thanks!

4
Python and Java API / Re: Export Cameras/Model No File?
« on: October 16, 2015, 12:03:33 AM »
It works! Thank you very much for your help.

5
Python and Java API / Re: Export Cameras/Model No File?
« on: October 15, 2015, 10:57:51 PM »
I'm getting an error that "PhotoScan.Document object has no attribute 'exportModel'"

Did you mean chunk = PhotoScan.Chunk()?

After doing chunk = PhotoScan.Chunk() and using chunk.exportModel(path) on a valid path with an existing mesh and chunk, I got "False" and "Finished processing in 0 sec (exit code 0)"

I've also tried multiple paths (and printed out to double check that they matched) and am getting the same result.

6
Python and Java API / Re: Export Cameras/Model No File?
« on: October 14, 2015, 02:17:45 AM »
Hello,

Could you please post an example snippet of code for a successful exporting of the model? I would appreciate it very much.

Thank you!

7
Python and Java API / Re: Export Cameras/Model No File?
« on: October 09, 2015, 01:23:53 AM »
Hmm still no luck. Printed out path name is correct but file still doesn't appear. I also tried using .ply format but didn't make a difference.

8
Python and Java API / Re: Export Cameras/Model No File?
« on: October 09, 2015, 12:56:32 AM »
Thank you!

I'm having trouble with exporting model now (function executes but no file is created). Could you please help?

   model_path = path_photos + "model.obj"
   chunk.exportModel(model_path, format='obj')

9
Python and Java API / Export Cameras/Model No File?
« on: October 08, 2015, 10:57:45 PM »
In Python scripting, my export cameras and export model is successful:

chunk.exportCameras(path_photos, format='xml')
chunk.exportModel(path_photos)

but no camera file or model file is created in the path. Any ideas for what's going on?

10
Python and Java API / Export Cameras/Model No File?
« on: September 30, 2015, 12:53:56 AM »
My export cameras and export model is successful:

chunk.exportCameras(path_photos, format='xml')
chunk.exportModel(path_photos)

but no camera file or model file is created in the path. Any ideas for what's going on?

11
Python and Java API / Removing Photos
« on: September 29, 2015, 11:46:55 PM »
I need to remove photos from my current chunk and add new ones in. Is there a way to do this besides creating a new chunk and having to import my model/cameras?

Pages: [1]