I wanted to put up a quick note on how to use Kalman Filters in OpenCV 2.2 with the C++ API, because all I could find online was using the old C API. Plus the kalman.cpp example that ships with OpenCV is kind of crappy and really doesn't explain how to use the Kalman Filter.
I'm no expert on Kalman filters though, this is just a quick hack I got going as a test for a project. It worked, so I'm posting the results.
Continue reading "Simple Kalman filter for tracking using OpenCV 2.2 [w/ code]"
Just sharing a snippet of code. Part of a project I'm doing, I need to analyse the links in the Wikipedia corpus. While using the API is one solution, it doesn't retain the order of where links appear in the page. It also returns links that are not part of the main text, which makes the linkage DB very cluttered.
So, I set out to parse the raw MediaWiki format all Wikipedia articles are written in, to get only the relevant links and in order. I call them contextual because they live inside the text and have context.
Initially I used string matching, and other complex string scraping parsing methods. It was a bust. There are too many end-cases to deal with. That is when I discovered PyParsing, the excellent parsing library. It did the job, and here are the results.
Continue reading "Getting all the links from a MediaWiki format using PyParsing"
Number Saver has been around for a while, but when I got around to it, it was always about the features. I felt the time is right to polish (even a bit) my Android UI skills and try and make it. Continue reading "Number Saver gets a new look"
Ever wanted to try and download an mp3 file at your workplace, but couldn't because corporate firewall policy was to block every url ending with the .mp3 prefix?
Continue reading "UnderGet – Download blocked content"
I would (again) like to publicly congratulate my friend Roy, who got accepted for a PhD program in
Media Arts and Sciences, at the MIT Media Lab.
I am very happy the people at MIT was able to see your great talent.
I'm sure this program will get the best out of you, and that you will have very intense, interesting and exciting time
I've seen some examples of people who build motion parallax capable screens using Kinect, but as usual - they don't share the code. Too bad.
Well this is your chance to see how it's done, and it's fairly simple as well.
Continue reading "A motion parallax screen using Kinect [w/ code]"