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 - nys09@vt.edu

Pages: [1] 2
1
Hi Mr. Pasumansky,

Thank you very much for your reply. I am not really sure about what effect will using more number of texture atlas pages have on the quality of the texture generated. This is what I have been using from before. I think if I used 10 pages, the texture was a little blurred. Kindly shed some light on advantages of using more number of pages.

Thank you
Yeshwanth

2
Hi Mr. Pasumansky,

Thank you very much. I will try that out. Can you please tell me how to set Texture count in the python version? I usually use Texture count = 20 on the GUI version of the software. But I donot know if using page_count =20 in buildUV is the same thing as the Texture count (in GUI version). Kindly let me know.

Thanks
Yeshwanth

3
Python and Java API / OS Error: editing is disabled in read-only mode
« on: March 20, 2020, 07:51:12 AM »
I tried opening a document using the python api (v 1.6.2) of the software. The document gave the following notification in the log when it opened.


LoadProject: path = /home/nys09/Box_beam_densecloud/box_beam_c8.psx
loaded project in 0.00481 sec
Document.open(): The document is opened in read-only mode because it is already in use.

However, the document was not open in any other window/ it was not already in use. It ran my code for dense point cloud for two hours and at the end of the process, it gave the following error message and exited.

    doc.save()
OSError: Document.save(): editing is disabled in read-only mode

Can anyone please tell me why this error has occurred and how to deal with this? I believe in the previous run, the program didnot run due to insufficient memory and stopped abruptly. Kindly let me know if there is anything I can include in the code to avoid this error in these scenarios?

Thank you.


4
General / Issue with Colorizing the Dense Cloud from the texture
« on: February 23, 2020, 12:15:59 AM »
Hi Mr. Pasumansky:

I have a set of modified images (in place of images I actually used for making the point cloud) with the same naming as original photos. After building dense cloud and mesh, I am using Change Path operation to replace the original images with modified images. The modified images have some patches of interest highlighted in blue color (0,0,255).

After that, I am generating the texture using modified images and also use Colorizing the Dense Cloud (from the Tools Menu in order to apply the new colors to the points). Now I have to locate the points which are colored in blue (corresponding to my blue patches in my modified images used for texturing). The problem is the color of the points colorized to blue color is not exactly (0,0,255). Is there any way to identify these? I need to use only these points to do some operations like volume calculations and projections on to a plane.

Please indicate if there is a way to locate these points which are a shade of blue and not exactly (0,0,255)

Thanks
Yeshwanth Sai
Master's student at Virginia Tech

5
Hi Alexey,

Thank you very much for getting back to me. I didnot enable any tweaks. This is the first time I am hearing about this. I wasn't aware of that before.

Thank you.

6
Hi Alexey,

I am still waiting for your reply on this issue. Kindly indicate if you were able to find what the problem was.

Thank you
Yeshwanth

7
Hi Alexey,

Any update on the added noise issue in dense point cloud made from the python version of the software, would be greatly appreciated. Also, I want to know if the python version of the software has capability of working on multiple computational nodes. If yes, what kind of license do we need for this?

Thanks,
Yeshwanth

8
I am sorry, I guess it was shaded mesh. I am now attaching the dense cloud image. I double checked and this one is from the dense cloud.

9
Please find attached the screenshot of the dense cloud from the GUI version. You can see that the GUI version dense cloud is much better than the python version. I wonder why the results would be different.

10
Hi Alexey,

Thank you very much for your continued support. I was able to run the alignment for all the images. But, now I am facing difficulty in the dense cloud generation part now. The result from the python version of the software has a lot of background noise / outliers which was not there when I used the GUI version of the software. I am attaching a picture of the model. In the picture, we can see the noise on the right side. Any insight into how to avoid this, would be helpful.

I am using the following code for the dense cloud step.

chunk.buildDepthMaps(quality=Metashape.HighQuality, filter=Metashape.AggressiveFiltering)
task = Metashape.Tasks.BuildDenseCloud()
task.network_distribute = True
task.apply(chunk)

