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

17
Thanks

18
No, chunk is not referenced, does this make any difference?

So is there a relation between chunk coordinate system and coordinate system of bounding box?

19
Hi Alexey,
  thank you, but I don't have geographic coordinate system, so I can't use you solution. I will try to rephrase my question are internal coordinate system of the chunk, and coordinate system of bounding box (region) related somehow?

I ask this because I tried to set minimal bounding box around the subject, by calculating minimum and maximum points the subject occupies (using sparse point cloud) and I don't get expected results (bounding box is shifted)




20
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.

21
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.

22
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.


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

24
Hi Alexey,
   thank you for the help. This folder you've mentioned has two subfolders: DLLs and Lib (on Windows). So where do I have to copy and what to copy? Is it enough to just pyd file or I need to copy DLL as well (in same directory DLLs?)

25
Thanks, but that is not what I need. I need to use opencv from python scripts, so since PhotoScan comes with their own python (ver 3.3) I need to know where to copy the library (pyd) and what else I need to do to use opencv from the script

26
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

27
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

28
Thank you. We will try out your suggestion

29
Thank you so much.

Could you be little specific what do you mean by "good" object? I presume that we need object with rich texture of some standard dimensions?

30
Thank you very much, Alexey.

Then what would you recommend to get accurate alignments in our case? We need to be able to check if cameras are aligned well (and our idea was to use that we know their positions in real world) to make the script work in automated manner.

In addition, if I understood correctly, camera coordinates are in local chunk coordinate system. This coordinate system is logical and has no relation with the real world? I have found in forums that local coordinate system code (I think for exporting of a model):

crs = PhotoScan.CoordinateSystem('LOCAL_CS["Local CS",LOCAL_DATUM["Local Datum",0],UNIT["metre",1]]')

Does this mean that local coordinate system can be set in units of meters?

Pages: 1 [2] 3