drowsy_predict.py 文件源码

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

项目:drowsy_detection 作者: thandongtb 项目源码 文件源码
def predictFacialLandmark(img, detector):
    img = imutils.resize(img, width=500)
    gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
    # detect faces in the grayscale image
    rects = detector(gray, 1)
    return rects
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号