Skip to content

The objective of this project is to be able to segment mahjong tiles from photos, and identify them. To find regions of interest that contain a mahjong tile, we use a series of bounding boxes, and to identify the tile in a regions of interests, we use a method involving homographies.

Notifications You must be signed in to change notification settings

hlin117/mahjongCV

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This is a project me and my friend Rahul Datta contributed to while taking our graduate level computer vision class. It implements a system that allows one to identify mahjong tiles from a given image.

We built our system over the computer vision API, OpenCV.

Methods

To segement the images, we used a bounding box method. Essentially, two tiles could be segmented if it was possible to draw a bounding box around each one of them.

After segmentation, we found a homography of best fit between an image I and a set of corresponding images for other tiles.

Installation

This is largly untested, but I put all of the dependences into requirements.txt. To install these dependencies, run

sudo pip install -r requirements.txt

You might run into other installation errors.

About

The objective of this project is to be able to segment mahjong tiles from photos, and identify them. To find regions of interest that contain a mahjong tile, we use a series of bounding boxes, and to identify the tile in a regions of interests, we use a method involving homographies.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages