Skip to content

Instantly share code, notes, and snippets.

Avatar

Marco Sinnema msinnema

  • Q-Free Netherlands B.V.
  • The Netherlands
View GitHub Profile
@msinnema
msinnema / sample.c
Last active Jun 6, 2018
Initialize Intrada
View sample.c
#include <stdio.h>
#include <stdlib.h>
#include "intrada.h"
int main ()
{
IntradaImage image;
IntradaData data;
IntradaSettings settings;
char image_name[500];
View Main (single thread, not thread-safe).c
IntradaSetErrorHandler (NULL, NULL);
IntradaInitLibrary ("Company Name", "Options", "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX");
View Recognition threads (parallel threads, thread-safe).c
IntradaCreateSettings ("Settings", &settings);
IntradaSetCountries (settings, "NL");
IntradaCreateData (&data);
while (continue)
{
IntradaLoadImage (next_image_name, 1, &image);
IntradaDataSetImage (data, image);
IntradaRecognize (settings, data);
IntradaGetNumberOfPlates (data, &nr_plates);
if (nr_plates > 0)
@msinnema
msinnema / sample.vb
Created Jun 6, 2018
Basic single-threaded Intrada ALPR
View sample.vb
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")
@msinnema
msinnema / sample.cs
Created Jun 6, 2018
Basic multi-threaded Intrada ALPR
View sample.cs
using System;
using System.IO;
using System.Linq;
using System.Threading;
using Intrada.ALPR;
namespace RecognizeDirMultiThreaded
{
class Program
{
@msinnema
msinnema / sample.cs
Created Jun 6, 2018
Asynchronous multithreaded Intrada ALPR
View sample.cs
using System;
using System.IO;
using System.Linq;
using System.Threading;
using Intrada.ALPR;
namespace RecognizeHotFolder
{
class Program
{
@msinnema
msinnema / sample.cs
Last active Jun 21, 2018
Basic single-threaded Intrada ALPR
View sample.cs
using System;
using System.IO;
using System.Linq;
using Intrada.ALPR;
namespace RecognizeDirSingleThreaded
{
class Program
{
static void Main(string[] args)
@msinnema
msinnema / sample.cs
Last active Jun 21, 2018
Synchronized multithreaded Intrada ALPR
View sample.cs
using System;
using System.IO;
using System.Linq;
using System.Threading;
using Intrada.ALPR;
namespace RecognizeDirMultiThreaded
{
class Program
{
View iss_create_client.cs
// SecurityMode.Transport enables HTTPS
var binding = new WSHttpBinding(SecurityMode.Transport)
{
Security =
{
Mode = SecurityMode.Transport,
Message = {ClientCredentialType = MessageCredentialType.None},
Transport =
{
ClientCredentialType = HttpClientCredentialType.InheritedFromHost,