OCR로 이미지에 있는 문자열 가져 오려고 하는데
요런 captcha 이미지에서 문자열 가져와서 출력하는데
죄다 empty page 경고 뜨거나 문자를 이상하게 가져 오는데 이거 해결법 없냐??
일반적인 그냥 이미지는 되는데 저런 captcha 문자만 못가져 오고 있음....
일단 소스 코드는 밑에 있음...
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Console;
using System.Drawing;
using Tesseract;
namespace Img_Capture
{
class Program
{
static void Main(string[] args)
{
Bitmap btm = new Bitmap("t5.PNG");
var ocr = new TesseractEngine("./tessdata", "eng", EngineMode.TesseractAndCube);
var page = ocr.Process(btm);
string result = page.GetText();
WriteLine(result);
}
}
}
캡챠가 ocr로 인식되면 그게 캡챠냐