AsposeOCRInput Struct Reference

#include <C:/Users/figor/programming/project/aspose.ocr-for-cpp/doc_gen/aspose_ocr.h>

Public Attributes

const unsigned char * raw_data = NULL
 Input raw data in special format Input raw data in special format may represent: row_index 0 ... height column_index 0 ... width 1) RGB color model (channels_size = 3):
 
size_t height = 0
 Image height.
 
size_t width = 0
 Image width.
 
size_t raw_data_size = 0
 Size of "raw_data" field.
 
AsposeOCRRawDataType raw_data_type
 Represent input raw_data format: row_index 0 ... height column_index 0 ... width 1) RGB color model (channels_size = 3):
 
const char * url = NULL
 Null terminated string, that describe file URL (file system path).
 

Member Data Documentation

◆ height

size_t AsposeOCRInput::height = 0

Image height.

◆ raw_data

const unsigned char* AsposeOCRInput::raw_data = NULL

Input raw data in special format Input raw data in special format may represent: row_index 0 ... height column_index 0 ... width 1) RGB color model (channels_size = 3):

  • raw_data[row_index * width * 3 + column_index * 3 + 0] = RED
  • raw_data[row_index * width * 3 + column_index * 3 + 1] = GREEN
  • raw_data[row_index * width * 3 + column_index * 3 + 2] = BLUE 2) Grayscale (channels_size = 1):
  • raw_data[row_index * width + column_index] = grayscale value

◆ raw_data_size

size_t AsposeOCRInput::raw_data_size = 0

Size of "raw_data" field.

◆ raw_data_type

AsposeOCRRawDataType AsposeOCRInput::raw_data_type

Represent input raw_data format: row_index 0 ... height column_index 0 ... width 1) RGB color model (channels_size = 3):

  • raw_data[row_index * width * 3 + column_index * 3 + 0] = RED
  • raw_data[row_index * width * 3 + column_index * 3 + 1] = GREEN
  • raw_data[row_index * width * 3 + column_index * 3 + 2] = BLUE 2) Grayscale (channels_size = 1):
  • raw_data[row_index * width + column_index] = grayscale value

◆ url

const char* AsposeOCRInput::url = NULL

Null terminated string, that describe file URL (file system path).

◆ width

size_t AsposeOCRInput::width = 0

Image width.