Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
54 changes: 54 additions & 0 deletions File-Formats/PDF/Working-with-OCR/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -235,3 +235,57 @@ using (OCRProcessor processor = new OCRProcessor("/opt/homebrew/Cellar/tesseract
</td>
</tr>
</table>

## Method PerformOCR() causes problems and ignores the tesseract files under WSL.

<table>
<th style="font-size:14px" width="100px">Issue</th>
<th style="font-size:14px">Method PerformOCR() causes problem and ignores the tesseract files under WSL</th>
<tr>
<th style="font-size:14px" width="100px">Reason
</th>
<td>Tesseract binaries in WSL are missing.
</td>
</tr>
<tr>
<th style="font-size:14px" width="100px">Solution</th>
<td>To resolve this problem, you should install and utilize Leptonica and Tesseract on your machine. Refer to the following steps for installing Leptonica and Tesseract,
<br><br/>
1. Install the leptonica.
<br>
{% highlight c# tabtitle="C#" %}

sudo apt-get install libleptonica-dev

{% endhighlight %}
<br><br>
<img src="OCR-Images/Install-leptonica.png">
<br><br>
2.Install the tesseract.
<br>

{% highlight c# tabtitle="C#" %}

sudo apt-get install tesseract-ocr-eng

{% endhighlight %}
<br><br>
<img src="OCR-Images/Install-tesseract.png">
<br><br>
3. Copy the binaries (liblept.so and libtesseract.so) to the missing files exception folder in the project location.
<br>
{% highlight c# tabtitle="C#" %}

cp /usr/lib/x86_64-linux-gnu/liblept.so /home/syncfusion/linuxdockersample/linuxdockersample/bin/Debug/net7.0/liblept1753.so

{% endhighlight %}
<br>
{% highlight c# tabtitle="C#" %}

cp /usr/lib/x86_64-linux-gnu/libtesseract.so.4 /home/syncfusion/linuxdockersample/linuxdockersample/bin/Debug/net7.0/libSyncfusionTesseract.so

{% endhighlight %}
<br/>
</td>
</tr>
</table>