Tag Archive: opencv


Robot playing 2048


We recently did a demo during free time. It was nothing short of beating the popular 2048 game. See it in action below

Continue reading

HSV Pixel Values in OpenCV


HSV color space is more often used in machine vision owing to its superior performance compared to RGB color space in varying illumination levels. Often thresholding and masking is done in HSV color space. So it is very important to know the HSV values of the color which we want to filter out. HSV color space of  OpenCV is a bit complicated than other software programmes like Gimp, Photoshop etc.So  I have written a small python script to grab frames from a camera, and print the HSV value of the pixel under the cursor

Screenshot

Continue reading

OpenCV SURF Robot


I built a small robot to detect an object using image processing techniques and when the object is found, it goes near to it and picks it up.

Continue reading

SURF in OpenCV


Let us  now see what is SURF.

SURF Keypoints of my palm

SURF Keypoints of my palm

Continue reading


The steps for training a haar classifier and detecting an object can be divided into :

  • Creating the description file of positive samples
  • Creating the description file of negative samples
  • Packing the positive samples into a vec file
  • Training the classifier
  • Converting the trained cascade into a xml file
  • Using the xml file to detect the object

Let us see all these steps in detail. Continue reading


OPENCV is an open source image processing library developed by Intel and currently maintained by WillowGarage. It is very powerful and can be coded in C/C++ or Python. I chose C, as it is more comfortable to me.

Bottle Detection

Bottle Detection

Continue reading