# Problem updating a variable in a loop

**URL:** <https://forum.elixirforum.com/t/problem-updating-a-variable-in-a-loop/51195>\
**Category:** Questions\
**Tags:** opencv, evision\
**Created:** [October 20, 2022, 7:01am UTC](https://forum.elixirforum.com/t/problem-updating-a-variable-in-a-loop/51195 "2022-10-20T07:01:34Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Gupta](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/g/ad7895/32.png) [@Gupta](https://forum.elixirforum.com/u/Gupta)\
**Post date:** [October 22, 2022, 4:44pm UTC](https://forum.elixirforum.com/t/problem-updating-a-variable-in-a-loop/51195/6 "2022-10-22T16:44:01Z")

</div>

I was trying to use tesseract-Ocr in elixir  
but i am getting error pls :

```elixir
iex(4)> import TesseractOcr.Utils
TesseractOcr.Utils
iex(5)> path="lib/grid_1.png"    
"lib/grid_1.png"
iex(6)> TesseractOcr.read(path)  
** (ErlangError) Erlang error: :enoent
    (elixir 1.13.4) lib/system.ex:1044: System.cmd("tesseract", ["lib/grid_1.png", "stdout"], [])
    (tesseract_ocr 0.1.5) lib/tesseract_ocr.ex:19: TesseractOcr.read/2
iex(6)>

```

pls help me to rectify it

---

_[View the full topic](https://forum.elixirforum.com/t/problem-updating-a-variable-in-a-loop/51195)._
