1
Python and Java API / Re: Does filtering happen in buildDepthMaps() or buildDenseCloud()
« on: January 10, 2018, 10:11:40 PM »
Ah, that makes sense. Thanks for clarifying!
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.
if os.path.exists( '/tmp/my_locked_file.files/lock' ):
os.remove( '/tmp/my_locked_file.files/lock' )
doc.open( '/tmp/my_locked_file.psx' )
for marker in chunk.markers:
p = marker.position
p.size = 4
p.w = 1
T = chunk.transform.matrix
p_t = T * p
p_t.size = 3
proj = chunk.crs
p_est = proj.project(p_t)
import PhotoScan
newDoc = PhotoScan.Document()
newDoc.open('/tmp/my_locked_file.psx')
PhotoScan.app.quit()

doc = PhotoScan.app.document
doc.open(filepath1)
doc2 = PhotoScan.Document()
doc2.open(filepath2)
doc.append( doc2, doc2.chunks )
class ProgressPrinter( object ):
def __init__( self, name ):
self.name = name
def __call__( self, percent ):
print("%s Progress: %f%"%(self.name, percent))
sys.stdout.flush()
RuntimeError: incomplete formatdoc = PhotoScan.app.document
doc.open(filepath1)
doc2 = PhotoScan.Document()
doc2.open(filepath2)
doc.append( doc2 )