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

Pages: [1]
1
 Hi,

I’m visualizing a file in Cesium ION, which was exported from Agisoft Metashape and subsequently uploaded to Cesium ION. The three-dimensional model uploaded appears to be levitating above the basemap in one instance (Mean Sea Level), while appearing to be submerged in another basemap (Cesium World Terrain).[Attached images below]

I am curious as to why this is occurring. What coordinate reference system (CRS) should I export the file from Metashape in order to align with the appropriate level? I would prefer to avoid having to manually adjust the location of each tileset I upload.

Are there any other settings that need to be made while exporting or processing the 3D mesh from the Metashape? Does metashape have any ground clamping options?

I have seen other similar posts in this community but they have not been answered yet.

2
General / Need Assistance for Agisoft Processing Hardware
« on: December 29, 2021, 12:59:45 PM »
I need to assemble CPU parts for building a desktop PC to process Agisoft Images.

System Requirements (https://www.agisoft.com/downloads/system-requirements/)

In the above page, it says for Advanced Configuration I need:

Quote
up to 128 GB RAM

CPU: 6 - 24 core Intel or AMD processor, 3.0+ GHz

RAM: 32 - 128 GB

GPU: 1 - 2 NVIDIA or AMD GPUs with 1920+ CUDA cores / shader processor units
(For example: GeForce RTX 2080 Ti or Radeon VII)

I need to process several datasets with an image count ranging from 100 to 4000 (5000 sometimes).

For the same, I was thinking 128 GB RAM and a CPU with 24+ or 32 cores (Intel or AMD anything is fine) processor.

But which company RAM and model of CPU will be suitable (and compatible)?

I am not sure about GPU either.

Also, I am not sure which Motherboard will be compatible with all these so that there are no performance and bottleneck issues.

Please guide me with any information that you can that can help me purchase these items.

3
Hi,

I am writing scripts to complete the work flow (from building several elements like alignment(step1), matching(step2), building DEM(step3), Dense Cloud(step4), Orthomosaic(step5) and finally Tiled Model(step6), and then exporting the Raster File from saved file). I am using Python API version 1.6.5.

My goal is to implement it in such a way, that if for example it fails in step3, then on the next run of the script, since step1 and step2 is already completed, and I am using the previous chunk in the next run, it should start directly from step3 again. This I am trying to implement(still in progress). Any suggestions or points to be taken care of during this?

Now, the main issue that I am facing is,

When I have completed all the steps,I am trying to export Raster File(earlier Orthomosaic), from a pre-saved .psx extension file. I am running a script just to open the file in Metashape Python API and export the Raster File, without performing any other step of processing(that have been already performed and saved in main_file.psx file).

I have tried exporting in the below testing_argument.py file , but it gives error:

Code: [Select]
#!/usr/bin/python3
import sys
import Metashape
import os
from pathlib import Path

current_path = os.getcwd()
parent_path = str(Path(current_path).parent)
save_path = ''
project_name = ''


def main():

    project_folder_name = 'project2'
    # save path
    save_path = parent_path + '/projects/' \
        + project_folder_name + '/' \
        + project_folder_name
    # + '_' \
    # + start_time

    # creating save directory
    os.makedirs(name=save_path, exist_ok=True)

    global project_name
    project_name = 'main_file.psx'

    # creating document
    doc = Metashape.Document()

    # epsg_code
    epsg_code = 'EPSG::32643'

    doc.open(path=save_path + '/' + project_name)

    # adding chunk
    chunk = Metashape.Chunk
    chunk = doc.chunk

    # adding co-ordinate reference system
    # chunk.crs = Metashape.CoordinateSystem(epsg_code)
    raster_compression = Metashape.ImageCompression()
    raster_compression.tiff_compression = Metashape. \
        ImageCompression.TiffCompressionJPEG
    raster_compression.jpeg_quality = 90
    raster_compression.tiff_big = True

    # projection
    projection = Metashape.OrthoProjection()
    projection.crs = Metashape.CoordinateSystem(epsg_code)

    chunk.exportRaster(
        path=parent_path + '/projects/'
        + project_folder_name + '/' + 'export/' + 'orthophoto.tif',
        format=Metashape.RasterFormatTiles,
        image_format=Metashape.ImageFormat.ImageFormatTIFF,
        projection=projection,
        save_world=True,
        save_alpha=True,
        image_description='Orthophoto',
        image_compression=raster_compression,
        white_background=True,
        save_kml=False,
    )

    doc.save(path=save_path + '/' + project_name, chunks=[chunk])

    return


main()

Error:

Code: [Select]
LoadProject: path = /home/xxxx/projects/project2/project2/main_file.psx
loaded project in 0.000677 sec
Traceback (most recent call last):
  File "testing_arguments.py", line 74, in <module>
    main()
  File "testing_arguments.py", line 55, in main
    chunk.exportRaster(
AttributeError: 'NoneType' object has no attribute 'exportRaster'

What am I doing wrong? Or what I am doing is not possible, since this same thing can be done in UI, wherein we can load the project into the Metashape UI application and then export any data we want from the
chunk>(Right click)> Export xyz option


Please let me know if any more information is needed from my end. Waiting for the response.

Thanks,
Ayush

Pages: [1]