custom_preprocessing_filters Struct Reference

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

Public Attributes

const char * filter_1 = nullptr
 
const char * filter_2 = nullptr
 
const char * filter_3 = nullptr
 
const char * filter_4 = nullptr
 
const char * filter_5 = nullptr
 
const char * filter_6 = nullptr
 
const char * filter_7 = nullptr
 
const char * filter_8 = nullptr
 
const char * filter_9 = nullptr
 
const char * filter_10 = nullptr
 
const char * filter_11 = nullptr
 
const char * filter_12 = nullptr
 

Detailed Description

Structure to set 12 preprocessing filters (or less as you need) in some order. Use in C-compatible API. Available filters:

  • OCR_IMG_PREPROCESS_BINARIZE
  • OCR_IMG_PREPROCESS_GRAYSCALE
  • OCR_IMG_PREPROCESS_RESIZE(width, height)
  • OCR_IMG_PREPROCESS_DILATE
  • OCR_IMG_PREPROCESS_INVERT
  • OCR_IMG_PREPROCESS_ROTATE(angle)
  • OCR_IMG_PREPROCESS_SCALE(ratio)
  • OCR_IMG_PREPROCESS_THRESHOLD(value)
  • OCR_IMG_PREPROCESS_MEDIAN

Example:

custom_preprocessing_filters filters;* filters.filter_1 = OCR_IMG_PREPROCESS_BINARIZE;* filters.filter_2 = OCR_IMG_PREPROCESS_ROTATE(20);

Member Data Documentation

◆ filter_1

const char* custom_preprocessing_filters::filter_1 = nullptr

◆ filter_10

const char* custom_preprocessing_filters::filter_10 = nullptr

◆ filter_11

const char* custom_preprocessing_filters::filter_11 = nullptr

◆ filter_12

const char* custom_preprocessing_filters::filter_12 = nullptr

◆ filter_2

const char* custom_preprocessing_filters::filter_2 = nullptr

◆ filter_3

const char* custom_preprocessing_filters::filter_3 = nullptr

◆ filter_4

const char* custom_preprocessing_filters::filter_4 = nullptr

◆ filter_5

const char* custom_preprocessing_filters::filter_5 = nullptr

◆ filter_6

const char* custom_preprocessing_filters::filter_6 = nullptr

◆ filter_7

const char* custom_preprocessing_filters::filter_7 = nullptr

◆ filter_8

const char* custom_preprocessing_filters::filter_8 = nullptr

◆ filter_9

const char* custom_preprocessing_filters::filter_9 = nullptr