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

Pages: 1 2 [3]
31
Python and Java API / Re: How can I install numpy in Agisoft ?
« on: October 26, 2021, 03:21:45 PM »
Dear Alexey,
I already did it. I have been used numpy many times in my python version 3.7. when I installed using the command as in the link you gave me, I said that it already installed as show in the attachment 2. I noticed that the Agisoft I am using is in python 3.8. Does it related to this problem ? I will shows you the error when I am running the script as show in the attachment 1. Thank you very much.

32
Python and Java API / Re: How can I install numpy in Agisoft ?
« on: October 26, 2021, 05:39:21 AM »
Dear Alexey,
Thank  you very much for you kindly response. I have been tried your link. It shows the problem as in the attachment file. What should I do to solve it.

Best Regards,
LYHOUR

33
Python and Java API / How can I install numpy in Agisoft ?
« on: October 25, 2021, 02:56:07 PM »
Excuse me everyone! I want to use numpy in my python script in Agisoft. When I run it say that the numpy is not installed. I have been installed in my computer and used it so far in different environment. I try to copy from the site-packages to Agisoft directory like : C:\Program Files\Agisoft\Metashape Pro\python\Lib. But it still error. I am stuck of this problem. It would be better if any give me suggestion to solve this problem. Thank you very much.

34
General / How to align the surface model into horizontal plan?
« on: October 25, 2021, 02:06:23 PM »
Excuse me everyone, I am using Agisoft to construct 3D pavement surface texture. When I do it, the surface model is not fit into horizontal plan direction as show the attachment (Picture). How can I solve this problem ?

35
Dear Alexey Pasumansky,
Thank you very much for your reply. I really appreciate your respond. In the GUI, I use the GPU to run it. However, in the python API I am not sure as well. But, when I see the status in the command, it showed about the information of GPU memory usage. I will input your suggestion coding and see the result. Again, thank you very much.

Best Regards,
CHHAY LYHOUR

36
Dear Paul Pelletier,
I really appreciate your reply. Thank you very much for you information. It would be better if you could help me one more question. I want to define my coordinate system as local coordinate. How can I set it ? I saw some documentation but I don't know how to use it. Again, thank you very much

Best Regards,
CHHAY LYHOUR

37
I am new to python Agisoft. I try to export the point similar process to the GUI. However, it raised the error : Value Error: Invalid argument value: format. The code is shown in the below. Also, How can I choose between the dense point cloud and spare point cloud in the coding ? Moreover, I notice that the computation time is very different. When I use the GUI the processing time is very fast. But when I use the python API, it takes longer time. Do anyone know how to fix it. Thank you very much.
Code: [Select]
import Metashape
import textwrap
import glob
import os
global doc
doc = Metashape.app.document
print("Script started")

#creating new chunk
doc.addChunk()
chunk = doc.chunk
chunk.label = "New Chunk"

photo_list = list()
image_dir='Picture'
path_img = os.path.join(os.getcwd(),image_dir)
for j,img_file in enumerate(glob.glob(path_img+'/*.jpg')):
img_name = os.path.splitext(os.path.basename(img_file))[0]
photo_list.append(img_file)


keypoints = 40000 #align photos key point limit
tiepoints = 10000 #align photos tie point limit
chunk.addPhotos(photo_list)
#align photos
chunk.matchPhotos(downscale=1, generic_preselection=True, filter_mask = False, keypoint_limit = keypoints, tiepoint_limit = tiepoints)
chunk.alignCameras()

chunk.optimizeCameras()

chunk.buildDepthMaps(downscale=4, filter_mode=Metashape.AggressiveFiltering)
chunk.buildDenseCloud()
#building mesh
chunk.buildModel(surface_type=Metashape.Arbitrary, interpolation=Metashape.EnabledInterpolation)

#build texture

chunk.buildUV(mapping_mode=Metashape.GenericMapping)

chunk.buildTexture(blending_mode=Metashape.MosaicBlending, texture_size=4096)
Metashape.app.update()

#export
output_dir='Picture'
path_out = os.path.join(os.getcwd(),output_dir)

chunk.exportPoints(path = path_out + "/model.ply", format = "ply", colors = True)

38
I meet this problem as well. Does this problem solve yet ?

39
General / How to obtain the matching pixel coordinate of each image ?
« on: September 21, 2021, 12:46:14 PM »
Hello everyone, after we align the image, the spare point cloud and dense point clouse can be obtain. As far I know, the matching point was conducted base on the SIFT algorithm. Therefore, How can I get the mathcing point coordinate between each image. Also, how we can get detph image corresponding to RGB image. I have been tried to export the depth image from the API, but, it is not well corresponding to RGB image. The depth image is generated from the matching tie point, therfore, it is not the same size as RGB image. How can i solve this problem ? thank you very much.

40
General / Re: Export point cloud depth map of each picture
« on: September 21, 2021, 11:36:45 AM »
Dear Sir, I want to know that you can solve it already. I need the dept image or depth information corresponding to RGB image as well. When I export the depth image from the Agisoft software, It is not well corresponding. What should I do to solve this problem ?

41
After we combine the image from different view, we can obtain the point cloud and generate the 3D model of the object by using the Agisoft software. However, I have few question:
1. where is the reference of this point cloud ? I mean coordinate (0,0,0).
2. how to generate the depth image corresponding to the RGB image ? which RGB image corresponding to depth image ? I raise up this question because I need the resolution of depth image (W×H) the same as RGB image (W×H).
3. Do we need to projected the point cloud to the image again ?
Thank you very much.

Pages: 1 2 [3]