13006
Python and Java API / Re: Estimate image quality
« on: June 18, 2014, 06:44:21 PM »
Sure, James, my fault.
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.
chunk.estimateImageQuality()
camera = chunk.cameras[0]
quality = camera.frames[0].meta["Image/Quality"]
if quality < threshold:
camera.enabled = False
p
doc = PhotoScan.app.document
chunk = doc.activeChunk
calib_in = PhotoScan.Calibration()
calib_in.load(path)
sensor = chunk.sensors[0]
sensor.user_calib = calib_in
PhotoScan.app.document.activeChunk.smoothModel(3)
данная команда применит Лапласиановское сглаживание с шагом 3.