-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
71 lines (66 loc) · 1.74 KB
/
Copy pathconfig.yaml
File metadata and controls
71 lines (66 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# Hutishtuti OCR Configuration File
# Copy this file to config.local.yaml and customize for your setup
# Path to Tesseract OCR executable
# Windows example: C:\Users\username\Desktop\tesseract\tesseract.exe
# Linux example: /usr/bin/tesseract
# macOS example: /usr/local/bin/tesseract
tesseract:
path: "C:\\tesseract\\tesseract.exe"
cardsizes:
cardx: 100
cardy: 140
# Card locations on screen (left, top, right, bottom)
# These coordinates define where cards appear in your poker client
# Adjust these based on your screen resolution and poker client layout
card_locations:
card1: [880, 770, 920, 815] # left hand
card2: [950, 765, 990, 810] # right hand
flop1: [695, 425, 730, 470]
flop2: [810, 425, 840, 470]
flop3: [915, 425, 950, 470]
turn: [1023, 425, 1060, 470]
river: [1130, 425, 1165, 470]
# RGB color values for each suit (used for color-based suit detection)
# Format: [R, G, B] where each value is 0-255
suit_colors:
hearts: [150, 33, 24]
diamonds: [29, 70, 149]
spades: [0, 0, 0]
clubs: [59, 103, 24]
# Suit abbreviations
suit_initials:
hearts: "H"
diamonds: "D"
spades: "S"
clubs: "C"
# OCR preprocessing settings
ocr:
# Threshold for binarization (0-255)
threshold: 180
# Padding around card image for better OCR
padding: 30
# Output size for processed images
output_size: [100, 100]
# Tesseract PSM mode (10 = single character)
psm_mode: 10
# Directory to save card crops
crop_directory: "card_crops"
# Card text replacements for OCR corrections
# Maps common OCR errors to correct values
card_replacements:
"J": "J"
"Q": "Q"
"K": "K"
"A": "A"
"0": "10"
"O": "10"
"o": "10"
"1": "1"
"2": "2"
"3": "3"
"4": "4"
"5": "5"
"6": "6"
"7": "7"
"8": "8"
"9": "9"