Car plate recognition settings

Aspose.OCR for .NET allows for very flexible customization of vehicle license plate recognition accuracy, performance, and other settings by configuring the properties of the CarPlateRecognitionSettings object.

These settings are specifically tailored for processing scanned or photographed vehicle license plates (car plates).

Setting Type Default value Description
AllowedCharacters Aspose.OCR.CharactersAllowedType Aspose.OCR.CharactersAllowedType.ALL The predefined whitelist of characters Aspose.OCR engine will look for.
IgnoredCharacters string none A blacklist of characters that are ignored during recognition.
Language Aspose.OCR.Language Aspose.OCR.Language.None Specify a language for recognition.
PreprocessingFilters Aspose.OCR.Models.PreprocessingFilters.PreprocessingFilter none Apply image processing filters that enhance an image before it is sent to the OCR engine.

Applicable to

Example

The following code example shows how to fine-tune car plate recognition:

Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
Aspose.OCR.CarPlateRecognitionSettings recognitionSettings = new Aspose.OCR.CarPlateRecognitionSettings();
recognitionSettings.AllowedCharacters = Aspose.OCR.CharactersAllowedType.LATIN_ALPHABET;
Aspose.OCR.RecognitionResult result = recognitionEngine.RecognizeCarPlate("car-plate.png", recognitionSettings);
Console.WriteLine(result.RecognitionText);