疑似小米3真机曝光 看小米手机酷玩激光虚拟键盘

OFweek激光网 中字

  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);

声明: 本网站所刊载信息,不代表OFweek观点。刊用本站稿件,务经书面授权。未经授权禁止转载、摘编、复制、翻译及建立镜像,违者将依法追究法律责任。
侵权投诉

下载OFweek,一手掌握高科技全行业资讯

还不是OFweek会员,马上注册
打开app,查看更多精彩资讯 >
  • 长按识别二维码
  • 进入OFweek阅读全文
长按图片进行保存