Skip to content

Commit

Permalink
replay ui: fix typo in variable name (commaai#30851)
Browse files Browse the repository at this point in the history
fix typo in variable name
  • Loading branch information
jakethesnake420 authored Dec 27, 2023
1 parent 1f9970b commit ee3544d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/replay/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@ def ui_thread(addr):

imgff = np.frombuffer(yuv_img_raw.data, dtype=np.uint8).reshape((len(yuv_img_raw.data) // vipc_client.stride, vipc_client.stride))
num_px = vipc_client.width * vipc_client.height
bgr = cv2.cvtColor(imgff[:vipc_client.height * 3 // 2, :vipc_client.width], cv2.COLOR_YUV2RGB_NV12)
rgb = cv2.cvtColor(imgff[:vipc_client.height * 3 // 2, :vipc_client.width], cv2.COLOR_YUV2RGB_NV12)

zoom_matrix = _BB_TO_FULL_FRAME[num_px]
cv2.warpAffine(bgr, zoom_matrix[:2], (img.shape[1], img.shape[0]), dst=img, flags=cv2.WARP_INVERSE_MAP)
cv2.warpAffine(rgb, zoom_matrix[:2], (img.shape[1], img.shape[0]), dst=img, flags=cv2.WARP_INVERSE_MAP)

intrinsic_matrix = _INTRINSICS[num_px]

Expand Down

0 comments on commit ee3544d

Please sign in to comment.