Skip to content

Instantly share code, notes, and snippets.

View msinnema's full-sized avatar

Marco Sinnema msinnema

  • Q-Free Netherlands B.V.
  • The Netherlands
View GitHub Profile
// SecurityMode.Transport enables HTTPS
var binding = new WSHttpBinding(SecurityMode.Transport)
{
Security =
{
Mode = SecurityMode.Transport,
Message = {ClientCredentialType = MessageCredentialType.None},
Transport =
{
ClientCredentialType = HttpClientCredentialType.InheritedFromHost,
@msinnema
msinnema / iss_create_manual_client.cs
Last active August 8, 2018 13:25
Creating an ISS manual client in C#
// SecurityMode.Transport enables HTTPS
var binding = new WSHttpBinding(SecurityMode.Transport)
{
Security =
{
Mode = SecurityMode.Transport,
Message = {ClientCredentialType = MessageCredentialType.None},
Transport =
{
ClientCredentialType = HttpClientCredentialType.InheritedFromHost,
@msinnema
msinnema / sample.cs
Created June 6, 2018 12:35
Asynchronous multithreaded Intrada ALPR
using System;
using System.IO;
using System.Linq;
using System.Threading;
using Intrada.ALPR;
namespace RecognizeHotFolder
{
class Program
{
@msinnema
msinnema / sample.cs
Last active June 21, 2018 11:18
Synchronized multithreaded Intrada ALPR
using System;
using System.IO;
using System.Linq;
using System.Threading;
using Intrada.ALPR;
namespace RecognizeDirMultiThreaded
{
class Program
{
@msinnema
msinnema / sample.cs
Created June 6, 2018 12:33
Basic multi-threaded Intrada ALPR
using System;
using System.IO;
using System.Linq;
using System.Threading;
using Intrada.ALPR;
namespace RecognizeDirMultiThreaded
{
class Program
{
@msinnema
msinnema / sample.vb
Created June 6, 2018 12:32
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")
@msinnema
msinnema / sample.cs
Last active June 21, 2018 11:12
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)
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)
IntradaSetErrorHandler (NULL, NULL);
IntradaInitLibrary ("Company Name", "Options", "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX");