Monday, July 27th, 2009, 924 days ago
HSV.cpp – hands detection demonstration
This is a screenshot of demonstration hands detection using the code hsv.cpp. Comparing with the old version within black background and green contours lines, this version actually is based on that. Besides, two functions are added in this new version: using rectangle to locate the hands location, and using eslipe to illustrate the angle of hands motion.
Related post may interest you
Hand gesture detection and recognition using openCV
POSTS MAY BE OF INTEREST
- The error of ‘VIDIOC_QUERYMENU: Invalid argument’
- HIGHGUI ERROR: V4L: index 0 is not correct
- Capturing images from webcams using openCV in Ubuntu 11.04
- Fixing ‘[libavutil/libavutil.so.51] Error 1′ in ffmpeg make for openCV 2.3.1 install
- Installing openCV in Ubuntu with pandaboard part 5 – running openCV 2.3.1 examples
- Installing openCV in Ubuntu with pandaboard part 4 – compiling openCV 2.3.1
- Installing openCV in Ubuntu with pandaboard part 3 – the network proxy
- Installing openCV in Ubuntu with pandaboard part 2
- Installing openCV in Ubuntu with pandaboard part 1
- OpenCV mailing list – a collection of resources
- A review of people counting using openCV part 2
- A review of people counting using openCV part 1
- Using webcams/motion sensing cameras in OMAP-based pandaboard
- Doing openCV in pandaboard 3 – successful installation
- Doing openCV in Pandaboard 2 – installing ubuntu 11.04


I have already seen it somethere…
Zoran
hi
i would like to detect the gesture of the hand such as (you shown above) during motion to trigger some other input such as (to open a folder).
i had exceuted your code but i dont know, how to make to detect my gesture and to trigger some other actions (to open folder)
my email id is:infoquarks@gmail.com
Hi, why are you using BGR values in hsv_min & hsv_max??
CvScalar hsv_min = cvScalar(0, 30, 80, 0);
CvScalar hsv_max = cvScalar(20, 150, 255, 0);
moreover, whats the need to convert the image from BGR to HSV ?
no sure hsv format images have to be used, but using hsv image is relatively easier to identify color ranges. hope this helps.
plz sir refer to this link
http://atmaja.tk/
here video 2 run succesfully from opencv display video program but video 1 does not.
here is display video program:
//———————————————— To display to a video in a Window————————————————-//
#include
#include “cv.h”
#include “highgui.h”
int main(){
const char* file=”H:\\seq3.avi”;
cvNamedWindow(“w”,1);
// CvCapture* capture=cvCaptureFromAVI(“video.avi”);
CvCapture* capture=cvCreateFileCapture(file);
IplImage* frame=0;
while(1)
{
frame=cvQueryFrame(capture);
/*
// either use
frame=cvQueryFrame(capture);
// or
int i=cvGrabFrame(capture);
printf(“cvGrabFrame value is %d \n”,i);
frame=cvRetrieveFrame(capture );
*/
if(!frame)
{
printf(“no input \n”);
break;
}
cvShowImage(“w”,frame);
char c=cvWaitKey(33);
if(c==27) break;
}
cvReleaseCapture( &capture );
cvDestroyWindow(“w”);
system(“pause”);
return 0;
}
try “cvCaptureFromFile()”
Hi im newbie in OpenCv/image processing, i have a code here using visual c++ and opencv, i need to display the video in a new form in mfc. can anyone please guide me what to do first?. thank you and godbless.
http://www.andol.info/research/1601.htm