Skip to content
forked from rmmh/pokr

OCR for the TwitchPlaysPokemon stream

Notifications You must be signed in to change notification settings

rctgamer3/poketext

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##PokéTEXT

An OCR script for the TwitchPlaysPokemon stream.

##Installation: ####Mac

  1. $ brew install ffmpeg
  2. $ brew tap homebrew/science
  3. $ brew install opencv --with-ffmpeg

####Debian/Ubuntu

  1. $ sudo apt-get install python-opencv

####Common

  1. pip install -r ./requirements.txt

##Usage ocr.py [--show] : runs, displaying current status on stdout and dumping frames to frames.log

PokéTEXT can also be used as a module:

import poketext

def printer(data):
    print data['text']

proc = poketext.StreamProcessor()
proc.add_handler(printer)
proc.run()

Handlers receive a dict with 'text' as a string of the recognized characters, and 'frame' as the current image from the stream.

Releases

No releases published

Packages

No packages published

Languages

  • Python 80.0%
  • C 19.8%
  • Makefile 0.2%