The goal of this project is to show that RSA SecurID token codes can be read automatically.
This key fob had been put into a shoe box with webcam. The program runs web server to read digits from this particular setup:
In order to run the program you need:
- Python 2.7
- NumPy library
- OpenCV library with Python 2 bindings
- The Pyramid Web Framework v1.9.1
For MacOS you may install Homebrew and run the following commands:
brew install numpy
brew install opencv3
sudo pip install "pyramid==1.9.1"
You can start the web server from the root of the project:
python main.py
Now you can open your browser and visit home page of the project at http://localhost:8080
You may feed images from samples directory to read digits from images. The program is tuned to recognize only this particular setup, so it probably won't work for images taken from other RSA token setups.
In order to read other images you need to change global constants within ocr.py and update digits.png for your scale.