* Finding the lightstick center Threshold the image Find blobs (connected components) Find the largest blob B Compute the median vector of B Finding the lightstick But we…