Face detection using Cascade Classifier in opencv python

前端 未结 8 1254
[愿得一人]
[愿得一人] 2020-12-31 21:36

I am using the inbuilt cascade classifier for the face detection. This is how the code is (OpenCV Python Tutorials):

import numpy as np
import cv2

face_casc         


        
8条回答
  •  不思量自难忘°
    2020-12-31 22:32

    Maybe, you use virtualenv for python like me. You try this.

    import os
    
    base_directory = os.path.abspath(os.getcwd())
    directory_cv2 = os.path.join(base_directory, "Lib", "site-packages", "cv2","data")
    print("la carpeta es: {}".format(directory_cv2))
    

提交回复
热议问题