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

Pages: [1]
1
General / Re: Build OrthoMosaic Batch Process Projection
« on: March 02, 2017, 09:14:59 PM »
Thanks James.  Now i get it !!!

have a lovely day :)


2
General / Re: Build OrthoMosaic Batch Process Projection
« on: March 02, 2017, 12:03:25 AM »
Hey James

Thanks that really helped me.

But i Do not understand what the Matrix is doing ? Why does it have 4 Values. It´s not x,y,z than right ?

You would really help me out if you explain.

Zoos




3
Python and Java API / Re: Loading Coordinates for markers
« on: January 12, 2017, 01:45:58 PM »
Hey I just found my mistake.

chunk.markers[0]=chunk.loadReference(ppcoor,format = refform, columns= 'nxyz', delimiter=',')

that code works if you want to import markers with python.

Code: [Select]
import PhotoScan


doc = PhotoScan.app.document
chunk = doc.chunk

chunk.crs = PhotoScan.CoordinateSystem('LOCAL_CS["Local CS",LOCAL_DATUM["Local Datum",0],UNIT["metre",1]]')
ppcoor = PhotoScan.app.getOpenFileName("Select Refence Data")

if ppcoor[-4:].lower() == ".csv":
refform = "csv"
else:
PhotoScan.app.messageBox("no .csv data selected")

chunk.markers[0]=chunk.loadReference(ppcoor,format = refform, columns= 'nxyz', delimiter=',')

chunk.updateTransform()


4
Python and Java API / Re: Loading Coordinates for markers
« on: January 11, 2017, 04:58:17 PM »
Hey Alexey

I just put it in ther. Thank you

I'm still relatively new to python programing.

The loadReference function is loading reference Coordinates from a csv file right ? But wish function do i have to use to tell photoscan that those coordinates are meant to reference Markers. So they show up in the reference pendel behind the markes. As if i would Import them over the GUI ?

5
Python and Java API / Re: Loading Coordinates for markers
« on: January 11, 2017, 04:25:19 PM »
damm i did not saw that.

thank you so much Alexey

now the Console returns: True

But the Coordinates still do not show up in the Reference Panel behind the markers.

6
Python and Java API / Loading Coordinates for markers
« on: January 11, 2017, 03:50:22 PM »
Hey I´m currently working on a python script which allows me to load Coordinates for markers.

Somehow i can't figure out why its not working.

This is my Code
Code: [Select]
import PhotoScan
import datetime
import glob
import os

doc = PhotoScan.app.document

chunk.crs = PhotoScan.CoordinateSystem('LOCAL_CS["Local CS",LOCAL_DATUM["Local Datum",0],UNIT["metre",1]]')
ppcoor = PhotoScan.app.getOpenFileName("Select Refence Data")

if ppcoor[-4:].lower() == ".csv":
refform = "csv"
else:
PhotoScan.app.messageBox("no .csv data selected")

redat=chunk.loadReference("ppcoor",format = refform, columns= "nxyz", delimiter=",")

chunk.updateTransform()

print(redat)

The output of the consolle is :  2017-01-11 13:34:28 False

I dont get why its falls ?

The imput file contend is:

target 1,1011.45,987.924,99.937
target 2,1025.332,989.054,100.036
target 3,1040.943,995.915,100.011
target 5,1045.459,1018.409,100.275

And the markers target 1-5 are already detected in my project.

Any thoughts ?

Cheers zoos






7
Hello Community

I´m currently looking for an issue I can write my Bachelorthesis about. I find it very nice that you are able to do orthomosaiks with PS in a real short amount of time. I wonder if it would be possible to write a python script which dose that almost automatic.

I´m mean you still have to add the images and the control points manually but the rest should be possible to do with the script. Right ?

I´m also wondering if you could integrate the split chunks script because some Mesh are just too big to calculate them all in one .

Is it also Possible that PS  identifies parts of the Mosaik which are not that good and highlights them so that you can edit them late on with some different software.