The log file is available at https://drive.google.com/file/d/16ph7mGyIdhybMX3VLFsWSWU5V7Zcs45g/view?usp=sharing

Thank you
Yeshwanth

11
Hi Alexey,

I tried your above code for realigning the unaligned cameras and I am getting the following error.

File "arc_inputfile.py", line 59, in <module>
    chunk.alignCameras(cameras = not_aligned, reset_alignment=False)
TypeError: 'reset_alignment' is an invalid keyword argument for this function


I checked the documentation. There is no argument called reset_alignment=false for alignCameras(). it is only there for the alignment using the tasks approach. But it requires a chunk object as a parameter. So my trial of passing not_aligned to task did not work. Kindly suggest.
 
Code I used:
if len(not_aligned) > len(aligned) * 0.1:
    task2 = Metashape.Tasks.AlignCameras()
    task2.adaptive_fitting = False
    task2.network_distribute = True
    task2.reset_alignment = False
    task2.apply(not_aligned)

Thanks
Yeshwanth

12
Hi Alexey,

Thank you very much. In the above code, Don't I have to write match photos step, before we realign the unaligned cameras as follows?
chunk.matchPhotos(accuracy=Metashape.HighAccuracy, generic_preselection=True,reference_preselection=False,keypoint_limit=40000, tiepoint_limit=4000)

Thank you

13
Hi Alexey, 

Thank you so much for your response. This was only a trial run for using the high performance computer that our university has. I have much bigger beams to work on. 

Any guidance on how to write the code to do a realignment of unaligned pictures if less than  90% of images are aligned, would be great.

Also, please let me know what all lines to include for getting a log file. I'm using the following lines in my code. The log file is not being generated.

Metashape.app.settings.log_enable=True
Metashape.app.settings.log_path='/home/nys09/Trial1Beamch_arc/trial2logfile.txt'


Thanks,
Yeshwanth

14
Hi Alexey.

I have shared both the .psz files, one from UI and the other from python interface of the software, via email as a reply to my support request. I have also sent the pdf reports that I generated from both models. I am unable to attach those here because of size limit.

I was unable to generate a log file even after including the following. Is there anything else that I am missing to write the log file to the hard drive?
Metashape.app.settings.log_enable=True
Metashape.app.settings.log_path='/home/nys09/Trial1Beamch_arc/trial2logfile.txt

The type of data I am using this for are the pictures of my concrete beams in our lab. the ticket that I raised on support is https://agisoft.freshdesk.com/helpdesk/tickets/127078

Thanks,
Yeshwanth
nys09@vt.edu

15
I am running the alignCameras() step on my imageset of 933 images using the python version of the software. For some reason, it is aligning only 127 out of the 933 images and the rest are not aligned (NA). The computer that I am using is a remote machine and does not have a user Interface.

I also ran the same set of images on a different computer with the user interface version of the software. Here all 933 images were aligned without any problem. I am wondering if I am making any mistake in the python code. The code is as follows.

import os
import Metashape
import numpy as np
# Use GPU
Metashape.app.gpu_mask=1
Metashape.app.cpu_enable=False
# End use GPU

#Load Images
pa='/home/nys09/'
pat='/home/nys09/Trial1Beamch_arc/'
b=[]
c=os.path.join(pa,"arc_imagelist_t1.txt")
images = open(c,"r+")
a = np.loadtxt(images,dtype=str)
for i in range(np.shape(a)[0]):
    b.append(pat+str(a))

#Alignment
Metashape.app.settings.log_enable=True
Metashape.app.settings.log_path='/home/nys09/Trial1Beamch_arc/trial2logfile.txt'

doc = Metashape.Document()
doc.save(pat+"trial_alignment2.psz")
chunk = doc.addChunk()
chunk.addPhotos(b)
chunk.matchPhotos(accuracy=Metashape.HighAccuracy, generic_preselection=True,reference_preselection=False,keypoint_limit=40000, tiepoint_limit=4000)
chunk.alignCameras()
doc.save()


Also the log file is not being generated. I want all processing to be written to txt file as I am using the software without user interface.

Please help me with this issue.

Pages: [1] 2