mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 20:59:36 +08:00
Remove unneeded 'struct' from TessBaseAPI::GetHOCRText (issue #414)
It conflicts with a previous 'class' declaration for ETEXT_DESC: include/tesseract/baseapi.h:594:21: Struct 'ETEXT_DESC' was previously declared as a class Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
a6871a8c91
commit
caffb3133b
@ -1457,7 +1457,7 @@ char* TessBaseAPI::GetHOCRText(int page_number) {
|
||||
* GetHOCRText
|
||||
* STL removed from original patch submission and refactored by rays.
|
||||
*/
|
||||
char* TessBaseAPI::GetHOCRText(struct ETEXT_DESC* monitor, int page_number) {
|
||||
char* TessBaseAPI::GetHOCRText(ETEXT_DESC* monitor, int page_number) {
|
||||
if (tesseract_ == NULL ||
|
||||
(page_res_ == NULL && Recognize(monitor) < 0))
|
||||
return NULL;
|
||||
|
@ -591,7 +591,7 @@ class TESS_API TessBaseAPI {
|
||||
* cancel the recognition
|
||||
* receive progress callbacks
|
||||
*/
|
||||
char* GetHOCRText(struct ETEXT_DESC* monitor, int page_number);
|
||||
char* GetHOCRText(ETEXT_DESC* monitor, int page_number);
|
||||
|
||||
/**
|
||||
* Make a HTML-formatted string with hOCR markup from the internal
|
||||
|
Loading…
Reference in New Issue
Block a user