I am not asking a full script here. I´m just wondering if it is possible to do all that with one or more scripts


Thanks for your help in advance

Zoos

8
Hey Guy

I currently working on a project wish is a little bit to big to process it all at once on my computer. That is why I tried the Split in chunks script.
My problem is that I want my mash generated in Arbitrary and not in HeightField .
I do not know much about Python-Skripting.
This should be the part of the script wish is relevant for me. 

Code: [Select]
if buildMesh:
if new_chunk.dense_cloud:
new_chunk.buildModel(surface = PhotoScan.SurfaceType.HeightField, source = PhotoScan.DataSource.DenseCloudData, interpolation = PhotoScan.Interpolation.EnabledInterpolation, face_count = PhotoScan.FaceCount.HighFaceCount)
else:
new_chunk.buildModel(surface = PhotoScan.SurfaceType.HeightField, source = PhotoScan.DataSource.PointCloudData, interpolation = PhotoScan.Interpolation.EnabledInterpolation, face_count = PhotoScan.FaceCount.HighFaceCount)

how do I have to edit it ?

is this ok ?

Code: [Select]
if buildMesh:
if new_chunk.dense_cloud:
new_chunk.buildModel(surface = PhotoScan.SurfaceType.Arbitrary, source = PhotoScan.DataSource.DenseCloudData, interpolation = PhotoScan.Interpolation.EnabledInterpolation, face_count = PhotoScan.FaceCount.HighFaceCount)
else:
new_chunk.buildModel(surface = PhotoScan.SurfaceType.Arbitrary, source = PhotoScan.DataSource.PointCloudData, interpolation = PhotoScan.Interpolation.EnabledInterpolation, face_count = PhotoScan.FaceCount.HighFaceCount)

Cheers for you help ;)


Cheers for you help ;)



9
General / Re: Export Point Cloud to AutoCAD 2013
« on: April 22, 2016, 10:41:04 AM »
Hey thx for your reply.

I did not had admin rights on my pc so i was not able to update to the 2.x version. Today I ask my Boss if he could update the program for me and he did.

After that I was able to export to pts and convert it to pcg with AutoCAD. Now I have to do a 2D layout of the crypt. I have never worked with AutoCAD before that is going to be fun ;)

Thanks for your help again James and the community. See you around ;)

10
General / Export Point Cloud to AutoCAD 2013
« on: April 21, 2016, 05:46:19 PM »
Hey guys it´s me again.

I can´t figure out a way to get my Point Cloud from PhotoScan into AutoCAD.
 
I already tried to do it like James explained it but every time I try to save the file Textpad crashes.
(http://www.agisoft.com/forum/index.php?topic=1583.0)

It´s also not possible for me to export in PTS because the option is not available at export points.

I Have AutoCAD and MeshLab to work with.

Thx for you help zoos



11
General / Re: Merging Projects by GEO Coordinates
« on: April 21, 2016, 03:20:29 PM »
Hey guys thx for your help!!!

It worked i just had to build da mesh in both models and because photoscan didn´t allow me to put markers into the dense cloud. After what I just had to set markers import the coordinates and merge them together.

12
General / Merging Projects by GEO Coordinates
« on: April 21, 2016, 10:52:56 AM »
First of all I want to say hello to the community. I hope that I will find some help here. I just started working as an intern and learned a lot about Photoscan and I really like the software.

My Problem is that I have to do a model of a crypt under a church. The Problem is that there is no entrance to it only 2 small windows on the north and the south side of the crypt. I managed to get a light and a camera through the window to take pictures and I got a OK result.

The Problem is there are actually 2 crypts wish are connected buy a small tunnel. I do have a ok dense cloud of each crypt. Now I want to connect them in one Project. I have Some Geo Coordinates of the crypt form a laser scan through the windows. Is it somehow possible to connect the model from north side crypt and the model form the south side crypt by those coordinates? 

I hope you understood my Problem. I sorry for my poor English and my spelling :)


Hope to hear back from you
zoos

Pages: [1]