Using some basic image processing on OpenCV, I was able to convert the image to greyscale, resize it to 128x64 resolution and threshold it into the required Black and White format. I downloaded a movie clip from YouTube and saved fed it to the program and it worked!
The only issue I'm facing is the extremely slow frame rate but apart from that, it's a nifty tool that does serve its' purpose very well. I'm looking for ways to optimize the process and increase the frame rate. I am open to suggestions and hoping you all like