Skip to content

Commit a291ced

Browse files
committed
calibrate_frd.py: import cv2 later to enable sai-cli -h when cv2 is not installed
1 parent c932beb commit a291ced

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

python/cli/calibrate_frd/calibrate_frd.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"""
44

55
import spectacularAI
6-
import cv2
76
import numpy as np
87
import os
98
import json
@@ -47,6 +46,7 @@ def define_subparser(subparsers):
4746

4847

4948
def draw_rectigle(img, pixel, color):
49+
import cv2
5050
x, y = pixel
5151
CROSSHAIR_SIZE = 15
5252
CENTER_GAP = 2
@@ -92,6 +92,8 @@ def on_vio_output(self, _, frames):
9292
"""
9393
Callback function that gets called for each VIO output from the replay.
9494
"""
95+
import cv2
96+
9597
if self.should_quit:
9698
self.replay.close()
9799
return

0 commit comments

Comments
 (0)