想法来源博文
cv2.findContours OpenCV图形轮廓函数python_昭良涉事的博客-CSDN博客
cv2.findContours(fgmask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)对黑底白字的识别效果很好。对比测试如下:
fgmask原图: findContours: 备注
能识别出数字轮廓
能识别出数字轮廓
只识别出外边框。
想法来源博文
cv2.findContours OpenCV图形轮廓函数python_昭良涉事的博客-CSDN博客
cv2.findContours(fgmask, cv2.RETR_EXTERNAL, cv2.CHAIN_APPROX_NONE)对黑底白字的识别效果很好。对比测试如下:
fgmask原图: findContours: 备注
能识别出数字轮廓
能识别出数字轮廓
只识别出外边框。