danthewaann / snooker-ball-tracker Goto Github PK
View Code? Open in Web Editor NEWDemo app that detects/tracks snooker balls on a snooker table
License: MIT License
Demo app that detects/tracks snooker balls on a snooker table
License: MIT License
Hello Daniel! Great work on developing this app :)
I've followed all steps but cannot get it to run on Ubuntu 20.04. I get the following error:
Traceback (most recent call last): File "/home/ricardo/.local/share/virtualenvs/snooker-ball-tracker-YBvYRYDk/lib/python3.8/site-packages/snooker_ball_tracker-0.1.0-py3.8.egg/snooker_ball_tracker/settings.py", line 75, in __getattr__ KeyError: '__path__'
Any idea why this is happening?
Thanks!
Seemingly doesn't like opencv-python and pyqt5 versions:
Installing opencv-python (4.5.2.52): Failed
RuntimeError
Unable to find installation candidates for opencv-python (4.5.2.52)
at ~\AppData\Roaming\pypoetry\venv\lib\site-packages\poetry\installation\chooser.py:109 in choose_for
105│
106│ links.append(link)
107│
108│ if not links:
→ 109│ raise RuntimeError(f"Unable to find installation candidates for {package}")
110│
111│ # Get the best link
112│ chosen = max(links, key=lambda link: self._sort_key(package, link))
113│
• Installing pre-commit (2.17.0)
• Installing pyinstaller (4.5.1)
• Installing pyinstaller-versionfile (2.0.0)
• Installing pyqt5 (5.14.1): Failed
ChefBuildError
Backend 'sipbuild.api' is not available.
at ~\AppData\Roaming\pypoetry\venv\lib\site-packages\poetry\installation\chef.py:152 in _prepare
148│
149│ error = ChefBuildError("\n\n".join(message_parts))
150│
151│ if error is not None:
→ 152│ raise error from None
153│
154│ return path
155│
156│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
Note: This error originates from the build backend, and is likely not a problem with poetry but with pyqt5 (5.14.1) not supporting PEP 517 builds. You can verify this by running 'pip wheel --use-pep517 "pyqt5 (==5.14.1)"'.
• Installing pyqt5-stubs (5.15.2.0)
• Installing python-magic (0.4.24)
• Installing tomlkit (0.7.2)
File "/home/ricardo/.local/share/virtualenvs/snooker-ball-tracker-YBvYRYDk/lib/python3.8/site-packages/snooker_ball_tracker-0.1.0-py3.8.egg/snooker_ball_tracker/ball_tracker/settings/colour_detection_settings.py", line 19, in <lambda> File "/home/ricardo/.local/share/virtualenvs/snooker-ball-tracker-YBvYRYDk/lib/python3.8/site-packages/snooker_ball_tracker-0.1.0-py3.8.egg/snooker_ball_tracker/ball_tracker/settings/colour_detection_settings.py", line 136, in update_colour_value KeyError: 'NONE'
After installing package running demo programs complain that libmagic is not present
raise ImportError('failed to find libmagic. Check your installation')
ImportError: failed to find libmagic. Check your installation
Fixed by manually installing following packages:
pip install libmagic
pip install python-magic-bin==0.4.14
Maybe I was doing something wrong but I followed your quick start guide
Hi team,
I'm trying to run your code to detect ball in images but get the error below.
Traceback (most recent call last):
File "ball_tracker_cli.py", line 273, in
_, _, hsv = ball_tracker.perform_init_ops(frame, width=args.width, morph=args.morph, crop=args.crop)
AttributeError: 'BallTracker' object has no attribute 'perform_init_ops'
Could you tell me what i did wrong? Thank you very much!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.