Last active
June 21, 2018 11:12
-
-
Save msinnema/fc68a6b77780e60df8e95f1adc607168 to your computer and use it in GitHub Desktop.
Basic single-threaded Intrada ALPR
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.IO; | |
using System.Linq; | |
using Intrada.ALPR; | |
namespace RecognizeDirSingleThreaded | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
try | |
{ | |
string[] filenames = Directory.GetFiles(".", "*.jpg", SearchOption.AllDirectories); | |
IntradaALPR intrada = new IntradaALPR("<COMPANY_NAME>", "<COMPANY_KEY>"); | |
IntradaALPR.RecognitionContext context = intrada.CreateNewRecognitionContext(); | |
context.LoadSettings("settings.txt"); | |
foreach (string filename in filenames) | |
{ | |
Result result = context.Recognize(filename); | |
Console.WriteLine( filename + "\t" + result ); | |
} | |
} | |
catch (IntradaException e) | |
{ | |
Console.WriteLine("Error: " + e); | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment