Practical 10

Using image data, predict the gender and age range of an individual in Python. Test the data science model using your own image.

In this practical we will build a gender and age detector that can approximately guess the gender and age of the persons face in a picture.
For this  we will use pretrained model  for detecting data you can get python file from here.Or you can clone git repository directly into your code.

Step 1: clone git repository to your code



Step 2 : Download pretrained model


Step 3: load libraries


Step 4:  after loading libraries set image frame size  with open cv 


 

Step 5: load model weight file of age and gender  for given function


  Step 6: create detection function pass the value of frame and model to detect data


Step 7: load your own image to test the model



Step 8: Output for given file 




For this practical I have used this reference : link


No comments:

Post a Comment