image_preprocessing.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:Notes2ppt 作者: gsengupta2810 项目源码 文件源码
def adaptive_thresholding(img):
  # adaptive mean binary threshold
  th4 = cv2.adaptiveThreshold(img,255,cv2.ADAPTIVE_THRESH_MEAN_C,cv2.THRESH_BINARY,11,2)
  # adaptive gaussian thresholding
  th5 = cv2.adaptiveThreshold(img,255,cv2.ADAPTIVE_THRESH_GAUSSIAN_C,cv2.THRESH_BINARY,11,2)
  return th5
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号