Skip to content

Tjorriemorrie/pokeraide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pokeraide

poker advisor

pocket rankings

Used by ElasticSearch. Generated by PokerEval

poker eval

Set up to run via docker. Check poker-eval. A flask app is in the interface on port 5000.

Dependencies

elasticsearch_dsl: adapter to elasticsearch

treelib: managing MC search state in tree

pillow: screen scraping and image

sortedcontainers: keep dictionaries and lists sorted for use in rankings, etc

click: CLI parser

retry: retry on exception

pokereval: adapter to run

requests: for requests to docker container poker-eval

pytesseract: for sending ocr requests to tesseract

ruamel.yaml: for reading yaml files, might need to change to json or just plain python dicts constants

Virtualbox

Create windows image. Devices => Install Guest Additions.

Tesseract

Install via homebrew. Used to identify values and names on sites. Identify the font at Identifont and train the data file at http://trainyourtesseract.com. Then move the file to the tesseract folder: $ cp scraper/sites/coinpoker/museosans.traineddata /usr/local/share/tessdata Run tesseract --list-langs to get lang name to pass in with command.

OpenCV2

Required for text rotation and image template matching.

Parse site

Crop templates from grayscale window.png image. But for mse the images are required to be copied from the parsed debug img to the img folder. But should still have a source, e.g. the board cards The cutots should be as small as possible with it clipping the edges, to prevent the matches shifting

Releases

No releases published

Packages

No packages published