Skip to content

An playing cards recognition experiment with WebRTC, Websockets, OpenCV and Python.

Notifications You must be signed in to change notification settings

superkartoffel/playingcards-recognition-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Playing card recognition with webrtc, websockets and opencv

This is a webrtc, websockets and opencv experiment based on an experiment during a athega hackday.

How does it work?

Frames are captured from the web camera via webrtc and sent to the server over websockets. On the server the frames are processed with opencv and a json response is sent back to the client.

Sample json response:

  {
    "cards": {
      0: {
          "color": "hearts"
          "value": "king"
      }
      1: {
          "color": "spades"
          "value": "ace"
      }
    }
  }

Running it

Make sure the dependencies are met.

Run with python server.py and browse to http://localhost:8888

About

An playing cards recognition experiment with WebRTC, Websockets, OpenCV and Python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 71.9%
  • CoffeeScript 25.3%
  • CSS 2.8%