Please help me with building a paper tape reader (punched tape)

I don't know how I could decode the video feed.

Use Processing:-

It's free, runs on any platform and has an extensive video library.