Posts

Showing posts with the label OpenCV

Program of the Week 04 - Color

This has been a long overdue post. Thanks to my move and a lot of other things, despite trying my level best into putting out a post, I was not able to do so. This post would've possibly come in next week, but since you are reading this, it is coming out today. I just wanted to get one out so that I don't break my flow or more like I go back into the vicious cycle of okay maybe next week. With that said, this week again I'll be doing something with opencv. Not because I have planned it or anything, I simply had a small program ready. When I first got into opencv, after going through the basic open image, open video phase, I wanted to do some very basic color based object detection. It did start with basic detection of red color objects, green color objects and so forth. Slowly I started modifying it to allow me to select which color I wanted to detect the intensity levels and such. It had a whole bunch of controls on it. That time, I used to do it in C++ and EmguCV whic...

Program of the Week 03 - Motion Detection Using OpenCV

Image
So this week as promised last week I'll delve a bit into OpenCV. I've used OpenCV for object detection and facial recognition and detection in the past, but I would not like to go that deep into it for the time being. Today we'll take something much more simple, okay not as simple as opening up an image and changing some colors or say using grayscale or blurs and the like; I'll be doing a small program on motion detection using differences between frames and contours. Now contours are basically an outline that represent or bound a shape of an object. Contours will be used to pin point the motion happening in the image. This is a fairly simple example where I'll be using my webcam to basically detect some motion in the video feed. Before we do that, we'll apply some transformations to the incoming video frames and use these to detect motion. There are several programs for this already online, but I'll do this one here as a start. Code...