OcrProcess.cs 587 字节
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DeviceLibrary
{
    public class OcrProcess
    {
        static Process p = new Process();
        static OcrProcess() {
            p.StartInfo = new ProcessStartInfo("OcrLiteOnnx\\OcrLiteOnnxForm.exe");
        }
        public static void Run() {
            var pss =  Process.GetProcessesByName("OcrLiteOnnxForm");
            if (pss.Length > 0)
                return;
            
            p.Start();
        }
    }
}