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 - 3DWinter

Pages: [1] 2
General / Turning off Mapbox
« on: September 26, 2022, 09:52:51 PM »
Hello Agisoft support and  the forum,
It seems when I let Metashape Pro stay on and then the wifi connection is disconnected get a Mapbox error:
Code: [Select]
Error: Error transferring
The problem with this error is that makes the Metashape GUI all messed up and sometimes hard to work with.
Is there a way to disable the Mapbox when working offline?
When working in the same area over and over, can I cache the Mapbox map for that area of interest?

General / Non-Coded targets automatic detection
« on: September 20, 2022, 03:56:40 AM »
The two examples of Non-coded targets (seen in the attachment) are black and white with a black edge.
I have a few questions:
1. Does the algorithm care for color?
2. I assume the black edge is not critical, or is it!?
3. What is the definition of "Tolerance"?
4. What is the definition of Maximum Residual (pix)?

Python and Java API / Dense point cloud attributes
« on: July 15, 2022, 04:50:21 AM »
Hello Agisoft support,
chunk.point_cloud  (sparse point cloud) appears an easy class to interact with.
For example, I can iterate with point in "chunk.point_cloud.points" and then get various attributes for each point. Some of those attributes are the track_id, coord, and cov.

I did not find in the Metashape python API manual if I could iterate through all the points in the dense_cloud to get point attributes: point_id,  and confidence for example. 
Is there a way to iterate through all the dense cloud points to extract point attributes?

General / Exporitng dense point could confidence as ASCII PTS
« on: July 15, 2022, 12:46:51 AM »
Hello Agisoft support,
I am trying to explore the dense point cloud confidence values that are calculated and can be extracted in .LAS. Unfortunately "Save Point Confidence" is grayed when saving the points as ASCI PTS. Is there a slick way in Metashape around this obstacle? Alternatively, maybe with the Python API  "Save Point Confidence" can be exported as ASCI PTS? 

Python and Java API / chunk.markers coordinate system
« on: April 25, 2022, 06:57:42 AM »
My project is set as EPSG::26934.  the entire project is processed with the Python API.
When opening the .psx  with Metashape GUI, the coordinates make sense (UTM- as seen in the attached picture)

But when I review the coordinates in the Python interpreter the number doesn't make any sense to me:
Code: [Select]
for point in chunk.markers:
    print(point, point.position)

for point in chunk.markers:

    print(point, point.position)


<Marker 'point 1'> Vector([2.674798477808206, 6.560502854674506, 3.311077291228823])
<Marker 'point 2'> Vector([2.6818437237369803, 3.647193405560801, 0.34158157745059553])
<Marker 'point 3'> Vector([2.900154059499172, 4.059596584415228, 0.7825189294777867])
<Marker 'point 4'> Vector([8.001023537754426, -0.23136466383098236, -3.40010373078223])
<Marker 'point 5'> Vector([4.91971436138031, 3.6984685117053813, -0.2117274212552949])
<Marker '113'> Vector([8.001507569124444, -0.23004959586614865, -3.4028323038655808])

Can someone help me understand in what units are these numbers? This doesn't seem consistent with other posts in the Forum.

I have processed imagery (Align, BuildDense, BuildDEM, BuildOrtho) in stateplane projection.
Code: [Select]
Metashape.CoordinateSystem('EPSG::26934')Then I imported a shapefile with the same projection and datum:
Code: [Select]
#import shape
Then when I try to clip the DEM and ortho during export:
Code: [Select]
chunk.exportRaster(path=r'new_file.tif',source_data=Metashape.DataSource.ElevationData,white_background=False,clip_to_boundary=True,nodata_value=-99)I get the following error:
Code: [Select]
RuntimeError: Unsupported datum transformation
Is this workflow limited to only latlong?

Maybe relevant, when importing the shapefile in the API I cannot see it- shapefile was created in ArcGIS. Rasterio reads the shapefile just fine.

General / Missmatch between DetectMarkers none-coded and reference
« on: March 25, 2021, 10:22:38 PM »
I would like to use the same GCP list for all projects and not make a subset for each.
When using DetectMarkers, I often get a bunch of false-positive detections. As in one case, I have 3 correct detections + 9 false-positive = 12 points.
When I import Reference 29 out of 45 of possible GCPS (29) with 0.2m threshold, there is a match for the 3 correct detections.
But if I try to import a larger GCP list 30 or larger, there are no detections. It doesn't make sense but I have been testing it all morning.

Agisoft, do you have some threshold that is causing this behavior?

thanks in advance

I cannot remove specific markers from chunks.
Here is what I tried:
Code: [Select]
chunk.markers.remove(chunk.markers[18])But when I run again:
Code: [Select]

