⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 runshaperec.h

📁 An open source handwriting recongnition package!!!
💻 H
字号:
/*****************************************************************************************
* Copyright (c) 2007 Hewlett-Packard Development Company, L.P.
* Permission is hereby granted, free of charge, to any person obtaining a copy of 
* this software and associated documentation files (the "Software"), to deal in 
* the Software without restriction, including without limitation the rights to use, 
* copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the 
* Software, and to permit persons to whom the Software is furnished to do so, 
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 
* PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE 
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
*****************************************************************************************/

/************************************************************************
 * SVN MACROS
 *
 * $LastChangedDate: 2008-09-02 12:09:40 +0530 (Tue, 02 Sep 2008) $
 * $Revision: 682 $
 * $Author: sharmnid $
 *
 ************************************************************************/
/************************************************************************
 * FILE DESCR: Header file for RunShaperec tool
 *
 * CONTENTS:
 *  main
 *
 * AUTHOR:     Thanigai Murugan K
 *
 * DATE:       August 30, 2005
 * CHANGE HISTORY:
 * Author       Date            Description of change
 ************************************************************************/
#ifndef __RUNSHAPEREC_H__
#define __RUNSHAPEREC_H__

#pragma  once
#ifdef _WIN32
#include <windows.h>
#else
#include <dlfcn.h>
#endif

#include "LTKMacros.h"
#include "LTKInc.h"
#include "LTKTypes.h"
#include "LTKLoggerUtil.h"

// Class forward declarations 

class LTKLipiEngineInterface;
class LTKShapeRecognizer;
class LTKPreprocessorInterface;
class LTKShapeFeatureExtractor;
class LTKOSUtil;

// List of all possible command line options
#define OPTION_ADAPT "-adapt"
#define OPTION_TRAIN "-train"
#define OPTION_TEST "-test"
#define OPTION_PERF "-perf"
#define OPTION_PROJECT "-project"
#define OPTION_PROFILE "-profile"
#define OPTION_OUTPUT "-output"
#define OPTION_NUMCHOICES "-numchoices"
#define OPTION_HEADERINFO "-h"
#define OPTION_LOGFILE "-logfile"
#define OPTION_VERSION "-ver"
#define OPTION_HELP1 "/?"
#define OPTION_HELP2 "-help"
#define OPTION_COMMENT "-comment"
#define OPTION_DATASET	"-dataset"
#define OPTION_LOGLEVEL "-loglevel"
#define LIPI_ROOT "-lipiroot"
#define OPTION_CONFTHRESHOLD "-confthreshold"
#define DEFAULT_PROFILE "default"
#define MIN_ARGS 2

#define MAX_PROJECT_NAME 128
#define MAX_PROFILE_NAME 128

#ifndef _WIN32
	#define MAX_PATH 1024
#endif

#define SUPPORTED_MIN_VERSION   "2.1.0"

void printUsage();
int getIntValue(int index, int* iValue);
int getFloatValue(int index, float* fValue);
int getStringValue(int index, char* strOption);
int ValidateCommandLineArgs();
int processCommandLineArgs();
int evaluateShapeRecognizer(LTKShapeRecognizer **pReco);
int startLogging(const string& logFileName, const LTKLogger::EDebugLevel debugLevel);
int CheckForOption(char* strVal);
int getAbsolutePath (string &pathName, const string lipiRootPath);
int cleanUp(LTKShapeRecognizer** pReco, LTKOSUtil* utilPtr);
#ifdef _INTERNAL
	int evaluateAdapt(LTKShapeRecognizer **pReco, const string strProjectName);
#endif

#endif //#ifndef __RUNSHAPEREC_H__

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -