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

Pages: [1]
1
Python and Java API / Re: Delete images from harddrive
« on: September 03, 2020, 11:27:50 AM »
Hi Alexey,

any news regarding my problem?

2
Python and Java API / Re: Delete images from harddrive
« on: August 28, 2020, 01:00:46 PM »
hi,

the first option:
"select the cameras in Metashape and then run script that will remove the cameras from the chunk and corresponding images from the hard drive"

thanks.

3
Python and Java API / Delete images from harddrive
« on: August 13, 2020, 11:27:57 AM »
Hi everybody,

due to a certain way of taking our pictures along an axis, we sometimes have duplicate images or images with extremely high overlap (>99%). Initially I thought, that's not a problem, but during the optimization-step, these pictures produce a very high pixel-error, leading to a strange result.
Nevertheless, I found out, if I delete those images and run the step over again, everything is fine.

Now I REALLY want to delete those images, not just from the chunk or the project, but from the hard drive. It is possible by right-clicking on the image, choose "open containing folder", deleting it manually and also delete it in agisoft. this is okay for several pictures, but sometimes it exceeds 50 pictures per project, which is annoying.

What want to do is create a button or shortcut to do that routine for me. So i just have to select the image, press the shortcut and it magically is removed from both the project and the hard drive.

Is that possible in any way?

Thank you!

4
Python and Java API / Re: Custom Menu using addMenuItem
« on: May 25, 2020, 09:35:55 AM »
Wow, thank you for your fast and helpful reply. i will have to take some time to understand and try it. :-)

5
Python and Java API / Custom Menu using addMenuItem
« on: May 19, 2020, 11:28:41 PM »
Hello,

I've created a few python scripts for special cases of import and export (right position and order of colums, delimiter,...), have created a custom menu with "addMenuItem" and have added the file to the script folder, as described in another post. Now my custom is created at each startup, which is great.

My question is: How do I use icons for my respective commands/definitions? According to the Agisoft Python Reference (https://www.agisoft.com/pdf/metashape_python_api_1_6_0.pdf) it is possible, but I don't seem to understand, how it is done. Is there a way to use existing icons of Agisoft, or can I use *.ico-files?

And is it possible to create "line separators" in a custom menu to group specific commands together? It would really help a lot

Thanks.

6
Python and Java API / Re: Import cameras by list
« on: February 17, 2020, 03:30:06 PM »
Hi again!

the txt-file would look something like:

D:\project\01_photos\A\A_IMG001.jpg
D:\project\01_photos\A\A_IMG002.jpg
D:\project\01_photos\B\B_IMG001.jpg
D:\project\01_photos\C\C_IMG001.jpg

since the file is generated by Excel and specifically for this purpose, i can format it any way i like. With or without extension, with or without path.

7
Python and Java API / Re: Import cameras by list
« on: February 17, 2020, 02:42:23 PM »
Hey deepvision,

thanks für the reply.

is there any way to have a pop-up with a file selector, where i can somehow select a txt-file containing the filenames (&paths)?

For example i have my folder with 10000 photos and in that folder (or in another folder) i have a txt-file containing the names of a subset of 400 of them. I would like to start the script, select the path and txt-file via popup and import the cameras.

Thank you!

8
Python and Java API / Import cameras by list
« on: February 17, 2020, 10:42:44 AM »
Hi everybody,

in our projects we usually have a list of ALL photos we took with (not so accurate) coordinates in csv format. Since we often need to split projects or just take various subsamples (by area, coordinates, date, time,...) it would be convenient to give the software the path and a list of filenames (or the filenames WITH path) to import only the dedicated files.

It seems like a very simple task, but my programming skills are less than basic.

Could any of you help?

Thanks in advance!

geri

9
Python and Java API / Re: Build cylindrical Orthomosaic via batch/python
« on: November 28, 2018, 02:21:05 PM »
Thanks, I combined everything and after some tweaking and trying around I got the perfect result. It saves a LOT of time! :)

10
Python and Java API / Re: Build cylindrical Orthomosaic via batch/python
« on: November 27, 2018, 06:20:05 PM »
Thanks Alexey,

it works perfectly.
On the other hand I'm still missing some other details.

1. How can I define the "interior projection" for the cylindrical projection in python?

2. I used your script, and it uses the first three markers as reference. Is it somehow possible to search the existing markers via arguments? For example my list of markers contains markers named "10130ZA" "10130ZE" and "10130P" for Beginning, End and Projection Center of the first cylinder. The next cylinder would be defined by "10190_ZA" "10190_ZE" and "10190_ZP" and so on. Therefore I would like to somehow define that the software should use the 3 markers with the numbers "10130" in them. Is that possible?

3. Also I would like to store those orthomosaics in the chunk, but everytime I create a new one, the existing one is overwritten. Is there another way?

4. I already created a script for the export of the orthomosaic, but I also want to add the name of the marker into the file name. How do I do that?


Thanks in advance.

11
Python and Java API / Build cylindrical Orthomosaic via batch/python
« on: November 20, 2018, 11:42:17 AM »
Hi there,

I'm currently using the cylindrical option of the orthomosaic generation to create an "unwrap" (flat pattern) of a tunnel. It works perfectly fine using fictional markers to define the cylinder and the projection center. Good job there!

What I'm missing is, how to adress the cylindrical orthomosaic via python, since I have to create lots orthomosaics with different cylinders along a curved line. Is it already implemented in the python API and I missed it? Any chance to add it any time soon?

Thanks for any help.

Pages: [1]