Until now I don’t kow what your end goal is. Your code looks weird to me, and I can’t test this lib on my tablet. But then I remembered a great series of videos about Computer Vision by Daniel Shifman There he teaches how to write your own code for blob detections and others video related things. He is the best teacher I know of. Fun, detailed, objective, understandable etc, etc. As you see I am really a fan. Here is the link to the videos.
Today I tested his motion detection code, but I had to adapt it for Android with the Ketai library. Below as you see, the result on my tablet.
1 Like