Skip to content

fixes for tesseract 3.04 #51

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/tesseract/c/baseapi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ module BaseAPI
}

cpp.function %{
void set_image (TessBaseAPI* api, const Pix* pix) {
void set_image (TessBaseAPI* api, Pix* pix) {
api->SetImage(pix);
}
}
Expand All @@ -179,13 +179,13 @@ module BaseAPI
}

cpp.function %{
bool process_pages (TessBaseAPI* api, const char* filename, STRING* output) {
bool process_pages (TessBaseAPI* api, const char* filename, TessResultRenderer* output) {
return api->ProcessPages(filename, NULL, 0, output);
}
}, blocking: true

cpp.function %{
bool process_page (TessBaseAPI* api, Pix* pix, int page_index, const char* filename, STRING* output) {
bool process_page (TessBaseAPI* api, Pix* pix, int page_index, const char* filename, TessResultRenderer* output) {
return api->ProcessPage(pix, page_index, filename, NULL, 0, output);
}
}, blocking: true
Expand Down
2 changes: 1 addition & 1 deletion lib/tesseract/c/iterator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ module Iterator
Image get_image (PageIterator* it, PageIteratorLevel level, int padding) {
Image result;

result.pix = it->GetImage(level, padding, &result.x, &result.y);
result.pix = it->GetImage(level, padding, result.pix, &result.x, &result.y);

return result;
}
Expand Down