How to get coordinates for a bounding box

In Image Segmentation Lesson, with a given 2D point in the region of blue shirt that Andrew is wearing, the model is able to segment the blue shirt. Now, I have 2 questions on this:

  1. How to get 2D point or a bounding box coordinates for a given image?
  2. How to extract the label of the segment?