- key = cv2.waitKey()
-
- if key == 27: # if ESC is pressed, exit.
- cv2.destroyAllWindows()
- break
-
- cv2.destroyAllWindows()
- if out_path is not None:
- out.release()
-
- def render_scene_channel(self,
- scene_token: str,
- channel: str = 'CAM_FRONT',
- freq: float = 10,
- imsize: Tuple[float, float] = (640, 360),
- out_path: str = None) -> None:
- """
- Renders a full scene for a particular camera channel.
- :param scene_token: Unique identifier of scene to render.
- :param channel: Channel to render.
- :param freq: Display frequency (Hz).