hocr_Hocr man page

hocr::Hocr — Hocr class.

Synopsis

#include <hocrpp.h>

Public Member Functions

Hocr (ho_pixbuf *m_in=NULL)
Hocr constructor.
~Hocr ()
Hocr destructor.
int set_pixbuf (ho_pixbuf *m_in)
set pixbuf
int set_bitmap (ho_bitmap *m_in)
set b/w bitmap
ho_pixbuf * get_pixbuf ()
get pixbuf
ho_bitmap * get_bitmap ()
get bitmap
int save_bitmap_as_pnm (const char *filename)
save bitmap as pnm
int save_bitmap_as_tiff (const char *filename)
save bitmap as tiff (neads a tiff enabled libhocr)
ho_pixbuf * get_bitmap_pixbuf ()
get bitmap pixbuf
ho_pixbuf * get_layout_pixbuf ()
get layout pixbuf
const char * get_text ()
get text
int get_progress ()
get progress of ocr
int do_image_processing ()
do image processing
int do_bitmap_closing ()
do bitmap closing
int do_bitmap_opening ()
do bitmap opening
int do_bitmap_erosion ()
do bitmap erosion
int do_bitmap_dilation ()
do bitmap dilation
int do_layout_analysis ()
do layout analysis
int do_font_recognition ()
do font recognition
int do_ocr ()
do ocr
int get_html ()
get html param
int set_html (const unsigned char html_in)
set html param
int get_font ()
get font param
int set_font (const int font_in)
set font param
unsigned char get_nikud ()
get nikud param
unsigned char set_nikud (const unsigned char nikud_in)
set nikud param
unsigned char set_dir_ltr (const unsigned char dir_ltr_in)
set dir_ltr param
unsigned char set_scale (const unsigned char scale_in)
set scale param
unsigned char set_auto_scale ()
set auto_scale param
unsigned char set_adaptive (const unsigned char adaptive_in)
set adaptive param
unsigned char set_threshold (const unsigned char threshold_in)
set threshold param
unsigned char set_a_threshold (const unsigned char a_threshold_in)
set a_threshold param
int get_font_spacing_code ()
get font_spacing_code param
int set_font_spacing_code (const int font_spacing_code_in)
set font_spacing_code param
int get_slicing_width ()
get slicing_width param
int set_slicing_width (const int slicing_width_in)
set slicing_width param
int get_slicing_threshold ()
get slicing_threshold param
int set_slicing_threshold (const int slicing_threshold_in)
set slicing_threshold param
int set_line_leeway (const int line_leeway_in)
set line_leeway param
unsigned char set_no_auto_rotate (const unsigned char no_auto_rotate_in)
set no_auto_rotate
unsigned char set_do_linguistics (const unsigned char do_linguistics_in)
set do_linguistics
int get_paragraph_setup ()
get paragraph setup param
int set_paragraph_setup (const int paragraph_setup_in)
set paragraph setup param
const char * get_build_string ()
get build string

Data Fields

int progress

Detailed Description

Hocr class.

class for Hebrew Optical Character Recognition

Constructor & Destructor Documentation

hocr::Hocr::Hocr (ho_pixbuf * m_in = NULL) [inline]

Hocr constructor.

References progress.

hocr::Hocr::~Hocr () [inline]

Hocr destructor.

References ho_bitmap_free(), ho_layout_free(), ho_pixbuf_free(), and ho_string_free().

Member Function Documentation

int hocr::Hocr::set_pixbuf (ho_pixbuf * m_in) [inline]

set pixbuf

Parameters:

m_in the pixbuf to use

Returns:

0

References ho_bitmap_free(), ho_layout_free(), ho_pixbuf_free(), ho_string_free(), and progress.

int hocr::Hocr::set_bitmap (ho_bitmap * m_in) [inline]

set b/w bitmap

Parameters:

m_in the b/w bitmap to use

Returns:

0

References ho_bitmap_free(), ho_layout_free(), ho_pixbuf_free(), ho_string_free(), and progress.

ho_pixbuf* hocr::Hocr::get_pixbuf () [inline]

get pixbuf

Returns:

the object pixbuf

ho_bitmap* hocr::Hocr::get_bitmap () [inline]

get bitmap

Returns:

the object bitmap

int hocr::Hocr::save_bitmap_as_pnm (const char * filename) [inline]

save bitmap as pnm

Parameters:

filename the the image file name

Returns:

the object bitmap

References ho_bitmap_pnm_save().

int hocr::Hocr::save_bitmap_as_tiff (const char * filename) [inline]

save bitmap as tiff (neads a tiff enabled libhocr)

Parameters:

filename the the image file name

Returns:

the object bitmap

References ho_bitmap_tiff_save().

ho_pixbuf* hocr::Hocr::get_bitmap_pixbuf () [inline]

get bitmap pixbuf

Returns:

a pixbuf of the object bitmap

References ho_pixbuf_free(), ho_pixbuf_new_from_bitmap(), and ho_pixbuf_to_rgb().

ho_pixbuf* hocr::Hocr::get_layout_pixbuf () [inline]

get layout pixbuf

Returns:

a pixbuf of the object layout

References ho_pixbuf_new_from_layout().

const char* hocr::Hocr::get_text () [inline]

get text

Returns:

the recognized text

References ho_string::string.

int hocr::Hocr::get_progress () [inline]

get progress of ocr

Returns:

the progress 0..100

References progress.

int hocr::Hocr::do_image_processing () [inline]

do image processing

Returns:

0

References ho_bitmap_free(), hocr_image_processing(), and progress.

Referenced by do_ocr().

