Skip to content

Instantly share code, notes, and snippets.

@msinnema msinnema/sample.cs

Last active Jun 21, 2018
Embed
What would you like to do?
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
You can’t perform that action at this time.