5/9 - Advance Face Recognition Student Attendance System Project in Python OpenCV (LBPH Algoritham)

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024
  • Hello everyone,
    Advance Face Recognition Student Attendance System Project in Python OpenCV With Tkinter GUI & Mysql Database
    **Download Full Project Source Code**
    imojo.in/6gx62a
    Algorithm Use:
    Haarcascade Opencv (Object Detection)
    LBPH Opencv (Face Recognition)
    Features of Project:
    real time face detection
    1] Loging Security System
    (Username&Password)
    2] Home Page
    i) Student management system (Save, Take Photo Samples, Update, Delete, Clear)
    ii) Train Photo Samples
    iii) Take Attendance with Face Detection
    iv) Attendance Report (Excel file & MySql database)
    v) Developer Page
    vi) Help Desk
    vii) Exit System
    Like video👍 & subscribe my channel 🙏
    Follow Me On Instagram:
    / codewithkiran_
    Download login&register source code(paid)
    imojo.in/7mcmrR
    Download visual studio code:link:code.visualstu...
    MySql download:
    www.mysql.com/...
    Face Recognition Full PlayList:
    • How To Create Advance ...
    Hotel management system project:
    • 1/6 - How to create ho...
    Hotel Project playlist:
    • How to Create hotel ma...
    Login system:
    • How to create login sy...
    Register page:
    • #Part1 How To Create R...
    Hospital management system :
    • Hospital management sy...
    Library management system:
    • Library management sys...
    Pharmacy management system:
    • Pharmacy management sy...
    Student management system :
    • Video
    Alexa in Hindi:
    • how to create alexa in...
    Build your own Text-to-Speech Audiobooks :
    • Speech recognition usi...
    Our Queries:
    face attendance
    attendance machine face detection
    essl face recognition machine
    face recognition biometric attendance system
    face recognition attendance
    face recognition time attendance system
    face attendance system
    face detection attendance system
    face attendance machine
    face recognition attendance system
    time attendance with face recognition
    face recognition camera for attendance
    face recognition camera attendance system
    attendance face machine
    python online
    anaconda python
    python

