From 93da1a19b3897b32cb49ae67ccfd573594033624 Mon Sep 17 00:00:00 2001 From: Jiahui Yu Date: Tue, 15 Dec 2015 06:34:30 -0500 Subject: [PATCH] fix recog --- src/recog.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/recog.cpp b/src/recog.cpp index 34f83f7..cba1b8a 100644 --- a/src/recog.cpp +++ b/src/recog.cpp @@ -60,16 +60,16 @@ int main( int argc, char **argv ) { std::string resultString; - if (argc != 2 ) + if (argc != 3 ) { - printf("Wrong Usage, please use './recog filename'\n"); + printf("Wrong Usage, please use './recog database_file filename'\n"); return 1; } //ADD your database path here!!! - Initialize("YOUR_DATABASE_PATH"); + Initialize(argv[1]); /* printf("读文件,重建数据库. done.\n"); */ /* printf("Audio path is :%s\n",argv[1]); */ - ProcessSelelct(argv[1],resultString); + ProcessSelelct(argv[2],resultString); unInitialize(); return 0; }