title: Tesseract unicharset_extractor command not found
body: <p><strong>My Problem</strong></p>
  
  <p>Running <code>unicharset_extractor</code> and receiving :</p>
  
  <blockquote>
    <p>unicharset_extractor: command not found</p>
  </blockquote>
  
  <p><strong>My Environment</strong></p>
  
  <pre><code>OSX El Capitan Version 10.11.4
  
  Terminal Version 2.6.1 (361.1)
  
  tesseract 3.04.00
   leptonica-1.73
    libgif 4.2.3 : libjpeg 9a : libpng 1.6.21 : libtiff 4.0.6 : zlib 1.2.8 : libwebp 0.5.0 : libopenjp2 2.1.0
  </code></pre>
  
  <p><strong>Similar Questions</strong></p>
  
  <p>This question has been asked quite a bit, but non seems to solve my problem. Some of the non-working questions are listed here:</p>
  
  <p><a href="https://stackoverflow.com/questions/36304824/unicharset-extractor-command-not-found">unicharset_extractor: command not found</a></p>
  
  <p><a href="https://stackoverflow.com/questions/26205480/adding-new-fonts-to-tesseract-3">Adding New Fonts to Tesseract 3</a></p>
  
  <p><a href="https://groups.google.com/forum/#!msg/tesseract-issues/TWTL_d3o6Ec/dRhmh3HPGa0J" rel="nofollow noreferrer">Issue 1327 in tesseract-ocr: unicharset_extractor statement doesn´t work</a></p>
  
  <p><strong>What I'm doing</strong></p>
  
  <p>I am currently trying to train my <a href="https://github.com/tesseract-ocr" rel="nofollow noreferrer">tesseract-ocr</a> to recognise custom numbers. </p>
  
  <p><strong>What I've done</strong></p>
  
  <p>I originally installed <code>tesseract</code> using <a href="http://brew.sh" rel="nofollow noreferrer">Homebrew</a>, which installed <code>tesseract</code>, <code>leptonica</code>, and other dependencies to <code>/usr/local/Cellar</code>. I used <a href="http://www.resolveradiologic.com/blog/2013/01/15/training-tesseract/" rel="nofollow noreferrer">this</a> guide to help me train the data. Like the guide instructed, I first generated a set of <code>.tif</code> files in the format of <code>tla.test_font.exp[num].tif</code>. Then I generated the <code>.box</code> files using this script:</p>
  
  <pre><code>for i in `seq 0 52`;
  do
      tesseract tla.test_font.exp$i.tif tla.test_font.exp$i -l eng -psm 10 batch.nochop makebox
  done
  </code></pre>
  
  <p>Then I ran the <code>.box</code> files through tesseract using:</p>
  
  <pre><code>for i in `seq 0 52`;
  do
      tesseract tla.test_font.exp$i.tif tla.test_font.exp$i -l eng -psm 10 nobatch box.train
  done
  </code></pre>
  
  <p>Then I tried to run <code>unicharset_extractor *.box</code> and I received the error message above. </p>
  
  <p>Suspecting it has something to do with my <code>tesseract</code> install path, and not wanting to mess things even more using symlink, I then uninstalled <code>tesseract</code>, <code>libtool</code> and <code>leptonica</code> from <code>usr/local/Cellar</code>, and used <a href="https://www.macports.org" rel="nofollow noreferrer">MacPorts</a> to install everything again. This time in <code>/opt/local/bin</code>. After repeating the same steps mentioned above, I got stuck on the same issue. I even tried running <code>man unicharset_extractor</code> and the man page worked perfectly. </p>