Forum

Author Topic: BuildPoints NetworkTask unexpected error  (Read 4001 times)

smihic

  • Newbie
  • *
  • Posts: 31
    • View Profile
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?

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15029
    • View Profile
Re: BuildPoints NetworkTask unexpected error
« Reply #1 on: May 09, 2016, 04:27:14 PM »
Hello Srdjan,

Build points has different name in Python API for network distribution, also the parameter for the error is named differently. With the following modifications it should work:
Code: [Select]
task2.name = 'TriangulatePoints'
task2.params['model_threshold'] = 10
Best regards,
Alexey Pasumansky,
Agisoft LLC

smihic

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: BuildPoints NetworkTask unexpected error
« Reply #2 on: May 10, 2016, 01:22:38 PM »
Thank you Alexey, it works.

smihic

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: BuildPoints NetworkTask unexpected error
« Reply #3 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

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15029
    • View Profile
Re: BuildPoints NetworkTask unexpected error
« Reply #4 on: May 11, 2016, 11:21:10 AM »
Hello Srdjan,

For MatchPhotos network task it should be "filter_mask" parameter.
Best regards,
Alexey Pasumansky,
Agisoft LLC