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

Pages: 1 [2] 3 4 5
16
Feature Requests / Re: Center Rotation on Object
« on: December 01, 2023, 03:00:58 PM »
You can also double click to change the rotation center in the position you want.

17
Python and Java API / Re: Delete Points Outside of Bounding Box
« on: October 26, 2023, 09:02:46 AM »
Thank you Paulo.

Works like a charm.

18
Python and Java API / Delete Points Outside of Bounding Box
« on: October 25, 2023, 10:12:02 AM »
I was using Metashape v1.8.2 and now i upgraded to v.2.0.3

I had a script to delete all points (tie points) that are Outside of the bounding box.
In the new version this script runs without giving me any error but it actually does nothing at all and it does not delete any points.

I do not know about scripting and i would like someone to help me convert this script to run properly in v.2.0.3

Code: [Select]
import Metashape
def main():
doc = Metashape.app.document
for i in range(len(doc.chunks)):
chunk = doc.chunks[i]
R = chunk.region.rot #Bounding box rotation matrix
C = chunk.region.center #Bounding box center vertor
size = chunk.region.size

if not (chunk.point_cloud and chunk.enabled):
continue
elif not len(chunk.point_cloud.points):
continue
for point in chunk.point_cloud.points:

if point.valid:
v = point.coord
v.size = 3
v_c = v - C
v_r = R.t() * v_c

if abs(v_r.x) > abs(size.x / 2.):
point.valid = False
elif abs(v_r.y) > abs(size.y / 2.):
point.valid = False
elif abs(v_r.z) > abs(size.z / 2.):
point.valid = False
else:
continue

print("Script finished. Points outside the region were removed.")

Metashape.app.addMenuItem("Scripts/Delete Points Outside Bounding Box", main)

19
short answer is absolutely YES. You can use 3rd party software to create the masks and then import them in Metashape.

An old thread on the forum: -> https://www.agisoft.com/forum/index.php?topic=5886.0

Helpdesk Portal: -> https://agisoft.freshdesk.com/support/solutions/folders/31000119359

Other tut: -> https://www.academia.edu/34745519/TUTORIAL_CREATING_MASKS_IN_PHOTOSHOP_TO_IMPORT_IN_PHOTOSCAN_ENGLISH_VERSION_pdf

hope these helps

20
General / Re: Optimizing Processing Time?
« on: March 10, 2023, 04:12:26 PM »
Do you have you images in a HDD or an SSD or M.2 drive?

I think (somebody correct me if i'm wrong) that and old HDD can have an impact in performance compared to SSD/M.2 if you have a lot of high resolution images.

21
General / Re: Issues with Cleaning up Mesh Clouds
« on: March 10, 2023, 03:57:13 PM »
Have you tried to use Gradual Selection?

Go to the to menus -> "Model -> Gradual Selection" and choose "Connected component size" move the slider until you select all the small components you want to delete.

22
Feature Requests / Re: Orthomosaic/DEM export with watermark
« on: November 03, 2022, 12:40:03 PM »
I know it is an old request but as Alexey said it was on their to-do list for a long time.

Any news on the possibility to add custom watermarks? Should we expect to be added anytime soon ?

23
General / Re: Automated Drone Route for Vertical scanning
« on: June 08, 2022, 01:38:04 PM »
Did you you try Agisoft's "Mission planning for complex structures" tutorial?
https://agisoft.freshdesk.com/support/solutions/articles/31000157953

24
General / Re: Oblique Camera 12mm on Wingtra Gen II
« on: February 14, 2022, 05:46:30 PM »
Darko, thank you for you info.

The settings i used are the ones that Wingtra says to use as default. Some of them are:
aperture between 4 and 5.6 (i suppose it's the 4.5)
Exposure: 1600
Exposure composition: -0.3
ISO: Auto

I tried a test project before i got your answer and i indeed tried the Frame Camera setting but I didn't enable the Rolling Shutter. I thought that the camera had a mechanical Shutter. Don't ask me why, i just forgot to check the shutter type on this camera. :-)  Maybe because the other camera i use on Wingtra is the Sony RX1R II which has a mechanical shutter.

Anyway the results are pretty good (see pic) and the accuracy is about 1cm for X,Y and 5cm for Z at 3gsd without Ground Control Points.

Thank you for pointing out about Rolling Shutter.
Another question is about the "Adaptive Camera Model Fitting". I choose to not use this feature in Alignment and on Optimising. I have not tested yet with this option ON. Do you use it or you leave it unchecked?


25
General / Oblique Camera 12mm on Wingtra Gen II
« on: February 08, 2022, 12:58:48 PM »
I have Wingtra Gen II drone equipped with an Oblique Sony a6100(wide lens).

The pictures does not contain any info about Focal Length and F-Stop in exif. (all numbers are 0 when imported in Agisoft)

The camera specs state that it has 12mm lense, APS-C sensor. The focal Length is 12mm (18mm equivalent for 35mm). F-Stop is set at 4.5 in the lenses ring (no software option in camera menus).

So the questions are:
1) In Camera Calibration settings what should i choose? Is it Frame or Fish Eye?
2) Can i add this numbers (specs) in Agisoft myself and how? If yes should i add the 12mm or the 18mm equivalent to 35mm?

