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.


Topics - varadg

Pages: [1]
1
General / Indoor 3D Model Generation
« on: April 11, 2017, 03:26:08 PM »
I was testing 3D model generation with Agisoft following tutorials here - http://www.agisoft.com/index.php?id=32 and http://www.agisoft.com/index.php?id=33

I tried with close range photos of various objects and 360 degree views of buildings and the output is quite good. However, I want to now test with pictures taken in an indoor setting. We're using a robot to navigate an intricate house and we'd like to use the pictures it takes to generate a 3D model of the indoors using the photo data.

How well might this be supported by Agisoft?

2
Python and Java API / Adding Ground Control Points through Python API
« on: March 27, 2017, 09:53:21 AM »
Is it possible to add Ground Control Points through the Python API? I have tried doing the same through the GUI, but cannot figure out how to do the same through the API. Is there any documentation for the same?

3
Python and Java API / Focal Length Calculation
« on: March 17, 2017, 12:26:30 PM »
While doing the image alignment process for generating orthophotos, I assume that Agisoft calculates the focal length internally (if it is not available in the EXIF data). Is there any way to access this calculated value of the focal length through the software API?

4
Hi. Can someone educate me as to what EXIF data / metadata can / is used by Agisoft in the process of generating an orthophoto from aerial images? I expect it would be helpful to have information about the focal length, camera calibration parameters, geolocation data etc. Can someone provide a comprehensive list?

5
Python and Java API / Select all images for alignment using API
« on: March 02, 2017, 09:27:05 AM »
For the first step in my processing workflow, I'm using the following API calls -

Code: [Select]
doc = PhotoScan.app.document
chunk = doc.addChunk()
chunk.addPhotos(images)

# image matching and alignment
for frame in chunk.frames:
    frame.matchPhotos(accuracy=PhotoScan.HighAccuracy, preselection=PhotoScan.GenericPreselection, keypoint_limit=40000, tiepoint_limit=1000) # HighestAccuracy

chunk.alignCameras()

The same procedure in the GUI yields 3000 points as shown in the attached image (agisoft_1.png). As is evident, only the images with the green ticks are used in the alignment.

However, in the GUI, I can manually select all images (by pressing Ctrl + A) and then proceed with image alignment (agisoft_2.png). This yields 4000+ points for further processing. And the output is really good for the 2nd process, and very distorted for the 1st.

I wanted to know what change I can make in my API call to select all images and thereby get the same performance.

6
Python and Java API / Different output from API process and GUI workflow?
« on: February 22, 2017, 02:11:48 PM »
I am using the following script to automate my workflow of generating an orthomosaic for a set of 180 aerial photos -

Code: [Select]
doc = PhotoScan.app.document
doc.save("projects/frame_2.psx")

# add photos
chunk = doc.addChunk()
chunk.addPhotos(images)  # images is a list of image paths from a directory

# image matching and alignment
for frame in chunk.frames:
    frame.matchPhotos(accuracy=PhotoScan.HighAccuracy, preselection=PhotoScan.GenericPreselection, keypoint_limit=40000, tiepoint_limit=1000)
chunk.alignCameras()

# dense point cloud

chunk.buildDenseCloud(quality=PhotoScan.HighQuality,filter=PhotoScan.MildFiltering)

# build mesh
chunk.buildModel(surface=PhotoScan.HeightField, interpolation=PhotoScan.EnabledInterpolation, face_count=PhotoScan.HighFaceCount, source=PhotoScan.DenseCloudData, classes=[PhotoScan.Created])   # classes provide control on which kind of terrain we are mapping

# build UV
chunk.buildUV(mapping=PhotoScan.OrthophotoMapping)

# build texture
chunk.buildTexture(blending=PhotoScan.MosaicBlending, size=8192)

doc.save()

# build orthophoto
chunk.buildOrthomosaic()

# export orthophoto
chunk.exportOrthomosaic(path="projects/frame_2.tif", jpeg_quality=99)

However, at the end of processing, I noticed that the output obtained after processing the same dataset through the API  is drastically different from the output I obtain by following the orthophoto generation process (detailed here - http://www.agisoft.com/index.php?id=28) in the GUI.

I am running the Pro 30-day trial version on 64-bit Linux system with 8GB RAM & a GeForce GTX 740 graphics card.

Any idea why this would be happening?

7
Python and Java API / API commands for corresponding GUI interactions?
« on: February 20, 2017, 03:34:50 PM »
Hello. I'm trying to evaluate PhotoScan Pro in headless mode on a server. So, I'm trying to do all the steps that I normally do using a GUI. I had generated orthophotos using the GUI by following the tutorial provided here - http://www.agisoft.com/index.php?id=28

But I cannot figure out the corresponding API calls to make. For eg.: how do I set the parameters in the OpenCL preferences as shown in the tutorial? What is the Python API command for the same? Similarly, what is the API call to add multiple images to a project and align them?

Please help.

Pages: [1]