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

Pages: [1]
1
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






2
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

3
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 ;)



4
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



5
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]