deepof.utils.extract_polygonal_arena_coordinates
- deepof.utils.extract_polygonal_arena_coordinates(video_path: str, arena_type: str, video_index: int, videos: list)
Read a random frame from the selected video, and opens an interactive GUI to let the user delineate the arena manually.
- Parameters:
video_path (str) – Path to the video file.
arena_type (str) – Type of arena to be used. Must be one of the following: “circular-manual”, “polygonal-manual”.
video_index (int) – Index of the current video in the list of videos.
videos (list) – List of videos to be processed.
- Returns:
nx2 array containing the x-y coordinates of all n corners of the polygonal arena. int: Height of the video. int: Width of the video.
- Return type:
np.ndarray