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.
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.
HRESULT CreateObjectFromDocument( IFRDocument* Document, IClassificationObject** Result );
IClassificationObject CreateObjectFromDocument( IFRDocument Document );
Visual Basic .NET
Function CreateObjectFromDocument(Document As IFRDocument) As IClassificationObject
- [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.
- [out, retval] A pointer to the IClassificationObject* pointer variable that receives the interface pointer of the output ClassificationObject object.
This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.