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
AllowedSymbols string All characters of the selected language The whitelist of characters Aspose.OCR engine will look for.
IgnoredSymbols string none A blacklist of characters that are ignored during recognition.
Language Aspose.OCR.Language Aspose.OCR.Language.None Specify a language for recognition.
AutomaticColorInversion boolean true Improve recognition accuracy of white text on a dark/black background. If you are not optimizing every aspect of recognition (for example, for online applications or entry-level devices), leave this setting set to true.

Applicable to

Example

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

Aspose.OCR.AsposeOcr recognitionEngine = new Aspose.OCR.AsposeOcr();
// Add images to OcrInput object
Aspose.OCR.OcrInput input = new Aspose.OCR.OcrInput(Aspose.OCR.InputType.SingleImage);
input.Add("car1.png");
input.Add("car2.png");
// Recognition settings
Aspose.OCR.CarPlateRecognitionSettings recognitionSettings = new Aspose.OCR.CarPlateRecognitionSettings();
recognitionSettings.Language = Aspose.OCR.Language.Latin;
// Recognize license plates
List<Aspose.OCR.RecognitionResult> results = recognitionEngine.RecognizeCarPlate(input, recognitionSettings);
foreach(Aspose.OCR.RecognitionResult result in results)
{
	Console.WriteLine(result.RecognitionText);
}