All Projects → vshantam → Age-Prediction

vshantam / Age-Prediction

Licence: other
This Project is an applicaton based on Computer vision and Machine learning implementation using regression supervised classification.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Age-Prediction

object detector
Object detector from HOG + Linear SVM framework
Stars: ✭ 24 (-7.69%)
Mutual labels:  face-detection, opencv-python
Face-Recognition-Attendance-System
Face Detection | Recognition | Attendance
Stars: ✭ 289 (+1011.54%)
Mutual labels:  face-detection, haar-cascade-classifier
Image-Processing-in-Python
This repository contains the links to the article that I wrote on Medium pertaining to Image processing.
Stars: ✭ 23 (-11.54%)
Mutual labels:  face-detection, opencv-python
Computer-Vision
Cool Vision projects
Stars: ✭ 51 (+96.15%)
Mutual labels:  face-detection, opencv-python
ComputerVision-Essentials
Computer Vision Essentials in Python Programming Language 🎉
Stars: ✭ 28 (+7.69%)
Mutual labels:  face-detection, opencv-python
facial-landmarks
Facial landmarks detection with OpenCV, Dlib, DNN
Stars: ✭ 25 (-3.85%)
Mutual labels:  face-detection, opencv-python
facial-expression-recognition
Facial Expression Recognition Using CNN and Haar-Cascade
Stars: ✭ 44 (+69.23%)
Mutual labels:  face-detection, haar-cascade-classifier
Insta flters with python
With this program you can add hat & glass on your face(it's support multiple faces)
Stars: ✭ 21 (-19.23%)
Mutual labels:  face-detection, opencv-python
image processing
image-processing exercises.
Stars: ✭ 25 (-3.85%)
Mutual labels:  face-detection, opencv-python
FaceRecog
Realtime Facial recognition system using Siamese neural network
Stars: ✭ 47 (+80.77%)
Mutual labels:  face-detection, opencv-python
udacity-cvnd-projects
My solutions to the projects assigned for the Udacity Computer Vision Nanodegree
Stars: ✭ 36 (+38.46%)
Mutual labels:  face-detection, opencv-python
Face-Detection-and-Tracking
Computer Vision model to detect face in the first frame of a video and to continue tracking it in the rest of the video. This is implemented in OpenCV 3.3.0 and Python 2.7
Stars: ✭ 24 (-7.69%)
Mutual labels:  face-detection, opencv-python
Face-Detection-and-Tracking
Face Detection and tracking using CamShift, Kalman Filter, Optical Flow
Stars: ✭ 30 (+15.38%)
Mutual labels:  face-detection, opencv-python
BlurryFaces
A tool to blur faces or other regions in images and videos 🤡🔍
Stars: ✭ 58 (+123.08%)
Mutual labels:  face-detection, opencv-python
gender classifier
Deep learning, Face detection, CNN, Tensorflow, Keras, OpenCV, Python crawler
Stars: ✭ 20 (-23.08%)
Mutual labels:  face-detection
calcuMLator
An intelligently dumb calculator that uses machine learning
Stars: ✭ 30 (+15.38%)
Mutual labels:  regression-models
FaceDetection.jl
A face detection algorithm using Viola-Jones' rapid object detection framework written in Julia
Stars: ✭ 13 (-50%)
Mutual labels:  face-detection
GStreamer-Python
Fetch RTSP Stream using GStreamer in Python and get image in Numpy
Stars: ✭ 81 (+211.54%)
Mutual labels:  opencv-python
flutter-webrtc python-aiortc-opencv
Flutter WebRTC demo with Python server to perform image processing on video frames using OpenCV
Stars: ✭ 34 (+30.77%)
Mutual labels:  opencv-python
Invisible-Cloak-And-Magic-Wand-using-OpenCV
This is one of my OpenCV that is Computer Vision project named in vi . That is inspired from Harry potter Invisible Cloak
Stars: ✭ 16 (-38.46%)
Mutual labels:  opencv-python
                                          Age-Prediction 

This project is based on the dataset provided by wiki/Dataset

link:-"https://data.vision.ee.ethz.ch/cvl/rrothe/imdb-wiki/"

Machine Learning

Machine learning is a field of computer science that gives computers the ability to learn without being explicitly programmed. The name Machine learning was coined in 1959 by Arthur Samuel

Regression

In statistical modeling, regression analysis is a set of statistical processes for estimating the relationships among variables.

Regression analysis is a form of predictive modelling technique which investigates the relationship between a dependent (target) and independent variable (s) (predictor). This technique is used for forecasting, time series modelling and finding the causal effect relationship between the variables.

Computer Vision

Computer vision tasks include methods for acquiring, processing, analyzing and understanding digital images, and extraction of high-dimensional data from the real world in order to produce numerical or symbolic information, e.g., in the forms of decisions.

Project Structure

 1:- OVERVIEW
 2:- WORKING
 3:- REQUIREMENTS
 4:- INSTALLATION
 5:- DATASET SANPSHOT
 6:- DATA PLOTTING and GRAPHS
 7:- PREDICTION
 8:- GENDER ANALYSIS AND LEARNING CURVE
 9:- OBJECT DISTANCE CALCULATION
 10:- OUTPUT

Overview

This Project is an application based on Computer vision and Machine learning implementation using regression supervised classification.

Working

alt_tag

Requirements

 1:- SCIKIT-LEARN
 2:- PICKLE
 3:- MATPLOTLIB
 4:- NUMPY
 5:- PANDAS
 6:- OS/SYS
 7:- CV2

Installation

Suggested to use Python3 pip version i.e pip3 to install packages.

if you do not have pip3 installed in your system .

Use this command:

 sudo apt-get install python3-pip --upgrade # for pip3
 sudo apt-get install python-pip --upgrade #for pip 

eg:-

 pip3 install scikit-learn #for sklearn 

Dataset Snapshot

Features set
alt_tag Output set
alt_tag

Data Plotting and Graphs

Histogram plotting
alt_tag

Plot variation
alt_tag

Pie chart Analysis
alt_tag

Combination of simple plot and Histogram
alt_tag

Predictions

This is a real time application using webcam feed so the accuracy will not be much reliable but close to the actual values.One can expect variatons also.

The reason could be anythng Like :

Quality of the images
Noise in the Image
Fps Distribution

The application Predicts only when the Face is been detected by the camera in Real Time.If it fails to predict the face then it Halts until it finds one..

scripts :-

  $ python3  Dataset.py

The wiki datset folder structure looks like
alt_tag

where each folder contains images of peaple which age labled on the image this function hels to loop through all the folder images and scales them,after that the script puts the all images into the sample images folder

alt_tag

$ python3 cropfunc.py

This function helps to loop through all the resized image and detect the faces in it . if the face is been detected then it crops the facial par and saves it in the sample cropped folder.

alt_tag

After the crop procedure script provide function to convert the color images into grayscale image. alt-tag

$ python3 clf.py

This functon is used for loading the dataset and classifier using machine learning modules.

The classifier can be saved using pickle module if you are usng scikit learn and the formats are:

1:- sav
2:- pkl

if you are using Deep Learning Modules such as keras,Tensorflow you can use the Following formats:

1:- hdf5
2:- h5py
3:- YAML
4:- JSON

Gender Analysis and Learning Curve

                                    Training Set         
                                                                                     X-axis : Accuracy
                                                                                     Y-axis : Loss

Simple Plot
alt_tag

Scatter Plot
alt_tag

Pie Chart
alt_tag

                                     Testing set
                                                                                          X-axis : Accuracy
                                                                                          Y-axis : Loss

Simple Plot
alt_tag

Scatter Plot
alt_tag

Pie Chart
alt_tag

Object Distance Calculation

In order to determine the distance from our camera to a known object or marker, we are going to utilize triangle similarity.

we have a marker or object with a known width W. We then place this marker some distance D from our camera. We take a picture of our object using our camera and then measure the apparent width in pixels P. This allows us to derive the perceived focal length F of our camera:

            F = (P x  D) / W

I can apply the triangle similarity to determine the distance of the object to the camera:

            D = (W x F) / P

Here "D" is the Actual Distance alculated by the system and "F" is the Focal length calculated by the system.

For references use the link : ("https://stackoverflow.com/questions/14038002/opencv-how-to-calculate-distance-between-camera-and-object-using-image")

Output

Does the Actual Prediction

  $ main.py

Output 1:

Predicted Age :- 24
Actual Age :- 21

alt_tag

Output 2: alt_tag

Output 3: alt_tag

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].