Skip to content

Instantly share code, notes, and snippets.

View henrivain's full-sized avatar

Henri Vainio henrivain

  • Tampere University
  • Finland
  • 11:13 (UTC +03:00)
  • LinkedIn in/henrivain
View GitHub Profile
let currentEventSource = null;
function IsNullOrEmpty(str) {
if (str === null) {
return true;
}
if (typeof str === "string" && str.length === 0) {
return true;
}
return false;
@henrivain
henrivain / TessEngineDemo.md
Last active October 29, 2023 17:25
Using TessEngine interface with MauiTesseractOcr package

// this code is not written in ide, so it might not compile, e.g. semocolons might not be added here

Add injections as normal

using TesseracrOcrMaui;
var builder = MauiApp.CreateBuilder();
builder
   .UseMauiApp<App>()
   .ConfigureFonts(fonts =>