OCR with the Tesseract interface

后端 未结 5 968
挽巷
挽巷 2020-11-28 22:37

How do you OCR an tiff file using Tesseract\'s interface in c#?
Currently I only know how to do it using the executable.

5条回答
  •  既然无缘
    2020-11-28 23:19

    C# program launches tesseract.exe and then reads the output file of tesseract.exe.

    Process process = Process.Start("tesseract.exe", "out");
    process.WaitForExit();
    if (process.ExitCode == 0)
    {
        string content = File.ReadAllText("out.txt");
    }
    

提交回复
热议问题