Skip to content

ianchute/goalpost-detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

1ff389c · Jul 5, 2018

History

1 Commit
Jul 5, 2018
Jul 5, 2018
Jul 5, 2018

Repository files navigation

Goalpost detector

By: Ian Chu Te

Prerequisites

  • Python 3
  • numpy
  • OpenCV
  • matplotlib (for debugging)

Installation

Download goalpost_detector.py or clone this repo

Try it

python goalpost_detector.py

Sample usage

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)))

CV Techniques used

  • Color thresholding (CIELUV space)
  • Closing Morpohological Transform
  • Probabilistic Hough Transform

About

Goalpost detection in images for Python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages