灵云SDK开发手册(iOS API)
8.1
首页
API参考手册
结构体
附录
src
ios
include
hci_hwr.h
1
6
#ifndef __HCI_HWR_HEADER__
7
#define __HCI_HWR_HEADER__
8
9
#include "hci_sys.h"
10
11
#ifdef __cplusplus
12
extern
"C"
13
{
14
#endif
15
17
/* @{ */
18
20
/* @{ */
21
25
#define HWR_MODULE "HCI_HWR"
26
30
typedef
struct
_tag_HWR_RECOG_RESULT_ITEM
31
{
33
unsigned
short
*
pusPointOffset
;
34
36
unsigned
int
uiOffsetCount
;
37
39
char
*
pszResult
;
40
}
HWR_RECOG_RESULT_ITEM
;
41
45
typedef
struct
_tag_HWR_RECOG_RESULT
46
{
48
HWR_RECOG_RESULT_ITEM
*
psResultItemList
;
49
51
unsigned
int
uiResultItemCount
;
52
}
HWR_RECOG_RESULT
;
53
57
typedef
struct
_tag_HWR_RECOG_TIBETAN
58
{
60
short
*
psTibetanUnicode
;
61
63
unsigned
int
uiTibetanLength
;
64
}
HWR_RECOG_TIBETAN
;
65
69
typedef
struct
_tag_HWR_CONFIRM_ITEM
70
{
72
char
*
pszText
;
73
}
HWR_CONFIRM_ITEM
;
74
78
typedef
struct
_tag_PINYIN_RESULT_ITEM
79
{
81
char
*
pszPinyin
;
82
}
PINYIN_RESULT_ITEM
;
83
87
typedef
struct
_tag_PINYIN_RESULT
88
{
90
PINYIN_RESULT_ITEM
*
pItemList
;
91
93
unsigned
int
uiItemCount
;
94
}
PINYIN_RESULT
;
95
99
typedef
struct
_tag_ASSOCIATE_WORDS_RESULT_ITEM
100
{
102
char
*
pszWord
;
103
}
ASSOCIATE_WORDS_RESULT_ITEM
;
104
108
typedef
struct
_tag_ASSOCIATE_WORDS_RESULT
109
{
111
ASSOCIATE_WORDS_RESULT_ITEM
*
pItemList
;
112
114
unsigned
int
uiItemCount
;
115
}
ASSOCIATE_WORDS_RESULT
;
116
120
typedef
struct
_tage_PEN_SCRIPT_RESULT_ITEM
121
{
123
short
*
psPageImg
;
124
126
int
x
;
127
129
int
y
;
130
132
int
nWidth
;
133
135
int
nHeight
;
136
138
unsigned
long
unPenColor
;
139
}
PEN_SCRIPT_RESULT_ITEM
;
140
144
typedef
struct
_tage_PEN_SCRIPT_RESULT
145
{
147
PEN_SCRIPT_RESULT_ITEM
*
pItemList
;
148
150
unsigned
int
uiItemCount
;
151
}
PEN_SCRIPT_RESULT
;
152
153
/* @} */
154
156
/* @{ */
157
217
HCI_ERR_CODE
HCIAPI
hci_hwr_init
(
218
_MUST_ _IN_
const
char
* pszConfig
219
);
220
289
HCI_ERR_CODE
HCIAPI
hci_hwr_session_start
(
290
_MUST_ _IN_
const
char
* pszConfig,
291
_MUST_ _OUT_
int
* pnSessionId
292
);
293
417
HCI_ERR_CODE
HCIAPI
hci_hwr_recog
(
418
_MUST_ _IN_
int
nSessionId,
419
_MUST_ _IN_
short
* psStrokingData,
420
_MUST_ _IN_
unsigned
int
uiStrokingDataLen,
421
_OPT_ _IN_
const
char
* pszConfig,
422
_MUST_ _OUT_
HWR_RECOG_RESULT
* psHwrRecogResult
423
);
424
435
HCI_ERR_CODE
HCIAPI
hci_hwr_free_recog_result
(
436
_MUST_ _IN_
HWR_RECOG_RESULT
* psHwrRecogResult
437
);
438
459
HCI_ERR_CODE
HCIAPI
hci_hwr_confirm
(
460
_MUST_ _IN_
int
nSessionId,
461
_MUST_ _IN_
HWR_CONFIRM_ITEM
* psHwrConfirmItem
462
);
463
475
HCI_ERR_CODE
HCIAPI
hci_hwr_session_stop
(
476
_MUST_ _IN_
int
nSessionId
477
);
478
518
HCI_ERR_CODE
HCIAPI
hci_hwr_pinyin
(
519
_MUST_ _IN_
int
nSessionId,
520
_OPT_ _IN_
const
char
* pszConfig,
521
_MUST_ _IN_
const
char
* pszWord,
522
_MUST_ _OUT_
PINYIN_RESULT
* psPinyin
523
);
524
535
HCI_ERR_CODE
HCIAPI
hci_hwr_free_pinyin_result
(
536
_MUST_ _IN_
PINYIN_RESULT
* psPinyin
537
);
538
539
590
HCI_ERR_CODE
HCIAPI
hci_hwr_associate_words
(
591
_MUST_ _IN_
int
nSessionId,
592
_OPT_ _IN_
const
char
* pszConfig,
593
_MUST_ _IN_
const
char
* pszWord,
594
_MUST_ _OUT_
ASSOCIATE_WORDS_RESULT
* psAssocWords
595
);
596
597
622
HCI_ERR_CODE
HCIAPI
hci_hwr_associate_words_adjust
(
623
_MUST_ _IN_
int
nSessionId,
624
_OPT_ _IN_
const
char
* pszConfig,
625
_MUST_ _IN_
const
char
* pszWord
626
);
627
638
HCI_ERR_CODE
HCIAPI
hci_hwr_free_associate_words_result
(
639
_MUST_ _IN_
ASSOCIATE_WORDS_RESULT
* psAssocWords
640
);
641
642
713
HCI_ERR_CODE
HCIAPI
hci_hwr_pen_script
(
714
_MUST_ _IN_
int
nSessionId,
715
_OPT_ _IN_
const
char
*pszConfig,
716
_MUST_ _IN_
int
nX,
717
_MUST_ _IN_
int
nY,
718
_MUST_ _IN_
PEN_SCRIPT_RESULT
* psPenScript
719
);
720
731
HCI_ERR_CODE
HCIAPI
hci_hwr_free_pen_script_result
(
732
_MUST_ _IN_
PEN_SCRIPT_RESULT
* psPenScript
733
);
734
745
HCI_ERR_CODE
HCIAPI
hci_hwr_release
();
746
747
/* @} */
748
749
/* @} */
751
752
#ifdef __cplusplus
753
};
754
#endif
755
756
757
#endif
生成于 2019年 一月 10日 星期四 11:29:32 , 为 灵云SDK开发手册(iOS API)使用
1.8.3.1