Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Opencv3 and Python 2.7 on Virtual Enviorement - AttributeError: 'module' object has no attribute 'createLBPHFaceRecognizer'

$
0
0
I have python function with opencv 3. it is normally working without virtual enviorement.Also I installed opencv on venv from:[pyimagesearch](http://www.pyimagesearch.com/2015/06/22/install-opencv-3-0-and-python-2-7-on-ubuntu/). i am trying to run that python function on venv, then it is getting error : AttributeError: 'module' object has no attribute 'createLBPHFaceRecognizer' without venv in terminal: gkhan@Gkan ~/Masaüstü/face_recognizer $ python face_recognizer.py Yol :./sinif/114.jpg. 114 Yuz Tanindi 12 with venv in terminal: gkhan@Gkan ~/Masaüstü/face_recognizer $ workon cv (cv)gkhan@Gkan ~/Masaüstü/face_recognizer $ python face_recognizer.py Traceback (most recent call last): File "face_recognizer.py", line 15, in recognizer = cv2.createLBPHFaceRecognizer() AttributeError: 'module' object has no attribute 'createLBPHFaceRecognizer' my python codes: #!/usr/bin/python # -*- coding: utf-8 -*- import cv2, os import numpy as np from PIL import Image # For Test if 0==0: cascadePath = "haarcascade_frontalface_default.xml" faceCascade = cv2.CascadeClassifier(cascadePath) recognizer = cv2.createLBPHFaceRecognizer() ... Linux Mint 64 Bit, Opencv3, python2.7

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>