Skip to content

Instantly share code, notes, and snippets.

@msinnema
Created June 6, 2018 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msinnema/54e0fbf087ef4ae439eda5781dc9a15f to your computer and use it in GitHub Desktop.
Save msinnema/54e0fbf087ef4ae439eda5781dc9a15f to your computer and use it in GitHub Desktop.
Basic single-threaded Intrada ALPR
Imports System.IO
Imports Intrada.ALPR
Module RecognizeDir
Sub Main()
Try
Dim filenames() As String = Directory.GetFiles(".", "*.jpg", SearchOption.AllDirectories)
Dim intrada As IntradaALPR = New IntradaALPR("<COMPANY_NAME>", "<COMPANY_KEY>")
Dim context As IntradaALPR.RecognitionContext = intrada.CreateNewRecognitionContext()
context.LoadSettings("settings.txt")
Dim filename As String
For Each filename In filenames
Dim result As Result = context.Recognize(filename)
Console.WriteLine(filename + "\t" + result.ToString)
Next filename
Catch e As IntradaException
Console.WriteLine("Error: " + e.ToString)
End Try
End Sub
End Module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment