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

Pages: [1] 2 3
1
General / Importing all shp files at once instead of individually
« on: June 14, 2023, 09:39:15 PM »
Hi,

is there any script that allows to import all the shp from file simultaneously into the chunk instead of importing them individually (only one shp can be selected during import).

Regards,
Jakub

2
Feature Requests / Re: Export multiple Ortho/DEM sections
« on: May 23, 2023, 11:13:07 AM »
I've just copied the line above and pasted it in new line below. After that I've changed the parameters to "task.save_world = true" and it worked. The problem occurred when I pasted a new line from an external source with the "save_world" parameter, even though it had the same indentation in text.

Thank you very much for support. I'm happy now :)

3
Feature Requests / Re: Export multiple Ortho/DEM sections
« on: May 23, 2023, 02:55:18 AM »
I'm struggling to modify the script so that it exports JPEG format with the world file instead of TIFF. Unfortunately, when I try to add the code
Code: [Select]
task.save_world = True in
Code: [Select]
self.chkOrtho.isChecked() it occurs the text: "unindent does not match any outer indentation level (F:/..., line 175)".

I would be very grateful for help in editing a script that will export orthomosaics in JPEG format together with WorldFile files.

Regards,
Jakub

4
I think this is a great idea to improve 'Reduce Overlap' functionality. I am also keeping my fingers firmly crossed that such a solution will be implemented as soon as possible.

5
Hi,

I'm trying to find some solution to estimate the exterior orientation of the image taken. I've got a point cloud that I obtained by processing photos from a UAV. But I'm looking for EO parameters for a photo that was taken a few months earlier at the same location with a different camera. I just want to orthorectify this image using point cloud (or mesh/dem) to get the orthophoto. Is there any way to perform this process?

 It seems to me that I need to take the appropriate measurements on the image based on the 3D model to find some parameteres to get the EO (singe-image photogrammetry).


Regards,
Jakub

6
Feature Requests / Re: Export multiple Ortho/DEM sections
« on: April 25, 2023, 05:22:14 PM »
Hello,

here is the updated script for version 2.0...

Try ir and it should work

Thank you so much Paulo for sharing the script. It works perfectly.

Regards,
Jakub

7
Feature Requests / Re: Export multiple Ortho/DEM sections
« on: April 20, 2023, 09:49:09 PM »
Hi,

I'd like to ask if this script for exporting multiple orthomosaics based on shapefiles works on the latest version of Agisoft 2.0.1? I ran this script but when I click the export button nothing happens in the software. Please let me know what can i do to make it work. Belowe is the information from console log:

Code: [Select]
Traceback (most recent call last):
2023-04-20 22:30:16   File "C:/.../PS150_batch_export_by_boundary_shapes.py", line 33, in <lambda>
2023-04-20 22:30:16     proc_export = lambda : self.export_boundary()
2023-04-20 22:30:16   File "C:/.../PS150_batch_export_by_boundary_shapes.py", line 73, in export_boundary
2023-04-20 22:30:16     if shape.type == Metashape.Shape.Polygon:
2023-04-20 22:30:16 AttributeError: 'Metashape.Shape' object has no attribute 'type'

Regards,
Jakub

8
General / Is a dense cloud necessary to obtain a reliable orthophotomap?
« on: September 06, 2021, 11:17:01 AM »
Hi,

I wonder if when creating an orthophotomap I should generate a dense cloud each time? Is it enough to do align photos, optimize camera (after used gradual selection tool and removed noise manually), generate DEM using Deph Maps as Source data and then generate Orthomosaic based on DEM? Does the dense cloud affect the quality of the orthophotomap, even if I choose Depht Maps as the source data for DEM creating? Does the dense cloud generation process improve the depth map quality before running the DEM creation process in Agisoft?

Please let me know how it works?

Thank you for clarifying this issue.

