# Not able to index content of images

**URL:** <https://discuss.elastic.co/t/not-able-to-index-content-of-images/199575>\
**Category:** Elasticsearch\
**Created:** [September 16, 2019, 5:22am UTC](https://discuss.elastic.co/t/not-able-to-index-content-of-images/199575 "2019-09-16T05:22:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [September 16, 2019, 5:22am UTC](https://discuss.elastic.co/t/not-able-to-index-content-of-images/199575/1 "2019-09-16T05:22:28Z")

</div>

Hello @dadoonet,

When i am trying to run FSCrawler job for Images, It is showing me below error:

```
07:05:40,428 DEBUG [f.p.e.c.f.t.TikaInstance] OCR is activated.
07:05:40,428 DEBUG [f.p.e.c.f.t.TikaInstance] But Tesseract is not installed so we won't run OCR.

```

Can you help me in this?

Regards,  
Priyanka

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 16, 2019, 9:17am UTC](https://discuss.elastic.co/t/not-able-to-index-content-of-images/199575/2 "2019-09-16T09:17:33Z")

</div>

FSCrawler is not able to find Tesseract binary in your path.

---

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [September 16, 2019, 9:20am UTC](https://discuss.elastic.co/t/not-able-to-index-content-of-images/199575/3 "2019-09-16T09:20:27Z")

</div>

Hello @dadoonet,

Thanks for reply!!!  
How to check that?  
I have already mentioned path in OCR section:

```
 ocr:
    language: "eng"
    enabled: true
    pdf_strategy: "ocr_and_text"
    follow_symlinks: false
    path: "C:/Program Files/Tesseract-OCR/tesseract.exe"
    data_path: "C:/Program Files/Tesseract-OCR/tessdata" 

```

Regards,  
Priyanka

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 16, 2019, 9:46am UTC](https://discuss.elastic.co/t/not-able-to-index-content-of-images/199575/4 "2019-09-16T09:46:50Z")

</div>

Please don't use the citation icon but the code icon `</>` to format your code.

Most of time, on Windows, I found that having a space in the path can cause some troubles. `Program Files` here might be the problem.  
Could you try with something like:

```auto
path: "/Progra~1/Tesseract-OCR/tesseract.exe"

```

If I recall correctly the syntax.  
Otherwise, could you add `C:/Program Files/Tesseract-OCR/` in your windows system path?

---

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [September 16, 2019, 10:11am UTC](https://discuss.elastic.co/t/not-able-to-index-content-of-images/199575/5 "2019-09-16T10:11:37Z")

</div>

Hello @dadoonet,

I cannot change the folder name of program Files to Program~1. Renaming of folder is disable on our server.  
I have added windows system path to environment variable window.  
How to mention that in OCR path?

Regards,  
Priyanka

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 16, 2019, 10:31am UTC](https://discuss.elastic.co/t/not-able-to-index-content-of-images/199575/6 "2019-09-16T10:31:09Z")

</div>

Then you need to remove the path from the configuration file. It will be detected automatically.

Note that you need to stop FSCrawler, start a new command line window and start FSCrawler again.

---

<div class="post-metadata">

**Author:** ![pyerunka](https://avatars.discourse-cdn.com/v4/letter/p/d6d6ee/32.png) [@pyerunka](https://discuss.elastic.co/u/pyerunka)\
**Post date:** [September 16, 2019, 10:53am UTC](https://discuss.elastic.co/t/not-able-to-index-content-of-images/199575/7 "2019-09-16T10:53:29Z")

</div>

Hello @dadoonet,

Thanks for your help!!!!  
My problem is resolved now. Thank you so much again 😄

Regards,  
Priyanka

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 14, 2019, 10:53am UTC](https://discuss.elastic.co/t/not-able-to-index-content-of-images/199575/8 "2019-10-14T10:53:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
