Code Monkey home page Code Monkey logo

checkers's Introduction

checkers

Model a game of checkers from a live video feed where the camera is not static.

Algorithm

  1. Sharpen and equalize histogram to find corners more easily
  2. cv::findChessboardCorners and manually compute the exterior corners completeBoardCorners
  3. Median blur to obtain better color segmentation results
  4. Red segmentation, yellow segmentation
  5. Gaussian blur to obtain better results with the Hough Circle transform
  6. Apply the Hough Circle transform to the color segmentations to find all the red and yellow circles
  7. Check if the circles’ center is (reasonably) inside the 4 corners that define a game position

Development

$ cmake . && make
$ ./checkers bin/resized.mp4

checkers's People

Contributors

pkill37 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

checkers's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.