latest update

This commit is contained in:
kagert 2024-12-29 12:12:08 +01:00
parent 6c4fe184bc
commit 0b95a1b185

View File

@ -168,6 +168,8 @@ namespace WinSize2Magick
btnScreenshot.BackColor = btnOCR.BackColor;
Thread.Sleep(2000);
btnOCR_Click(sender, e);
//System.Diagnostics.Process.Start("CMD.exe", strCmdText);
@ -182,7 +184,7 @@ namespace WinSize2Magick
string strResult = "null";
var engine = new TesseractEngine(@"D:\\Development\\tessdata", "deu", EngineMode.LstmOnly);
var image = Pix.LoadFromFile(@"D:\\tmp\\sourcedrive\\x2.png");
var image = Pix.LoadFromFile(@"D:\\tmp\\sourcedrive\\x.png");
var page = engine.Process(image);
@ -194,7 +196,7 @@ namespace WinSize2Magick
//ProseMirror
//var elem = webViewWeb.ExecuteScriptAsync($"document.getElementById('prompt-textarea').innerText = '{text.ToString()}';");
var msg = @"Gib am Ende eine Zusammenfassung mit RICHTIG oder falsch aus.\n\n";
var msg = @"Gib am Ende eine Übersicht mit RICHTIG oder falsch laut Gesetz in Österreich aus.\n\n";
msg += text.Replace("\n", "\\n");
//msg = @"huhuhu\n\nzuzuzuz";
var elem = await webViewWeb.ExecuteScriptAsync($"document.getElementById('prompt-textarea').innerText ='{msg}';");