ESP32-CAM Face Recognition Open Door Lock

Поделиться
HTML-код
  • Опубликовано: 14 июл 2024
  • Use an ESP32-CAM to unlock a door when a face is recognized. Create a name based access control system with face recognition using an ESP32-CAM and an electric lock.
    From release 1.0.5 the custom partition table can be uploaded with the Sketch and doesn't need to be added to the IDE. This makes this project much easier. The section 2m41s to 4m08s can be ignored.
    Face recognition doesn't work in hardware libraries 2.x.x for this device. Please use 1.0.5
    0:00 System demonstration
    1:17 Wiring diagram
    1:42 Arduino IDE setup
    4:08 Install Arduino Sketch
    5:04 Adding, naming and removing users
    6:00 Arduino code run-through
    8:09 HTML interface code
    8:57 Conclusion
    Blog post: robotzero.one/access-control-...
    Arduino Sketch: github.com/robotzero1/esp32ca...
    Partition table for 1.0.4 hardware library: robotzero.one/wp-content/uplo...
    Latest partition table for 1.0.5 hardware library: github.com/robotzero1/esp32ca...
    Beginner ESP32-CAM Arduino tutorial: • ESP32-CAM Camera for A...
    If you found this useful and want to say thanks you can buy me a coffee here: www.buymeacoffee.com/robotzero
  • НаукаНаука

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

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

    Beautiful work thanks for making the material available and your cod we are working here very slowly !!

  • @montyfunkfilms
    @montyfunkfilms 3 года назад +4

    Just made this - works perfectly - very well explained mate!!

  • @acestudioscouk-Ace-G0ACE
    @acestudioscouk-Ace-G0ACE 3 года назад +1

    Very clearly explained, I've subscribed!

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

    great work.
    I tried
    it works perfectly with esp32 version 1.0.4.

  • @givaty435
    @givaty435 4 года назад

    Thanks a lot !
    For all the people who look how to straight start a face recognition when the module is power on you just have to change in the code : typedef enum
    {
    START_RECOGNITION,
    START_STREAM,
    START_DETECT,
    SHOW_FACES,
    START_ENROLL,
    ENROLL_COMPLETE,
    DELETE_ALL,
    } en_fsm_state;

    • @robotzeroone
      @robotzeroone  4 года назад

      I think that this just means that when the browser connects you don't have to press the 'Access Control' button to start face recognition? You still have to connect to the browser so the websocket connection is active.

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

    It worked perfect, thanks a lot!!!

  • @ZiedKb
    @ZiedKb 4 года назад

    Great video like always

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

    Excellent project. Working fine. Just I connected ESP32 and executed the sketch. I didn't change or create a new partition scheme. By default it has been set as Huge App in the IDE. I just connected an LED to test the recognition result. It works well.

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

    Congratulations, this project is really useful. You would have something with mqtt working together. Using mqtt I could easily work with Openhab. Thank you!

  • @magnetronzion
    @magnetronzion 4 года назад +1

    thank you, very good!!

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

    The best teacher ever. You did a amazing job!
    Everything worked for me perfectly. Thanks for share you knowledge 🙏🏻
    Let me ask, do you have a sketch that works automatically when starting the controller?

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

    Great project!

  • @yogeshitaliya473
    @yogeshitaliya473 4 года назад

    Nice one sir

  • @MrAliusman73
    @MrAliusman73 4 года назад

    thankssss for such an informative video... I'll try it out

  • @Dragons927
    @Dragons927 4 года назад +1

    #include"soc/soc.h"
    #include"soc/rtc_cntl_reg.h"
    void setup(){
    WRITE_PERI_REG(RTC_CNTL_BROWN_OUT_REG,0);//disable brownout detector
    }
    This will help!

  • @anhminhnguyen996
    @anhminhnguyen996 4 года назад

    Thanks a lot

  • @wachannel7082
    @wachannel7082 4 года назад

    thank you

  • @user-mf5fu2gl6c
    @user-mf5fu2gl6c 4 года назад +2

    Great job, i already try work fine. can it work without the streaming? I meaning only camera and relay

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

    Very good ! It is the only video on esp32cam with such utility. It shows that there is a lot of knowledge .
    I don't know English and it is still perfect. Please I want to know what you mean when you say (IDF versions).
    You have to modify library code to detect life and not fool the system with photos?
    I have the ArduinoWebsokets library in version 0.5.3, esp32 1.0.6 and my Arduino ID 1.8.16
    Greetings from Argentina.

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

      Thanks! IDF is this docs.espressif.com/projects/esp-idf/en/latest/esp32/ To have liveness detection you need a second camera for a 3D image or an infrared for heat. Some systems might use face detection on frames in a video. Not possible at the moment with the ESP32 though.

  • @steverogers7736
    @steverogers7736 4 года назад +13

    Instructions unclear, there are zombies in my house

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

    Can use esp 32cam without wifi?? And save the data face recognition in sd card??

  • @dimitrisdsphotography7074
    @dimitrisdsphotography7074 4 года назад +1

    First of all congrats for this great work!
    I'm facing an issue on this project...Everything was running perfect until the last couple of days i was no longer able to stream from the esp-32 cam, as a result it couldn't detect or recognize faces anymore. I updated the boards and libraries, i even tried it from different computer and browser but still the same. I still can browse into the web UI but it won't stream any image from the left window. I tested my esp32-cam board on other projects and it's fully functional. So, any thoughts what's causing this issue? Thanks!

    • @robotzeroone
      @robotzeroone  4 года назад

      Does the camerawebserver example work for you? If you load that up can see the video at your-ip-address:81/stream ? Might be the camera.

  • @risnarusdiyanti7878
    @risnarusdiyanti7878 4 года назад +1

    thanks..

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

    Great...👍👍👍

  • @Jerseylance1
    @Jerseylance1 4 года назад

    I have a pixie2, so do I need this to use for my robots Vision? Nice job.

  • @user-uq2xv5kc4d
    @user-uq2xv5kc4d Год назад

    thanks for the great video. but can ask one question about this program. What method is used in this face recognition process?

  • @makifbuz
    @makifbuz 4 года назад

    Awesome...

  • @bruhitsp4n959
    @bruhitsp4n959 4 года назад +1

    Hey guys i need help for my project i want to create a door control with face recognition using esp32-cam, and also it can capture motion using motion sensor and send the picture using internet to the phone app...

  • @manjunathatiger4807
    @manjunathatiger4807 4 года назад

    Good job sir fantastic projects
    Sir how much distance operated in mobile

  • @benigtecu9460
    @benigtecu9460 4 года назад

    Hello, I need help. Maybe you can recommend me something concrete or at least make some suggestions in both the HW and SW parts. Any help is welcome. I need to set up a kind of surveillance/streaming system for a project at my school. I would very much like to do it with something like ESP32-EYE or ESP32-CAM. My intention is to stream (or as close as possible) on RUclips or FB directly from the module. I am not sure if that is possible and how to do it. I am very tight on time, and I don't have much money for testing either. I know that you have a lot of experience and have tested many modules. Please, which ESP module/camera/software could I use for that? Thank you very much.

  • @c0d3d85
    @c0d3d85 4 года назад

    Hello, I was wondering how I could go about drawing squares around peoples faces as I wish to repurpose this for a slightly different purpose. Any help would be appreciated!

    • @robotzeroone
      @robotzeroone  4 года назад

      I took out that code to try and make things less complicated and maybe run faster. I think the boxes are still there in some of the other tutorials on my blog.

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

    Hi, does the face recognition also work offline (when no browser is connected)? Or is the ESP32 CAM Arduino support limited to the webserver feature? I've only found offline examples for ESP-IDF
    , but not for Arduino...

    • @robotzeroone
      @robotzeroone  4 года назад +4

      Hi, This one will work without being connected to a browser: robotzero.one/esp32-face-door-entry/ You need to be able to add the faces while using the browser but you could then run a cut down sketch to not use Wi-Fi at all once you have faces.

    • @skm8983
      @skm8983 28 дней назад

      @@robotzeroone which line must i cut off in the wifi skecth sir?

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

    Can you make another video like this where there is a second esp32 that activates the door lock when the one outside sees the face? This way someone can't just jump the relay from the outside.

  • @josecorreia1631
    @josecorreia1631 4 года назад

    Hello MR. Robot Zero, I really appreciate your work on this tutorial. I did the implementation as in your tutorial and everything works fine, faces are enrolled OK and faces are detected OK; However, if a new face (one that is not enrolled) is presented to the ESP32-CAM then sometimes the system detects it as one of the enrolled faces. Is this the bug that you mention at 9:16 of your video? Is there a fix to this problem?

    • @robotzeroone
      @robotzeroone  4 года назад +1

      The problem mentioned was with an earlier version of the ESP32 Hardware library. In 1.0.4 it's fixed. If you are finding it detects different people as the same there's a setting that can be changed but without looking into it I think it might be only available in the IDF version at the moment. Checkout FACE_REC_THRESHOLD here: github.com/espressif/esp-face/blob/master/face_recognition/README.md

    • @josecorreia1631
      @josecorreia1631 4 года назад +1

      @@robotzeroone THANKS for your response. I find a FACE_REC_THRESHOLD, in the fr_forward.h file. It looks like:
      #define FACE_REC_THRESHOLD 0.5
      I changed this to #define FACE_REC_THRESHOLD 0.7
      It is working now but I cannot yet confirm that reliability has improved. I am going to test during the next few days. Meantime, if you have any suggestion, please let me know.

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

    Thank you so much MR. Robot Zero! Really nice work! How can I change the HTML to another language?

    • @robotzeroone
      @robotzeroone  4 года назад +1

      I don't understand. The HTML is used by the browser to display the interface.

    • @ichsandevandra
      @ichsandevandra 4 года назад +1

      @@robotzeroone hello mr. robot zero, is the web browser ide made by you or is it built-in by the Arduino program? thanks alot

  • @news247ng4
    @news247ng4 4 года назад

    Thank you very much sir for this wonderful video, but I have a question pls how can i change the code so that it will not capture one face with two different name, so that the system will prompt you that the face is already captured and has so and so name. Thanks you are my best mentor in IoT stuffs

    • @robotzeroone
      @robotzeroone  4 года назад

      You would have to rewrite the code to check if a face is recognised before running any other code.

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

    in this flash memory or Face Recognition partition (2621440 bytes with OTA) how much face data can be stored?

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

    in 0:41 you can just cut the wires going inside and use a battery to unlock the door from outside ^^

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

      Yep. It's just a demonstration not a finished product.

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

    everything running fine but when i opened webserver, no streaming is there. I am getting "Failed to get the frame on time!
    " this message on serial monitor.

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

    Thanks for such great tutorial, i have got everything works perfectly on this tutorial code and FaceDoorEntryESP32CAMPremium.zip.
    I prefer to start Access Control automatically without clicking on the web interface so per your recommandation i can use 'Face Recognition Trigger Event' code, but with this code uploaded, the esp32 cam keep rebooting with the error below and if i switch back to FaceDoorEntryESP32CAMPremium then it will be working fine.
    Note: I'm putting the same 'partitions.csv' on all sketch folder and choosing 'Huge App' Scheme, with 1 face registered.
    Error:
    rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
    configsip: 0, SPIWP:0xee
    clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
    mode:DIO, clock div:1
    load:0x3fff0018,len:4
    load:0x3fff001c,len:1216
    ho 0 tail 12 room 4
    load:0x40078000,len:10944
    load:0x40080400,len:6388
    entry 0x400806b4
    [D][esp32-hal-psram.c:47] psramInit(): PSRAM enabled
    assertion "l->size == size" failed: file "/home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/components/esp-face/face_recognition/fr_flash.c", line 86, function: read_face_id_from_flash
    abort() was called at PC 0x400dc1cb on core 1
    ELF file SHA256: 0000000000000000
    Backtrace: 0x4008a5ac:0x3ffb1e70 0x4008a825:0x3ffb1e90 0x400dc1cb:0x3ffb1eb0 0x400e9d3e:0x3ffb1ee0 0x400d26ae:0x3ffb1f20 0x400d3d2e:0x3ffb1fb0 0x4008c4b6:0x3ffb1fd0
    Rebooting...

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

    That's awesome , but i have some questions
    1-Can we add a virtual unlock button in the interface or whatever as a second way to unlock ?
    2-Can we use 1 or 2 servo motors instead of that lock - i'd use 'em to power manual deadbolt lock-
    3-Can we make use of the open Cv liveness detection

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

      One and two are possible. You can code websockets for communication in both directions. Other tutorials on my blog might help with that. OpenCV doesn't work on the ESP32 AFAIK you would have to use the video stream on another device.

  • @wagnerjesus8353
    @wagnerjesus8353 4 года назад

    Hello. Thanks for sharing your knowledge with us enthusiasts. I have a problem and would like your help. The scket ran fine, but in time to capture the image of no face detect in google chrome. Then I close the page and open in Internet Explorer, the name is saved and I can open the door. But if I restart esp32cam add the names

    • @robotzeroone
      @robotzeroone  4 года назад

      Hi. Can you explain that again. I don't understand.

  • @luispabloalmadanieblas5510
    @luispabloalmadanieblas5510 4 года назад

    Hi, I would like to know the way to upload a image from esp32 camera to a webserver or google drive. Could you make a video about that?

    • @robotzeroone
      @robotzeroone  4 года назад

      Hi, I have a tutorial on my blog that might help with that - robotzero.one/time-lapse-esp32-cameras/

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

    Can I know the method used in this project either it is Cascade Classifier method or any of this techniques Linear Binary Pattern, Eigenfaces, Fisherfaces?

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

      The technical information can be found linked from this page - github.com/espressif/esp-face/tree/420fc7e219ba98e40a5493b9d4be270db2f2d724

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

    hello, thank you very much for the video, the program runs and sends it to the esp32 but the serial monitor does not show me the ip

  • @marlonragusta3363
    @marlonragusta3363 4 года назад

    sir good day just asking why is it that the face recognition partition scheme in my IDE is not showing even if i follow the direction you gave

    • @robotzeroone
      @robotzeroone  4 года назад

      Hi, Did you restart your IDE after changing the boards.txt file?

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

    I'm using board version 1.0.5 and partitions.csv it can store how much face data sir? and how to delete the face data?

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

    Cheers for this guide, persistence was a big help. however it seems very laggy and slow, and is it possible to use without the browser connected? Don't want to have to have something logged into it all the time

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

      It's slow because running the face recognition really taxes the ESP32 processor. This version you can disconnect - robotzero.one/esp-who-recognition-with-names/#comment-43712 Or you can use the version in the video to set up the faces and then this one - robotzero.one/esp32-face-door-entry/ without Wi-Fi to run it

  • @027_wahyuhidayatsiregar3
    @027_wahyuhidayatsiregar3 Год назад +1

    Hello i got error like this
    "FaceDoorEntryESP32Cam:329:86: error: 'recognize_face_with_name' was not declared in this scope
    face_id_node *f = recognize_face_with_name(&st_face_list, out_res.face_id);
    ^
    exit status 1
    'face_id_name_list' was not declared in this scope "
    Can someone help me to fix that error pls

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

    Thanks for the great tutorial. What is the maximum number of faces that could be registered? Can we move the registry of faces to SD card so we can handle more users??

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

      HI, Check out the issues here - github.com/espressif/esp-who/issues You should find the answer to your questions.

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

    hi, I just want to use ACCESS CONTROL for my project. Can you help me to modify code?

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

    I have a question, if i want to make the relay on for more than 5 second, what line of code do i need to change?

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

      long interval = 5000; // open lock for ... milliseconds

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

    when face detection and recognition turn on, why esp 32 cam is black and serial monitor is martix3du item alloc failed?

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

      Which version of the ESP32 hardware library are you using? Do you have PSRAM enabled in the IDE?

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

    May I can try it

  • @lucasmoniz4166
    @lucasmoniz4166 4 года назад

    Excellent video. I'm a Brazilian student and is i'm realizing a similar project. I would like to know what the names of the components and schematics used, because i only know the ESP 32 - CAM. Thanks!

    • @robotzeroone
      @robotzeroone  4 года назад

      Hi, This page has more info on the items used: robotzero.one/esp32-face-door-entry/ The door lock was one like this: es.aliexpress.com/item/32949292074.html

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

    It doesn't detect the face even i enable the recognise and detect button...what can i do

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

    Hello sir, wonderful tutorial. Just want to ask, can I extract the sample captured? will it be in picture format? if can, do I need to change into SD card partition or can use your created partition? sorry I a bit new in this area.

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

      Hi. You want to save the data captured for the face? I've not done that yet but I imagine you can copy it off the fr partition to another location.

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

      @@robotzeroone I see, so just to be clear. the partitions stored the face/user data but in other type like hex or byte is it? sorry I still dont know what is the partitions is.

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

      @@said7176 The face data is a mathematical representation of the face. These are stored in the fr partition but I don't know how this is structured as a file system. You would have to look at the code in the Espressif IDF to see how it's done. Not really beginners level stuff.

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

      @@robotzeroone I see, Thank you so much for the explaination. Help me understand further more. Thank..

  • @abelferretti
    @abelferretti 4 года назад

    AMAZING work! Congratulations. Can I build and use this idea? No profits for me...

    • @robotzeroone
      @robotzeroone  4 года назад +1

      Yep.. you can do what you want with the code. Bear in mind it's a pretty basic system so don't use it on your front door for example!

    • @abelferretti
      @abelferretti 4 года назад

      @@robotzeroone TKS

    • @user-mf5fu2gl6c
      @user-mf5fu2gl6c 4 года назад

      Great project well done

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

    Hi sir, great video I really enjoyed it but I have a question. How do you open the door in case that the light went out and in consequence the wifi stops working? how would you open the door in this case? greetings from Ecuador

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

      Hi, this tutorial doesn't have the wifi- robotzero.one/esp32-face-door-entry/ so will work just running from a battery.

  • @sudhanshumishra6110
    @sudhanshumishra6110 4 года назад

    camera_pins.h: No such file or directory I am getting this error

  • @wagnerjesus8353
    @wagnerjesus8353 4 года назад

    Not detecting the face in google chrome. I ask to capture not create user. Then I close google chrome, when I open IE with ip, the name is there. I can open the door normally. But in IE also can not trigger users. When I reset esp32 cam the names disappear.

    • @robotzeroone
      @robotzeroone  4 года назад

      Something isn't set up correctly. Did you create the new partition? Browser doesn't affect it. Everything is done on the ESP32.

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

    Hey sir, can i connect this to lcd, so when it esp32cam detected someone, example me : nathan, my name will shows up in the lcd

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

      Hi. Check out this video for connecting an LCD - ruclips.net/video/j8lVFmjAARA/видео.html You should be able to combine the code to do what you want.

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

    Converting HTML page into array of hexadecimal values for use in an Arduino server.
    which tools do you use ?

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

      Tutorial here for this: ruclips.net/video/bIJoVyjTf7g/видео.html&ab_channel=robotzero.one also on my blog linked from the video description.

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

      @@robotzeroone. Thank you very much. I am someone who admires you very much

  • @news247ng4
    @news247ng4 4 года назад

    HELLO robotzero, please i am having this error 'face_id_name_list' was not declared in this scope what can i do please

    • @robotzeroone
      @robotzeroone  4 года назад

      Hi. Probably you need to update the ESP32 hardware libraries to a newer version. Tools > Board > Boards Manager

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

    Hai sir, I wonder if i can make the system recognize only 1 face in all faces in the db. For example like hardcode where face_id == 1, which system only recognize user where not the other. But it seem didnt work for the face_id. I also cant figure out how the enroll system save the face_id. Do you know what the return where I can make the == 1 to bind only 1 user? thank you..

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

      Did you see the other tutorial here: robotzero.one/esp32-face-door-entry/ it's less complicated if you just want one face. Maybe the line if (matched_id >= 0) { could be changed to ==1?

  • @iotguy2423
    @iotguy2423 4 года назад

    good video ,do we have to press every time ACCESS CONTROL to get started when ever device restart

    • @robotzeroone
      @robotzeroone  4 года назад

      At the moment it doesn't run autonomously. I'll be creating another version soon.

    • @iotguy2423
      @iotguy2423 4 года назад

      @@robotzeroone your code is great only issue is it dosnt work at restart unless press Acess Control again.Would be waiting for your new version.

  • @satriajulio7898
    @satriajulio7898 4 года назад

    why did I upload the problem failed on the esp32 board even though it's the same as the video

    • @robotzeroone
      @robotzeroone  4 года назад

      Try another sketch. Start with something basic to make sure the device is OK.

  • @paololazzareschi5077
    @paololazzareschi5077 4 года назад +1

    Dear Robotzero.one , Thank you for sharing thsi amazing project. You have done a Great Job ! Everythings works fine and you explanation was perfect.
    For what I have seen at the beginning of the video , you have the ESP 32 CAM installed right at door entry, but I am wondering how do you manage the browser page.
    After faces recognition, I would like to make it works as a stand alone device, without any PC connected that is needed (or I am wrong..)
    Is that possible ? Do you have some suggetion to do these SW modification ?
    Thanks a lot anyway for this project!

    • @robotzeroone
      @robotzeroone  4 года назад

      Cool. I'm glad it's working for you. This one will work without being connected to a browser: robotzero.one/esp32-face-door-entry/ The easiest way is to have one sketch to add faces and another you flash that doesn't need browser to be connected. Alternatively, you could probably do one sketch with a timeout so after five minutes it stops the websockets connection and just runs face recognition.

    • @paololazzareschi5077
      @paololazzareschi5077 4 года назад

      @@robotzeroone Thank you for your kindly reply. I will go for your suggestion to have two source codes.
      I tried the link you attached but it doesn't work for me. It show me the error : [ assertion "l->size == size" failed: .... /fr_flash.c ] and ESP is rebooting continuosly.... :-(
      Anyway thanks a lot for your support.

    • @user-darkhan
      @user-darkhan 4 года назад

      @@paololazzareschi5077 Hello! I'm sorry, I have same problem. Have you solved this problem, Mr. Paolo? Thank you!

    • @paololazzareschi5077
      @paololazzareschi5077 4 года назад

      @@user-darkhan I am sorry but I don't have solved the problem. I will try again when I will have more time. I' ll let you know if having some good news.

    • @user-darkhan
      @user-darkhan 4 года назад

      @@paololazzareschi5077 Ok, Thank you! Happy New year, Mr. Paolo ! And I, if I'll solve this problem I let you know...

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

    sir, can you add flash and stop camera ???

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

    Does Enroll images saved even after Power ON and OFF of ESP32....?

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

    I'm using the version 2.0.0 of the Arduino ESP32 hardware , what csv partition file have i to use ? With the csv file for the 1.0.5 version you provided, there is no streaming after connection to the web server.

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

      I don't think the face recognition works with v2. The built in camerawebserver example wasn't working last time I looked.

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

      @@robotzeroone Thanks for the information. I'll go back to the 1.05 version.
      By the way the camerawebserver example is working flawlessly with the 2.0.0 version.

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

      @@hedi875 Ah.. they must have fixed it... github.com/espressif/arduino-esp32/issues/5878

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

    thank you, sir! Could you tell me where is the face data finally stored?

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

      It's stored in the 'fr' partition in the flash.

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

    is the recognized face saved permanently? i mean did we lost the recognized face when we turn off the camera?

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

      In this project the face is permanently saved.

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

    hello sir, while i compile the program, fatal error: camera_index.h: No such file or directory
    compilation terminated. how can i fix this problem? thankyou sir

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

      Which version of the ESP32 Hardware Library are you using?

  • @webslinger2011
    @webslinger2011 4 года назад

    Hi! I managed to get it partially working. It detects at first then a few seconds later the ESP32 disconnects. Also, the output pin does not seem to output a signal. Are you using an original esp32? I'm using a clone from aliexpress (the Rx and Tx pins is reversed otherwise it won't upload the sketch).

    • @webslinger2011
      @webslinger2011 4 года назад

      I've used a 100uf Cap and an external power as well.

    • @robotzeroone
      @robotzeroone  4 года назад

      @@webslinger2011 Normally RX on one device is connected to TX on the other. Might be a power issue, might be wifi. Does the CameraWebServer example work OK?

    • @webslinger2011
      @webslinger2011 4 года назад

      @@robotzeroone Other than the Tx and Rx pins were switched. Camera webserver works fine. It's when I try to activate a pin for the optocoupled relay that's when it resets/disconnects(happens even without anything connected to the output pin). Using your face recognition code.

    • @webslinger2011
      @webslinger2011 4 года назад

      @@robotzeroone What usb to serial programmer are you using? Mine is an FTDI FT232RL USB to serial IC from DFrobot. Maybe I could try a CP2102?

    • @robotzeroone
      @robotzeroone  4 года назад

      I'm using a CP2102. I remember the FTDI I tried didn't work when I started with these cameras so I've not tried again since. Try changing the output pin. I found 2 and 12 worked. Do you have a card in the reader? Also if you look in the serial monitor and installing the ESP Exception Decoder might help.

  • @brianalmeida529
    @brianalmeida529 10 месяцев назад

    Just in case there is any possibility of performing facial recognition, but without the need to access the web server?, that is, that the esp32cam works independently of a web server, that its function is to recognize the face and open the lock.

    • @robotzeroone
      @robotzeroone  10 месяцев назад

      Yep. Here's a version without the webserver: robotzero.one/esp32-face-door-entry/ You can mix and match from various tutorials on my blog.

  • @user-vs3so9ic8q
    @user-vs3so9ic8q 9 месяцев назад

    is it possible to integrate the website will be integrated into the android application?
    and how?

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

      You would have to know android development but I imagine you can connect to the IP address within an app

  • @abithkumars7601
    @abithkumars7601 4 года назад

    I have done all the work as same in a video. But, it's not showing partition in bytes

  • @darmawahyu5213
    @darmawahyu5213 4 года назад +1

    i have problem in my work,
    before, this esp32 cam worked well, but after several time. the esp32 cam can't work and the serial monitor showing
    "A Connection reset by peer"
    if you have solution please tell me . because i use this project for last exam in my college

    • @robotzeroone
      @robotzeroone  4 года назад

      I think this is Wi-Fi related. The ESP32 thinks the browser has disconnected. Can you move closer to the router?

    • @darmawahyu5213
      @darmawahyu5213 4 года назад

      i try connect with sit in front of my wifi router the result is same sir. I change the another browser and and use my hotspot in my phone still same. If i klik f12 in browser some problem has show in console. "Websocket connection to 'ws://192.168.1.7:82/'failed :could not decode a text frame as UTF-8". If i try with camerawebserver the esp32 cam worked fine.

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

    had somebody this error ? libraries\Timer-CAM\app_httpd.cpp.o:(.bss.camera_httpd+0x0): multiple definition of `camera_httpd'
    sketch\FaceDoorEntryESP32Cam.ino.cpp.o:(.bss.camera_httpd+0x0): first defined here
    collect2.exe: error: ld returned 1 exit status

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

      What's 'Timer-CAM' ? That's not part of the project.

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

    There's bug or system limitation. Until you start streaming in browser it doesn't detect faces. Is anyone else facing same issues?

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

      Here's a version without the Wi-Fi - robotzero.one/esp32-face-door-entry/ or the same as the video but you can disconnect - robotzero.one/wp-content/uploads/2020/03/FaceDoorEntryESP32CAMPremium.zip

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

    Is it possible to run the recognition without opening the webpage?
    I changed the code already, so now the detection starts instant, when power ist connected.
    but before I have to open the webpage and I don't want that.

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

      Check this tutorial for a version without the web browser. robotzero.one/esp32-face-door-entry/ Maybe you can load up the faces using the tutorial above and then switch to this one using the same faces.

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

      @@robotzeroone I will try it, thanks for the answer!

  • @kj4051
    @kj4051 4 года назад

    Sir, There is an error "face_id_name_list" was not declared in this scope. How to fix this error

    • @robotzeroone
      @robotzeroone  4 года назад

      I think you need a newer version of the ESP32 hardware library installed.

  • @kamelboulenache3147
    @kamelboulenache3147 4 года назад +1

    Hello can i use servo motor instead of the lock used in the vid

    • @robotzeroone
      @robotzeroone  4 года назад +1

      Hi. You should be able to. Check out the servo tutorials on my blog: robotzero.one/?s=servo

    • @Carlos_Mtzv
      @Carlos_Mtzv 4 года назад

      Hi @kamel boulenache if you did it with the servo?
      I still want to do it like this but I don't know how

  • @firdoshdiakus4841
    @firdoshdiakus4841 4 года назад

    Hi great project, I don't see what is gonna keep the batteries charged??

    • @robotzeroone
      @robotzeroone  4 года назад

      The batteries were just for the demo.

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

    E (6438) fr_flash: Not found #sir kindly check my error I followed every single step but I get this error

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

    Hi, thats a great video and i want to use it for my final project, what do i do if my arudino ide is version 2.x.x and above?
    Thank you vey much i hope for an answer

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

      HI, I think it will work with those versions of the IDE but the ESP Hardware library has to be be 1.0.4 or 5.

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

      yep i managed to do that but i cant see the partition scheme for some reason@@robotzeroone

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

      Can you change the board to AIThinker ESP32 Cam? Maybe that will work with Huge App selected

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

      when i select ESP32 CAM it wont let me change the partition scheme at all@@robotzeroone

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

    Can we make a buzzer sound for faces not recognized

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

      You would need to change the Arduino code a bit to have a face detected but not recognized be sent as a Websocket message. On the browser you can make a buzzer sound with the code starting at line 156 github.com/robotzero1/esp32cam-access-control/blob/master/HTML_interface.html

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

    Sir I'd love to buy a lot of coffe but i'd like you to help me with the error "fd_forward.h: No such file or directory"

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

      Which version of the ESP32 hardware library are you using?

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

      see this: github.com/espressif/arduino-esp32/issues/5878

  • @pawe.s2669
    @pawe.s2669 4 года назад

    this only works when the browser is enabled. can it work alone?

    • @robotzeroone
      @robotzeroone  4 года назад

      Best way is to use two sketches. One to grab the faces and then another that runs without the Websocket communication. I have other tutorials on my blog.. something there might help.

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

    How hard or expensive is it to get liveness detection. I want to use it on a front door of a house. To open while walking towards it? Thanks

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

      With the ESP32 it's going to be difficult. It's just not fast enough. There's this product (hard to find outside China though) - aliexpress.com/item/4000070597568.html?spm=a219c.12057483.0.0.5f1057ab3Yex4z that uses two cameras. Or with a PC (maybe Pi) something like this: www.pyimagesearch.com/2019/03/11/liveness-detection-with-opencv/ This one will probably be the best if you want to capture you face as you walk.

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

      @@robotzeroone Yeah I think a PC would be the go. I want to connect other things in the house aswell, but the door system should be independent so it cant be hacked. The problem is I dont know how to code.

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

      ​ @Zed If you've not ever coded then this is jumping off into the deep end! The second link pyimagesearch has loads of tutorials but you'll probably need to learn some Python first. Loads of tutorials on RUclips for that.

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

    exit status 1
    'struct mtmn_config_t' has no member named 'type'
    can you help me?

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

      sounds like the wrong ESP32 Hardware Library. Which version do you have?

  • @OMNI_INFINITY
    @OMNI_INFINITY 10 месяцев назад

    So basically somebody could walk up and cut the wires and connect a 5V across those to open that door?

    • @robotzeroone
      @robotzeroone  10 месяцев назад

      Yep. It's just a demo to show the circuit.

  • @mostafaashraf885
    @mostafaashraf885 4 года назад

    hello can use this module with tiva c tm4c123g ?

    • @robotzeroone
      @robotzeroone  4 года назад

      You might be able to communicate between the two boards using serial or i2c.

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

    I am getting this error: [D][WiFiClient.cpp:509] connected(): Disconnected: RES: -1, ERR: 104
    [D][WiFiClient.cpp:509] connected(): Disconnected: RES: 0, ERR: 128
    It's also not streaming my camera on the browser.
    It all worked but out of the sudden it stopped
    Does anyone know how to fix this?

    • @robotzeroone
      @robotzeroone  4 года назад

      It's best to start with the easiest example here: robotzero.one/esp32-cam-arduino-ide/ Make sure you have version 1.0.4 of the ESP32 libraries. Also check the antennae (as in the blog above)

    • @Carlos_Mtzv
      @Carlos_Mtzv 4 года назад

      Hi Aron, if you managed to solve this problem?
      I have the same problem, everything worked wonderfully, when suddenly I stopped giving access to the transmission from the browser

    • @AronvanderWurff
      @AronvanderWurff 4 года назад +1

      @@Carlos_Mtzv Hey Carlos! It worked for me again once but then the same problem happend again; I can't see the live video on the webpage

    • @Carlos_Mtzv
      @Carlos_Mtzv 4 года назад

      @@AronvanderWurff What did you change to make it work again?

  • @Electronplus-un4ns
    @Electronplus-un4ns 9 месяцев назад

    Sir, I mean great fan of yours.
    Above project is working good.
    Can you please modify the existing code so the esp32 cam keep working even without Android WiFi connectivity, as this system stops working when the mobile connection is lost for what ever reason. I mean the mobile user interface should only be used for face enrolment or to delete or add the users.
    With the existing system one needs to keep one Android phone to keep system up & running.
    An early response to my request will be highly appreciated.
    Kind regards

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

      Here's a version that doesn't need a permanent connection. robotzero.one/esp32-face-door-entry/ I think there's also a version in the comments of this tutorial. Other tutorials that might be helpful: robotzero.one/esp32-camera-projects/

    • @Electronplus-un4ns
      @Electronplus-un4ns 9 месяцев назад

      Thank you so much for your reply.
      Will try and get back to you.
      Take care

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

    Dear sir
    one more question
    if i want to send user name to keep in Google Sheet
    (Log file or time Attendance)
    which Variable i can use to send it to google sheet

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

      You want to grab the name from Websocket message? In the ws.onmessage method you need to do some sort of substring to get the name when the DOOR OPEN FOR... message comes in.

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

      @@robotzeroone You want to grab the name from Websocket message? yes.
      or i can grab from ESP32-cam part ?

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

      @@robotzeroone i found that variable
      "f->id_name" this one
      thx. for your support

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

    Is there any possibility of doing the same but with an esp wrover cam card?
    That is, wouldn't it have conflicts with some libraries?

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

      I just realized that I'm going to be missing pins to place my fingerprint sensor. This is a double authentication project that I want to do, incorporating fingerprint sensors and more facial recognition.

    • @robotzeroone
      @robotzeroone  2 месяца назад +1

      @@brianalmeida529 The problem has always been the pins. So many are used by the camera that there are very few available. I think my project will still work with the correct pins set.

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

      @@robotzeroone What do you think of the wrover cam, will it be useful for my project?
      I have the following components: relay, fingerprint, that's all. And if there are more pins left over I want to use one or two buttons.

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

      @@brianalmeida529 I'm not sure. If you can find a pin diagram you can see which pins are available and what interfaces they offer. This project was mine
      with most pins used so might give some help robotzero.one/esp32-cam-scene-analyzer/

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

      @@robotzeroone Thanks, this will help me. Then I'll show you how it turned out more or less.

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

    Hi robozero1, i'm following your tutorials. I'd encounter this problem "E (46650) fr_flash: Not found". Can you help me out for this problem?

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

      probably the wrong version of the ESP32 Hardware library is installed. Try 1.0.5

    • @zak_845
      @zak_845 11 месяцев назад

      @@robotzeroone how can i get this version ?
      i am searching that and i cant find it
      sorry if my english its so bad

  • @ngoquangtruong7725
    @ngoquangtruong7725 4 года назад

    may i ask how to get a picture that was taken by the camera after the lind esp_camera_fb_get(), i wanna send a pic from the webserver to a Blynkapp like this line : "Blynk.setProperty(V1, "urls", ""+my_Local_IP+"/capture?_cb="+(String)number);" i dont know the ip adress where you put your pictures to replace it. can you help me with that, thanks

    • @robotzeroone
      @robotzeroone  4 года назад

      I have a tutorial for Blynk here: robotzero.one/face-recognition-with-blynk/ I'm not sure this code works on the latest ESP32 hardware libraries but you can see how I sent the image to Blynk.