How to extract text region from an image after detecting
问题 I am trying to extract all text regions from an image using opencv python. I have successfully detected the text regions but could not extract it. I extracted the smaller sub-matrices of a text region but I cannot aggregrate them into a bigger matrix that we see as the text region in the image. import numpy as np import cv2 from imutils.object_detection import non_max_suppression import matplotlib.pyplot as plt %matplotlib inline from PIL import Image # pip install imutils image1 = cv2.imread