public void Recognize() { OpenVision.PrepareImageTo(openvision); byte[] buff = new byte[30]; OpenVision.RecognizePlate(openvision, buff); if (buff.Length != 0) { string line = Encoding.Default.GetString(buff); Debug.WriteLine(line); } }
public void Display() { while (true) { lock (obj) { OpenVision.DisplayImageFrame(openvision); Thread RecognizeThread = new Thread(new ThreadStart(Recognize)); RecognizeThread.Start(); RecognizeThread.Join(); } } }