image processing - How to remove the known background from captcha in C# -


for example, there 2 pictures.

captcha:
enter image description here

background:

enter image description here

how remove background captcha in c#?

one simple method is: can iterate image's pixels. every pixel, need subtract background pixel value original corresponding pixel value. however, simple method is, not detect edges , not separate foreground background. therefore, see dots in resulted image, result of subtraction black dots of background.

image

in order achieve c#, need image processing library. if don't have one, can here details.

if not want use method, can edge detection algorithms, these quite difficult. in addition, not guaranteed work these captcha images.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -