Agisoft Metashape

Agisoft Metashape => Python and Java API => Topic started by: Lukasz on May 07, 2018, 12:57:05 AM

Title: Capture image of markers
Post by: Lukasz on May 07, 2018, 12:57:05 AM
Hi All,

I have a question - I need to export part of images with marker as a JPG file. The easiest way for me is open image with marker, set proper zoom and next use capture image to save it and jump to next image with the same marker. For small projects it is not to difficult to do it but for larg projects with lots of markers it is quite a lot of work. Has anybody know if I could use script to do it automatically? If yes, can anybody help me to write it? I am completely beginner in python scripting.
 
Thank You very much in advance!
Title: Re: Capture image of markers
Post by: Alexey Pasumansky on May 08, 2018, 08:02:48 PM
Hello Lukasz,

I think it should be possible via Python. So as an output you would like to see only a corresponding part of the related image or some additional indication, like flag that is shown in Photo view?
Title: Re: Capture image of markers
Post by: Lukasz on May 09, 2018, 02:00:14 PM
Thank You Alexey for answer,

I would like to have image and other things I can see in Photo view. I mean flags (mainly) and shapes if only there were any drawn on Cloud point for example.

Title: Re: Capture image of markers
Post by: 3DFranz on June 04, 2018, 10:01:20 AM
Any ideas how to handle this with phyton?
For my project, i would only need to export the fotos with the the markers (grey, blue and green), as .jpg in the original resolution of the fotos.
Title: Re: Capture image of markers
Post by: 6Zayn on June 10, 2018, 08:38:24 PM
Hi!

 I had the same question. Luckily have found this topic. Hoping for some guaranteed answers.

Regards,
Zayn ACMarket (https://apkxios.com/acmarket/)
AdAway (https://www.adaway.co/)
Test Dpc (https://test-dpc.com/)
Title: Re: Capture image of markers
Post by: Lukasz on October 09, 2018, 08:51:51 PM
Hello,

I think it shouldn't be very difficult. I am not programmer and don't know python, but in my opinion script should have such scheme:
1. get image names list
2. open first image
3. start loop (till end of image list)
   a) capture view and save with name ex. capture-filename.jpg
   b) open next photo

I don't know if script needs time to load image or could work immediatelly.

Is anybody who can code something like this?