https://github.com/mcartmell/ruby-carddetect
A Ruby playing card detection (screen-scraping) library using OCR
https://github.com/mcartmell/ruby-carddetect
Last synced: 4 months ago
JSON representation
A Ruby playing card detection (screen-scraping) library using OCR
- Host: GitHub
- URL: https://github.com/mcartmell/ruby-carddetect
- Owner: mcartmell
- Created: 2013-04-28T11:55:53.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-04-28T12:27:52.000Z (about 12 years ago)
- Last Synced: 2025-01-10T09:13:20.955Z (5 months ago)
- Language: Ruby
- Homepage:
- Size: 109 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
#ruby-carddetect
Detects rank and suit of playing cards in an image using [ruby-vips](https://github.com/jcupitt/ruby-vips]) and [tesseract](https://github.com/meh/ruby-tesseract-ocr).
#example
```ruby
cards = CardDetect.get_cards("/some/image.png")
p cards
# ["6d", "10h", "Qh", "9h"]
```#TODO
* Work out how to greyscale an image in vips (convert is too slow)
* Detect different-sized cards (eg. hole cards)