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

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

2
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.

3
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

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