Giter Site home page Giter Site logo

hlin117 / mahjongcv Goto Github PK

View Code? Open in Web Editor NEW
20.0 20.0 3.0 40.67 MB

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.

Python 100.00%

mahjongcv's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

mahjongcv's Issues

Removing shadows

Because of the way our algorithm is implemented, the shadows of the tiles in the pictures augment the size of the bounding boxes around the tiles. This will cause some tiles to be accidentally merged together.

Implement scaling of tiles

Pictures of larger tiles are not differentiated by pictures of smaller tiles. Hence, our segmentation algorithm only works for tiles of a fixed size in the picture.

Box distance algorithm

It's still buggy. Distances are not symmetric; we might have the case when dist(box1, box2) > dist(box2, box1)

That being said, the smaller distance is usually correct anyways, and since we go about calculating every distance combination anyways, it doesn't affect the output of the program.

Removing shadows

Because of the way our algorithm is implemented, the shadows of the tiles in the pictures augment the size of the bounding boxes around the tiles. This will cause some tiles to be accidentally merged together.

Command line inputs

The program should receive a command line argument with the image whose tiles should be identified.

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.