Skip to content

Commit

Permalink
added typing to overlay_frame
Browse files Browse the repository at this point in the history
  • Loading branch information
naokiyokoyama authored Apr 2, 2024
1 parent d79d7f1 commit 1de011b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vlfm/utils/habitat_visualizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,9 @@ def color_point_cloud_on_map(infos: List[Dict[str, Any]], policy_info: List[Dict
infos[0]["top_down_map"]["map"] = new_map


def overlay_frame(frame, info, additional=None):
def overlay_frame(
frame: np.ndarray, info: Dict[str, Any], additional: Optional[List[str]] = None
) -> np.ndarray:
"""
Renders text from the `info` dictionary to the `frame` image.
"""
Expand Down

0 comments on commit 1de011b

Please sign in to comment.