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.


Topics - smihic

Pages: [1]
1
Hi,
  is there a way to report progress from script that runs as NetworkTask?

2
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

3
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?

4
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

5
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

6
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?

7
Hi,
   could someone confirm is it possible to access multiprocessing Python module (it is available in python distribution with PhotoScan Pro), in order to do computations on multicore CPU from Python scripting?

8
Hi,
   I saw the new update came out (1.1.3.2018) and I was wondering what was in Python API. I was unable to find API documentation for this version on the site.

9
Hi,
   could somebody explain the relation between coordinate system of chunk and region coordinate system and how to interact with each other.

Thank you in advance.

10
Hi,
    I would like to create a see through image along z=0, x=0, y=0 planes so that I could visually inspect issues inside of the model. Is it possible through python scripting?

thank you in advance.


11
Python and Java API / Finding the minimal bounding box
« on: February 20, 2015, 12:15:25 PM »
Hi,
  I want to set the minimal bounding box around the center of the chunk. I find the center from the camera positions, and then create maximal bounding box (according to camera positions) and create low poly mesh. After that I find the minimum/maximum values for x,y,z (from mesh vertices) and use them to create minimal bounding box. The issue I am having is that center of this bounding box is not set right (its is moved and results that some parts are not inside of the box):

Code: [Select]
newregion.center = PhotoScan.Vector( [ xmin + (abs(xmax - xmin))/2.0, ymin + (abs(ymax - ymin))/2.0, zmin + (abs(zmax - zmin))/2.0 ] )

newregion.size = PhotoScan.Vector( [ abs(xmax - xmin),  abs(ymax - ymin), abs(zmax - zmin) ] ) / s

I don't change rotation of region, but still I get that some parts of the model are outside of this minimal bounding box. Can you help?

12
Python and Java API / Mask thumbnail accesable in python scripts?
« on: February 06, 2015, 04:50:25 PM »
Hi,
   is it possible to access mask thumbnail in python scripts. I know it is possible to access the thumbnail of photo/camera.

In addition, what is the best way to access image data (image has function tostring() which gives raw bytes - in which order they are (R,G,B) rows or columns?

Best regards,
Srdjan

13
Python and Java API / How to use external python libraries in PhotoScan?
« on: February 06, 2015, 04:44:57 PM »
Hi,
   could you tell me what is needed to setup and use external python libraries in photoscan scripts. More precisely, we are interested to use opencv.

Thank you in advance.

Best regards,
Srdjan

14
Hi,
 company for we are working uses a fairly standard scanning solution consisting of several camera attached to several pods forming a circle around the subject (a human). They are using PhotoScan 0.9 version at their facilities.

We are trying to automate the whole workflow of PhotoScan using its scripting API.

Is it possible to use dimensions from the physical world (camera position, pod positions etc.) for camera positioning in PhotoScan (using python scripting) so we can enhance alignment phase? Does this can speed up the alignment process and result in better alignment quality?

We do not have geographic information from photos (cameras are without GPS) that are used for 3D model generation.

Thanks for your help and comments.

Pages: [1]