{"id":20280058,"url":"https://github.com/fyt3rp4til/age-prediction","last_synced_at":"2026-05-10T02:23:43.179Z","repository":{"id":197219895,"uuid":"698214979","full_name":"FYT3RP4TIL/Age-Prediction","owner":"FYT3RP4TIL","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-02T05:19:28.000Z","size":99672,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-04T02:42:14.508Z","etag":null,"topics":["caffemodel","cmake","dlib-face-detection","opencv","tensorflow"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FYT3RP4TIL.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-09-29T12:19:38.000Z","updated_at":"2024-01-18T14:52:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"d06959af-6a2d-4f61-ae3f-10eb69c22cfb","html_url":"https://github.com/FYT3RP4TIL/Age-Prediction","commit_stats":null,"previous_names":["sudhanshu21xx/age-prediction","fyt3rp4til/age-prediction"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/FYT3RP4TIL/Age-Prediction","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FYT3RP4TIL%2FAge-Prediction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FYT3RP4TIL%2FAge-Prediction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FYT3RP4TIL%2FAge-Prediction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FYT3RP4TIL%2FAge-Prediction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FYT3RP4TIL","download_url":"https://codeload.github.com/FYT3RP4TIL/Age-Prediction/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FYT3RP4TIL%2FAge-Prediction/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261379956,"owners_count":23149930,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["caffemodel","cmake","dlib-face-detection","opencv","tensorflow"],"created_at":"2024-11-14T13:34:16.553Z","updated_at":"2026-05-10T02:23:38.145Z","avatar_url":"https://github.com/FYT3RP4TIL.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Age-Detection \n\n\n\u003ch2\u003eObjective :\u003c/h2\u003e\n\u003cp\u003eTo build a gender and age detector that can approximately guess the gender and age of the person (face) in a picture or through webcam.\u003c/p\u003e\n\n\u003ch2\u003eAbout the Project :\u003c/h2\u003e\n\u003cp\u003eIn this Python Project, I had used Deep Learning to accurately identify the gender and age of a person from a single image of a face. I used the models trained by \u003ca href=\"https://talhassner.github.io/home/projects/Adience/Adience-data.html\"\u003eTal Hassner and Gil Levi\u003c/a\u003e. The predicted gender may be one of ‘Male’ and ‘Female’, and the predicted age may be one of the following ranges- (0 – 2), (4 – 6), (8 – 12), (15 – 20), (25 – 32), (38 – 43), (48 – 53), (60 – 100) (8 nodes in the final softmax layer). It is very difficult to accurately guess an exact age from a single image because of factors like makeup, lighting, obstructions, and facial expressions.\u003c/p\u003e\n\n\u003ch2\u003e 📁Dataset :\u003c/h2\u003e\n\u003cp\u003eFor this python project, I had used the Adience dataset; the dataset is available in the public domain and you can find it \u003ca href=\"https://www.kaggle.com/ttungl/adience-benchmark-gender-and-age-classification\"\u003ehere\u003c/a\u003e. This dataset serves as a benchmark for face photos and is inclusive of various real-world imaging conditions like noise, lighting, pose, and appearance. The images have been collected from Flickr albums and distributed under the Creative Commons (CC) license. It has a total of 26,580 photos of 2,284 subjects in eight age ranges (as mentioned above) and is about 1GB in size. The models I used had been trained on this dataset.\u003c/p\u003e\n\n\u003ch2\u003e🔑Additional Python Libraries Required :\u003c/h2\u003e\n\u003cul\u003e\n  \u003cli\u003eOpenCV\u003c/li\u003e\n  \n       pip install opencv-python\n\u003c/ul\u003e\n\u003cul\u003e\n  \u003cli\u003ecmake\u003c/li\u003e\n  \n       pip install cmake\n\u003c/ul\u003e\n\u003cul\u003e\n  \u003cli\u003edlib\u003c/li\u003e\n  \n       pip install dlib\n\u003c/ul\u003e\n\n \u003cp\u003eFor face detection, we have a .pb file- this is a protobuf file (protocol buffer); it holds the graph definition and the trained weights of the model. We can use this to run the trained model. And while a .pb file holds the protobuf in binary format, one with the .pbtxt extension holds it in text format. These are TensorFlow files. For age and gender, the .prototxt files describe the network configuration and the .caffemodel file defines the internal states of the parameters of the layers.\u003c/p\u003e\n\n \u003ch2\u003e🔑Workflow :\u003c/h2\u003e\n \u003cdiv align= \"center\"\u003e\u003cimg src=\"https://github.com/Sudhanshu21xx/Age-Prediction/assets/113416452/20105485-38df-4ab4-a16f-1a9a32a7121b\"/\u003e\u003c/div\u003e\n\n\n \n \u003ch2\u003e💡Usage :\u003c/h2\u003e\n \u003cul\u003e\n  \u003cli\u003eDownload the Repository\u003c/li\u003e\n  \u003cli\u003eOpen the notebook OpenCV_dlib_code.\u003c/li\u003e\n  \u003cli\u003e\u003cb\u003eChange the image name :\u003c/li\u003e\n  \n      img = cv2.imread('sample.jpg')\n\n  \u003cp\u003e\u003cb\u003eNote: \u003c/b\u003eThe Image should be present in same folder where all the files are present\u003c/p\u003e \n  \u003c/ul\u003e\n\u003cul\u003e\n  \u003cli\u003eRun the code.\u003c/li\u003e\n\u003c/ul\u003e\n\n\n\n\u003ch2\u003eExamples :\u003c/h2\u003e\n\u003cdiv align= \"center\"\u003e\u003cimg src=\"https://github.com/Sudhanshu21xx/Age-Prediction/assets/113416452/2c18317a-a7c8-474c-9ba2-68aa903f8521\"/\u003e\u003c/div\u003e\n\u003cdiv align= \"center\"\u003e\u003cimg src=\"https://github.com/Sudhanshu21xx/Age-Prediction/assets/113416452/47eacb64-a2f6-4513-803a-4ea1dd4dc379\"/\u003e\u003c/div\u003e\n\u003cdiv align= \"center\"\u003e\u003cimg src=\"https://github.com/Sudhanshu21xx/Age-Prediction/assets/113416452/30561e73-8537-4720-87b5-e27fcd25ae96\"/\u003e\u003c/div\u003e\n\u003cdiv align= \"center\"\u003e\u003cimg src=\"https://github.com/Sudhanshu21xx/Age-Prediction/assets/113416452/3e3a1cb0-737b-4b43-bc34-485f0dc14735\"/\u003e\u003c/div\u003e\n\u003cdiv align= \"center\"\u003e\u003cimg src=\"https://github.com/Sudhanshu21xx/Age-Prediction/assets/113416452/18b7d6ee-f1ae-4350-b971-19c755ece62d\"/\u003e\u003c/div\u003e\n\u003cdiv align= \"center\"\u003e\u003cimg src=\"https://github.com/Sudhanshu21xx/Age-Prediction/assets/113416452/a88f5203-490b-4f29-bbe0-a41346f6899a\"/\u003e\u003c/div\u003e\n             \n\n \n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffyt3rp4til%2Fage-prediction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffyt3rp4til%2Fage-prediction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffyt3rp4til%2Fage-prediction/lists"}