Skip to content

Commit

Permalink
show perf info for fastcheckocr
Browse files Browse the repository at this point in the history
  • Loading branch information
sdcb committed Oct 10, 2023
1 parent 8278de7 commit 99b97ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Sdcb.PaddleOCR.Tests/OnlineModelsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ public async Task FastCheckOCR()
// using (Mat src2 = Cv2.ImRead(@"C:\test.jpg"))
using (Mat src = Cv2.ImDecode(sampleImageData, ImreadModes.Color))
{
Stopwatch sw = Stopwatch.StartNew();
PaddleOcrResult result = all.Run(src);
_console.WriteLine($"lapsed={sw.ElapsedMilliseconds} ms");
_console.WriteLine("Detected all texts: \n" + result.Text);
foreach (PaddleOcrResultRegion region in result.Regions)
{
Expand Down

0 comments on commit 99b97ec

Please sign in to comment.