灵云SDK开发手册(C API)  8.1
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;
41 
45  typedef struct _tag_HWR_RECOG_RESULT
46  {
49 
51  unsigned int uiResultItemCount;
53 
57  typedef struct _tag_HWR_RECOG_TIBETAN
58  {
61 
63  unsigned int uiTibetanLength;
65 
69  typedef struct _tag_HWR_CONFIRM_ITEM
70  {
72  char * pszText;
74 
78  typedef struct _tag_PINYIN_RESULT_ITEM
79  {
81  char * pszPinyin;
83 
87  typedef struct _tag_PINYIN_RESULT
88  {
91 
93  unsigned int uiItemCount;
94  } PINYIN_RESULT;
95 
99  typedef struct _tag_ASSOCIATE_WORDS_RESULT_ITEM
100  {
102  char * pszWord;
104 
108  typedef struct _tag_ASSOCIATE_WORDS_RESULT
109  {
112 
114  unsigned int uiItemCount;
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;
140 
144  typedef struct _tage_PEN_SCRIPT_RESULT
145  {
148 
150  unsigned int uiItemCount;
152 
153  /* @} */
154 
156  /* @{ */
157 
217  HCI_ERR_CODE HCIAPI hci_hwr_init(
218  _MUST_ _IN_ const char * pszConfig
219  );
220 
290  _MUST_ _IN_ const char * pszConfig,
291  _MUST_ _OUT_ int * pnSessionId
292  );
293 
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 
436  _MUST_ _IN_ HWR_RECOG_RESULT * psHwrRecogResult
437  );
438 
460  _MUST_ _IN_ int nSessionId,
461  _MUST_ _IN_ HWR_CONFIRM_ITEM * psHwrConfirmItem
462  );
463 
476  _MUST_ _IN_ int nSessionId
477  );
478 
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 
536  _MUST_ _IN_ PINYIN_RESULT * psPinyin
537  );
538 
539 
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 
623  _MUST_ _IN_ int nSessionId,
624  _OPT_ _IN_ const char * pszConfig,
625  _MUST_ _IN_ const char * pszWord
626  );
627 
639  _MUST_ _IN_ ASSOCIATE_WORDS_RESULT * psAssocWords
640  );
641 
642 
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 
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