Загрузка страницы

Read Text from an Image in C# | OCR using Tesseract in C# | OCR in C# Windows Form Application

Hello Friends,

In this video I Will Show You How To Convert Image to Text using C# Tesseract.Net SDK.

- Now First, What Is OCR ?

- Optical character recognition or optical character reader is the electronic or mechanical conversion of images of typed, handwritten or printed text into machine-encoded text, whether from a scanned document, a photo of a document, a scene-photo or from subtitle text superimposed on an image.

- What Is Tesseract.Net SDK ?

- Tesseract.Net SDK is a class library.

- It can read a wide variety of image formats and convert them to text in over 60 languages.

- In Visual Studio using NuGet Package Manager We can Install this library.

- Import Namespace : using Patagames.Ocr;
- Code as per above tutorial:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

using Patagames.Ocr;
using System.Drawing;

namespace ImageToText
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
PicTarget.ImageLocation = @"E:\YouTube\OctToImageDemo\ImageToText\ImageToText\Img\sample3.png";
}

private void BthClickHere_Click(object sender, EventArgs e)
{

using (var objOcr = OcrApi.Create())
{
objOcr.Init(Patagames.Ocr.Enums.Languages.English);

string plainText = objOcr.GetTextFromImage(PicTarget.ImageLocation);

txtOutput.Text = plainText;
}
}
}
}

Видео Read Text from an Image in C# | OCR using Tesseract in C# | OCR in C# Windows Form Application канала Swarg
Показать
Комментарии отсутствуют
Введите заголовок:

Введите адрес ссылки:

Введите адрес видео с YouTube:

Зарегистрируйтесь или войдите с
Информация о видео
1 августа 2020 г. 19:23:00
00:06:11
Яндекс.Метрика