Parameters
- unknownImage
- The image that you want this method to identify.
This method compares an unknown image to the FormModel objects that this object represents and determines which FormModel is the best match.
This object has a number of properties that control the identification process, including IdentificationQuality, IdentificationCertainty, and MinimumIdentificationConfidence.
You can limit the candidates to a subset of the full list of FormModel objects using the LimitIdentificationToSubset and IdentificationSubset properties.
By default, this object does not support identifying the unknown image when it does not have the same orientation as the matching form model. However, you can change that behavior using the IdentifyRotated90, IdentifyRotated180, and IdentifyRotated270 properties.
In three cases, an identification operation will take longer than the normal amount of time.
By default, this method will not modify the unknownImage argument. However, if the AutoAlign property is set to true, this method will align the unknownImage with the best matching FormModel when the following conditions are met:
Note 1: The identification algorithm uses the resolution of the images (both the unknown image and the model), so you must set it to the correct value for best operation. Not every method of reading an image from a file will preserve the resolution and not all image editing tools will preserve the resolution. This method will fail if the resolution of the unknown image or the model is zero. If you see that error, you should look at the debug log (see Debug) for more information about exactly which image failed.
Note 2: This method will throw an System.InvalidOperationException if called when the FormModels collection is empty, or when LimitIdentificationToSubset is true and the IdentificationSubset is empty.