latest update
This commit is contained in:
parent
6c4fe184bc
commit
0b95a1b185
6
Form1.cs
6
Form1.cs
@ -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}';");
|
||||
|
Loading…
Reference in New Issue
Block a user