增加CPP
This commit is contained in:
@@ -12,7 +12,7 @@ shift_h = 100
|
||||
|
||||
# 标定图案与车辆之间在水平和垂直方向上的间隙大小
|
||||
inn_shift_w = 20
|
||||
inn_shift_h = 20
|
||||
inn_shift_h = 30
|
||||
|
||||
# 拼接图像的总宽度/高度
|
||||
total_w = 300 + 2 * shift_w
|
||||
@@ -20,10 +20,10 @@ total_h = 350 + 2 * shift_h
|
||||
|
||||
|
||||
# 计算车辆在全景图中的位置
|
||||
xl = shift_w + 45 + inn_shift_w
|
||||
xl = shift_w + 55 + inn_shift_w
|
||||
xr = total_w - xl
|
||||
print(xl, xr)
|
||||
yt = shift_h + 60 + inn_shift_h
|
||||
yt = shift_h + 55 + inn_shift_h
|
||||
yb = total_h - yt
|
||||
# --------------------------------------------------------------------
|
||||
|
||||
@@ -44,18 +44,18 @@ project_keypoints = {
|
||||
|
||||
"back": [(shift_w + 0, shift_h),
|
||||
(shift_w + 300, shift_h),
|
||||
(shift_w + 0, shift_h + 80),
|
||||
(shift_w + 300, shift_h + 80)],
|
||||
(shift_w + 0, shift_h + 70),
|
||||
(shift_w + 300, shift_h + 70)],
|
||||
|
||||
"left": [(shift_h + 0, shift_w),
|
||||
(shift_h + 350, shift_w),
|
||||
(shift_h + 0, shift_w + 50),
|
||||
(shift_h + 350, shift_w + 50)],
|
||||
(shift_h + 0, shift_w + 40),
|
||||
(shift_h + 350, shift_w + 40)],
|
||||
|
||||
"right": [(shift_h + 0, shift_w),
|
||||
(shift_h + 350, shift_w),
|
||||
(shift_h + 0, shift_w + 50),
|
||||
(shift_h + 350, shift_w + 50)]
|
||||
(shift_h + 0, shift_w + 40),
|
||||
(shift_h + 350, shift_w + 40)]
|
||||
}
|
||||
|
||||
car_image = cv2.imread(os.path.join(os.getcwd(), "images", "car.png"))
|
||||
|
||||
Reference in New Issue
Block a user