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 - Thilo OTH-R

Pages: [1]
1
Python and Java API / Importing camera calibration.xml (1.3.5) in PS 1.4
« on: February 13, 2018, 08:04:08 PM »
Hi there,

I've made a Camera calibration file in Photoscan lens in 1.3.5 and want to import this .xml file in Photoscan 1.4.0 via Python script.

this is my code:

PhotoScan.Calibration.load("G:\\BA\\agisoft_code\\Funktioniert\\Zusatz\\webcam_calib_16_9.xml", format=’xml’)

but it brings this error:
File "G:/BA/agisoft_code/AutoProcess_v2/calib.py", line 5
PhotoScan.Calibration.load("G:\\BA\\agisoft_code\\Funktioniert\\Zusatz\\webcam_calib_16_9.xml", format=’xml’)                                                                                                            ^
SyntaxError: invalid character in identifier
Error: invalid character in identifier (G:/BA/agisoft_code/AutoProcess_v2/calib.py, line 5)

Can someone help me? Is it even possible to import a .xml file of an older version?

thanks alot

2
Python and Java API / Basic skripting problems
« on: January 18, 2018, 01:29:19 PM »
Hello there,
I am not very experienced in programming or skripting but I need a skript which automates some steps in Photoscan.
The skript should import the pictures from a folder, detect marker, align the photos, generate a dense point cloud and import a csv-file in which the locations of the markers are saved.

Is it possible to create a skript which is able to do all the mentioned points?
What software do I need to create these skript?

Thank you for the advices!

3
General / Re: measuring and importing external camera orientations
« on: December 11, 2017, 05:05:31 PM »
Thank you for the response.

If I can't support Photoscan in the alignment process with the measured Camera coordinates,
how can I improve the alignment if you consider that i only have three pictures to work with?
(I take the pictures with an Panasonic DMC G5 on a tripod.)

4
General / measuring and importing external camera orientations
« on: December 07, 2017, 12:49:39 PM »
Hi everyone,

I'm trying to build a dense point cloud of a model with a limited number of pictures (three pictures).
In order to align the photos i want to measure the location and the orientation of the cameras.
The cameras are mounted on tripods and for measuring i can rely on a Faro Arm.

Now here is the question where is the origin of the z-axis of the camera coordinate system or to be precise where is the x-y-plane?
Is it on the sensor of the camera or is it on the the camera lens?

How can i import the camera data (external camera orientations parameters) so that i can define the origin of the model's coordinate system?
How do i have to measure the angles of the camera orientations relatively to the model's coordinate system?


Thank you for the advices.

Pages: [1]