手写识别是模式识别中研究得一个热点

源代码在线查看: zones.cc

软件大小: 6112 K
上传用户: liu2237329
关键词: 识别 模式识别
下载地址: 免注册下载 普通下载 VIP

相关代码

				#include "HWRawDataC.hh"				#include 				#include 				#include 								int main(int argc, char *argv[])				{				  if (argc < 2 || argc > 3)				    {				      cout 				      cout 				      cout 				      cout 				      cout 				      cout 				      return 1;				    }								  const long Threshold = atoi(argv[1]);								  int EventBase = 6;				  if (argc == 3) EventBase = atoi(argv[2]);								  long LastY = -1;				  long PenUp = 1;								  HWHeaderC Header;				  cin >> Header;				  cout 								  while (1)				    {				      HWRawDataC Rec;				      cin >> Rec;				      if (!cin) break;				      cout 								      if (PenUp) LastY = -1;				      if (Rec.Type == PEN_UP) PenUp = 1;				      if (Rec.Type == PEN_DOWN) PenUp = 0;								      if (Rec.Type != 0) 					continue;				      				      if (LastY != -1 && LastY  Threshold) 					{					  Rec.Type = EventBase;					  cout 					}				      else if (LastY != -1 && LastY > Threshold && Rec.DataPoint.YPos 					{					  Rec.Type = EventBase+1;					  cout 					}								      LastY = Rec.DataPoint.YPos;				    }				  return 0;				}							

相关资源