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
31
Python and Java API / Re: Chunk Region Control Script
« on: December 01, 2021, 05:30:39 PM »
I have already done that as i have done with all other scripts but i get no custom menu for this script.

The menu appears only if i run it through the console.

When i start Metashape i get this error in console

Quote
Traceback (most recent call last):
2021-12-01 16:32:17   File "C:/Users/ANAX-UAS/AppData/Local/Agisoft/Photogrammetric Kit for TOPCON/scripts/ChunkRegionControl.py", line 246, in <module>
2021-12-01 16:32:17     dlg = ChunkRegionControl(parent)
2021-12-01 16:32:17   File "C:/Users/ANAX-UAS/AppData/Local/Agisoft/Photogrammetric Kit for TOPCON/scripts/ChunkRegionControl.py", line 12, in __init__
2021-12-01 16:32:17     self.chunk = Metashape.app.document.chunk
2021-12-01 16:32:17 AttributeError: 'NoneType' object has no attribute 'chunk'

32
Python and Java API / Re: Python scripts collection?
« on: December 01, 2021, 04:38:14 PM »
So, i tried to install the script "detect_objects.py" from https://github.com/agisoft-llc/metashape-scripts/tree/master/src but i have a problem.

When i try to run the script i get the following error

Quote
Shape layer: key=0, label=Layer, enabled=False
2021-12-01 16:19:52 Shape layer: key=1, label=Train zones, enabled=True
2021-12-01 16:19:52 Shape layer: key=2, label=Train data, enabled=True
2021-12-01 16:19:52 Shape layer: key=3, label=Objects, enabled=True
2021-12-01 16:20:11 Shape layer: key=0, label=Layer, enabled=False
2021-12-01 16:20:11 Shape layer: key=1, label=Train zones, enabled=True
2021-12-01 16:20:11 Shape layer: key=2, label=Train data, enabled=True
2021-12-01 16:20:11 Shape layer: key=3, label=Objects, enabled=True
2021-12-01 16:20:32 Using resolution 0.020156805028629442 m/pix with patch 1600x1600
2021-12-01 16:20:32 Additional neural network training expected on key=2 layer data w.r.t. key=1 layer zones
2021-12-01 16:20:32 Loading train shapes...
2021-12-01 16:20:32 1 train zones and 12 train data loaded in 0.00 sec
2021-12-01 16:20:32 Working dir: E:\- PROJECTS -\01. ANAX Projects\10. DIAFORA\Ioannina - University\- Agisoft Projects\objects_detection
2021-12-01 16:20:37 Traceback (most recent call last):
2021-12-01 16:20:37   File "C:/Users/ANAX-UAS/AppData/Local/Agisoft/Photogrammetric Kit for TOPCON/scripts/detect_objects.py", line 1139, in <lambda>
2021-12-01 16:20:37     QtCore.QObject.connect(self.btnRun, QtCore.SIGNAL("clicked()"), lambda: self.process())
2021-12-01 16:20:37   File "C:/Users/ANAX-UAS/AppData/Local/Agisoft/Photogrammetric Kit for TOPCON/scripts/detect_objects.py", line 154, in process
2021-12-01 16:20:37     self.prepair()
2021-12-01 16:20:37   File "C:/Users/ANAX-UAS/AppData/Local/Agisoft/Photogrammetric Kit for TOPCON/scripts/detect_objects.py", line 221, in prepair
2021-12-01 16:20:37     from deepforest import utilities
2021-12-01 16:20:37   File "C:\Program Files\Agisoft\Photogrammetric Kit Pro\python\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 114, in _import
2021-12-01 16:20:37     return original_import(name, *args, **kwargs)
2021-12-01 16:20:37   File "C:\Program Files\Agisoft\Photogrammetric Kit Pro\python\lib\site-packages\deepforest\utilities.py", line 10, in <module>
2021-12-01 16:20:37     import rasterio
2021-12-01 16:20:37   File "C:\Program Files\Agisoft\Photogrammetric Kit Pro\python\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 114, in _import
2021-12-01 16:20:37     return original_import(name, *args, **kwargs)
2021-12-01 16:20:37   File "C:\Program Files\Agisoft\Photogrammetric Kit Pro\python\lib\site-packages\rasterio\__init__.py", line 17, in <module>
2021-12-01 16:20:37     from rasterio._base import gdal_version
2021-12-01 16:20:37   File "C:\Program Files\Agisoft\Photogrammetric Kit Pro\python\Lib\site-packages\shiboken2\files.dir\shibokensupport\__feature__.py", line 114, in _import
2021-12-01 16:20:37     return original_import(name, *args, **kwargs)
2021-12-01 16:20:37 ImportError: DLL load failed while importing _base: The specified module could not be found.

I do not what is wrong and why it does not work.

Anyone installed that script and got it working?

33
Python and Java API / Re: Chunk Region Control Script
« on: December 01, 2021, 02:40:39 PM »
I'm not good at scripting.

I have many scripts that load itself when i open Metashape and are added in a Custom Menu. (pic 1)
This way i open that menu and click the script i want to run.

Your script does not load automatically when i open Metashape. To make it appear in a custom menu i have to run it through console first. (pic 2).

Is it possible to make it to run automatically when i open Metashape? Can you modify it for me please?

34
General / Backup settings before format?
« on: November 30, 2021, 04:40:28 PM »
I would like to Format my PC.

