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

Minor Fixes For Calibrate Script #793

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
8 changes: 5 additions & 3 deletions calibrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,10 @@ def capture_images(self):
timer = self.args.captureDelay
prev_time = None
curr_time = None
self.display_name = "left + right + rgb"
if not self.args.disableRgb:
self.display_name = "left + right + rgb"
else:
self.display_name = "left + right"
last_frame_time = time.time()
# with self.get_pipeline() as pipeline:
while not finished:
Expand Down Expand Up @@ -500,7 +503,6 @@ def capture_images(self):
combine_img = np.hstack((frame_list[0], frame_list[1], frame_list[2]))
else:
combine_img = np.vstack((frame_list[0], frame_list[1]))
self.display_name = "left + right"

if start_timer == True:
curr_time = time.time()
Expand All @@ -510,7 +512,7 @@ def capture_images(self):
if timer <= 0 and start_timer == True:
start_timer = False
capturing = True
print('Statrt capturing...')
print('Start capturing...')

image_shape = combine_img.shape
cv2.putText(combine_img, str(timer),
Expand Down