mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-11 15:26:55 +03:00
Fix fake OcrResult creation
This commit is contained in:
parent
c07bcddf3b
commit
46577c6a44
@ -91,9 +91,11 @@ public class ContextualTests : IDisposable
|
||||
|
||||
OcrResult CreateOcrResult(string text)
|
||||
{
|
||||
var list = ImmutableList.Create(
|
||||
new OcrResultElement(text, ocrParams.LanguageCode!, false,
|
||||
(10, 10, 10, 10), 0, 10, ImmutableList<OcrResultElement>.Empty));
|
||||
var word = new OcrResultElement(text, ocrParams.LanguageCode!, false,
|
||||
(10, 10, 10, 10), 20, 10, ImmutableList<OcrResultElement>.Empty);
|
||||
var line = new OcrResultElement(text, ocrParams.LanguageCode!, false,
|
||||
(10, 10, 10, 10), 20, 10, ImmutableList.Create(word));
|
||||
var list = ImmutableList.Create(line);
|
||||
return new((0, 0, 100, 100), list, list);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user