【发布时间】:2020-12-16 09:38:10
【问题描述】:
【问题讨论】:
-
看起来像验证码。请介绍您的研究成果。
-
@RSNight RSNight,请更新信息。这将帮助您避免再被投票(OMG,-2),也请反馈我的回答。
标签: python opencv captcha opencv-python
【问题讨论】:
标签: python opencv captcha opencv-python
我们无法完全消除图像中的噪点。我们只能尽量减少噪音。我使用了库cv2、numpy和matplotlid这里我做了一个图像颜色的小例子:
import numpy as np
import cv2
from matplotlib import pyplot as plt
img = cv2.imread("yourimage")
b,g,r = cv2.split(img) # get b,g,r
rgb_img = cv2.merge([r,g,b]) # switch it to rgb
# Denoising
dst = cv2.fastNlMeansDenoisingColored(img,None,10,10,7,21)
b,g,r = cv2.split(dst) # get b,g,r
rgb_dst = cv2.merge([r,g,b]) # switch it to rgb
plt.subplot(211),plt.imshow(rgb_img)
plt.subplot(212),plt.imshow(rgb_dst)
plt.show()
输出:
更详细的可以参考opencv教程。
【讨论】: