/paddleocr-demo

PaddleSharp OCR ASP.NET Core demo

Primary LanguageC#MIT LicenseMIT

PaddleSharp OCR demo

This is a fast demo to the upstream repository: PaddleSharp's PaddleOCR.

Demo url:

How to troubleshooting after deploy to IIS?

  1. Enable IIS log by change web.config file: (By change stdoutLogEnabled="false" to "true" in web.config) image
  2. Restart IIS website, a logs folder will shown in root folder: image
  3. Trigger the error in website and turn off website, check the error log files: image image
  4. In my case, it's caused by CUDA PATH not set correctly, I can simply set by change using following web.config file: image
     <?xml version="1.0" encoding="utf-8"?>
     <configuration>
       <location path="." inheritInChildApplications="false">
         <system.webServer>
           <handlers>
             <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModuleV2" resourceType="Unspecified" />
           </handlers>
           <aspNetCore processPath="dotnet" arguments=".\aspnetcore-demo.dll" stdoutLogEnabled="true" stdoutLogFile=".\logs\stdout" hostingModel="inprocess">
             <environmentVariables>
               <environmentVariable name="PATH" value="%PATH%;F:\_\cuda\cu120\bin" />
             </environmentVariables>
           </aspNetCore>
         </system.webServer>
       </location>
     </configuration>
    (Your case might be different, but it's a good start to troubleshooting)