k4a_playback = pyk4a.PyK4APlayback("C:/AppData/output.mkv")
k4a_playback.open()
cv2.namedWindow('Azure Kinect RGB', cv2.WINDOW_NORMAL)
while True:
capture = k4a_playback.get_next_capture()
if capture is not None:
color_image = capture.color
if color_image is not None:
color_image_data = color_image.data
color_image_data = np.array(color_image_data, copy=False)
color_image_bgr = cv2.cvtColor(color_image_data, cv2.COLOR_BGRA2BGR)
cv2.imshow('Azure Kinect RGB', color_image_bgr)
`
That's my code。
The problem arises when, on the first frame, the color result in the capture object is None
On the second frame, the color results in the capture object are shown below
The final realistic image is shown below
Why is that?
Ask for Help
`def main():
` That's my code。 The problem arises when, on the first frame, the color result in the capture object is None On the second frame, the color results in the capture object are shown below The final realistic image is shown below Why is that? Ask for Help