Комментарии • 172

  • @diceyme0120
    @diceyme0120 2 года назад +10

    Leaving this comment here so that if anyone has the same error can solve it.
    Error: cv2 has no module face
    I tried all the solution available on internet but nothing worked for me
    Then I uninstalled everything and---
    1. Install vs 2019(not vs code) with desktop development with c++
    2. Installed python 3.8.6 strictly 64 bit windows installer
    3. Installed cmake
    4. Installed dlib
    5. Then opencv-contrib-python (completely removed python packages and everything because maybe it was overidden)
    6. Normally installed libraries needed for code

  • @infinity2creation551
    @infinity2creation551 Год назад +3

    Bina source code k video mt dala kr bhai agr sell krna hi hai toh video mt bana....agr video bna hi hai toh sell mt kr with source code provide kr q ki bhot dikkt hota hai......or paise bi ni hota ki buy kr sake toh....plz ....bro try to understand.... Source de do

  • @rajaryan6792
    @rajaryan6792 4 месяца назад +2

    another way to resolved the sv2.face is not in module (pip install opencv-contrib-python)

  • @ankitanapit1757
    @ankitanapit1757 2 года назад +4

    Sir update photo sample ki coding ka video bhi plz bana dijiye it's a hamble request sir please

  • @PSSSwetaYadav
    @PSSSwetaYadav Год назад +3

    Hello sir,
    Mujhe cv2 ka error aa raha hai
    please help sir,
    File "c:\Users\ADMIN\Desktop\Face.R.S\train.py", line 58, in train_classifier
    clf=cv2.face.LBPHFaceRecognizer_create()
    AttributeError: module 'cv2' has no attribute 'face'

    • @nammatulunaad9213
      @nammatulunaad9213 Год назад

      It means LBPHFaceRecognizer is not in installed usually it comes with cv2 library

    • @faisalkhan_09
      @faisalkhan_09 Год назад

      ​@@nammatulunaad9213 how to solve it than do we have to install it using pip or what ?

  • @PramishaVelusamy
    @PramishaVelusamy 11 месяцев назад +1

    For LBPH prmbl
    Open terminal and type python then drag the main.py file from the top the eraser the & symbol in the path which arrives automatically in terminal the project will run without issue

  • @diceyme0120
    @diceyme0120 2 года назад +2

    Someone plzzz help cv2 has no attribute face. tried all possible solutions but it is not solving.... please help

    • @pratyushsingh7730
      @pratyushsingh7730 2 года назад

      If you have build the project can you provide me the Source Code please

  • @Funland1-l8n
    @Funland1-l8n 3 года назад +5

    Message box is not showing?
    Classifier.xml file is not created ??
    and also only one type of image is getting saved in the data folder i.e whenever i try to add the photo the previous one gets deleted

    • @naiduanuradha6
      @naiduanuradha6 2 года назад

      same here....did u solve it ?

    • @paidasaithanmayee3212
      @paidasaithanmayee3212 2 года назад

      @@naiduanuradha6 even I'm facing the same problem did u find the solution?

    • @harshitpandey643
      @harshitpandey643 2 года назад

      same here

    • @naiduanuradha6
      @naiduanuradha6 2 года назад

      @@paidasaithanmayee3212 no not yet..my mysql server has crashed now

    • @paidasaithanmayee3212
      @paidasaithanmayee3212 2 года назад

      @@naiduanuradha6 ok..can u let me know once it is resolved! Even I'm working on it.

  • @priyanshiranawat7236
    @priyanshiranawat7236 12 дней назад

    your work is commendable

  • @khushikumari7318
    @khushikumari7318 2 дня назад

    Camera open ho raha h lekin message show nhi kar raha h

  • @Saddiqa95
    @Saddiqa95 Год назад +1

    Thanks for making such a wonderful video. It's been really helpful in my journey to learn Python. You're doing an amazing job! I do have a question though. When I created the 'Train Data' button and clicked on it, a small window popped up just as you showed in the video. However, it got stuck on the last image and didn't proceed to show me the message 'Training dataset complete.' Could you please let me know where I might have gone wrong? I followed all of your steps. It would be greatly appreciated if you could reply to me.

    • @fearlessshikha8880
      @fearlessshikha8880 8 месяцев назад

      I'm getting the same error..will u please tell how to fix it

  • @sriram5839
    @sriram5839 Год назад +3

    I tried everything but cv2.face isn't working please help me😢

    • @subhasmitamandangi7991
      @subhasmitamandangi7991 Год назад

      Didi you get the solution ?? Pls help me 🥺

    • @subhasmitamandangi7991
      @subhasmitamandangi7991 Год назад

      @@amansingh-mo9kb I did the same and I got the solution also ☺️ thank u so much for responding 🤗

    • @shashivadanalishetti1489
      @shashivadanalishetti1489 Год назад

      I am getting module cv2 has no attribute face error please help me

    • @shashivadanalishetti1489
      @shashivadanalishetti1489 Год назад

      ​@@subhasmitamandangi7991 i am getting module cv2 has no attribute face error please help me

    • @sriram5839
      @sriram5839 Год назад

      @@shashivadanalishetti1489 delete open cv head and reinstall it

  • @souradipmukherjee7120
    @souradipmukherjee7120 6 месяцев назад

    can anyone help me in this please
    Exception in Tkinter callback
    Traceback (most recent call last):
    File "C:\Users\HP\AppData\Local\Programs\Python\Python39\lib\tkinter\__init__.py", line 1892, in __call__
    return self.func(*args)
    File "c:\Users\HP\Desktop\Face Recog System\train.py", line 79, in train_classifier
    clf.train(faces,ids)
    cv2.error: Unknown C++ exception from OpenCV code

  • @yashjoshi1153
    @yashjoshi1153 11 месяцев назад +1

    hey , in my vs code i have clf = cv2.face.LBPHFaceRecognizer , but not this clf = cv2.face.LBPHFaceRecognizer_create() , what should i do

    • @joshuamaebanyamasege9437
      @joshuamaebanyamasege9437 10 месяцев назад +3

      did you confirm that you have a version of Opencv installed that contains the module Face? You can check like this:
      import cv2
      functions = dir(cv2)
      for f in functions:
      print (f)
      and if not...install like this:
      pip uninstall opencv-contrib-python
      pip install opencv-contrib-python

    • @anujkushwaha925
      @anujkushwaha925 6 месяцев назад

      ruclips.net/video/ihbsvNb-bSw/видео.htmlsi=BS9oD8rbaZacwiD4

    • @Abhilashaisgood
      @Abhilashaisgood 5 месяцев назад

      hiiii pls help my 1st face image data gets replaced by 2nd face image data , how to fix that?/

  • @eclipse3946
    @eclipse3946 3 года назад +2

    Hello sir, I have some questions,
    1) During the list comprehension part, why do we have to store the "data" directory into a new variable?
    2) 26:45 , why are we converting the images into grayscale when we have already done it in the previous part?

    • @codewithkiran
      @codewithkiran  3 года назад +1

      More details
      towardsdatascience.com/face-recognition-how-lbph-works-90ec258c3d6b

  • @anujpatyal8690
    @anujpatyal8690 4 месяца назад

    sir classifier.xml file create nhi hori, or na hi message show hora .what can i do ?

    • @Ghousbutt1
      @Ghousbutt1 3 месяца назад

      Mera bi same issue arha classifier file create Ni horhi pr face recognition pr bi camera open Ni horha

  • @talhaabdelhadi4030
    @talhaabdelhadi4030 5 месяцев назад

    Can you please send me the final program for the project to identify my attendees

  • @nazmulhasannobel7059
    @nazmulhasannobel7059 Год назад

    cv2.error: OpenCV(4.6.0) D:\a\opencv-python\opencv-python\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 'cv::face::LBPH::train'

  • @ninezerocrypto7122
    @ninezerocrypto7122 3 года назад +2

    amazing dude!!

  • @godmummy3177
    @godmummy3177 3 года назад +2

    Waw sir very nice👍👌

  • @namratamangwani9002
    @namratamangwani9002 3 года назад +1

    Since images are already gray scale, then why are we doing it again

    • @codewithkiran
      @codewithkiran  3 года назад +1

      you asked a very good question.
      Because when we train images, we need grayscale images that's why we use grayscale again.

  • @shobhitsingh6330
    @shobhitsingh6330 Год назад +1

    cv2.face is not working

  • @ashwanisen6272
    @ashwanisen6272 3 года назад +1

    Please sir add auto music on complete attendence

  • @LEETanjubagri
    @LEETanjubagri Год назад

    My Dataset is not training . please help me sir why my train dataset button is not working .
    Even i have write the same code as u have written. please help me sir its so urgent to remove this error. 🙏🙏

  • @namansethi1767
    @namansethi1767 3 года назад +1

    Thanks bro for all these videos

  • @testtest6282
    @testtest6282 3 года назад +1

    can anyone will send synopsis of this project and SRS document

  • @vinitjain3087
    @vinitjain3087 2 года назад

    cv2.error: OpenCV(4.5.5) D:\a\opencv-python\opencv-python\opencv_contrib\modules\face\src\facerec.cpp:70: error: (-2:Unspecified error) File can't be opened for writing! in function 'cv::face::FaceRecognizer::write
    I got this error please help me to resolve this.

  • @murtazamadadi8657
    @murtazamadadi8657 Год назад

    this projects are excellent thank you sir, I got an error went i was working in this part it was like this TypeError: data type 'unit8' not understood how can i solve this error please help me sir

  • @dhartipatel2128
    @dhartipatel2128 7 месяцев назад

    Hello sir, I am getting no face attribute error. I have tried all the possible solutions related installations and Uninstallations. Please help me sir to run the code correctly.

    • @najibbourkadi2210
      @najibbourkadi2210 7 месяцев назад

      I also find the same problem

    • @najibbourkadi2210
      @najibbourkadi2210 7 месяцев назад

      If someone has a solution to this problem please

    • @anshallu3235
      @anshallu3235 6 месяцев назад

      I got the solution

    • @garimayadav6900
      @garimayadav6900 6 месяцев назад

      ​@@anshallu3235 plz solution bta do

    • @anujkushwaha925
      @anujkushwaha925 6 месяцев назад

      Solution ruclips.net/video/ihbsvNb-bSw/видео.htmlsi=BS9oD8rbaZacwiD4

  • @palaksharma4667
    @palaksharma4667 Год назад

    Sir mere code me mene train tak complete bana liya tha sab sahi se chal bhi gaya tha photos bhi Data folder mein feed ho gayi thi lekin ab nahi ho rahi data set complete bhi ho raha hai but photos Data dir mein nhi jaa rahi

    • @digitalmandal6550
      @digitalmandal6550 2 месяца назад

      agar ek bar ek user image ko capture kar liya hoga na and uska image file mai save ho gaya hoga to uska dubara se file mai save nahi hoga bhale hi kinyu na capture kar le
      agar phir se new user ke data ko add karo uske bad new user ke face capture karke image save hoga ussi folder mai

  • @rushikeshmhatre3648
    @rushikeshmhatre3648 Год назад

    Cv2 version??

  • @vivekbhatiya9365
    @vivekbhatiya9365 Год назад

    Sir i have a question in training dataset there is only one user images are shown ... Why ... What about other users students?

  • @EarthTales122
    @EarthTales122 9 месяцев назад

    Module cv2 has no attribute face😢

    • @EarthTales122
      @EarthTales122 9 месяцев назад

      Please koi solution bta de eska

    • @kunalkathpal5843
      @kunalkathpal5843 9 месяцев назад

      I'm also getting same error, how to solve this error

    • @anujkushwaha925
      @anujkushwaha925 6 месяцев назад

      ​@@EarthTales122solution : ruclips.net/video/ihbsvNb-bSw/видео.htmlsi=BS9oD8rbaZacwiD4

  • @harishyamjaiswal2186
    @harishyamjaiswal2186 3 года назад

    Sir can you provide us code

  • @ShahzadAlam-ik4qw
    @ShahzadAlam-ik4qw 3 года назад

    Clf.train not able to find.. its not giving suggestion for train fuction

  • @ubaidullah3384
    @ubaidullah3384 3 года назад +1

    Wow sir Brilliant sir

    • @makaivictor8795
      @makaivictor8795 3 года назад

      dont know if anyone gives a damn but if you are stoned like me during the covid times then you can stream pretty much all the latest series on InstaFlixxer. Have been binge watching with my girlfriend for the last couple of weeks =)

    • @shanealec3399
      @shanealec3399 3 года назад

      @Makai Victor yea, been using Instaflixxer for since november myself :D

  • @apurvchokshi7419
    @apurvchokshi7419 3 года назад

    i am getting this error
    imageNP=np.array(img,'uint8')
    TypeError: __array__() takes 1 positional argument but 2 were given

    • @JD-iy9ej
      @JD-iy9ej 3 года назад +1

      apurv you solve this error

    • @apurvchokshi7419
      @apurvchokshi7419 3 года назад +1

      @@JD-iy9ej i solved it....i rechecked my code again from this video and found out one of the statement was missing...actually in this video, sir has skipped that part when he wrote that statement. In the end of video sir will scroll down and show whole code that time it is visible. You can check that

    • @trjoksepha4770
      @trjoksepha4770 Год назад

      @@apurvchokshi7419 wo line number bta do yrr jisko skip kar diya sir ne

    • @apurvchokshi7419
      @apurvchokshi7419 Год назад

      ​@@trjoksepha4770 i don't remember as it was like 1 year ago but try to check each line of your code with sir's code

    • @monalisaray2390
      @monalisaray2390 Год назад

      String index out of range problem solution plsssss

  • @siddhichavan4962
    @siddhichavan4962 3 года назад

    Hello sir !!! Please help !!! Mujhe ek error aa raha hai MySQL se "you have an error in your SQL syntax ,cheak the manunal that corresponds to your MySQL server version for the right syntax to use near " what should I do ???

    • @codewithkiran
      @codewithkiran  3 года назад +1

      Iska matlab yeh hai ki jo apne SQL query likhi hai O galat likhi hai. Dubara check karna carefully

    • @siddhichavan4962
      @siddhichavan4962 3 года назад

      Save delete button work ho Raha hai pr update button ko hi error aa raha hai . Maine firse new table create krke bhi try kiya save delete work ho Raha ha update ke liye sirf error aa raha hai

    • @siddhichavan4962
      @siddhichavan4962 3 года назад

      Please help!!!!

    • @rahulwalia7502
      @rahulwalia7502 3 года назад

      Mysql me jo column name h unme space mat dalna
      I was getting this error too

    • @siddhichavan4962
      @siddhichavan4962 3 года назад

      @@rahulwalia7502 nahi dala hai

  • @husainsadriwala1941
    @husainsadriwala1941 3 года назад +1

    line 47, in train_classifier
    id=int(os.path.split(image)[1].split('.'[1]))
    IndexError: string index out of range
    I m getting this error

    • @enxous4269
      @enxous4269 Год назад

      Did u solved it sir? Can i know what is the solution?

    • @nadabe3738
      @nadabe3738 Год назад

      @@enxous4269 id=int(os.path.split(image)[1].split(('.')[1])) try this

  • @CoderInHouse
    @CoderInHouse 3 года назад

    Cv2.face i am not getting this suggestion by opencv to train the classifer

    • @codewithkiran
      @codewithkiran  3 года назад

      Click photo and Send me your code this line👆

    • @vishvanathmetkari3444
      @vishvanathmetkari3444 3 года назад

      same problem

    • @codewithkiran
      @codewithkiran  3 года назад

      @@vishvanathmetkari3444 pip install opencv-python

    • @suyogguragain3855
      @suyogguragain3855 3 года назад +2

      pip install opencv-contrib-python
      install this it will work

    • @AsianTrackGamerYT
      @AsianTrackGamerYT 3 года назад

      Sir all code is working but in the last image trained screen is showing the training completed and the training windod is not destroyed it still on main window and also the classifier.xml file is not created

  • @feedfantasyy
    @feedfantasyy 3 года назад +2

    can you please provide the code of the whole project?

    • @Hans_jagpalsukh16
      @Hans_jagpalsukh16 3 года назад

      If you want project code then you have to pay money

  • @shubhampandey9487
    @shubhampandey9487 3 года назад

    Can any one can help me In cv2.cv2 no face attribute

    • @diceyme0120
      @diceyme0120 2 года назад

      Do you find the solution

    • @shubhampandey9487
      @shubhampandey9487 2 года назад

      @@diceyme0120 yess

    • @diceyme0120
      @diceyme0120 2 года назад

      @@shubhampandey9487 please tell me the steps. I have reinstalled opencv--contrib--python.. But it's still not working..

    • @hemangakumar3474
      @hemangakumar3474 2 года назад

      @@shubhampandey9487 please explain the solution bro

    • @skabdulayush2002
      @skabdulayush2002 Год назад

      @@shubhampandey9487 plz tell us how you solve it...we are facing the same issue

  • @AsianTrackGamerYT
    @AsianTrackGamerYT 3 года назад +1

    Sir all code is working but in the last image trained screen is showing the training completed and the training window is not destroyed it still on main window and also the classifier.xml file is not created

    • @RanjitDangoll
      @RanjitDangoll 3 года назад

      Same here

    • @ShivamYadav-ib8hg
      @ShivamYadav-ib8hg 3 года назад

      same problem ......solution mila kya bhai?

    • @ShivamYadav-ib8hg
      @ShivamYadav-ib8hg 3 года назад

      @@RanjitDangoll bhai solution mila kya iska?/

    • @muddasirkhan6838
      @muddasirkhan6838 3 года назад

      @@telugu_anime_kun5785 yeah goods its working

    • @ShivamYadav-ib8hg
      @ShivamYadav-ib8hg 3 года назад +3

      @@naureenjafri3836 type pip install opencv-contrib-python in command prompt and this this doesn't work then type pip3 install opencv-contrib-python

  • @vishalsaraiwal
    @vishalsaraiwal 2 года назад

    File "c:\Users\visha\Downloads\main\train.py", line 48, in train_classifier
    clf=cv2.face.LBPHFaceRecognizer_create()
    AttributeError: module 'cv2' has no attribute 'face'
    sir i got this error can you pls help me to solve this error

    • @omlad2647
      @omlad2647 Год назад

      did you solbve?

    • @Sakib-cm1zj
      @Sakib-cm1zj 11 месяцев назад

      once uninstall open cv and reinstall it @@omlad2647

  • @taqikhan5418
    @taqikhan5418 3 года назад

    sir cv2. face nahi milraha?

    • @codewithkiran
      @codewithkiran  3 года назад +3

      pip install opencv-contrib-python

    • @taqikhan5418
      @taqikhan5418 3 года назад

      @@codewithkiran thanks😊

    • @diceyme0120
      @diceyme0120 2 года назад +1

      @@taqikhan5418 Did it work???

    • @Abrarpinjara
      @Abrarpinjara 2 года назад

      @@diceyme0120 tried everything but still not working for me

    • @mohinibarapatre4898
      @mohinibarapatre4898 Год назад

      @@codewithkiran thank you very much sir

  • @naiduanuradha6
    @naiduanuradha6 2 года назад

    raise UnidentifierImageError(PIL.UnidentifierImageError:cannot identify image file )
    I am facing this error ....cant solve it ...please help @CodeWithKaran sir