Skip to content

Commit 05d6eb7

Browse files
authored
PR #13543 from Nir-Az: Cherry Pick PR #13533 from OhadMeir: Fix python UCAL example
2 parents 0af8a6f + 557c938 commit 05d6eb7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wrappers/python/examples/depth_auto_calibration_example.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ def run_on_chip_calibration(speed, scan):
110110
cfg.enable_stream(rs.stream.depth, 256, 144, rs.format.z16, 90)
111111
pipe = rs.pipeline(ctx)
112112
pp = pipe.start(cfg)
113+
pipe.wait_for_frames()
113114
dev = pp.get_device()
114115

115116
try:
@@ -199,14 +200,15 @@ def run_tare_calibration(accuracy, scan, gt, target_size):
199200
cfg.enable_stream(rs.stream.depth, 256, 144, rs.format.z16, 90)
200201
pipe = rs.pipeline(ctx)
201202
pp = pipe.start(cfg)
203+
pipe.wait_for_frames()
202204
dev = pp.get_device()
203205

204206
try:
205207
print(f'\tGround Truth:\t{target_z}')
206208
print(f'\tAccuracy:\t{accuracy}')
207209
print(f'\tScan:\t{scan}')
208210
adev = dev.as_auto_calibrated_device()
209-
table = adev.run_tare_calibration(target_z, args, progress_callback, 30000)
211+
table, health = adev.run_tare_calibration(target_z, args, progress_callback, 30000)
210212
print('Tare calibration finished')
211213
adev.set_calibration_table(table)
212214
adev.write_calibration()

0 commit comments

Comments
 (0)