I have made some changes in Preferences (enable some options, keyboard shortcuts etc, etc) and added some Tweaks in Agisoft. Is there a file that Agisoft saves all these information that i can copy to make a backup so when i format my pc and reinstall Metashape to just transfer this file and all my settings are OK in my new installation?

35
For the classification, I still prefer the approach where the terrain is evaluated "from below".

Hello c-r-o-n-o-s.

When you say "from below" you refer in Cloud Compare and the CSF (Cloth Simulation Filter) plugin?

36
General / Re: Orthophotos show some holes Question
« on: October 20, 2021, 09:57:54 AM »
What do you mean when you say that you had to " fix the tie points"?

37
Bug Reports / Re: Filter by Confidence selection.
« on: October 20, 2021, 09:55:52 AM »
When you create Dense Cloud did you check the option to "Calculate Point Confidence"?

38
General / Re: Project file size - Orthophoto
« on: October 01, 2021, 04:46:28 PM »
Thank you Alexey for your answer.

I understand that if i remove them before patching then it will be not possible to patch it but for projects that i already did some manual patching and then "Update the Orthomosaic", is it ok to remove the orthophotos as you described or do i lose the patching?


39
General / Project file size - Orthophoto
« on: September 29, 2021, 12:19:08 PM »
I would like to ask about the file size of an Agisoft project.

I have noticed that when creating an Orthophoto in a project, the file size of the project gets way too big.
I calculated that the orthophoto itself it takes about 3.2 times bigger in size than the file size of the photos used.

For example:
1) I used 3.220 photos in a project. Their total file size is about 56.3 GB.
2) After i create an Orthomosaic the project's file size skyrockets. The total filesize of the project is 196GB out of which the Orthomosaic is 177GB. (the rest 19GB are the point clouds, Dems etc)

The orthomosaic folder alone is 3.14 times bigger than the photos used. So for this project i need about 196+56 = 252 GB + exports = 270 GB of drive space

The same logic carries on all the projects i make. Currently i have about 50TB of drive space on my PC for all my projects + another 50TB external for backups.
Now i run a project with 7.700 photos that are about 140GB and i expect to have an Orthomosaic folder about 450GB. If i consider point clouds, dems etc i will need about 700GB Drive space to save this project.


Why is that happening?
How Agisoft is tilling the photos to create the orthomosaic?
Can i do something to optimize drive space or it's just how it works?

40
General / Re: Accuracy in Reference Geotagged images
« on: September 06, 2021, 01:45:35 PM »
1) When you PPK geotag pictures in WingtraHub choose the option to export in .CSV format.
This way you will not have duplicate pictures and reserve a lot of space.

2) Import the photos in Metashape

3) Go to "Reference Panel" and choose the "Import Reference button" (pic.1)

4) Choose the .csv file located in "Output" folder and adjust the Columns to correspond the ones in your .csv file. (pic.2)
Note: for the horizontal accuracy both (Easting-Northing, Lat-Long, etc) must take values from the same column and Altitude must take the value for the accuracy Vertical.

5) Procced with your workflow.
Accuracies will be shown as expected. (pic.3)




41
General / Delete original chunks after Merge?
« on: August 20, 2021, 11:22:46 AM »
I have made some flights with a drone in 2 different days and i processed them in 2 chunks (about 4000 pics in each chunk).

Both chunks are georeferenced with cm accuracy  and i want to merge them together.

The question is:

After i do the Merge can i delete the 2 original chunks (to save space on HDD) and leave only the Merged one in the project?

42
General / Re: Question about Orthophoto Resolution
« on: March 11, 2021, 03:10:24 PM »
The Orthophoto resolution is tied with the GSD and the camera parameters (focal length etc).

Bigger GSD results in lower spatial resolution (less detail).
Lower GSD = better spatial resolution (more detail).

GSD is the Ground Sampling Distance (distance between two consecutive pixel centers measured on the ground) and is related on the altitude.


Thus if you need better resolution on the Orthophoto you can do 2 things.
1) If you cannot change the Focal Length then the only option is to -> Fly lower
2) If you have the option to change the Focal Length on the camera then you can fly at the same altitude and decrease the GSD by Increasing the Focal Length.
3) Have a better camera.


43
General / Re: Using GCPs causes alignment problems
« on: March 08, 2021, 02:45:07 PM »
Hello dyoung,

The process should be:

1) Align Cameras
2) Import GCPs
3) After the above "Uncheck All Cameras"
4) Optimize Cameras.
5) Continue with all other steps for Dense Cloud, Mesh, etc as needed.

44
General / Re: Automated mission planning
« on: March 03, 2021, 12:08:05 PM »

For Phantom 4 RTK it is recommended to use DJI Pilot for Android (tested, works fine).

Is it working 100% with all RTK features (NTRIP corrections etc)? OR it works but like a normal non RTK drone?

45
General / Re: Automated mission planning
« on: March 01, 2021, 04:07:51 PM »
It seems the solution is to use the SDK version remote controller for Phantom 4 RTK witch allows to run programs such as Litchi on a screen of your choice (e.g. Mobile phone, Tablet, Android & Apple).

On top of that i see that your .kml has more than 99 waypoints. DJI do not allow more than 99 waypoints in 3rd party apps afaik.

note: Even if you have the SDK version i am not sure that Litchi or other apps work with NTRIP for RTK corrections etc.

Pages: 1 2 [3] 4 5