Git Product home page Git Product logo

hexaxand0's Introduction

HexaXAnd)

Youtube demo video

Screens

Demo Image

Demo Image

Demo Image

Idea

Playing X and 0 with a robot.

Place the playing board somewhere on a wall (in the reaching distance of the robot), take turns and try to win the game

How does it work

I am using OpenCV in order to process the image and get bounding boxes for the game board itself and also for each of the smaller 9 squares (where X or 0 would be written).

In more details, the image processing pipeline looks like this:

  1. Inverting pixels
  2. Applying threshold
  3. Computing contours
  4. Filtering contours
    • Approximating the contours (to remove extra edges)
    • Keeping only the contours that have 4 edges
    • Looking for a bigger contour that includes 9 sub contours (game board with all the 9 smaller squares)
  5. Iterating through contours and looking at the pixels colours to determine if a square is empty, contains and X or 0 (the robot and the player are going to use different colours)

Robot writing

I have mounted a marker on the robot's head and using a built in distance sensor it will approach the wall until the tip of the marker touches it, and then it nod its head or tilt its body to make an X

Problem: the distance to the wall must be very precise, otherwise the marker would just bend

Technologies used

  • GO
  • OpenCV

The Project was realised in the 3rd year of University

hexaxand0's People

Contributors

msorins avatar

Watchers

James Cloos avatar  avatar

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.