Manimouse_Beta.py 文件源码

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

项目:Manimouse 作者: shivamkajale 项目源码 文件源码
def makeMask(hsv_frame, color_Range):

    mask = cv2.inRange( hsv_frame, color_Range[0], color_Range[1])
    # Morphosis next ...
    eroded = cv2.erode( mask, kernel, iterations=1)
    dilated = cv2.dilate( eroded, kernel, iterations=1)

    return dilated

# Contours on the mask are detected.. Only those lying in the previously set area 
# range are filtered out and the centroid of the largest of these is drawn and returned
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号