Skip to content

Downloads for English V3 and English V4 Stalling #105

@TheWorldEndsWithUs

Description

@TheWorldEndsWithUs

Describe the bug

Whenever I run the default code found from the online docs example on my Windows 11 64 bit machine the download stalls. It hangs forever.

Steps to reproduce the bug

` private async Task<Rectangle[]> runPaddleOCR(Mat src)
{
List ocrResults = new List();
FullOcrModel model = await OnlineFullModels.EnglishV4.DownloadAsync();
using (PaddleOcrAll all = new PaddleOcrAll(model, PaddleDevice.Mkldnn())
{
AllowRotateDetection = true,
Enable180Classification = false,
})
{
PaddleOcrResult result = all.Run(src);
Console.WriteLine("Detected all texts: \n" + result.Text);
foreach (PaddleOcrResultRegion region in result.Regions)
{
var boundingRect = region.Rect.BoundingRect();
Rectangle rect = new Rectangle(boundingRect.X, boundingRect.Y, boundingRect.Width, boundingRect.Height);
ocrResults.Add(rect);
Console.WriteLine($"Text: {region.Text}, Score: {region.Score}, RectCenter: {region.Rect.Center}, RectSize: {region.Rect.Size}, Angle: {region.Rect.Angle}");
}
}

        return ocrResults.ToArray();

    }`

My code is above it always hangs on the downloadAsync line never reaching the using statement. I've tried EnglishV3 and EnglishV4.

Expected behavior

I'd like the file to download and run the model.

Screenshots

No response

Release version

No response

IDE

Visual Studio 2022 Community

OS version

Windows 11 64 bit

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions