neha01 / facerecognition Goto Github PK
View Code? Open in Web Editor NEWFace Recognition using OpenCV in Python
Face Recognition using OpenCV in Python
File "tester.py", line 9, in
faces_detected,gray_img=fr.faceDetection(test_img)
File "C:\Users\sunil\Desktop\ml_project\me\face_recognition.py", line 6, in faceDetection
gray_img=cv2.cvtColor(test_img,cv2.COLOR_BGR2GRAY)
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
this is the error i m getting.Can you tell me what to do in that
I am having this error on printing faces_detected after using faceDetection module -
OpenCV(3.4.2) c:\miniconda3\conda-bld\opencv-suite_1534379934306\work\modules\imgproc\src\color.hpp:253: error: (-215:Assertion failed) VScn::contains(scn) && VDcn::contains(dcn) && VDepth::contains(depth) in function 'cv::CvtHelper<struct cv::Set<3,4,-1>,struct cv::Set<1,-1,-1>,struct cv::Set<0,2,5>,2>::CvtHelper'
in the line -
gray_img = cv2.cvtColor(test_img,cv2.COLOR_BGR2GRAY)
Can you define Haar cascades?
cv2.error: OpenCV(4.1.1) /home/pi/opencv_contrib/modules/face/src/lbph_faces.cpp:365: error: (-210:Unsupported format or combination of formats) Labels must be given as integer (CV_32SC1). Expected 4, but was 6. in function 'train'.
Can you please help me ?
faces_detected,gray_img=fr.faceDetection(test_img)
faces_detected.gray_img=fr.faceDetection(test_img)
Which version of opencv should I install ???
how to train images present in DataBase?
Instead of training photos from a folder, how can we train images present in data base..?
File "tester.py", line 9, in
faces_detected,gray_img=fr.faceDetection(test_img)
File "C:\Users\sunil\Desktop\ml_project\me\face_recognition.py", line 6, in faceDetection
gray_img=cv2.cvtColor(test_img,cv2.COLOR_BGR2GRAY)
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\imgproc\src\color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'
this is the error i m getting.Can you tell me what to do in that
Traceback (most recent call last):
File "C:\Users\DELL\Desktop\openCV.py", line 18, in
faces=face_cascade.detectMultiScale(gray_img,scaleFactor=1.32,minNeighbors=5)
cv2.error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\objdetect\src\cascadedetect.cpp:1658: error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale'
I don't know what to do in this phase!
How to train like, giving ID of person and getting dataset and training them.
Can we store, trained data of different people in same .yml file ?
module 'cv2.cv2' has no attribute 'face'
in line---> "face_recognizer=cv2.face.LBPHFaceRecognizer_create()"
This is not an issue but curious to know why do we have resizedimages folder. Code worked fine without that folder too.
But if I have to use this code on my own dataset, can I resize it first and run the trainer to save time ? Will the accuracy be same ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.