-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
alts: Added alternative function calls
- Loading branch information
1 parent
0215e9c
commit 51f5297
Showing
5 changed files
with
38 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,8 @@ vesseract | |
*.so | ||
*.dylib | ||
*.dll | ||
|
||
# Tesseract | ||
*.txt | ||
*.xml | ||
*.xml | ||
*.box |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module vesseract | ||
|
||
// Variant of image_to_alto_xml() but don't need extra parameters | ||
[inline] | ||
pub fn image_to_alto_xml_path(image_path string) ?string { | ||
return image_to_alto_xml(image: image_path, lang: 'eng', args: '') | ||
} | ||
|
||
// Variant of image_to_string, only a file path is required | ||
[inline] | ||
pub fn image_to_string_path(filepath string) ?string { | ||
return image_to_string(image: filepath, lang: 'eng', args: '') | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters