Skip to content

Instantly share code, notes, and snippets.

@msinnema
Last active June 21, 2018 11:12
Show Gist options
  • Save msinnema/fc68a6b77780e60df8e95f1adc607168 to your computer and use it in GitHub Desktop.
Save msinnema/fc68a6b77780e60df8e95f1adc607168 to your computer and use it in GitHub Desktop.
Basic single-threaded Intrada ALPR
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