2
2
Copyright (c) 1993-2008, Cognitive Technologies
5
����������� ��������� ��������������� � ������������� ��� � ���� ��������� ����,
6
��� � � �������� �����, � ����������� ��� ���, ��� ���������� ��������� �������:
8
* ��� ��������� ��������������� ��������� ���� ������ ���������� ���������
9
���� ����������� �� ��������� �����, ���� ������ ������� � �����������
11
* ��� ��������� ��������������� ��������� ���� � ������������ �/��� �
12
������ ����������, ������������ ��� ���������������, ������ �����������
13
��������� ���� ���������� �� ��������� �����, ���� ������ ������� �
14
����������� ����� �� ��������.
15
* �� �������� Cognitive Technologies, �� ����� �� ����������� �� �����
16
���� ������������ � �������� �������� ��������� �/��� �����������
17
���������, ���������� �� ���� ��, ��� ���������������� �����������
20
��� ��������� ������������� ����������� ��������� ���� �/��� ������� ������ "���
21
��� ����" ��� ������-���� ���� ��������, ���������� ���� ��� ���������������,
22
������� �������� ������������ �������� � ����������� ��� ���������� ����, �� ��
23
������������� ���. �� �������� ��������� ���� � �� ���� ������ ����, �������
24
����� �������� �/��� �������� �������������� ���������, �� � ���� ������ ��
25
��Ѩ� ���������������, ������� ����� �����, ���������, ����������� ���
26
������������� ������, ��������� � �������������� ��� ���������� ����������
27
������������� ������������� ��������� (������� ������ ������, ��� ������,
28
������� ���������, ��� ������ �/��� ������ �������, ���������� ��-�� ��������
29
������� ��� �/��� ������ ��������� �������� ��������� � ������� �����������,
30
�� �� ������������� ����� ��������), �� �� ������������� ���, ���� ���� �����
31
�������� ��� ������ ���� ���� �������� � ����������� ����� ������� � ������.
5
Разрешается повторное распространение и использование как в виде исходного кода,
6
так и в двоичной форме, с изменениями или без, при соблюдении следующих условий:
8
* При повторном распространении исходного кода должны оставаться указанное
9
выше уведомление об авторском праве, этот список условий и последующий
11
* При повторном распространении двоичного кода в документации и/или в
12
других материалах, поставляемых при распространении, должны сохраняться
13
указанная выше информация об авторском праве, этот список условий и
14
последующий отказ от гарантий.
15
* Ни название Cognitive Technologies, ни имена ее сотрудников не могут
16
быть использованы в качестве средства поддержки и/или продвижения
17
продуктов, основанных на этом ПО, без предварительного письменного
20
ЭТА ПРОГРАММА ПРЕДОСТАВЛЕНА ВЛАДЕЛЬЦАМИ АВТОРСКИХ ПРАВ И/ИЛИ ДРУГИМИ ЛИЦАМИ "КАК
21
ОНА ЕСТЬ" БЕЗ КАКОГО-ЛИБО ВИДА ГАРАНТИЙ, ВЫРАЖЕННЫХ ЯВНО ИЛИ ПОДРАЗУМЕВАЕМЫХ,
22
ВКЛЮЧАЯ ГАРАНТИИ КОММЕРЧЕСКОЙ ЦЕННОСТИ И ПРИГОДНОСТИ ДЛЯ КОНКРЕТНОЙ ЦЕЛИ, НО НЕ
23
ОГРАНИЧИВАЯСЬ ИМИ. НИ ВЛАДЕЛЕЦ АВТОРСКИХ ПРАВ И НИ ОДНО ДРУГОЕ ЛИЦО, КОТОРОЕ
24
МОЖЕТ ИЗМЕНЯТЬ И/ИЛИ ПОВТОРНО РАСПРОСТРАНЯТЬ ПРОГРАММУ, НИ В КОЕМ СЛУЧАЕ НЕ
25
НЕСЁТ ОТВЕТСТВЕННОСТИ, ВКЛЮЧАЯ ЛЮБЫЕ ОБЩИЕ, СЛУЧАЙНЫЕ, СПЕЦИАЛЬНЫЕ ИЛИ
26
ПОСЛЕДОВАВШИЕ УБЫТКИ, СВЯЗАННЫЕ С ИСПОЛЬЗОВАНИЕМ ИЛИ ПОНЕСЕННЫЕ ВСЛЕДСТВИЕ
27
НЕВОЗМОЖНОСТИ ИСПОЛЬЗОВАНИЯ ПРОГРАММЫ (ВКЛЮЧАЯ ПОТЕРИ ДАННЫХ, ИЛИ ДАННЫЕ,
28
СТАВШИЕ НЕГОДНЫМИ, ИЛИ УБЫТКИ И/ИЛИ ПОТЕРИ ДОХОДОВ, ПОНЕСЕННЫЕ ИЗ-ЗА ДЕЙСТВИЙ
29
ТРЕТЬИХ ЛИЦ И/ИЛИ ОТКАЗА ПРОГРАММЫ РАБОТАТЬ СОВМЕСТНО С ДРУГИМИ ПРОГРАММАМИ,
30
НО НЕ ОГРАНИЧИВАЯСЬ ЭТИМИ СЛУЧАЯМИ), НО НЕ ОГРАНИЧИВАЯСЬ ИМИ, ДАЖЕ ЕСЛИ ТАКОЙ
31
ВЛАДЕЛЕЦ ИЛИ ДРУГОЕ ЛИЦО БЫЛИ ИЗВЕЩЕНЫ О ВОЗМОЖНОСТИ ТАКИХ УБЫТКОВ И ПОТЕРЬ.
33
33
Redistribution and use in source and binary forms, with or without modification,
34
34
are permitted provided that the following conditions are met:
70
70
void leoProbsToVer_expert(int Probs[],RecVersions *v,RecVersions *mod);
71
71
void LeoProbsToVer(int Probs[],RecVersions *v);
72
72
Bool32 leo_add_vers(RecVersions *dst, RecVersions *src);
73
int leo_exist_code(RecVersions *ver, Word8 code);
73
int leo_exist_code(RecVersions *ver, uchar code);
74
74
void leo_set_max_vers(RecVersions *v,int p);
75
int leo_comp_codes(Word8 c1, Word8 c2);
76
Word8 * leo_strchr_codes(Word8 *c1, Word8 c2);
77
Word8 * leo_strchr_codes_ansi(Word8 *c1, Word8 c2);
75
int leo_comp_codes(uchar c1, uchar c2);
76
uchar * leo_strchr_codes(uchar *c1, uchar c2);
77
uchar * leo_strchr_codes_ansi(uchar *c1, uchar c2);
78
78
void leo_over( RecVersions *ver, RecVersions *alph);
79
int leo_exist_codes(RecVersions *ver, Word8 *codes);
80
void add_to_prob_array(Word8 prob[],RecVersions *v);
81
void VersToAlph(RecVersions *ver,Word8 alphabet0[]);
82
void leo_expert_prob( RecVersions *v,Word16 *v3x5, RecRaster *r ,
83
Word8 prob_3x5[], Word8 prob_iva[], Int32 prn,
79
int leo_exist_codes(RecVersions *ver, uchar *codes);
80
void add_to_prob_array(uchar prob[],RecVersions *v);
81
void VersToAlph(RecVersions *ver,uchar alphabet0[]);
82
void leo_expert_prob( RecVersions *v,uint16_t *v3x5, RecRaster *r ,
83
uchar prob_3x5[], uchar prob_iva[], int32_t prn,
84
84
Bool32 bonus, Bool32 enable5x3);
86
86
/// functions from module leo_stick
87
87
int leo_get_global_incline(void);
88
void leo_set_simple_sticks_group(RecVersions *v,unsigned char al[],Int32 nose);
88
void leo_set_simple_sticks_group(RecVersions *v,unsigned char al[],int32_t nose);
89
89
Bool32 leo_small_object(RecObject *object,int wlim, int hlim);
90
Int32 leo_wide_object(RecObject *object);
90
int32_t leo_wide_object(RecObject *object);
91
91
Bool32 leo_big_object(RecObject *object,int wlim, int hlim);
92
92
Bool32 leoRecogSimpleStick( RecObject* object );
93
93
void leo_add_inc(RecObject* object);
94
94
void leo_clear_stat(void);
95
Int32 leo_stick_horiz_hist(int h);
95
int32_t leo_stick_horiz_hist(int h);
96
96
Bool32 leo_is_stick(RecObject* object);
97
97
void leo_setup_inc(RecObject* object);
98
98
void leo_erect(RecObject* object,int inc);
99
void leo_set_sticks_group( RecVersions *v, Int32 ret,
100
unsigned char alph[], Int32 simple_st, Int32 nose_1);
101
Int32 leo_recog_stick(Word16 *lpool, int w, int h);
99
void leo_set_sticks_group( RecVersions *v, int32_t ret,
100
unsigned char alph[], int32_t simple_st, int32_t nose_1);
101
int32_t leo_recog_stick(uint16_t *lpool, int w, int h);
102
102
void leo_diskrim_stick(RecVersions *ver);
104
104
/// functions from module leo_cont
105
105
void leo_close_cont(void);
106
Bool32 leo_cont_new_page(Int32 id_page);
107
Int16 leo_cont_store(RecRaster *r,Word8 let, Word8 nLns,Rect16 *rect, Word8 IsPrn,
108
Word8 Prob, Word8 Valid, RecVersions *ver,Word8 control);
109
Bool32 leo_cont_restore(RecRaster *r, Int32 id_page, Int16 id_rast, Word8 *nLns,Rect16 *rect, Word8 *IsPrn,Word8 *datao);
106
Bool32 leo_cont_new_page(int32_t id_page);
107
int16_t leo_cont_store(RecRaster *r,uchar let, uchar nLns,Rect16 *rect, uchar IsPrn,
108
uchar Prob, uchar Valid, RecVersions *ver,uchar control);
109
Bool32 leo_cont_restore(RecRaster *r, int32_t id_page, int16_t id_rast, uchar *nLns,Rect16 *rect, uchar *IsPrn,uchar *datao);
110
110
void leo_close_cont_temp(void);
111
111
int leo_open_cont_temp(void);
112
Bool32 leo_cont_set_valid(Int32 id_page, Int16 id_rast,Word8 code, Word8 valid,Word8 control);
113
Bool32 leo_cont_del_final(Int32 id_page, Int16 id_rast);
112
Bool32 leo_cont_set_valid(int32_t id_page, int16_t id_rast,uchar code, uchar valid,uchar control);
113
Bool32 leo_cont_del_final(int32_t id_page, int16_t id_rast);
114
114
Bool32 leo_cont_store_collection(RecVersions *ver);
116
116
/// functions from module leo_prn