0

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 ?

Input: original

Mid processed: boxed

Each of the boxes stored as individual image: final saves

Tavish Jain
  • 155
  • 1
  • 2
  • 13

1 Answers1

0

first crop the image using numpy slicing, like this and then save to disk using cv2.imwrite function, like this

husgor
  • 51
  • 5