提交 1ad70ea8 编写于 作者: Z zdenop@gmail.com

fixing issues 518 and 521

git-svn-id: https://tesseract-ocr.googlecode.com/svn/trunk@596 d0cd1f9f-072b-0410-8dd7-cf729c803f20
上级 568cbe6d
......@@ -1310,7 +1310,7 @@ bool TessBaseAPI::GetTextDirection(int* out_offset, float* out_slope) {
BLOCK_IT block_it(block_list_);
block_it.move_to_first();
ROW_LIST* rows = block_it.data()->row_list();
if (rows->length() != 1) {
if (rows->length() < 1) {
return false;
}
......
......@@ -102,10 +102,10 @@ int main(int argc, char **argv) {
tesseract::TessBaseAPI api;
api.SetOutputName(output);
api.SetPageSegMode(pagesegmode);
api.Init(argv[0], lang, tesseract::OEM_DEFAULT,
&(argv[arg]), argc - arg, NULL, NULL, false);
api.SetPageSegMode(pagesegmode);
tprintf(_("Tesseract Open Source OCR Engine v%s with Leptonica\n"),
tesseract::TessBaseAPI::Version());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册