When I use
lines=ft.findTextLines()
then
for i in range(lines.shape[0]):
rectn = lines[i, :]
rectn[2] += rectn[0]
rectn[3] += rectn[1];
cv2.rectangle(img,(rectn[0],rectn[1]),(rectn[2],rectn[3]), color)
cv2.imwrite('dst.jpg',img);
I got many intra lines in the pic "img", how can i remove those lines?
When I use lines=ft.findTextLines() then
for i in range(lines.shape[0]): rectn = lines[i, :] rectn[2] += rectn[0] rectn[3] += rectn[1];
cv2.rectangle(img,(rectn[0],rectn[1]),(rectn[2],rectn[3]), color)
cv2.imwrite('dst.jpg',img);
I got many intra lines in the pic "img", how can i remove those lines?