ESP32-CAM Face Recognition Open Door Lock

แชร์
ฝัง
  • เผยแพร่เมื่อ 13 มิ.ย. 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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 613

  • @montyfunkfilms
    @montyfunkfilms 3 ปีที่แล้ว +4

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

  • @osgaleo2229
    @osgaleo2229 4 ปีที่แล้ว +2

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

  • @acestudioscouk-Ace-G0ACE
    @acestudioscouk-Ace-G0ACE 3 ปีที่แล้ว +1

    Very clearly explained, I've subscribed!

  • @harisshehzad5749
    @harisshehzad5749 ปีที่แล้ว +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.

  • @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?

  • @ZiedKb
    @ZiedKb 4 ปีที่แล้ว

    Great video like always

  • @javieramayav7533
    @javieramayav7533 3 ปีที่แล้ว

    It worked perfect, thanks a lot!!!

  • @botak333
    @botak333 4 ปีที่แล้ว +2

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

  • @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!

  • @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

  • @magnetronzion
    @magnetronzion 4 ปีที่แล้ว +1

    thank you, very good!!

  • @wejzu8516
    @wejzu8516 3 ปีที่แล้ว

    Great project!

  • @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.

  • @Jerseylance1
    @Jerseylance1 4 ปีที่แล้ว

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

  • @user-uq2xv5kc4d
    @user-uq2xv5kc4d 11 หลายเดือนก่อน

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

  • @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.

  • @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.

  • @lancelotnub
    @lancelotnub ปีที่แล้ว

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

  • @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...

  • @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 TH-cam 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.

  • @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.

  • @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?

  • @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

  • @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.

  • @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!

  • @yogeshitaliya473
    @yogeshitaliya473 4 ปีที่แล้ว

    Nice one sir

  • @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.

  • @027_wahyuhidayatsiregar3
    @027_wahyuhidayatsiregar3 11 หลายเดือนก่อน +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

  • @ngocsang2541
    @ngocsang2541 3 ปีที่แล้ว

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

  • @manjunathatiger4807
    @manjunathatiger4807 4 ปีที่แล้ว

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

  • @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.

  • @wachannel7082
    @wachannel7082 4 ปีที่แล้ว

    thank you

  • @anhminhnguyen996
    @anhminhnguyen996 4 ปีที่แล้ว

    Thanks a lot

  • @lancelotnub
    @lancelotnub ปีที่แล้ว

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

  • @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

  • @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.

  • @lazzlow2651
    @lazzlow2651 2 ปีที่แล้ว

    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.

  • @MrAliusman73
    @MrAliusman73 4 ปีที่แล้ว

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

  • @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.

  • @sushanthgoud2278
    @sushanthgoud2278 5 หลายเดือนก่อน

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

  • @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

  • @effianriz_elektronika
    @effianriz_elektronika 2 ปีที่แล้ว

    May I can try it

  • @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.

  • @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.

  • @sudhanshumishra6110
    @sudhanshumishra6110 4 ปีที่แล้ว

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

  • @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/

  • @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

  • @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

  • @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?

  • @risnarusdiyanti7878
    @risnarusdiyanti7878 4 ปีที่แล้ว +1

    thanks..

  • @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  11 หลายเดือนก่อน +1

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

  • @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.

  • @vivekanand8277
    @vivekanand8277 3 ปีที่แล้ว

    Great...👍👍👍

  • @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?

  • @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

  • @makifbuz
    @makifbuz 4 ปีที่แล้ว

    Awesome...

  • @steverogers7736
    @steverogers7736 4 ปีที่แล้ว +13

    Instructions unclear, there are zombies in my house

  • @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..

  • @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: th-cam.com/video/bIJoVyjTf7g/w-d-xo.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

  • @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.

  • @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.

  • @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?

  • @utubekiranreddy
    @utubekiranreddy 2 ปีที่แล้ว

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

  • @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

  • @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 - th-cam.com/video/j8lVFmjAARA/w-d-xo.html You should be able to combine the code to do what you want.

  • @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.

  • @brianalmeida529
    @brianalmeida529 9 หลายเดือนก่อน

    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  9 หลายเดือนก่อน

      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.

  • @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.

  • @satriajulio7898
    @satriajulio7898 3 ปีที่แล้ว

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

    • @robotzeroone
      @robotzeroone  3 ปีที่แล้ว

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

  • @nosagigawidiansyah4016
    @nosagigawidiansyah4016 11 หลายเดือนก่อน

    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  11 หลายเดือนก่อน

      Which version of the ESP32 Hardware Library are you using?

  • @TheBlueViper
    @TheBlueViper 4 หลายเดือนก่อน

    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  4 หลายเดือนก่อน

      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 4 หลายเดือนก่อน

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

    • @robotzeroone
      @robotzeroone  4 หลายเดือนก่อน

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

    • @TheBlueViper
      @TheBlueViper 4 หลายเดือนก่อน

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

  • @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

  • @user-vs3so9ic8q
    @user-vs3so9ic8q 8 หลายเดือนก่อน

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

    • @robotzeroone
      @robotzeroone  8 หลายเดือนก่อน

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

  • @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

  • @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...

  • @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

  • @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.

  • @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.

  • @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.

  • @abithkumars7601
    @abithkumars7601 4 ปีที่แล้ว

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

    • @robotzeroone
      @robotzeroone  4 ปีที่แล้ว

      In the IDE? Did you restart it?

  • @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

  • @sudhanshumishra6110
    @sudhanshumishra6110 4 ปีที่แล้ว

    also getting error camera_index.h

  • @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.

  • @andreeasrh
    @andreeasrh 2 ปีที่แล้ว

    Hello sir! I try to make this project but i have an error with fd_forward and fr_flash. Please, can u help me? Thanks a lot

    • @robotzeroone
      @robotzeroone  2 ปีที่แล้ว +1

      Are you using 1.0.4 of the ESP32 hardware libraries? What is the error? Check the comments in the blog for more help.

  • @favourokike856
    @favourokike856 2 ปีที่แล้ว

    Can we make a buzzer sound for faces not recognized

    • @robotzeroone
      @robotzeroone  2 ปีที่แล้ว

      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

  • @philippcuno-friess8775
    @philippcuno-friess8775 4 ปีที่แล้ว

    Great video! Would it be possible to pass MQTT messages to a broker when ever a face is detected ? That would be great!

    • @robotzeroone
      @robotzeroone  4 ปีที่แล้ว +1

      A tutorial for Blynk - robotzero.one/face-recognition-with-blynk/ or if you want to use the code in this video you can replace the open_door(client); with something like send_MQTT(f->id_name); and do your MQTT stuff in the send_MQTT() function.

    • @philippcuno-friess8775
      @philippcuno-friess8775 4 ปีที่แล้ว

      robotzero.one thanks! I’ll first try to edit the code of the esp face recognition relay article! That looks easier to me 😅

    • @souravpatra0175
      @souravpatra0175 4 ปีที่แล้ว +1

      Your video is great. I starts a project based on your videos a spy camera robo. But problem is the robo moves by blynk app and esp32 cam video stream control by pc I want just one screen control movement and video streaming but I don't know how to do it so plz tell........ And you can tell me what I can do Extra thinks to make more advanced this robo. Plz reply

    • @robotzeroone
      @robotzeroone  4 ปีที่แล้ว

      @@souravpatra0175 Probably the best option is to use this tutorial as a base: robotzero.one/esp32-cam-rc-car/ and use the two pins to control two motors for left and right like on a tank.

  • @OMNI_INFINITY
    @OMNI_INFINITY 9 หลายเดือนก่อน

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

    • @robotzeroone
      @robotzeroone  9 หลายเดือนก่อน

      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.

  • @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.

  • @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!

  • @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.

  • @jrxik2
    @jrxik2 4 ปีที่แล้ว +1

    Congratulations for the tutorial, I followed everything clearly explained, but loading the http page only the part of the controls is visible but the streaming image of the camera is not visible

    • @robotzeroone
      @robotzeroone  4 ปีที่แล้ว

      Does the CameraWebServer example work for you?

    • @jrxik2
      @jrxik2 4 ปีที่แล้ว

      it works perfectly

    • @robotzeroone
      @robotzeroone  4 ปีที่แล้ว

      In the browser, press F12 and look in the console tab to see if there are errors.

    • @jrxik2
      @jrxik2 4 ปีที่แล้ว

      I SOLVED THANKS !!!!

    • @anorophile2841
      @anorophile2841 4 ปีที่แล้ว

      How did you solve the problem of Console using F12...can you please tell???

  • @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?

  • @yawarsaeed6499
    @yawarsaeed6499 ปีที่แล้ว

    Thanks for sharing such an Awesome project.
    Can you please share , do I increase the number of people to be enrolled to 15 by making changes in code .
    An early response will be highly appreciated.
    Thanks & kind regards.

    • @robotzeroone
      @robotzeroone  ปีที่แล้ว

      I think it's this number:
      #define FACE_ID_SAVE_NUMBER 7

    • @yawarsaeed6499
      @yawarsaeed6499 ปีที่แล้ว

      @@robotzeroone Thank you very much

  • @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 TH-cam for that.

  • @Carlos_Mtzv
    @Carlos_Mtzv 4 ปีที่แล้ว

    Did someone work?

  • @tulammoithich3390
    @tulammoithich3390 3 ปีที่แล้ว

    Can it detect and open door for people with face mask? We are in pandemic time now.

    • @robotzeroone
      @robotzeroone  3 ปีที่แล้ว

      Nope.. it takes measurements on the persons mouth so it won't work if it is covered.

  • @brianalmeida529
    @brianalmeida529 หลายเดือนก่อน

    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 หลายเดือนก่อน

      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  หลายเดือนก่อน +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 หลายเดือนก่อน

      @@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  หลายเดือนก่อน

      @@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 หลายเดือนก่อน

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