Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: 1104312139@gm.kuas.edu.tw on December 09, 2016, 02:52:30 PM

Title: My TXT file can not be imported python,why?
Post by: 1104312139@gm.kuas.edu.tw on December 09, 2016, 02:52:30 PM
Hello
I need to import the coordinates to my code but the file is always not read during execution
I hope the code have external
Why?
Thank you
Title: Re: My TXT file can not be imported python,why?
Post by: Alexey Pasumansky on December 09, 2016, 03:04:14 PM
Hello,

Can you replace "\" with "/" in the file path string? Does it help?
Title: Re: My TXT file can not be imported python,why?
Post by: 1104312139@gm.kuas.edu.tw on December 09, 2016, 03:44:54 PM
Hello,
Dear Alexey
I try "\" with "/" but it or not read
my txt file is "csv" is there an error?
Thanks you
Title: Re: My TXT file can not be imported python,why?
Post by: Alexey Pasumansky on December 09, 2016, 04:13:38 PM
Hello,

For me it worked with the following line:
Code: [Select]
chunk.loadReference("C:/Program Files/Agisoft/PhotoScan Pro/dsd.txt", format = "csv", columns = "nxyz", delimiter =",")You need to specify the order of the columns and delimiter, if they are different from the default.
Title: Re: My TXT file can not be imported python,why?
Post by: 1104312139@gm.kuas.edu.tw on December 10, 2016, 10:43:01 AM
Dear  Alexey,
ok i success, very very thanks you love you :-* :-* :-* :-*