Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry Pick PR #13533 from OhadMeir: Fix python UCAL example #13543

Merged
merged 1 commit into from
Nov 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion wrappers/python/examples/depth_auto_calibration_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def run_on_chip_calibration(speed, scan):
cfg.enable_stream(rs.stream.depth, 256, 144, rs.format.z16, 90)
pipe = rs.pipeline(ctx)
pp = pipe.start(cfg)
pipe.wait_for_frames()
dev = pp.get_device()

try:
Expand Down Expand Up @@ -199,14 +200,15 @@ def run_tare_calibration(accuracy, scan, gt, target_size):
cfg.enable_stream(rs.stream.depth, 256, 144, rs.format.z16, 90)
pipe = rs.pipeline(ctx)
pp = pipe.start(cfg)
pipe.wait_for_frames()
dev = pp.get_device()

try:
print(f'\tGround Truth:\t{target_z}')
print(f'\tAccuracy:\t{accuracy}')
print(f'\tScan:\t{scan}')
adev = dev.as_auto_calibrated_device()
table = adev.run_tare_calibration(target_z, args, progress_callback, 30000)
table, health = adev.run_tare_calibration(target_z, args, progress_callback, 30000)
print('Tare calibration finished')
adev.set_calibration_table(table)
adev.write_calibration()
Expand Down
Loading