Forum

Recent Posts

Pages: 1 ... 7 8 [9] 10
81
Python and Java API / Re: Import GCP reference from csv
« Last post by Braeden on March 18, 2024, 05:46:26 PM »
Hi Alexey,

The csv can be imported via the gui, albeit with specifying a coord system on import. Haven't got to trying that with python yet.

The markers don't already exist, do they need to be created first with matching IDs, then have the reference coords imported / added to them?

Thanks for your help.
82
Whenever I take a photo, no matter what, I always have an issue with dark texture that keeps appearing on the model. What can I do about it? This has resulted in many of my models going to waste, and post-processing doesn't help at all. Link to my photos:
https://drive.google.com/drive/folders/1jEz5TppxtoeFrZQ2Rdt7hT2v8hscoSQ1?usp=sharing

Thank you in advance for your help.
83
Добрый день.
Вы не подскажете, где можно найти пример (набор снимков) по обработке сферических снимков с панорамных HDR-камер, как описано в этой статье

https://geoscan.freshdesk.com/support/solutions/articles/35000184320-%D1%81%D0%BE%D0%B7%D0%B4%D0%B0%D0%BD%D0%B8%D0%B5-%D1%81%D1%84%D0%B5%D1%80%D0%B8%D1%87%D0%B5%D1%81%D0%BA%D0%B8%D1%85-%D0%BF%D0%B0%D0%BD%D0%BE%D1%80%D0%B0%D0%BC%D0%BD%D1%8B%D1%85-%D0%BC%D0%BE%D0%B4%D0%B5%D0%BB%D0%B5%D0%B9-%D0%B2-agisoft-metashape
84
Python and Java API / Re: Import GCP reference from csv
« Last post by Alexey Pasumansky on March 18, 2024, 11:37:03 AM »
Hello Braeden,

Can you please confirm, if you are able to import the coordinates of the markers from the same file via GUI using Import Reference button on the Reference pane toolbar?

Also please specify, if the markers with the labels corresponding to IDstring column values are already in the active chunk or should be created?
85
General / Photogrammetry Academic Paper - SS Thistlegorm
« Last post by SimonBrown on March 18, 2024, 11:30:24 AM »
It is with much pleasure I can finally share a co-authored paper I have been working on that covers the approach and methods used to record the wreck of the SS Thistlegorm:

https://www.mdpi.com/2077-1312/12/2/280

A second paper will be following that covers the changes identified between 2017 and 2022.
86
We have updated our Metashape Professional course to include new topics:

  • Powerline detection
  • Working with multiple cameras

More on multiple cameras here:

https://accupixel.co.uk/2024/01/23/stereoscopic-photography-cameras/

As per our courses, the new topics include real world datasets to learn and practice with.
87
Python and Java API / Import GCP reference from csv
« Last post by Braeden on March 18, 2024, 11:01:05 AM »
Hi,

I am not having any luck getting python to import GCP's from a CSV

The code I am trying to acheive this with is:
Code: [Select]
       
chunk.importReference(gcp_csv,  format = Metashape.ReferenceFormatCSV, delimiter=",", columns="nxyz")

I have tried with and without format = Metashape.ReferenceFormatCSV (as I think this is the default format)

I get an output to terminal of:
ImportReference: path = D:/BK AGI/project name/GCP.csv, columns = nxyz, delimiter = ,


The CSV format is

IDstring,x,y,z


But when I open the project, no markers have been imported?

Any ideas?

Cheers

88
Feature Requests / Re: CHECK/UNCHECK API
« Last post by mrv2020 on March 16, 2024, 09:02:05 PM »
Solved!!

Code: [Select]
for camera in chunk.cameras:
    camera.reference.enabled = False
for camera in chunk.cameras:
    if camera.reference.location_accuracy and max(camera.reference.location_accuracy) < 5:
        camera.reference.enabled = True
89
General / Re: Agisoft Metashape 2.1.0 pre-release
« Last post by olihar on March 16, 2024, 03:13:18 PM »
Hello bassistas,

Can you provide more detailed description of the steps followed starting from model generation (also specify the coordinate system of the chunk, model and CS options in export/import dialog)? I was not able to reproduce any problem with export-import workflow for FBX model in the latest pre-release version.

The issue still exists in the latest stable release 2.1.0. The project contains photos from a DJI drone and laser scans imported as e57 files. The coordinate system is WGS 84, it doesn't matter which options I choose during the export or what file format, the exported model always comes up shifted by a few meters from the original position. I can send you an example project  (without the photos and laser scans) to investigate if you want.

Sounds like your problem is because you are using WGS84 as coordinate space, why not use a real coordinate space with accuracy and measurements, not something in degrees.
90
Feature Requests / CHECK/UNCHECK API (SOLVED)
« Last post by mrv2020 on March 16, 2024, 03:04:27 PM »
Hi,

I'm reaching out to suggest a potential addition to the Metashape API that I believe could benefit many users. While the current API offers great flexibility, including enabling/disabling cameras (enabled) and selecting/deselecting them (selected), it seems there's no direct way to programmatically "uncheck" images for processing based on specific criteria (e.g., location accuracy).

Many of us automate workflows where pre-selecting images based on metadata or quality metrics is crucial before proceeding to resource-intensive processing steps. For instance, being able to automatically uncheck images with location accuracy below a certain threshold could save significant time and enhance the quality of project outputs.

Could we consider adding a method to the API to control the "check" state of images in the Reference Panel or before processing? This feature would provide even greater control over automated workflows and potentially improve processing efficiency and outcomes.

Code: [Select]
import Metashape
doc = Metashape.app.document
chunk = doc.chunks[0]
for camera in chunk.cameras:
    # Checks if the camera has a defined reference and location accuracy
    if camera.reference and camera.reference.location_accuracy:
        accuracy = max(camera.reference.location_accuracy.x, camera.reference.location_accuracy.y,camera.reference.location_accuracy.z)
        print(f"Camera {camera.label}: Accuracy = {accuracy}") # Prints the accuracy
        if accuracy > 9:
            camera.selected = False
            print(f"Camera {camera.label} unselected due to high accuracy.") # Print the action

Best,
Pages: 1 ... 7 8 [9] 10