Find the center of a ferris wheel from a night photo.
The pipeline used in this project is as follows:
- Start from an image, resize it to 800x600
- Find contours, using Canny (includes a thresholding step)
- Draw the contours on a new image
- Erode the contours to reduce thickness (reduces duplicate lines found in the next step)
- Detect lines on the contour image
- Draw the detected lines on a new image (for output to user)
- Find the equations of each line, and store in matrix form
- Solve the overdetermined system of equations (least squares) to get the optimal intersection point for the lines. This is the center of the ferris wheel
- Draw the detected center on the contour image and the original image, and write the coordinates to stdout