나는 내 인생에서 어떤 자리도 감지 할 수 없다. 여러 가지 해결책을 시도했지만 아무 것도 작동하지 않는다. 당신이 원격으로 바로 아무것도 볼 나던 볼 수 있듯이Aspose가 자리를 감지하지 못함
입니다.
private void timer1_Tick(object sender, EventArgs e)
{
Image img = Clipboard.GetImage();
pictureBox1.Image = img;
ocr.Config.ProcessColoredBackground = true;
if (img != null)
{
var ms = new MemoryStream();
img.Save(ms, ImageFormat.Bmp); // put here the image format
ms.Position = 0;
ocr.Image = ImageStream.FromStream(ms, ImageStreamFormat.Bmp);
ocr.Config.RemoveNonText = true;
ocr.Config.Whitelist = new char[] { '1', '2', '3', '4', '5', '6', '7', '8', '9', '0', '.' };
if (ocr.Process()) // Start processing it
{
toolStripStatusLabel1.Text = "Text: " + ocr.Text;
}
}
}
예 중단 점에 도달합니다. 그것이 무엇을하고있는 것처럼 보이지만 그것은 단지 이미지 (https://prnt.sc/hjkh7m)를 변환하지 않고있다. – BCLtd
mjwills, 나는 당신이 무엇을 의미하는지 모르겠다. (죄송합니다. 나는 초보자들을 C# – BCLtd
에 올려 놓는다. – BCLtd