Skip to content
Advertisement

Tag: image-processing

Reconstruct Image from patches/tiles in python

I have a task where I have tiled an Input image using the code: After that I calculated the sum of all tiles and sort them in ascending order. I’ll take the sum.sorted[-20] as a threshold and set all tiles below that threshold to 0 in order to neglect background. So far everything works fine. Now I need to reconstruct

python – opencv morphologyEx remove specific color

After remove captcha’s background. The image remain digits and noise. Noise line is all in one color : RGB(127,127,127) And then using morphology method. Some part of digit will be remove. How to use morphologyEx() remove only color in RGB(127,127,127) ? Answer In order to eliminate color within a particular range you have to use cv2.inRange() function. Here is the

Advertisement