-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Downloads for English V3 and English V4 Stalling #105
Comments
#104 #84 #80 #62 #32
Deeplink for |
Hey! Thank you for getting back to me! I downloaded the models and put them in the AppData folder as instructed, however the download still stalls for some reason. Thank you for your response, but I might use Tesseract for the time being so no rush to figure it out. |
Did you uncompressed that |
Please remove the suffix
PaddleSharp/src/Sdcb.PaddleOCR.Models.LocalV4/KnownModels.cs Lines 16 to 28 in 475ed95
|
This worked! I got rid of the Online Model library and downloaded the Local model library. Now the local example works perfectly. Thank you! |
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}");
}
}
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
The text was updated successfully, but these errors were encountered: