def weighted_img(img, initial_img, ?=0.8, ?=1., ?=0.):
"""
`img` is the output of the hough_lines(), An image with lines drawn on it.
Should be a blank image (all black) with lines drawn on it.
`initial_img` should be the image before any processing.
The result image is computed as follows:
initial_img * ? + img * ? + ?
NOTE: initial_img and img must be the same shape!
"""
return cv2.addWeighted(initial_img, ?, img, ?, ?)
# In[8]:
project3.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录