title: Preparing for OCR OpenCV
body: <p>I am making an application that uses OCR and I am using OpenCV to threshold the image to improve the OCR results, I have gotten pretty good results but I want to know if anyone has any suggestions for improvement.</p>
  
  <p>Here is what I've done so far:</p>
  
  <pre><code>// Convert to grayscale.
  cv::cvtColor(cvMat, cvMat, CV_RGB2GRAY);
  // Apply adaptive threshold.
  cv::adaptiveThreshold(cvMat, cvMat, 255, CV_ADAPTIVE_THRESH_GAUSSIAN_C, CV_THRESH_BINARY, 3, 5);
  // Attempt to sharpen the image.
  cv::GaussianBlur(cvMat, cvMat, cv::Size(0, 0), 3);
  cv::addWeighted(cvMat, 1.5, cvMat, -0.5, 0, cvMat);
  </code></pre>
  
  <p>Let me know if you have any suggestions to improve results, thanks.</p>
  
  <p>Sample Images:
  <img src="https://i.stack.imgur.com/IBhqY.jpg" alt="enter image description here"></p>
  
  <p>After:
  <img src="https://i.stack.imgur.com/Lp90H.png" alt="enter image description here"></p>