Is it possible to change a part of the background color of an image, when the image is a table?

独自空忆成欢 提交于 2019-12-08 04:09:23

I have 3 possible ways from an image-analysis perspective

Splitting You can split the images in two part. First part is just your normal flow (load image, detect text on it). The second flow you first take the negative of the image (255 - img) and than detect text.

The two results will need to be merged afterwards.

difference filter You can first apply a difference filter/edge detection this will high everything with a high contrast BUT can alter the shape of the letters if done to extreme or if some letters are way bigger.

contour finding + filling Again an edge detection but now very thin and followed with an contour detection. This will redraw all letter in one color.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!