title: Save recognized text boxes as files OpenCV
body: <p>I have an image having text, it may be printed or handwritten, in an image format, and I aim to extract each line from it and save each detected box as an individual file in my directory. How can I do it using openCV ?</p>
  <p>Input:
  <a href="https://i.stack.imgur.com/9ipE4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9ipE4.jpg" alt="original" /></a></p>
  <p>Mid processed:
  <a href="https://i.stack.imgur.com/NGFG1.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/NGFG1.jpg" alt="boxed" /></a></p>
  <p>Each of the boxes stored as individual image:
  <a href="https://i.stack.imgur.com/hVtx0.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hVtx0.png" alt="final saves" /></a></p>