Bara Lilla Nyíri Gergely Piotr Czekański Kovács Laura Team H: Automatic Poker Player
Automatic Poker Player
Usage Determine the shapes of poker-cards (i.e. the hand value) Difficulties: Hidden parts of cards Cards in different positions (angles) Motivation: Electronic Casinos
General Presentation Corners of the cards Pattern recognition Image Processing - method 1 - Existing symbols Image Processing - method 2 -
Detailed Presentation Image Processing – method 1 Image Processing – method 2 Pattern recognition
Image Processing – method 1 Step 1: Tresholding using isodata algorithm Step 1: Tresholding using isodata algorithm Step 2: Fill area, closing holes Step 2: Fill area, closing holes Step 3: Determine the boundary Step 3: Determine the boundary Step 4: Labeling the boundaries Step 4: Labeling the boundaries Step 5: Compute the chain code Step 5: Compute the chain code Step 6: Determine the corners Step 6: Determine the corners Step 7: Determine the angle Step 7: Determine the angle Step 8: Rotate the cards Step 8: Rotate the cards Step 9: Pattern matching Step 9: Pattern matching
Isodata algorithm divide the histogram in two parts (starting treshold level: t = the mean of the picture) consider the means (m1, m2) of the upper and lower pixelvalues Calculate: t= (m1+m2) /2 If t changes => start from the beginning Step 2, otherwise (i.e. convergence)
Fill area, closing holes Consider a closed contour and an inner point => Dilatation => intersection with the complementary of the contour => Continue until there are changes
Image Processing – method 2 Localize the cards Keep only the symbols Extracting the relevant symbols – from distance analysis Pattern recognition – numbers and symbols
Pattern Matching
Conclusions Results Further Work
Results Detecting the shape of poker cards - even if some parts are hidden The performances of the algorithms depend on the numbers of the contained symbols
Problems
Further Work Using last year’s Dice Project implementing an SSIP Casino Analyze the information of the shapes => determine the hand value of the poker cards Improve the algorithms by using fuzzy logic or neural networks
Thank You for the Attention!