RecAPI
|
Document Classifier API. More...
Classes | |
struct | CLASSIFY_INFO |
Structure for information about classification. More... | |
Typedefs | |
typedef struct RECDCSTRUCT * | DCHANDLE |
Handle of a Document Classifier object. | |
Functions | |
RECERR RECAPIKRN | kRecOpenDCProject (int sid, LPCTSTR pDCProjectFile, DCHANDLE *phDCProject) |
Opening Document Classifier Project File. | |
RECERR RECAPIKRN | kRecCloseDCProject (DCHANDLE hDCProject) |
Closing a Document Classifier Project. | |
RECERR RECAPIKRN | kRecGetFirstDCClass (DCHANDLE hDCProject, DCHANDLE *phDCClass) |
Starting enumeration of Document Classes. | |
RECERR RECAPIKRN | kRecGetNextDCClass (DCHANDLE hDCPrevClass, DCHANDLE *phDCClass) |
Performing enumeration of Document Classes. | |
RECERR RECAPIKRN | kRecClassifyPage (int sid, DCHANDLE hDCProject, HPAGE hPage, DCHANDLE *phDCPredictedClass, unsigned *pConfidenceLevel, CLASSIFY_INFO **pClassifyInfo, LPLONG pLength, INTBOOL *pIsConfident) |
Classifying a page. | |
RECERR RECAPIKRN | kRecClassifyText (int sid, DCHANDLE hDCProject, LPCTSTR pText, DCHANDLE *phDCPredictedClass, unsigned *pConfidenceLevel, CLASSIFY_INFO **pClassifyInfo, LPLONG pLength, INTBOOL *pIsConfident) |
Classifying text. | |
RECERR RECAPIKRN | kRecClassifyDocument (int sid, DCHANDLE hDCProject, LPCTSTR pFileName, int iPage, DCHANDLE *phDCPredictedClass, unsigned *pConfidenceLevel, CLASSIFY_INFO **pClassifyInfo, LPLONG pLength, INTBOOL *pIsConfident) |
Classifying the given page of a document. | |
RECERR RECAPIKRN | kRecGetDCClassName (DCHANDLE hDCClass, LPTSTR *ppName) |
Returning the name of a Document Class. | |
RECERR RECAPIKRN | kRecSetDCConfidenceThreshold (DCHANDLE hDCProject, int ConfidenceThreshold) |
Set the confidence threshold of a Document Classifier Project. | |
RECERR RECAPIKRN | kRecGetDCConfidenceThreshold (DCHANDLE hDCProject, int *pConfidenceThreshold) |
Get the confidence threshold of a Document Classifier Project. |
Document Classifier API.
For detailed description of this module see its separated documentation Document Classifier.chm.
RECERR RECAPIKRN kRecClassifyDocument | ( | int | sid, |
DCHANDLE | hDCProject, | ||
LPCTSTR | pFileName, | ||
int | iPage, | ||
DCHANDLE * | phDCPredictedClass, | ||
unsigned * | pConfidenceLevel, | ||
CLASSIFY_INFO ** | pClassifyInfo, | ||
LPLONG | pLength, | ||
INTBOOL * | pIsConfident | ||
) |
Classifying the given page of a document.
This function classifies a document or the given page of the document. The document can contain scanned pages, one page from a PDF file or plain text.
[in] | sid | Settings Collection ID. |
[in] | hDCProject | Handle of the Document Classifier Project returned by kRecOpenDCProject. |
[in] | pFileName | Name of the file containing the document. It can be image file, PDF or text file. |
[in] | iPage | The page number of the page to be processed. This parameter is not used if the input file is text file. |
[out] | phDCPredictedClass | Address of a variable to store the handle of the predicted Document Class. The returned handle can be NULL. |
[out] | pConfidenceLevel | Address of a variable to store the confidence of the prediction. The returned value is between 0 and 100. |
[out] | pClassifyInfo | Address of a variable to store info about classifying. |
[out] | pLength | Address of a variable to store the length of the array returned in pClassifyInfo. This is equal to the number of classes. |
[out] | pIsConfident | Address of a variable to return if the classification is confident. The returned value is TRUE if the confidence of the prediction is greater than or equal to the preset confidence threshold. |
RECERR |
RECERR RECAPIKRN kRecClassifyPage | ( | int | sid, |
DCHANDLE | hDCProject, | ||
HPAGE | hPage, | ||
DCHANDLE * | phDCPredictedClass, | ||
unsigned * | pConfidenceLevel, | ||
CLASSIFY_INFO ** | pClassifyInfo, | ||
LPLONG | pLength, | ||
INTBOOL * | pIsConfident | ||
) |
Classifying a page.
This function classifies the given HPAGE.
[in] | sid | Settings Collection ID. |
[in] | hDCProject | Handle of the Document Classifier Project returned by kRecOpenDCProject. |
[in] | hPage | Handle of the page to be classified. |
[out] | phDCPredictedClass | Address of a variable to store the handle of the predicted Document Class. The returned handle can be NULL. |
[out] | pConfidenceLevel | Address of a variable to store the confidence of the prediction. The returned value is between 0 and 100. |
[out] | pClassifyInfo | Address of a variable to store info about classifying. |
[out] | pLength | Address of a variable to store the length of the array returned in pClassifyInfo. This is equal to the number of classes. |
[out] | pIsConfident | Address of a variable to return if the classification is confident. The returned value is TRUE if the confidence of the prediction is greater than or equal to the preset confidence threshold. |
RECERR |
RECERR RECAPIKRN kRecClassifyText | ( | int | sid, |
DCHANDLE | hDCProject, | ||
LPCTSTR | pText, | ||
DCHANDLE * | phDCPredictedClass, | ||
unsigned * | pConfidenceLevel, | ||
CLASSIFY_INFO ** | pClassifyInfo, | ||
LPLONG | pLength, | ||
INTBOOL * | pIsConfident | ||
) |
Classifying text.
This function classifies the given text.
[in] | sid | Settings Collection ID. |
[in] | hDCProject | Handle of the Document Classifier Project returned by kRecOpenDCProject. |
[in] | pText | NULL terminated text to be classified. |
[out] | phDCPredictedClass | Address of a variable to store the handle of the predicted Document Class. The returned handle can be NULL. |
[out] | pConfidenceLevel | Address of a variable to store the confidence of the prediction. The returned value is between 0 and 100. |
[out] | pClassifyInfo | Address of a variable to store info about classifying. |
[out] | pLength | Address of a variable to store the length of the array returned in pClassifyInfo. This is equal to the number of classes. |
[out] | pIsConfident | Address of a variable to return if the classification is confident. The returned value is TRUE if the confidence of the prediction is greater than or equal to the preset confidence threshold. |
RECERR |
Closing a Document Classifier Project.
This function closes a Document Classifier Project opened by kRecOpenDCProject.
[in] | hDCProject | Handle of the Document Classifier Project. |
RECERR |
Returning the name of a Document Class.
This function returns the name of a Document Class.
[in] | hDCClass | Handle of the Document Class. |
[out] | ppName | Address of a variable to store the name of the Document Class. |
RECERR |
Get the confidence threshold of a Document Classifier Project.
The kRecGetDCConfidenceThreshold returns the confidence threshold of the given Document Classifier Project.
[in] | hDCProject | Handle of the Document Classifier Project returned by kRecOpenDCProject. |
[out] | pConfidenceThreshold | Address of an integer variable to get the confidence threshold. |
Starting enumeration of Document Classes.
This function returns the handle of the first Document Class of the given project.
[in] | hDCProject | Handle of the Document Classifier Project. |
[out] | phDCClass | Address of a variable to store the handle of the first Document Class. |
RECERR |
Performing enumeration of Document Classes.
This function returns the handle of the next Document Class of the given project.
[in] | hDCPrevClass | Handle of the previous Document Class. |
[out] | phDCClass | Address of a variable to store the handle of the next Document Class. |
RECERR |
Opening Document Classifier Project File.
The kRecOpenDCProject opens a Document Classifier Project File (*.dcp).
[in] | sid | Settings Collection ID. |
[in] | pDCProjectFile | Path to the Project File. |
[out] | phDCProject | Address of a variable to store the handle of the Document Classifier Project. |
RECERR |
Set the confidence threshold of a Document Classifier Project.
The kRecSetDCConfidenceThreshold sets the confidence threshold of the given Document Classifier Project.
[in] | hDCProject | Handle of the Document Classifier Project returned by kRecOpenDCProject. |
[in] | ConfidenceThreshold | The value of the current confidence threshold; |