Пример #1
0
 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);
     }
 }
Пример #2
0
        public void Display()
        {
            while (true)
            {
                lock (obj)
                {
                    OpenVision.DisplayImageFrame(openvision);
                    Thread RecognizeThread = new Thread(new ThreadStart(Recognize));
                    RecognizeThread.Start();

                    RecognizeThread.Join();
                }
            }
        }