By: Ian Chu Te
- Python 3
- numpy
- OpenCV
- matplotlib (for debugging)
Download goalpost_detector.py
or clone this repo
python goalpost_detector.py
from goalpost_detector import detect_goalpost
images = ['img/goalpost_true.jpg', 'img/goalpost_false.jpg']
for img in images:
print(img, detect_goalpost(plt.imread(img)))
- Color thresholding (CIELUV space)
- Closing Morpohological Transform
- Probabilistic Hough Transform