Skip to main content

OCR (Optical character recognition)

Products: Video Capture SDK .Net, Video Edit SDK .Net, Media Player SDK .Net

Sample code

  1. Get the frame using Frame_GetCurrent() method. As an alternative to process each video frame, use the OnVideoFrameBitmap event.
  2. Process using an OCR library. The best free library is Tessnet2.
private void VideoCapture1_OnVideoFrameBitmap(object sender, VideoFrameBitmapEventArgs e)
Graphics grf = Graphics.FromImage(e.Frame);

grf.DrawString("Hello!", new Font(FontFamily.GenericSansSerif, 20), new SolidBrush(Color.White), 20, 20);

e.UpdateData = true;

Required redists

  • SDK redist

Visit our GitHub page to get more code samples.