Article Type:
|
How To
|
Product:
|
License Plate Recognition
|
Product Version:
|
6.12
|
Component:
|
Software
|
Device Brands:
|
|
Created:
|
8-Aug-2014 8:43:03 AM
|
Last Updated:
|
|
How to convert LPR plate type to region name
Scenario The LicensePlate table in the database has a PlateType column which stores the region information encoded as an integer. Solution To get the translated name of this region, call the static PlateTypeToString method on the LicensePlateTypeHelper class in the Lpr.Core.Model namespace:
namespace Lpr.Core.Model { public static class LicensePlateTypeHelper { public static string PlateTypeToString(int type); } }
Sample code:
using Lpr.Core.Model;
static void Main(string []args) { Console.WriteLine(LicensePlateTypeHelper.PlateTypeToString(60)); Console.WriteLine(LicensePlateTypeHelper.PlateTypeToString(108)); }
Output will be: Ontario Germany
If your machine's language is German, the output will be: Ontario Deutschland
Average rating:
|
|
Please log in to rate.
|
Rated by 0, Viewed by 3804
|
|