A python app that uses the feed from a webcam to send commands to a video game emulator. The output is also automatically streamed to Twitch.tv.
Based on WhereIsTheFish which has been popularly implemented in FishPlaysPokemon.
This project is in cooperation with Alex Leavitt's uscplayspokemon.
- Make sure openCV is installed on your system
- Start up VBA with your desired ROM
- Set
Options -> Emulator -> Show speed -> None
- Run
python lib/run.py
See the default configuration that we provide. It has these sections:
- Includes descriptors for a box (
TOP
,LEFT
,BOTTOM
,RIGHT
) CAPTURE
is the capture device (can be rtsp protocol too)MIN_BLOB_WIDTH
,MIN_BLOB_HEIGHT
filter out blobs in the scanner
- Includes descriptors for a box (
TOP
,LEFT
,BOTTOM
,RIGHT
) WINDOW_NAME
the X-window name for the emulator program (we use VBA)LOGDIR
directory for logs relative to the lib directory
- Includes descriptors for a box (
TOP
,LEFT
,BOTTOM
,RIGHT
) MAXLEN
is the length of the key press historySTEP
is the pixel width of the keys when rendered in the keylog
- Includes descriptors for a box (
TOP
,LEFT
,BOTTOM
,RIGHT
) TEXT
is the text that serves as a title and will be appended with a timestamp
- Includes descriptors for a box (
TOP
,LEFT
,BOTTOM
,RIGHT
)
FFMPEG_BIN
is the binary for ffmpeg as you would call it in your terminalFRAMES_PER_SECOND
is the rate set for ffmpegOUTPUT_URI
is usually anrtmp
protocol URI from TwitchKEY
is appended to theOUTPUT_URI
when broadcasting
- Fix the no emulator error
- Fix the no log dir error
- Make the x11grab automatically resize the emulator capture to fit the emulator box on the stage
- Add timestamps to log
- Add runtime option for timer init