title: How to Create Traineddata file For Tesseract 4.1.0
body: <p>I want to recognise the characters of NumberPlate.
  How to train the tesseract-ocr for respective number plate in ubuntu 16.04. 
  Since i don't familiar with training. Please help me to create a 'traineddata' file for recognizing numberplate.</p>
  
  <p><img src="https://i.stack.imgur.com/6raR2.png" alt="sample Number plate for which i want to detect character"></p>
  
  <p><img src="https://i.stack.imgur.com/WuGE6.jpg" alt="sample Number plate for which i want to detect character."></p>
  
  <p>I have 1000 images of number plate.</p>
  
  <p>Please look into it.
  Any help would be appreciate. </p>
  
  <p>So I have tried the following commands</p>
  
  <pre><code>tesseract [langname].[fontname].[expN].[file-extension] [langname].[fontname].[expN] batch.nochop makebox
  
  tesseract eng.arial.plate3655.png eng.arial.plate3655 batch.nochop makebox
  </code></pre>
  
  <p>But it gives error.</p>
  
  <pre><code>Tesseract Open Source OCR Engine v4.1.0-rc1-56-g7fbd with Leptonica
  Error, cannot read input file eng.arial.plate3655.png: No such file or directory
  Error during processing.
  </code></pre>
  
  <p>after that i have tried</p>
  
  <pre><code>tesseract plate4.png eng.arial.plate4 batch.nochop makebox
  </code></pre>
  
  <p>it works but in some plates.
      Now in Step 2. I am getting error.</p>
  
  <p>Screenshot is attached.</p>
  
  <p>Plate 4 image for training </p>
  
  <p><img src="https://i.stack.imgur.com/BPwDj.png" alt=""></p>
  
  <p>Step 1 and Ste p2 display in terminal</p>
  
  <p><img src="https://i.stack.imgur.com/K6KEu.png" alt=""></p>
  
  <p>File Generated after step 1 and step 2</p>
  
  <p><img src="https://i.stack.imgur.com/yrjEd.png" alt=""></p>
  
  <p>Content of file generated after step 1 and step 2</p>
  
  <p><img src="https://i.stack.imgur.com/wlXFT.png" alt=""></p>