def recognize(): " Compute mesh from images (pure mode aware)" view_stop() calibration_data = settings.load_data(CalibrationData()) r = settings.get_laser_range() slices, colors = cloudify(calibration_data, settings.WORKDIR, r, range(360), method=settings.SEGMENTATION_METHOD) meshify(calibration_data, slices, colors=colors, cylinder=settings.ROI).save("model.ply") gui.clear()
def scan_object(): """ Scan object """ calibration_data = settings.load_data(CalibrationData()) r = settings.get_laser_range() cloudifier = iter_cloudify(calibration_data, settings.WORKDIR, r, range(360), method=settings.SEGMENTATION_METHOD) iterator = partial(next, cloudifier) capture(on_step=iterator, display=False, ftw=settings.SYNC_FRAME_FAST) slices, colors = iterator() meshify(calibration_data, slices, colors=colors).save("model.ply") gui.clear()