[<Marker '113'>,
 <Marker '111'>,
 <Marker 'point 3'>,
 <Marker 'point 4'>,
 <Marker '110'>,
 <Marker 'point 6'>,
 <Marker 'point 7'>,
 <Marker 'point 8'>,
 <Marker 'point 9'>,
 <Marker 'point 10'>,
 <Marker 'point 11'>,
 <Marker 'point 12'>,
 <Marker 'point 13'>,
 <Marker 'point 14'>,
 <Marker 'point 15'>,
 <Marker 'point 16'>,
 <Marker 'point 17'>,
 <Marker 'point 18'>,
 <Marker 'point 19'>][/code
As can be seen  <Marker 'point 19'>  18'th on the list was not deleted.

Dosen't clear the list.

I assume I am doing something wrong, what?

General / Detect Markers Non-coded parameters
« on: March 19, 2021, 09:39:53 AM »
Hello Agisoft support,
I cannot find in the manual or in the forum search information regarding the Detect Markers parameters (Tolerance, Maximum residual (pix)).

It seems like increasing the tolerance increases the number of GCPs the Detect Marker find (above Tolerance=10 result in false-positive sections)
What is the Maximum residual (pix) is not clear to me?

I was hoping that the Maximum residual (pix) slider would control how many pictures are marked with a green flag versus the site one.

Is there any way to increase the number of pictures marked with the green flag?

I am exploring using the Detect Markers (under ToolsMm>Markers) -Cross (none-coded)

Metashape successfully found 3 GCPS:
Code: [Select]
2021-03-16 22:58:57 created 3 markers (13 projections used, 8 projections discarded)
2021-03-16 22:58:57 Finished processing in 36.886 sec (exit code 1)
Next, when I tried to import the coordinates of these 3 GCPS, I checked Ignore label, and dialed the Threshold (m), 10-100; nothing seemed to happen except the output in the console:
Code: [Select]
2021-03-16 23:05:45 ImportReference: path = C:/Users/yyal/data_processing/winter_20_21/100_0013_good_3-1/products.prd/Pass_control_2021_112_cp_111_112_113.csv
2021-03-16 23:05:45 Importing reference...
2021-03-16 23:05:45 Identifying markers...
2021-03-16 23:05:45 Finished processing in 0.039 sec (exit code 1)
Last, to show that the GCPs and the Detected none-coded are fairly close I loaded the GCPs manually seen in the last attachment.

Python and Java API / importRerference questions
« on: November 24, 2020, 10:53:25 AM »
despite there are many references on how to use importReference in both the forum history and a few in the manual, I could not find answers to my questions.

First regarding the columns parameters,  in the manual, the reference is for 'n/x/y/z', but in most of the posts in the forum people wrote nxyz, does it matter!? What happens if I have a few six columns and not four. Say I don't want to assign the two last columns. How do I choose what columns to assign and whatnot (like in the GUI)?
I did try columns='nxyzXYZ' (including location accuracies) and that did not work.  Currently, if I keep my reference file to four columns only and import with columns='nxyz' it works, but that is not ideal for me!
FYI even in the official response there are no '/'

The second question is what is the purpose of the format=Metashape.ReferenceFormatCSV? I have already defined delimited=',' and seems to work fine without the former, comments?

General / Fixing Metashapepath to the folder containing the pictures
« on: November 20, 2020, 10:23:07 PM »
The location of the folder with the pictures was modified due to space limitations.
is there a way to fix Metashape path to the folder (new location) holding the pictures?

Python and Java API / 'NoneType' object has no attribute 'chunk'
« on: November 16, 2020, 11:44:39 PM »
Hello Agisoft support,
I have worked for  six years with Photoscan and no Metashape, and have coded in python outside of the Agisoft environment for longer. Now I am taking my first steps using Methashape Python API, and I got stuck on what seems to be a straightforward first step, defining the document object and creating the chunk.  I have searched the forum as well to some extent on Stack Overflow and could not find a solution that would resolve my problem.

Basically, after I create a document and try to create a chunk,
Code: [Select]
Import Metashape
I get following error:
Code: [Select]
AttributeError                            Traceback (most recent call last)
<ipython-input-2-e7bf1adf3fae> in <module>
      1 #create a processing parameter object
----> 3 chunk=doc.chunk

AttributeError: 'NoneType' object has no attribute 'chunk'

So it seemes like the process of creating the document object is failing- is None. Though the manual states requirements are Python 3.5, I am using Python 3.7.6 becuase that was what I already have, and Python Wheel for Windows is labeled 1.6.5-cp35.cp36.cp37-none-win_amd64.whl, so I don't think that should be the problem.


General / Automated mission planning
« on: August 04, 2020, 05:33:35 AM »
I am excited to test the Automated mission planning.  I ran a quick and dirty process, all seems good, but I cannot figure out how to export the kml file- as far as I can tell it is not in export!

I cannot set the minimum altitude( is set to 0 and greyed.) Unclear how to set the safety zone and Focus on model selection( greyed as well).
Last I cannot figure out how to select Home Point.  Maybe a YouTube tutorial would be good.
Thanks for the help I am sure this tool is going to be amazing!

General / required/recommended overlap for chunks
« on: February 22, 2020, 01:26:41 AM »
I did not find in the documentation if there is a recommended minimum overlap between chunks, is there?

Pages: [1] 2