9
General / Enblend/Enfuse algorithm - images stitching to get panorama
« on: January 08, 2021, 01:30:36 PM »
Agisoft has the best control points finder to align photos. In this respect, it is unrivaled compared to other panorama software (PTGui, Hugin). Unfortunately, the issue is worse when creating the final panorama. You can see seamline on the border of panorama and other strange artifacts that affect the visual effect of the panorama. So I wonder if is possible to use Enblend/Enfuse solution for blend away the seams in a panoramic image mosaic using a multi-resolution spline (Enblend) and merge different exposures of the same scene to produce an image that looks much like a tone-mapped image (Enfuse)? I think about python script to use these algorytims to generate panorama in Agisoft?

Enblend/Enfuse:
http://enblend.sourceforge.net/index.htm

Is the way to use Agisoft algorithm to generate control points (spare cloud) and enblend/enfuse solution to create seamless panorama using python script ?

The difference between Hugin ang Agisfot is shown below in attachment.

10
Python and Java API / Re: Capture view for open camera (view mode)
« on: September 01, 2020, 09:31:50 PM »
Does anyone know about this topic? I really want a tip on how to deal with this matter  :(

I put the image that shows the issue. I need to make it for all cameras in chunk automatically (with some delay for the photo to load - come up on the screen).

11
Python and Java API / Capture view for open camera (view mode)
« on: July 28, 2020, 12:03:35 AM »
Dear Agisoft Users,

I am struggling to write a script to do a certain process in photos. The idea is to:

1. choose cameras (selected or by given range define by labels) from chunk or group (name),
2. open photos one by one in a new tab with certain delay (e.g. 1000ms),
3. capture view by given parameters,
4. save images to directory.

I wrote the script that captures view only for Model View Mode. I've got sth like this:

Code: [Select]
import Metashape
import os

# Checking compatibility
compatible_major_version = "1.6"
found_major_version = ".".join(Metashape.app.version.split('.')[:2])
if found_major_version != compatible_major_version:
    raise Exception("Incompatible Metashape version: {} != {}".format(found_major_version, compatible_major_version))


def capture_view():

    doc = Metashape.app.document
    if not len(doc.chunks):
        raise Exception("No chunks!")

    print("Script started...")
   
    chunk = doc.chunk #active chunk, if there's any in the project
    for camera in chunk.cameras:
        camera = chunk.cameras[0]
        capture = Metashape.app.model_view.captureView(width = 600, height = 450, transparent = False, hide_items = True)
        capture.save('E:/Capture/' + camera.label + '_cv.png')
    print("Script finished!")


label = "Custom menu/Capture View"
Metashape.app.addMenuItem(label, capture_view)
print("To execute this script press {}".format(label))

I couldn't find the module such as captureView for camera view (open image).

I will be very grateful for any support in this topic.

12
General / Re: Export images with applied shapes
« on: July 27, 2020, 06:23:39 PM »
I need to superimpose the drawn shape into the photo so that I can export it as part of the image, not a separate file. There is already a polyline drawn in the image when I open an exported photo (the shape changes to pixels).


13
General / Re: Export images with applied shapes
« on: July 27, 2020, 10:51:13 AM »
Thank you for your support.
 I know this option but I need something else. I created DSM and I drew polylines on the surface. The thing is that to export photos captured by UAV with this shape on it. After all the polylines have been drawn, I would like to export all the photos with the superimposed shapes automatically. Belowe I put the example:



14
General / Export images with applied shapes
« on: July 24, 2020, 02:11:09 PM »
Dear Agisoft Users,

I wonder If Agisoft has option to export images with drawn shapes on photos. I generated DEM in order to draw polylines on the model to get these shapes on photos (to make visible some CAD lines on photos gathered by UAV). So I need to export photos with these polylines drawn. Shapes become texture and are exported with photos as one image (superimposed textured shapes on photo).

Thank you for any advice in this topic.

15
General / How to generate a mesh for very thin surface?
« on: December 18, 2018, 01:16:06 PM »
Dear Agisoft Users,

I'm considering how to solve some issue with 3D object meshing from densce point cloud. This object has very thin surface that applied to the mesh results. It seems the mesh is extrapolated and it influences on the final visualisation.

The question is: How to deal with this kind of object to get the best result for 3D model representation of model by mesh and next textured model? What do I need to do to prepare dense point cloud to make it right? Should I need to use MeshLab as an external software to deal with mesh?

I add the photos as the screen of described issue.

Pages: [1] 2 3