Skip to content

Using computer vision to read a bingo book and be able to play a full bingo game. Playing your book for you.

Notifications You must be signed in to change notification settings

OQ2000/Bingo-Helper

Repository files navigation

Bingo Genie Replica

Example of Bingo Book

Project Overview:

The purpose of this project was to gain experiance with the Googles Tesseract OCR and OpenCV.

I set out with the goal to be able to give the OpenCV2 Algorithm an image of a standard bingo book and be able to read the book and be able to play a whole game of bingo.

How it works

Specify Book

You specify the bingo book that you wish to read.
I used this example to read from, this is just a standard bingo book.
Example of Bingo Book

Identify horizontal and vertical lines to find boxes

I then used OpenCV2 to find horizontal lines and vertical lines.
Horizontal Lines Vertical Lines

Combine images

I combine the vertical and horizontal images together to find all boxes on the sheet.
I then overlay this image with the original to get all of the numbers with thier boxes.
Horizontal Lines Horizontal Lines

I then extract each of these boxes

I used Googles Tesseract OCR to store all numbers in the boxes in an object
I store these numbers in a House object, then each these House objects is stores in a Page object, then these Page objects are stored ultimatly in a Game object. This gives the structure that a Game can contain multiple Pages and a Page can contain multiple Houses.
This adds the functionality to play multiple Pages for one game.

About

Using computer vision to read a bingo book and be able to play a full bingo game. Playing your book for you.

Resources

Stars

Watchers

Forks

Languages