OCR Xpress for Linux - API Reference > OCR Xpress for Linux API Reference > Functions Reference > Result Handling Functions > OCRX_free_document_result |
Frees a document result.
Name | Type | Description |
documentResult | OCRX_Result* | Document result to free. |
OCRX_Status – Specifies whether an error occurred and, if so, specifies which error and any relevant details.
Copy Code
|
|
---|---|
#include “ocrxpress.h” intptr_t dib = 0; OCRX_RecognitionParameters params = OCRX_DefaultRecognitionParameters; OCRX_Result documentResult = 0; OCRX_set_solution_name(“solutionName”); OCRX_set_solution_key(0x00000001, 0x00000002, 0x00000003, 0x00000004); OCRX_set_oem_license_key(“oemLicenseKey”); OCRX_load_file(“/home/user/image.bmp”, &dib); OCRX_recognize_to_memory(params, dib, &documentResult); OCRX_free_dib(dib); OCRX_free_document_result(&documentResult); |