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

Pages: [1]
1
Python and Java API / Re: Coordinate System Problem
« on: December 11, 2017, 12:12:05 PM »
Hi,

Thanks for your answer and sorry for my late response.
I didn't see my point cloud because the error on the GCP for my new test was really high. I don't know why, bceause I don't change anything...
I have two more questions :
- how to save a dense point cloud ? I try this sentence but it doesn't work. In my folder I have not my point cloud.
My sentence :
# Sauver le nuage de points
chunk.exportPoints(project_path,binary=True, precision=6, normals=False, colors=True, format = PhotoScan.PointsFormatE57)
 
- When I try my script with a little project(13 images), my point cloud appear, my target is at their good place but I can't see the error in meters on the GCP, only the error in pixel. I can't see also the coordinate of my GCP. It's the first time I have this kind of problem. Do you know why ? To be more precise and to undersant what I mean, I put a picture in attached file to show this. My script doesn't change anymore.

Thanks a lot for your help,
Have a nice day,
Eva

2
Python and Java API / Re: Coordinate System Problem
« on: December 07, 2017, 07:45:36 PM »
Thanks a lot for your answer,

I have finally resolved my problem.
Now my chunk has the coordinate system precise by the user at the begining of my script.
I try my script with 30 images and the script work weel, no error was mention in the command box.
Nevertheless, I don't arrive to see my sparse point cloud or my dense point cloud on the main window until I press the buton save when my script is finished.

I put in attached file my script. I can't put my PhotoScan project because it's too large.
Do you know why I have this strange problem ?

Really thanks for your usefull help,
I'm really sorry to annoy you with all my questions,

Thanks,
Eva

3
Python and Java API / Re: Coordinate System Problem
« on: December 07, 2017, 01:07:03 PM »
Thanks for your help,

But I would like to ask the user to specify the coordinate sytem and it doesn't work.
In my script, I put this sentences. It doesn't make errors but the coordinate system of my chunk doesn't change.

n_crs = PhotoScan.app.getCoordinateSystem("Sélectionner le système de coordonnées", doc.chunk.crs)
doc.chunk.crs = n_crs

Is it possible to create a list with the coordinate sytem and ask the user to choose in this list ?

Thanks,
Eva

4
Python and Java API / Coordinate System Problem
« on: December 06, 2017, 04:13:23 PM »
Dear everyone,

I have a realy problem with my coordinate of my projet in my python script  :'(.
My goal is to precise the coordinate of my GCP file.
How to specify the coordinate system of the GCP file ?

Or can you give me a link where there is informations about coordinate system of a CSV file ?

My script is in attached file,

In advance, thanks for your help,
Have a nice end of week,

Eva

5
Python and Java API / Re: Add photos to the chunk
« on: December 05, 2017, 10:50:18 PM »
Hi,

I try to resolve my problem of coordinate system of my GCP but it didn't find a solution.
It's the same problem, I have an error message specify that my sentence is wrong.
I would like to specify the coordinate system when  I import the file with the coordinate of my point.
The same thing when I ask the user to specify the coordinate system of the chunk.

My current script has not really improved because I'm stuck with this problem of coordinate.
So, my current expression is wrong but I can't find how to modify this :
chunk.loadReference(path_csv, format = PhotoScan.ReferenceFormatCSV, columns = "nxyz", delimiter = ",", coordinate_system=crs)

Thanks for your help,
I'm a lit bit lost !

Eva

6
Python and Java API / Re: Add photos to the chunk
« on: December 02, 2017, 12:06:32 AM »
Hi,

Thanks for your answer.
When I import the file with the coordinate of my point, I would like to specify the coordinate system.
My chunk has a coordinate system specify by the user. My file contains points with a coordinate system, the same as the chunk.
I would like when the file is downloaded that the coordinate system of this input file is not the default coordinate system of PhotoScan (WGS84) but the same as the chunk specify by the user.

If I don't specify the coordinate system when I import my file, there are not at their right position and the model comport very high error because of this coordinate system problem.

In my current script, I already arrive to reoptimize the cameras but I don't arrive to precise the coordinate system for the input coordinate points.
This sentence doesn't work and makes error :
chunk.loadReference(path_csv, format = PhotoScan.ReferenceFormatCSV, columns = "nxyz", delimiter = ",", coordinate_system=crs)

I hope I'm more clear in what I want to obtain,

Really thanks for your useful help,
Eva

7
Python and Java API / Re: Add photos to the chunk
« on: December 01, 2017, 02:52:54 PM »
Hello,

Thanks for your answer, I fixe my problem thanks to your help. But I have another problem.
I need to precise the coordinate system of my GCP when I import the file as the same way I precise the concatenation of my file (a coma).
I put in attached file my script reviewed.

Really thanks for your help,
I will finish by understand Python Script, it's my goal !! =)
Eva

8
Python and Java API / Re: Add photos to the chunk
« on: November 30, 2017, 12:59:43 PM »
My GCP file contains :
- point name same as PhotoScan (target 2, target 148, etc.)
- coordinate X of the point
- coordinate Y of the point
- coordinate Z of the point
To separate my data, I use a coma.
I already import this file when I did all the work without a Python Script and It works.
I put the file if you want to see.

In my mind, I would like to ask the person to specify the directory of the file (or files).
Then import the file or files.
And try to match the target automatically detected with PhotoScan and their coordinates.

Thanks,
Eva

9
Python and Java API / Re: Add photos to the chunk
« on: November 30, 2017, 12:29:00 PM »
Thanks for your answer, now it works.
But I have a question about the marker and GCP.
My automatic detection of the PhotoScan markers works but now, I would like to import a file with the coordinate of my GCP and ask the person to select the file because my file will not have necessary the same name each times.
How can I do that ?

Thansk a lot,
Have a nice day,
Eva Nougier

10
Python and Java API / Re: Add photos to the chunk
« on: November 24, 2017, 02:45:44 PM »
Thanks a lot for your response,
Now I want to align my photos.
I search on the net, and I find this sentences but it doesn't work and I already don't understand what's wrong with this two sentences.
The error is "An integer is required (got type str)".
This is my first question.
My second question is, how to detect automatically PhotoScan targets and how to import a list of GCP (.tx) and match them with the detection with of course the same name as detected. I let this in comment and I can't try wha't I write because my alignement of photos doesn't work.

Thanks a lot for your reactivity and your help,
Eva

11
Python and Java API / Re: Add photos to the chunk
« on: November 24, 2017, 10:13:41 AM »
Thanks a lot, now it works.
I have another question to improve my script. Indeed, I would like to specify by the person who uses the script the coordinate system. In my script, it works, a window appears and asks to precise the coordinate system. Nevertheless, there is no coordinate system to be choosen except to search in a file in the computer. But how to access to all the coordinate system as like as the window when we go to the chunk and reference settings.

I hope it's clear, it's not always easy to explain in english the problem.
I put again in attached file my script reviewed.

Thanks again for your wonderful help,
Have a nice day,
Eva

12
Python and Java API / Re: Add photos to the chunk
« on: November 23, 2017, 06:46:09 PM »
Hi,

I try also to add photos to my chunk but it doesn't work.
The error it's "Empty file list".
But in my folder there are many pictures and their extension is .jpg
So I don't understand what's wrong with my script.
I put my script in attached file.
So, If you have some times, can you help me to fixe my problem.
Thanks,
Eva Ingenior Student

Pages: [1]