title: cv2.MORPH_CLOSE joining letters together
body: <p><br>
  I'm using Opencv to do some morphological operations on an image:
  <a href="https://i.stack.imgur.com/snOJm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/snOJm.jpg" alt="input"></a> 
  but it joins some of the letters together creating problems when I detect it's contours. For example: </p>
  
  <p><a href="https://i.stack.imgur.com/lyByn.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lyByn.png" alt="joined letters"></a> <br></p>
  
  <p>Is there some tweaking I can do wih my code to fix this or will I have to do this a different way?(but it has to be a closing algorithm or function because it is pretty helpful in preprocessing).</p>
  
  <p>My code I am using is as below:</p>
  
  <pre><code>kernel = np.ones((5,5),np.uint8)
  opening = cv2.morphologyEx(thresh, cv2.MORPH_OPEN, kernel)
  closing = cv2.morphologyEx(opening, cv2.MORPH_CLOSE, kernel)
  </code></pre>