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.
 
DLL_PUBLIC size_t page_from_raw_bytes (ImageDescriptor *descriptors, size_t descriptors_size, 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.
 
DEPRECATED DLL_PUBLIC size_t page_fast (const char *image_path, wchar_t *buffer, size_t buffer_size)
 Optical character recognition image. Doesn't use automatic text areas detecting and skew correction. Allowed formats is PNG, JPG, BMP. Buffer allocated by the caller. If the buffer is null, the function returns the required buffer size.
 
DEPRECATED DLL_PUBLIC size_t page_fast_from_raw_bytes (ImageDescriptor *descriptors, size_t descriptors_size, wchar_t *buffer, size_t buffer_size)
 Optical character recognition image. Doesn't use automatic text areas detecting and skew correction. Allowed formats is PNG, JPG, BMP. Buffer allocated by the caller. If the buffer is null, the function returns the required buffer size.
 
DLL_PUBLIC size_t page_settings (const char *image_path, wchar_t *buffer, size_t buffer_size, RecognitionSettings settings)
 Optical character recognition image from file with recognition settings Allowed formats is PNG, JPG, BMP. Buffer allocated by the caller. If the buffer is null, the function returns the required buffer size.
 
DLL_PUBLIC size_t page_settings_from_raw_bytes (ImageDescriptor *descriptors, size_t descriptors_size, wchar_t *buffer, size_t buffer_size, RecognitionSettings settings)
 Optical character recognition image from file with recognition settings Allowed formats is PNG, JPG, BMP. Buffer allocated by the caller. If the buffer is null, the function returns the required buffer size.
 
DLL_PUBLIC size_t page_tiff (const char *image_path, wchar_t *buffer, size_t buffer_size, RecognitionSettings settings)
 Optical character recognition image from file with recognition settings Allowed formats is multi-page TIFF, TIF. Buffer allocated by the caller. If the buffer is null, the function returns the required buffer size.
 
DLL_PUBLIC size_t pages_multi (const char *path_to_recognize, wchar_t *buffer, 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.
 
DLL_PUBLIC size_t pages_multi_array (const char **files, size_t files_number, wchar_t *buffer, size_t buffer_size, RecognitionSettings settings)
 Recognizes multiple images from vector.
 
DLL_PUBLIC size_t pages_multi_array_from_raw_bytes (ImageDescriptor *descriptors, size_t descriptors_size, wchar_t *buffer, size_t buffer_size, RecognitionSettings settings)
 Recognizes multiple images from vector.
 
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. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/). (Linux)
 
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.
 
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.
 
DLL_PUBLIC size_t page_all_from_raw_bytes (ImageDescriptor *descriptors, size_t descriptors_size, 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.
 
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.
 
DLL_PUBLIC size_t page_rect_from_raw_bytes (const ImageDescriptor &descriptor, 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.
 
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.
 
DLL_PUBLIC size_t page_abc_from_raw_bytes (ImageDescriptor *descriptors, size_t descriptors_size, 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.
 
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.
 
DLL_PUBLIC size_t page_abc_all_from_raw_bytes (ImageDescriptor *descriptors, size_t descriptors_size, 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.
 
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.
 
DLL_PUBLIC size_t page_rect_abc_from_raw_bytes (const ImageDescriptor &descriptor, 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.
 
DLL_PUBLIC size_t page_characters_choices (const char *image_path, wchar_t buffer[][6], size_t buffer_size, RecognitionSettings settings)
 A set of characters found by the recognition algorithm and arranged in descending order of probability.
 
DLL_PUBLIC size_t page_characters_choices_from_raw_bytes (const ImageDescriptor &descriptor, wchar_t buffer[][6], size_t buffer_size, RecognitionSettings settings)
 A set of characters found by the recognition algorithm and arranged in descending order of probability.
 
DLL_PUBLIC void preprocess_page_and_save (const char *image_path, const char *save_image_path, filter_operation *filters, size_t filters_number)
 Use image preprocessing to improve the accuracy of OCR. Create an array of filters that will be applied to the input image in the order you specify. example to create filters: filter_operation f[4]; f[0] = (OCR_IMG_Resize(1000, 1000)); f[1] = (OCR_IMG_Scale(0.3)); f[2] = (OCR_IMG_Invert()); f[3] = (OCR_IMG_Binarize()); You don't need all of them. Set only what you need.
 
DLL_PUBLIC void preprocess_page_and_save_from_raw_bytes (const ImageDescriptor &descriptor, const char *save_image_path, filter_operation *filters, size_t filters_number)
 Use image preprocessing to improve the accuracy of OCR. Create an array of filters that will be applied to the input image in the order you specify. example to create filters: filter_operation f[4]; f[0] = (OCR_IMG_Resize(1000, 1000)); f[1] = (OCR_IMG_Scale(0.3)); f[2] = (OCR_IMG_Invert()); f[3] = (OCR_IMG_Binarize()); You don't need all of them. Set only what you need.
 
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.
 
DLL_PUBLIC size_t line_from_raw_bytes (const ImageDescriptor &descriptor, 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.
 
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.
 
DLL_PUBLIC size_t line_abc_from_raw_bytes (const ImageDescriptor &descriptor, 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.
 
DLL_PUBLIC void set_license (const char *licenseFullPath)
 Set license to library. License is XML file.
 
DLL_PUBLIC bool get_state ()
 Check license.
 
DLL_PUBLIC double get_skew (const char *image_path)
 Returns the skew angle in degrees.
 
DLL_PUBLIC double get_skew_from_raw_bytes (const ImageDescriptor &descriptor)
 Returns the skew angle in degrees.
 
DLL_PUBLIC double get_skew_from_uri (const char *uri)
 Returns the skew angle in degrees. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/). (Linux)
 
DLL_PUBLIC size_t get_rectangles_number (const char *image_path, areas_type type, bool all_image)
 Detects the number of text areas in the image. Automatic image skew correction is not applied.
 
DLL_PUBLIC size_t get_rectangles_number_from_raw_bytes (const ImageDescriptor &descriptor, areas_type type, bool all_image)
 Detects the number of text areas in the image. Automatic image skew correction is not applied.
 
DLL_PUBLIC size_t get_rectangles_number_from_uri (const char *uri, areas_type type, bool all_image)
 Detects the number of text areas in the image. Automatic image skew correction is not applied. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/). (Linux)
 
DLL_PUBLIC size_t get_rectangles (const char *image_path, areas_type type, bool all_image, rect *buffer, size_t buffer_size)
 Detects the text areas in the image. Automatic image skew correction is not applied.
 
DLL_PUBLIC size_t get_rectangles_from_raw_bytes (const ImageDescriptor &descriptor, areas_type type, bool all_image, rect *buffer, size_t buffer_size)
 Detects the text areas in the image. Automatic image skew correction is not applied.
 
DLL_PUBLIC size_t get_rectangles_from_uri (const char *uri, areas_type type, bool all_image, rect *buffer, size_t buffer_size)
 Detects the text areas in the image. Automatic image skew correction is not applied. This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/). (Linux)
 
DLL_PUBLIC size_t recognize_receipt (const char *filePath, wchar_t *buffer, size_t buffer_size, RecognitionSettings settings)
 Recognizes a special type of image - cash receipts Allowed formats is PNG, JPG, BMP. Buffer allocated by the caller. If the buffer is null, the function returns the required buffer size.