andrewda / frc-livescore

A Python package to determine the score of an FRC game from images
MIT License
29 stars 4 forks source link

Livescore2019 dependent on xfeatures2d in cv2, not present in modern #24

Open MC42 opened 4 years ago

MC42 commented 4 years ago

Was attempting to get started with reading 2019 live data from twitch, end result was discovering that frc-livescore needs a version of openCV with attribute 'xfeatures2d'. Apparently more modern (4.2) openCV has no such attribute, but backversioning it seems to work as a short term fix.

Thanks in advance.

andrewda commented 4 years ago

Thanks for the report! Haven't done a ton of testing with OpenCV 4.x, but I can try to give it a shot sometime this week. Do you have opencv_contrib installed?

MC42 commented 4 years ago

I do. Here's my Pipfile that worked for livescore, but not for the other part of my project hack:


[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
streamlink = "*"
livescore = "*"
numpy = "*"
pillow = "*"
pytesseract = "*"
regex = "*"
opencv-python = "==3.4.2.16"
opencv-contrib-python = "==3.4.2.16"

[requires]
python_version = "3.5"