16
Python and Java API / Re: Python script on precalibrated camera calibration parameters
« on: November 15, 2013, 06:27:03 PM »
Alexey,
I was trying to put all of those parameters in the code, but I think loading a pre-saved xml calibration file should work just fine.
So this part should be before the photo alignment, right?
I have code like:
new_chunk.cameras.add(path)
new_chunk.enabled=true
doc.chunks.add(new_chunk)
And after those 3 lines, the camera calibration should be inserted in, and then the code will be matching photos, llike:
doc.activeChunk.matchPhotos(accuracy="high", preselection="generic")
doc.activeChunk.alighPhotos()
Is that right place to put in the camera calibration parameters?
Thanks a lot!
Nan
I was trying to put all of those parameters in the code, but I think loading a pre-saved xml calibration file should work just fine.
So this part should be before the photo alignment, right?
I have code like:
new_chunk.cameras.add(path)
new_chunk.enabled=true
doc.chunks.add(new_chunk)
And after those 3 lines, the camera calibration should be inserted in, and then the code will be matching photos, llike:
doc.activeChunk.matchPhotos(accuracy="high", preselection="generic")
doc.activeChunk.alighPhotos()
Is that right place to put in the camera calibration parameters?
Thanks a lot!
Nan