Skip to content

Instantly share code, notes, and snippets.

/// <summary>
/// Read text from image.
/// </summary>
/// <see cref="https://github.com/opencv/opencv/blob/master/samples/dnn/text_detection.cpp"/>
/// <param name="fileName">Name of the image file.</param>
/// <param name="loaderFactory">The loader factory.</param>
/// <returns>Scanned text.</returns>
public string ReadAllText(string fileName, ITextDocumentLoaderFactory loaderFactory)
{
// Load network.