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 - smihic

Pages: [1] 2 3
1
Hi,
thank you, but this not what I need. I want to report progress from script that is running as RunScript task so that user can monitor progress of script execution. Is there a way to do this?

2
Hi,
  is there a way to report progress from script that runs as NetworkTask?

3
Python and Java API / Re: BuildPoints NetworkTask unexpected error
« on: May 11, 2016, 10:04:13 AM »
Hi,
   just to check when setting parameters for MatchPhotos network task, is filter_mask parameter remained the same in code or it has different name, like aforementioned model_threshold/error example?

Best regards,
Srdjan

4
Python and Java API / Re: BuildPoints NetworkTask unexpected error
« on: May 10, 2016, 01:22:38 PM »
Thank you Alexey, it works.

5
Hi,
   when using NetworkTasks on multichunk projects and when error occurs on one of them (chunk), how can we know on which one error occurred? From response we get from batchStatus, we get only number of active/processed and total items. Are chunks processed in order or randomly?

Best regards,
Srdjan

6
Python and Java API / BuildPoints NetworkTask unexpected error
« on: May 09, 2016, 01:28:37 PM »
Hi,
  when using networking for import cameras (ImportCameras,MatchPhotos, BuildPhotos) in a single batch, I get failed: Unexpected error when starting BuildPoints task. Code looks like:
Code: [Select]
# create import camera task (task0)
.
.
.
# create match photos task (task1)
.
.
.
# Create build Points task
task2 = PhotoScan.NetworkTask()
for c in doc.chunks:
    task2.chunks.append(c.key) #task2.frames.append((c.key, 0))

task2.name = "BuildPoints"
task2.params['error'] = 10.0
task2.params['network_distribute'] = True #fine level task distribution key

# Create client
client = PhotoScan.NetworkClient()
client.connect(server_ip_address)
batch_id = client.createBatch('test_project.psx', [task0, task1, task2])
success = client.resumeBatch(batch_id)


Other two tasks finish without any error. Also, is it necessary to save PSX file after each task has been completed?

7
Python and Java API / Re: RunScript NetworkTask how to?
« on: May 09, 2016, 11:09:49 AM »
Thank you Alexey. Regarding the workaround, is there a way to for RunScript network task to work on multichunk project so that it will be executed on every chunk (script code is called for each chunk (like for standard functions))?

8
Python and Java API / Re: RunScript NetworkTask how to?
« on: May 06, 2016, 01:11:17 PM »
Okay, can you tell me when we can except this new version? and are there workarounds in current version?

9
Python and Java API / Re: RunScript NetworkTask how to?
« on: May 06, 2016, 12:53:54 PM »
Hi,
  unfortunately, script called by RunScript task results in error. It seems that PhotoScan.app.document is None no matter which psx file it is called on. Can you please check?

Best regards,
Srdjan

10
Hi,
   when we use NetworkTasks on multi chunk projects and error occurs on one of them, how can we know on which one error occurred? From response we get from batchStatus, we get only number of active/processed and total items.

Best regards,
Srdjan

11
Hi,
   have anything changed regarding Python threading support in new PhotoScan 1.2.4? In previous versions of PhotoScan multiprocessing.dummy parallelization worked as expected (functions were executed in parallel), but in version 1.2.4. does not work in parallel (works as if single core is available)?

Best regards,
Srdjan

12
Python and Java API / RunScript NetworkTask how to?
« on: May 04, 2016, 11:03:58 AM »
Hi,
  we are working on networking and we want to run Python scripts on network. Can you please provide an example how to perform RunScript task from Python, and how to access PhotoScan data from that script?

Best regards,
Srdjan

13
Thank you Alexey. Code that you provided works.

When we execute these operations (ImportMasks, MatchPhotos etc.), we need to check for their status (completed, errors etc.) with batchStatus periodically (probably from different thread?) or there is a better way to do this?

14
Thank you Alexey for your prompt reply.

We are trying to use Import Masks from background where we specify background images pattern.
In addition, we have the same problem with Import Cameras function.
e.g.
Code: [Select]
task = PhotoScan.NetworkTask()
for c in PhotoScan.app.document.chunks:
task.frames.append((c.key,0))

task.name = 'ImportMasks'
task.params['network_distribute'] = True
task.params['path'] = "test/empty/{filename}.jpg" #where e.g. D:\network is set as root shared folder, and test absolute path is on D:\network\test. D drive is shared drive
task.params['method'] = 'background'
task.params['operation'] = 'replacement'
task.params['tolerance'] = 10
.
.
.
task1.name = 'ImportCameras'
task1.params['network_distribute'] = True
task1.params['path'] = "test/cameras.xml" #where e.g. D:\network is set as root shared folder, and test absolute path is on D:\network\test. D drive is shared drive
.
.
.

15
Hi,
    first of all thank you for providing networking for Python scripting. We have tried standard workflow functions, but some without success:
  • BuildModel works but ignores some parameters provided e.g. task.params['face_count'] = 2000000
  • BuildDenseCloud works but ignores some parameters provided e.g. task.params['filter'] = int(PhotoScan.FilterMode.MildFiltering).
  • All functions that require a path as parameters failed. Are paths need to be relative from the root folder for networking? Could you provide an example for textures and importmasks?

In addition, some parameters have changed name e.g. quality (BuildDenseCloud) in network mode is now downscale etc.

It seems that parameter mapping to NetworkTask parameters is not one on one. So, could you please provide a complete list of parameters?

Pages: [1] 2 3