wb-08 / pokervision Goto Github PK
View Code? Open in Web Editor NEWRecognition of all entities on the poker table and added analytics on the basis of which you can make decisions about your moves
Recognition of all entities on the poker table and added analytics on the basis of which you can make decisions about your moves
Cant find 10 'T.png' in table_cards_numbers or hero_cards_numbers. Forgotten or a logic reason?
What version of Cython is required?
I first had issues with installing the requirements.txt. It came complaining about Cypthon.
pip3 install -r requirements.txt
Collecting eval7==0.1.9
Downloading eval7-0.1.9.tar.gz (158 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 158.4/158.4 KB 2.4 MB/s eta 0:00:00
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-8mamd9xs/eval7_d214e38fc83644ed964a27cb98b474fb/setup.py", line 3, in <module>
from Cython.Build import cythonize
ModuleNotFoundError: No module named 'Cython'
[end of output]
So I installed Cyphon manually inside the venv. Fine here.
However now it comes with a different problem when installing the requirements.
pip3 install -r requirements.txt
Collecting eval7==0.1.9
Using cached eval7-0.1.9.tar.gz (158 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [300 lines of output]
/tmp/PokerVision/venv/lib/python3.10/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-4s7d2jzo/eval7_cd9fe2e2510e458cbed8e6e8ac213ccf/eval7/cards.pxd
tree = Parsing.p_module(s, pxd, full_module_name)
/tmp/PokerVision/venv/lib/python3.10/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-4s7d2jzo/eval7_cd9fe2e2510e458cbed8e6e8ac213ccf/eval7/equity.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
Error compiling Cython file:
------------------------------------------------------------
...
#
# This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE file for details.
import cython
from xorshift_rand cimport randint
^
------------------------------------------------------------
eval7/equity.pyx:7:0: 'xorshift_rand.pxd' not found
... plus some more
Would you be able to help?
I am on Ubuntu 22.04.4 LTS
Hey, whatsup!
I tried to run the program, but had the following error:
(venv) venv λ › python3 grab_table.py
sh: 1: wmctrl: not found
Traceback (most recent call last):
File "/home/fernando/PokerVision/scripts/grab_table.py", line 20, in <module>
sct.grab(monitor).rgb)
File "/home/fernando/PokerVision/venv/lib/python3.10/site-packages/mss/base.py", line 90, in grab
screenshot = self._grab_impl(monitor)
File "/home/fernando/PokerVision/venv/lib/python3.10/site-packages/mss/linux.py", line 427, in _grab_impl
ximage = self.xlib.XGetImage(
File "/home/fernando/PokerVision/venv/lib/python3.10/site-packages/mss/linux.py", line 229, in _validate
raise ScreenShotError(f"{func.__name__}() failed", details=details)
mss.exception.ScreenShotError: XGetImage() failed
Could be a size problem or something?
This seem to have been designed for when pokerstars is running under wine I believe?
I connect from ubuntu to a virtual windows os with RDP. So basically the window control with wmctrl does not work for me here. I will have to tell PokerVision where the absolute origin of the window is.
I sort of managed to do that but it comes with errors and I suspect all calibrated positions (cards, pot, stacks etc) are off certainly due to the fact that I am not able (yet) to resize the window to what PokerVision needs.
Are there any debugging available to help calibrating what position is where? How did you do this at dev time?
Can we dump individual images somewhere to view them and correct positions maybe?
I might have to place some img.save() in the code to help with this.
I take I definitely need to set the pokerstars table to what it is set in PokerVision? width=1090 and height=900. If not then the template won't be scaled to this sizing?
Or does it not matter at all and I can just use whatever table size and adjust each element positions?
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.