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

Pages: [1]
1
Hello Everyone!
I'm just wondering is it possible for us to encrpyt our python code using locale module in Metashape environment? Right now I'm developing some script and it will be used by a lot of people, and I want to encrypt those code so the user cannot read the raw file.
Thank You!  :D

2
Thank you for your response, Alexey!
Okay, very clear explanation about this, thank you for your help Alexey and lyhour ;)

3
Dear lyhour,
Thank you for your response!
I've tried that before and work nicely, if you want to reduce path directory you can jump into python file on Metashape instalation then reduce the command from "%programfiles%....." to "%python.exe%" -m pip install something.
So.. my conclusion is impossible for us to install external module from Metashape's console right? If it possible we can add our python script with pip install before we run the script, but its not gonna work..
Thank you  :)

4
Thank you for your response, Alexey!
Ah okay, maybe I am currently using older version and it's already handled by xlsxwriter, anyway, is it possible to me to install external module from Metashape's console?
Thank you  ;)

5
Thank you for your response, Alexey!  ;D
I've tried many times to install external module to metashape but only xlsxwriter works, this is the error of openpyxl module, any insight about this?
Images below are from my cmd and my Agisoft Metashape. Thank you

6
Is it impossible for me to use builtin library on Metashape python, is it possible for me to download library from Metashape's console? Like pip install something?

7
Hello! I need to generate an excel file in Metashape, I am already tried with some excel python libraries like openpyxl, xlutils, xlwt, etc, but it seems like not installed on Metashape Pythons environment. Is it possible to generate excel file in Metashape using python? Because I need a multiple sheet on my last output and CSV cannot handle it. Thank you  :D

8
Python and Java API / Re: Making oversized tiff file to one file
« on: February 17, 2022, 04:52:16 AM »
Cool! Thanks a lot, Alexey!  ;D

9
Python and Java API / Re: Making oversized tiff file to one file
« on: February 15, 2022, 08:56:02 AM »
Hello Alexey!
Sorry for my previous post that mentioned the data is corrupt, when I try open the export result using qgis / arcmap, it shows the export result.
Thank you  :)

10
Python and Java API / Re: Making oversized tiff file to one file
« on: February 15, 2022, 07:18:47 AM »
Thank you for your response, Alexey!

That's works just fine, but.. the export result shown like this, is there any insight about this problem?

Thanks  :)

11
Python and Java API / Making oversized tiff file to one file
« on: February 14, 2022, 04:28:22 PM »
Hello, everyone!
Right now I'm just processing very big shapefile area, so when I try to export the orthomosaic inside it, that cause an error, says that Maximum TIFF file exceeded. I have try to split the orthomosaic result to block, but it becomes much files, is there any solution to keep the export orthomosaic result still in one file? Thankyou  :)

12
Python and Java API / Re: How can I distinct shape with some conditions?
« on: February 11, 2022, 09:28:47 AM »
Thank you for your response, Paulo!
This works really well, Thank you very much for your insight!
But I still have a problem here, how if I want to loop all over the polygon on my data that I sent before? As you can see I have one polygon on one keyid and more than one polygon on one keyid.. Is it possible to compile this condition on one code?
Thanks!  :)

13
Python and Java API / Re: How can I distinct shape with some conditions?
« on: February 11, 2022, 06:33:33 AM »
Thank you for your response, Alexey!
I attached the related data in this reply..
My goal is how can I export orthomosaic based on the keyid of my polygon boundaries?
As you can see, I have 2 polygons with 1 keyid (B02), it is possible if I want to export my orthomosaic based on the 2 polygon boundaries in 1 file?
I already loop the shape with this code:
for shape in chunk.shapes:
      print(shape)

but this gave me one by one feature, I can't loop by its keyid
Thank you!  :)

14
Python and Java API / How can I distinct shape with some conditions?
« on: February 04, 2022, 05:08:08 AM »
Hello,
I have a question about looping polygon shape in Metashape using python, right now I can loop all the shapes on my chunk, but Metashape always loop every feature on the polygon one by one, is it possible to loop the polygon based on some conditions? Thank you for your reply  :)

Pages: [1]