int hocr::Hocr::do_bitmap_closing () [inline]

do bitmap closing

Returns:

0

References ho_bitmap_closing(), and ho_bitmap_free().

int hocr::Hocr::do_bitmap_opening () [inline]

do bitmap opening

Returns:

0

References ho_bitmap_free(), and ho_bitmap_opening().

int hocr::Hocr::do_bitmap_erosion () [inline]

do bitmap erosion

Returns:

0

References ho_bitmap_erosion(), and ho_bitmap_free().

int hocr::Hocr::do_bitmap_dilation () [inline]

do bitmap dilation

Returns:

0

References ho_bitmap_dilation(), and ho_bitmap_free().

int hocr::Hocr::do_layout_analysis () [inline]

do layout analysis

Returns:

0

References ho_layout_free(), hocr_layout_analysis(), and progress.

Referenced by do_ocr().

int hocr::Hocr::do_font_recognition () [inline]

do font recognition

Returns:

0

References ho_string_free(), ho_string_new(), hocr_font_recognition(), and progress.

Referenced by do_ocr().

int hocr::Hocr::do_ocr () [inline]

do ocr

Returns:

0

References do_font_recognition(), do_image_processing(), and do_layout_analysis().

int hocr::Hocr::get_html () [inline]

get html param

Returns:

FALSE-no html in output, TRUE-output html text

int hocr::Hocr::set_html (const unsigned char html_in) [inline]

set html param

Parameters:

html_in new value of html param

Returns:

FALSE-no html in output, TRUE-output html text

int hocr::Hocr::get_font () [inline]

get font param

Returns:

font code of objct

int hocr::Hocr::set_font (const int font_in) [inline]

set font param

Parameters:

font_in new value of font param

Returns:

font code of objct

unsigned char hocr::Hocr::get_nikud () [inline]

get nikud param

Returns:

nikud of objct

unsigned char hocr::Hocr::set_nikud (const unsigned char nikud_in) [inline]

set nikud param

Parameters:

nikud_in new value of nikud param

Returns:

nikud of objct

unsigned char hocr::Hocr::set_dir_ltr (const unsigned char dir_ltr_in) [inline]

set dir_ltr param

Parameters:

dir_ltr_in new value of dir_ltr param

Returns:

dir_ltr of objct

unsigned char hocr::Hocr::set_scale (const unsigned char scale_in) [inline]

set scale param

Parameters:

scale_in new value of scale param

Returns:

scale of objct

unsigned char hocr::Hocr::set_auto_scale () [inline]

set auto_scale param

Returns:

no_auto_scale of objct

unsigned char hocr::Hocr::set_adaptive (const unsigned char adaptive_in) [inline]

set adaptive param

Parameters:

adaptive_in new value of adaptive param

Returns:

adaptive of objct

unsigned char hocr::Hocr::set_threshold (const unsigned char threshold_in) [inline]

set threshold param

Parameters:

threshold_in new value of threshold param

Returns:

threshold of objct

unsigned char hocr::Hocr::set_a_threshold (const unsigned char a_threshold_in) [inline]

set a_threshold param

Parameters:

a_threshold_in new value of a_threshold param

Returns:

a_threshold of objct

int hocr::Hocr::get_font_spacing_code () [inline]

get font_spacing_code param

Returns:

font_spacing_code of objct

int hocr::Hocr::set_font_spacing_code (const int font_spacing_code_in) [inline]

set font_spacing_code param

Parameters:

font_spacing_code_in new value of font_spacing_code param

Returns:

font_spacing_code of objct

int hocr::Hocr::get_slicing_width () [inline]

get slicing_width param

Returns:

slicing_width of objct

int hocr::Hocr::set_slicing_width (const int slicing_width_in) [inline]

set slicing_width param

Parameters:

slicing_width_in new value of slicing_width param

Returns:

slicing_width of objct

int hocr::Hocr::get_slicing_threshold () [inline]

get slicing_threshold param

Returns:

slicing_threshold of objct

int hocr::Hocr::set_slicing_threshold (const int slicing_threshold_in) [inline]

set slicing_threshold param

Parameters:

slicing_threshold_in new value of slicing_threshold param

Returns:

slicing_threshold of objct

int hocr::Hocr::set_line_leeway (const int line_leeway_in) [inline]

set line_leeway param

Parameters:

line_leeway_in new value of line_leeway param

Returns:

line_leeway of objct

unsigned char hocr::Hocr::set_no_auto_rotate (const unsigned char no_auto_rotate_in) [inline]

set no_auto_rotate

Parameters:

no_auto_rotate_in new value of font_spacing_code param

Returns:

no_auto_rotate of objct

unsigned char hocr::Hocr::set_do_linguistics (const unsigned char do_linguistics_in) [inline]

set do_linguistics

Parameters:

do_linguistics_in new value of do_linguistics param

Returns:

do_linguistics of objct

int hocr::Hocr::get_paragraph_setup () [inline]

get paragraph setup param

Returns:

paragraph setup

int hocr::Hocr::set_paragraph_setup (const int paragraph_setup_in) [inline]

set paragraph setup param

Parameters:

paragraph_setup_in new value of font param

Returns:

paragraph setup of objct

const char* hocr::Hocr::get_build_string () [inline]

get build string

Returns:

build string

References hocr_get_build_string().

Field Documentation

int hocr::Hocr::progress

Referenced by do_font_recognition(), do_image_processing(), do_layout_analysis(), get_progress(), Hocr(), set_bitmap(), and set_pixbuf().

Author

Generated automatically by Doxygen for libhocr from the source code.

Info

31 Jul 2008 Version 0.10.17 libhocr