From 8115ad1f0794f0fb9e2b2e416a7c8c8ed91d34a3 Mon Sep 17 00:00:00 2001 From: Aman Sa <58567957+amanex007@users.noreply.github.com> Date: Wed, 1 Jan 2020 23:53:50 +0530 Subject: [PATCH 1/2] Markdown Git offers a better readme file in .md extension that is markdown extention --- How_to_Run.txt => How_to_Run.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename How_to_Run.txt => How_to_Run.md (95%) diff --git a/How_to_Run.txt b/How_to_Run.md similarity index 95% rename from How_to_Run.txt rename to How_to_Run.md index bdf8f44..aae9af9 100644 --- a/How_to_Run.txt +++ b/How_to_Run.md @@ -29,4 +29,4 @@ Make sure it clicks atleast 300 images before you end the program. Do the requir 12) Now open load_model_video.py to recognize face from a video or webcam. Do the required configurations. -13) If you still face difficulty then either watch that video or message me in Instagram:- @py_developer.ashish \ No newline at end of file +13) If you still face difficulty then either watch that video or message me in Instagram:- @py_developer.ashish From c38d6156290b397d0959d46953c25a823c4f056e Mon Sep 17 00:00:00 2001 From: Aman Sa <58567957+amanex007@users.noreply.github.com> Date: Thu, 2 Jan 2020 13:57:17 +0530 Subject: [PATCH 2/2] Create a ReadME.md With the instructions I believe this will be a better instruction to follow, since normally readme contain the how to do installation part of the project. --- README.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..9c5ae66 --- /dev/null +++ b/README.md @@ -0,0 +1,39 @@ +# Face-Recognition +Just read How_to_Run.txt file. You will understand how to train and run the face recognition project. + +____ + +## This is a step by step explanation of how train and run Face Recognizer. + + +___To watch the tutorial video, here is the link of Neha Yadav video in her channel:- https://www.youtube.com/watch?v=h21wMKGs0qs___ + +### You may follow these instructions >> + +1) Make a folder named as 'train-images' where you will store images to train. + +2) Make 1 or Multiple folders under train-images folder named as 0,1,2 and so on to store the images of people you want to recognize. + +3) For every person's images, different folders will be used. For example for person A, his images will be stored in folder named as 0 +and images of Person B, his images will be stored in folder named as 1 and so on. + +4) Open faceRecognition.py and Give path to haar classifier as i have given in faceDetection function. + +5) Now open Create_dataset_from_webcam.py to capture images from your webcame if you want to create dataset for your own images. It will click multiple images from webcam till you end this program. +Make sure it clicks atleast 300 images before you end the program. Do the required configuration as i have mentioned in comments. + +6) Your images will be stored at train-images/0/ folder + +7) Now at train-images/1/ folder, you can store images of any other person you want to recognise. + +8) Now open train_model.py to train your model to recognize whoever face you want. Do the required configuration. + +9) in train_model.py, If you want to recognize only one person then write:- name={0:"name"} thats all. Dont write for id number 1. + +10) Now your training will get done and trainingData.yml file will be saved. + +11) Now open load_model_image.py to recognize face from an image. Do the required configurations. + +12) Now open load_model_video.py to recognize face from a video or webcam. Do the required configurations. + +13) If you still face difficulty then either watch that video or message me in Instagram:- @py_developer.ashish