Face Recognition : module ‘cv2’ has no attribute ‘face’.

Beranda › Forums › Belajar Data Science Tingkat Mahir › Face Recognition : module ‘cv2’ has no attribute ‘face’.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #228541
    Aryo Prayogi
    Participant

      Halo, izin bertanya untuk materi Face Recognition pada file ‘face_recognition.py’, ketika saya menjalankan code ini di Spyder:
      recognizer = cv2.face.LBPHFaceRecognizer_create()

      ada keterangan error :
      Cell In[30], line 1
      recognizer = cv2.face.LBPHFaceRecognizer_create()

      AttributeError: module ‘cv2’ has no attribute ‘face’

      Saya sudah install library numpy, opencv-python, opencv-contrib-python, pillow, dan juga face, tetapi masih tetap error juga.
      Mohon bantuannya coach, terima kasih.

      #228776
      Coach William
      Moderator

        Hi Aryo,

        Tampaknya ini permasalahan pada instalasi opencv contrib python di device kamu. Saya sarankan kamu untuk browsing github dan stackoverflow untuk mencari berbagai alternatif solusi. Krn solusi untuk setiap device bisa berbeda-beda.

        Kamu bisa coba dengan keyword cv2 has no attribute face di google

        Regards
        William

      Viewing 2 posts - 1 through 2 (of 2 total)
      • You must be logged in to reply to this topic.
      Shopping cart0
      There are no products in the cart!
      Continue shopping