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

Pages: 1 2 [3] 4
31
Python and Java API / Re: Remove Duplicates Script Not Working 1.6.1
« on: February 03, 2020, 06:41:01 PM »
Hi,

I ran that script and got this:

2020-02-03 15:39:51 Traceback (most recent call last):
2020-02-03 15:39:51   File "C:/Users/Rory/Documents/Agisoft/check_cameras.py", line 2, in <module>
2020-02-03 15:39:51     for camera in chunk.cameras:
2020-02-03 15:39:51 AttributeError: 'Metashape.Document' object has no attribute 'cameras'
2020-02-03 15:39:51 Error: 'Metashape.Document' object has no attribute 'cameras'

32
Python and Java API / Re: Remove Duplicates Script Not Working 1.6.1
« on: February 03, 2020, 11:27:51 AM »
Hi Alexey,

It's just one merged chunk that's giving me the problem, all the others have worked fine. There are 36,594 cameras in the chunk and there are six of each camera. The chunk is now appended into another project and same issue, so it's something to do with this specific chunk.

Console:

2020-02-03 08:24:05 start
2020-02-03 08:24:06 Traceback (most recent call last):
2020-02-03 08:24:06   File "C:/Users/Rory/Documents/Agisoft/remove_duplicates.py", line 8, in <module>
2020-02-03 08:24:06     if camera.photo.path in paths:
2020-02-03 08:24:06 AttributeError: 'NoneType' object has no attribute 'path'
2020-02-03 08:24:06 Error: 'NoneType' object has no attribute 'path'

33
Python and Java API / Re: Remove Duplicates Script Not Working 1.6.1
« on: February 01, 2020, 12:35:00 PM »
It appears to be something to do with the chunk I'm working on, any ideas what could cause this error?

34
General / Memory Not Released after Merging Chunks
« on: January 31, 2020, 05:58:15 PM »
Hi,

After merging the dense clouds in six chunks the memory is not released, subsequent processing often fails with out of memory errors. Restarting Metashape seems to be the only way to clear the memory. Metashape Pro 1.6.1

35
Python and Java API / Remove Duplicates Script Not Working 1.6.1
« on: January 31, 2020, 05:55:17 PM »
Hi,

I use the following script to remove duplicate cameras after merging chunks. Since upgrading to 1.6.1 it fails with the error 'NoneType' object has no attribute 'Path':

Code: [Select]
import Metashape, os

chunk = Metashape.app.document.chunk
print("start")
paths = set()
photos = list()
for camera in list(chunk.cameras):
      if camera.photo.path in paths:
             photos.append(camera)
      else:
             paths.add(camera.photo.path)

chunk.remove(photos)
print("finished. %d duplicates removed" % len(photos))

Any help appreciated!


36
General / Re: Low GPU use on 1.6.0
« on: January 31, 2020, 04:02:20 PM »
The project that used additional corrections took 36 hours to process 5.6K images with high settings, the second project without additional corrections took just 19 hours to process 6.2K images with high settings!

37
Camera Calibration / Re: Phantom 4 RTK Lens parameters
« on: January 29, 2020, 07:33:51 PM »
Dewarp should definitely be off for photogrammetry. As for the camera calibration, I have tried creating a calibration file from a site with known GCPs but get better results letting Metashape do the calibration / optimisations.

38
General / Re: Low GPU use on 1.6.0
« on: January 29, 2020, 02:20:34 PM »
Interesting observation, the last chunk I was processing contained images from the SODA camera plus a section that was flown using the P4RTK. It took around 14 hours to create the dense cloud from around 1200 images. The chunk I'm processing now has only images from the SODA camera and is processing much faster, although the GPU use isn't maxed out but it is a fair bit higher.

39
General / Re: Low GPU use on 1.6.0
« on: January 28, 2020, 03:00:06 PM »
Hi, I just read Dense cloud generation time longer, increased noise post and see it's the same issue. I haven't looked at any of the dense clouds yet so don't know if they are noisy or not. This section of the project has 5669 cameras and as they were all aligned and optimised together I've no option but to continue processing the chunks. The question is, when I do the other two sections without using the additional corrections option, will there be a discernible difference in the dense clouds when I merge all the projects together?

40
General / Re: Low GPU use on 1.6.0
« on: January 28, 2020, 02:52:36 PM »
Hi Alexey, yes, at the last stages of gradual selection, I checked all the optimisation parameters after tightening the tie point accuracy to 0.3. I then did gradual selection on reprojection error down to 0.2 and optimised again checking all the boxes. I'm now building the dense clouds in duplicated chunks with around 1,000 images in each bounding box. Maybe I shouldn't be using the fit additional corrections option? The camera is an eBee SODA.

41
General / Low GPU use on 1.6.0
« on: January 28, 2020, 02:27:11 PM »
Hi,

I'm working on a 19,000 image project on 1.6.0 release version, I didn't want to update to 1.6.1 during a major project. I'm experiencing low GPU and high CPU use during depth map generation (see screenshots), in V1.5.x both GPUs were maxed out on CUDA and there was some breathing space on the CPU. Use CPU is not checked in the GPU tab. System is i9 9900X, 128GB RAM, 2 x RTX2080.


42
Python and Java API / Re: split_in_chunks_dialog not working in 1.6
« on: January 27, 2020, 10:34:38 PM »
Hi Alexey, many thanks, I forgot the Github repository! Can't actually test it at the moment as I duplicated the chunks manually in the project I'm working on.

43
Python and Java API / split_in_chunks_dialog not working in 1.6
« on: January 27, 2020, 07:58:56 PM »
Hi,

The split_in_chunks_dialog.py doesn't seem to work in 1.6. I changed the major version on line 7 to 1.6 but it fails saying metashape does not have ultraquality on line 12. I there an updated version, I use this a lot?

44
Hi,

I am no expert on Python but wondering if it is relatively easy to create a script to do the following for each chunk in a project:

Classify ground points in the dense cloud;
Duplicate the existing DEM;
Build new DEM with ground points only;
Export the DTM to the project folder using the chunk name as the filename.

I have six projects each with around six or seven chunks to process so scripting it would be really helpful.

Many thanks,

Rory

45
General / Re: Classifying the Ortho Photo
« on: July 03, 2019, 08:45:57 AM »
You could use ArcGis Desktop with the spatial analyst extension to achieve this. Create training samples of the various surface types you want to classify then use the maximum likelihood algorithm on the ortho. There is also the SCP plugin for QGIS which can do what you’re after, however I have found the results to be more consistent with ArcGis.

Pages: 1 2 [3] 4