title: How to get the intensity (darkness) of all the text in an image to one level?
body: <p>I have used Pytesseract and openCV to read text from an image. I used the median blur, normalization and threshold to remove the background and was able to read the text. </p>
  
  <p>However, some parts of the text have turned too light during the process of normalization and I wish to darken them so that they match the darkness/intensity of the remaining text in the image. I tried morphological transformations and tried canny+erosion to remove noise, but neither of those helped.</p>
  
  <p>My input looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/wsfM2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wsfM2.png" alt="The input"></a></p>
  
  <p>In here, "Code", "Division Name", "15" and "Mechanical" are lighter and I am unable to read them, whereas I am easily able to read "Air Distribution" and "Basic materials &amp; methods".</p>
  
  <p>Any help regarding how to change the color of the lighter text would be greatly helpful. </p>