CreateObjectFromDocument Method of the ClassificationEngine Object
Creates a new ClassificationObject on the basis of the first page of a document. The classification object contains all the data needed by the classifier. Note that its Description property will contain the name of the file from which the document was created. If that is not acceptable, change the description after the object is created.
You can then either classify the object by the call to the Classify method of the Model object or use it when training a new classification model.
If you need to create a classification object for another of the document pages, or for an FRPage object which belongs to no document (for example, received from BatchProcessor), use the CreateObjectFromPage method.
Syntax
C++
HRESULT CreateObjectFromDocument( IFRDocument* Document, IClassificationObject** Result );
C#
IClassificationObject CreateObjectFromDocument( IFRDocument Document );
Visual Basic .NET
Function CreateObjectFromDocument(Document As IFRDocument) As IClassificationObject
Parameters
- Document
- [in] An FRDocument object which will be used to extract the data relevant for classification. Note that if you are going to use the classification object with a classifier which uses text features (CT_Text, CT_Combined), the first page of the document should contain some recognized text.
- Result
- [out, retval] A pointer to the IClassificationObject* pointer variable that receives the interface pointer of the output ClassificationObject object.
Return values
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.
See also
9/17/2024 3:14:41 PM