File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
File-Formats/PDF/Working-with-OCR Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -356,6 +356,49 @@ Step 3:
356356
357357{% endhighlight %}
358358{% endtabs %}
359+ </td>
360+ </tr>
361+ </table>
362+
363+ # # OCR not working on Docker net 8.0: Exception has been thrown by target of an invocation.
364+
365+ <table>
366+ <th style="font-size:14px" width="100px">Exception</th>
367+ <th style="font-size:14px">OCR not working on Docker net 8.0 : Exception has been thrown by target of an invocation.</th>
368+ <tr>
369+ <th style="font-size:14px" width="100px">Reason
370+ </th>
371+ <td>The reported issue occurs due to the missing prerequisite dependencies packages in the Docker container in .NET 8.0 version.
372+ </td>
373+ </tr>
374+ <tr>
375+ <th style="font-size:14px" width="100px">Solution</th>
376+ <td>
377+ We can resolve the reported issue by installing the tesseract required dependencies by using Docker file. Please refer the below commands.
378+
379+ FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
380+
381+ ` RUN apt-get update && \`
382+
383+ ` apt-get install -yq --no-install-recommends \`
384+
385+ ` libgdiplus libc6-dev libleptonica-dev libjpeg62`
386+
387+ ` RUN ln -s /usr/lib/x86_64-linux-gnu/libtiff.so.6 /usr/lib/x86_64-linux-gnu/libtiff.so.5`
388+
389+ ` RUN ln -s /lib/x86_64-linux-gnu/libdl.so.2 /usr/lib/x86_64-linux-gnu/libdl.so`
390+
391+
392+
393+ USER app
394+
395+ WORKDIR /app
396+
397+ EXPOSE 8080
398+
399+ EXPOSE 8081
400+
401+
359402</td>
360403</tr>
361404</table>
You can’t perform that action at this time.
0 commit comments