aspose::ocr Namespace Reference

Functions

DLL_PUBLIC size_t page (const char *image_path, wchar_t *buffer, size_t buffer_size)
 Optical character recognition image with automatic detection of text areas and detecting, correct skew of the text. Allowed formats is PNG, JPG, BMP. Buffer allocated by the caller. If the buffer is null, the function returns the required buffer size. More...
 
DLL_PUBLIC size_t page_settings (const char *image_path, wchar_t *buffer, size_t buffer_size, RecognitionSettings settings)
 
DLL_PUBLIC size_t pages_multi (const char *path_to_recognize, wchar_t *result, size_t buffer_size, RecognitionSettings settings)
 Batch text recognition in several images packed in ZIP archive or images from folder Internal archives and folders are not supported Only PNG, JPG, BMP internal images are used for recognition from ZIP archive or from folder More...
 
DLL_PUBLIC size_t page_from_uri (const char *uri, wchar_t *buffer, size_t buffer_size, RecognitionSettings settings)
 Optical character recognition image from uri with reconition settings Allowed formats is PNG, JPG, BMP. Buffer allocated by the caller. If the buffer is null, the function returns the required buffer size. More...
 
DLL_PUBLIC void page_save (const char *image_path, const char *save_path, RecognitionSettings settings)
 Optical character recognition image from file with reconition settings. Allowed formats is PNG, JPG, BMP. Buffer allocated by the caller. If the buffer is null, the function returns the required buffer size. Saves the document in a plain text, PDF or Microsoft Word Document. More...
 
DLL_PUBLIC size_t page_all (const char *image_path, wchar_t *buffer, size_t buffer_size, bool correct_skew)
 Optical character recognition image without automatic detection of text areas Get all image as text area. Correct skew of the text according to parameter. Allowed formats is PNG, JPG, BMP. Buffer allocated by the caller. If the buffer is null, the function returns the required buffer size. More...
 
DLL_PUBLIC size_t page_rect (const char *image_path, wchar_t *buffer, size_t buffer_size, int x, int y, int w, int h)
 Optical character recognition image in the defined rectangle. Allowed formats is PNG, JPG, BMP. Buffer allocated by the caller. Skew alignment does not occur. If the buffer is null, the function returns the required buffer size. More...
 
DLL_PUBLIC size_t page_abc (const char *image_path, wchar_t *buffer, size_t buffer_size, const wchar_t *const alphabet)
 Optical character recognition image with automatic detection of text areas and detecting, correct skew of the text. Only allowed characters from the alphabet are recognized. Allowed formats is PNG, JPG, BMP. Buffer allocated by the caller. If the buffer is null, the function returns the required buffer size. More...
 
DLL_PUBLIC size_t page_abc_all (const char *image_path, wchar_t *buffer, size_t buffer_size, const wchar_t *const alphabet, bool correct_skew)
 Optical character recognition image without automatic detection of text areas Get all image as text area. Correct skew of the text according to parameter. Only allowed characters from the alphabet are recognized. If the buffer is null, the function returns the required buffer size. More...
 
DLL_PUBLIC size_t page_rect_abc (const char *image_path, wchar_t *buffer, size_t buffer_size, int x, int y, int w, int h, const wchar_t *const alphabet)
 Optical character recognition image in the defined rectangle. Allowed formats is PNG, JPG, BMP. Only allowed characters from the alphabet are recognized. Skew alignment does not occur. Buffer allocated by the caller. If the buffer is null, the function returns the required buffer size. More...
 
DLL_PUBLIC size_t line (const char *image_path, wchar_t *buffer, size_t buffer_size)
 Optical character recognition image with one text line. Allowed formats is PNG, JPG, BMP. Buffer allocated by the caller. If the buffer is null, the function returns the required buffer size in wide characters. More...
 
DLL_PUBLIC size_t line_abc (const char *image_path, wchar_t *buffer, size_t buffer_size, const wchar_t *const alphabet)
 Optical character recognition image with one text line. Only allowed characters from the alphabet are recognized. Allowed formats is PNG, JPG, BMP. Buffer allocated by the caller. If the buffer is null, the function returns the required buffer size in wide characters. More...
 
DLL_PUBLIC void set_license (const char *licenseFullPath)
 Set license to library. License is XML file. More...
 
DLL_PUBLIC bool get_state ()
 Check license. More...
 
DLL_PUBLIC double get_skew (const char *image_path)
 Returns the skew angle in degrees. More...