26
General / Re: Using external drives (USB)
« on: February 02, 2022, 02:25:51 PM »
So, as I'm running out of storage capacity quite fast, here they are my questions:

Metashape indeed creates huge amount of data. (as you can see here -> https://www.agisoft.com/forum/index.php?topic=13771.0 )

One thing you can do to save huge amount of space is to "Remove Orthophotos" assuming that you do not need to do some patching after.

27
Python and Java API / Re: Photoscan Module is deprecated WARNING
« on: December 07, 2021, 06:36:38 PM »
Thank you a lot for your help Paulo.

I didn't expect someone to look this up. A big THANK you.

28
Python and Java API / Re: Chunk Region Control Script
« on: December 02, 2021, 11:17:41 AM »
Thank you a lot.

It loads fine now.  ;D

29
Python and Java API / Re: Photoscan Module is deprecated WARNING
« on: December 02, 2021, 11:08:19 AM »
Thank you for your answer Alexey.

I checked my scripts and none of them had this line
Code: [Select]
import PhotoScan
They all had "import Metashape"


So i'm sure that the problem is somewhere in the Collection of scripts from Geoscan (https://github.com/geoscan/geoscan_plugins)
The problem is that i cannot check all of them because there are a total of 178 folder with 441 files and almost half of them are .py files.

I did some checking in a few files but none of them contained the word Photoscan. All of them were for Metashape.

Anyway.

My question is if there is a problem with functionality or it's just a Warning message with no other effects.

Is there a problem with my version of Metashape witch is actually "Agisoft Photogrammetric Kit for Topcon" ?

30
Python and Java API / Photoscan Module is deprecated WARNING
« on: December 01, 2021, 05:46:19 PM »
When i open the program i get the following Warning (in RED) in the console.

Quote
2021-12-01 16:36:25 Agisoft Photogrammetric Kit for TOPCON Version: 1.7.5 build 13229 (64 bit)
2021-12-01 16:36:25 Platform: Windows
2021-12-01 16:36:25 CPU: AMD Ryzen 7 2700X Eight-Core Processor (desktop)
2021-12-01 16:36:25 CPU family: 23 model: 8 signature: 800F82h
2021-12-01 16:36:25 RAM: 63.9 GB
2021-12-01 16:36:25 OpenGL Vendor: NVIDIA Corporation
2021-12-01 16:36:25 OpenGL Renderer: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2
2021-12-01 16:36:25 OpenGL Version: 4.6.0 NVIDIA 496.76
2021-12-01 16:36:25 Maximum Texture Size: 32768
2021-12-01 16:36:25 Quad Buffered Stereo: not enabled
2021-12-01 16:36:25 ARB_vertex_buffer_object: supported
2021-12-01 16:36:25 ARB_texture_non_power_of_two: supported
2021-12-01 16:36:25 To execute this script press Custom menu/Add reference altitude
2021-12-01 16:36:25 To execute this script press Custom menu/Align model or dense point cloud
2021-12-01 16:36:25 To execute this script press Custom menu/Color Model with Altitude
2021-12-01 16:36:25 To execute this script press Custom menu/Color Model with Overlap
2021-12-01 16:36:25 To execute this script press AI tools/Detect objects
2021-12-01 16:36:25 To execute this script press Custom menu/Masking by color
2021-12-01 16:36:25 To execute this script press Custom menu/Read RelativeAltitude from DJI metadata
2021-12-01 16:36:25 Warning: PhotoScan module is deprecated, use Metashape module instead
2021-12-01 16:36:33 imported  auto_gamma_correction
2021-12-01 16:36:33 imported  buffer_by_markers
2021-12-01 16:36:33 imported  chunk_region_setter
2021-12-01 16:36:33 imported  crs_uploader
2021-12-01 16:36:33 imported  expimp_by_marker
2021-12-01 16:36:33 imported  export_by_shapes
2021-12-01 16:36:33 imported  fast_layout
2021-12-01 16:36:33 imported  gnss_post_processing
2021-12-01 16:36:33 imported  image_channel_mixer
2021-12-01 16:36:33 imported  gnss_processing
2021-12-01 16:36:33 imported  make_masks_from_shapes
2021-12-01 16:36:33 imported  mesh_creator
2021-12-01 16:36:33 imported  shape_worker
2021-12-01 16:36:33 imported  plugins_configurator
2021-12-01 16:36:33 imported  quality_estimator
2021-12-01 16:36:33 imported  remove_image_duplicates
2021-12-01 16:36:33 imported  set_altitudes_for_shape
2021-12-01 16:36:33 imported  shape_worker
2021-12-01 16:36:33 imported  tab_meta_creator
2021-12-01 16:36:33 To execute this script press Custom menu/Split in chunks


If i remember correctly (it's months now) it started after installing a collection of scripts from Geoscan (https://github.com/geoscan/geoscan_plugins#readme)
Most scripts from Geoscan (but not all) work fine but a few do not work. All my other scripts from the community work fine.


Why is that and how can i fix it?

Pages: 1 [2] 3 4 5