疑似小米3真机曝光 看小米手机酷玩激光虚拟键盘
key g_keymap[] =
{
{'4',525,350,588,419},
{'5',442,345,504,414},
{'6',360,339,422,408},
{'7',277,332,342,404},
{'8',198,327,259,399},
{'9',121,320,174,389},
{'0',41, 318,94, 383},
{'E',528,274,590,337},
{'R',443,267,507,332},
{'T',359,263,428,327},
{'Y',280,259,344,321},
{'U',199,251,261,315},
{'I',119,246,179,307},
{'O',41, 240,96, 301},
{'D',504,203,567,259},
{'F',424,199,489,257},
{'G',348,194,410,251},
{'H',266,187,329,245},
{'J',192,183,251,241},
{'K',117,178,171,236},
{'L',42 ,174,92, 229},
{'X',543,144,605,197},
{'C',467,139,530,191},
{'V',392,135,457,190},
{'B',316,128,377,181},
{'N',242,124,299,176},
{'M',171,118,225,172},
{'<',98, 114,149,166},
{'>',26, 108,73, 159},
{'_',182,62, 531,127},
};
int g_key_num = sizeof(g_keymap)/sizeof(key);
int main()
{
CvTracks tracks;
cvNamedWindow("red_object_tracking", CV_WINDOW_AUTOSIZE);
CvCapture *capture = cvCaptureFromCAM(0);
cvGrabFrame(capture);
IplImage *img = cvRetrieveFrame(capture);
CvSize imgSize = cvGetSize(img);
IplImage *frame = cvCreateImage(imgSize, img->depth, img->nChannels);
IplConvKernel* morphKernel = cvCreateStructuringElementEx(5, 5, 1, 1, CV_SHAPE_RECT, NULL);
图片新闻
发表评论
请输入评论内容...
请输入评论/评论长度6~500个字
暂无评论
暂无评论