RecAPI
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Modules Pages
CUT_INFO Struct Reference

Structure for book images. More...

#include <KernelApi.h>

Public Attributes

int x
 Cutting position.
 
int info
 Containing information.
 
int first_x
 Left position.
 
int last_x
 Right position.
 
int dpi
 Resolution.
 

Detailed Description

Structure for book images.

This provides information on the images produced by scanning a book, with two facing pages per scan. See kRecDetectBook and kRecCreateBookPages. They show how each incoming image can be cut into two book-page images for recognition. Page consolidation is likely to be applied to these page images.

Member Data Documentation

◆ dpi

int CUT_INFO::dpi

Resolution.

This structure refers to this dpi. Resolution change between two consecutive scans of the same book is handled correctly.

◆ first_x

int CUT_INFO::first_x

Left position.

Minimal x coordinate of the text or graphics on the original page.

◆ info

int CUT_INFO::info

Containing information.

Possible values

  • 0: both pages contain text,
  • 1: right page does not contain text,
  • 2: left page does not contain text.

◆ last_x

int CUT_INFO::last_x

Right position.

Maximal x coordinate of the text or graphics on the original page.

◆ x

int CUT_INFO::x

Cutting position.

The position where the two pages are cut. If this is -1, the kRecDetectBook cannot find two facing pages.