Practical-10
Aim: Using image data, predict the gender and age range of an individual in Python. Test the data science model using your own image.
Description:
OpenCV Library:
OpenCV (Open Source Computer Vision
Library) is an open source computer vision and machine learning software
library. OpenCV was built to provide a common infrastructure for computer
vision applications and to accelerate the use of machine perception in the
commercial products.
Currently OpenCV helps a huge style of programming languages like C++,
Python, Java etc and is available on unique structures together with Windows,
Linux, OS X, Android, iOS and so on. Also, interfaces based on CUDA and OpenCL
are also beneath energetic development for high-velocity GPU operations.
The Content of the file are :
opencv_face_detector.pbtxt
opencv_face_detector_uint8.pb
age_deploy.prototxt
age_net.caffemodel
gender_deploy.prototxt
gender_net.caffemodel
a few pictures to try the project on
detect.py
Here .pb file is protobuf file
which is Binary file. And .pbtxt file is text file of .pb file
it contains the trained weights value of model.
Here we have use argparse library of python which is use to take agrument from command prompt .As we have to take image as argument.
Firstly Install opencv and argparser
And Now Go to the directory where the files are there
Output:
Comments
Post a Comment