Posts

Showing posts with the label computer-vision

CONVOLUTION: KERNALS FOR FEATURE EXTRACTION IN IMAGE PROCESSING

Image
An image as simple as 200x200 is too much information for a Nueral network or a computer to understand. The machine learning algorithm like logic regression cannot process the 200x200 information of image, even if it does, the results may not be favourable at all. The accuracy of Nueral Network totally depend upon the input we've given it. So in machine learning the NN's preprocess the input and extract necessary information from the input. Something advance such as CONVOLUTION NUERAL NETWORK(CNN) perform feature extraction. In order to extract feature from an image we need convolution in image processing. Convolution is process in signal processing which is used to combine 2 signals. More about convolution in here . Here the convolution in computer vision is for feature extraction . We extract important details from image like Edges,noise removal,etc... The extraction of important data can be achieved by using a KERNAL .  The kernal method is used for sharping,embrose,smoo

DISCRETE FOURIER TRANSFORMATION(DFT)

Image
In this post we are gonna learn about fourier transformation and implementation of Discrete fourier transformation in python. Why we need to use fourier transformation anyway...a normal periodic wave like sine wave has 3 characterstics like Phase,amplitude,frequency that tell us about the wave..it's easy and understandable but what if a wave is unperiodic like this ex. in this example it is not a periodic sinewave..so but an multiple frequencies of waves added together. Hence to analyse these kind of waves we need fourier transformation in signal processing. The fourier transforamation is applied in both Continous and Discrete waves . .In this we are gonna concentrate in DFT(Discrete fourier transformation)..and to visulalize the wave we are gonna use python(cause it's easy to use). we need the following python library to do this : 1.numpy    2.seaborn    3.mathplotlib     DFT(DISCRETE FOURIER TRANSFORMATION) It is applied to specifically discete signals. It is used to break th

A FORMAL INTRO TO MACHINE LEARNING USING LOGISTIC REGRESSION FROM SCRATCH

Image
The machine learning  is all about making computer or a machine like Robot! to do stuff without actually telling every single thing via programming...here the computer or a machine just learns how to do the stuff.., it'll figure it out like you and me. how it does that?...well that's math!! for you...yes, literally it figure it out using mathematics. What kind of it??? well for starters if you ever had any math class in your university or school...that'll do!  Ok that being said we gonna learn little bit of ML(machine learning). especially the one called supervised learning. Supervised Learning : is a kind of method telling the computer what to do whether than how to do..in technical term we call it as specifying "LABELS" for prediction... Say we have a data on a phone parts like camera, storage, ram, 5G or 4G, brand (apple, Samsung, etc..) and their prices. we need to predict the price of a new phone based on specs from our previous data on specs and brand. her

video face detection using HAAR'S CASCADE with python

Image
face detection using HAAR'S CASCADE with python In this tutorial we're gonna look into a face detection using "HAAR's CASCADE" algorithm in open cv.  haar's cascade a is face detection classifier built-in  opencv for face and many more detection. Haar's cascade is originally developed from viola-jones algorithm . but it's not perfect it is prone to noise often, and this algorithm is best suited for frontal face detection, but for just simplicity we use it today. Let's be clear about 2 things they are face Recognization and face detection. They both are 2 separate things. This haars cascade focus and used for face detection means in picture or a video it can detect the faces. Where face recognization is detecting a particular face of person. The problem in computer vision has been bothered so long untill  Development began on similar systems in the 1960s, here is wiki page on history of face detection . The viola jones algorithm achived the face

simple color tracking using opencv(no machine learning mombo jambo!)

Image
                              In this method we are using opencv and python for identifying a color and hilight it. this method uses the simple Bitwise and operation and image "HSV(hue,saturation,value)" manupulation of colors.                      The HSV value of image is represent the original colors of image though the RGB or BGR cannot tell the difference between the levels of colors hence this method only to work with HSV images since the HUE tells the color and saturation tells the level of color.                       here i'm tracking blue levels of colors in HSV u can track any color u want you need the hsv value for that, i suggest to use max value of upper color and min value for lower colorat start and play around the values untill u get statisfied results or just google it!.                      To get started u need few things, and just few line of codes you get ur face detection. we need the following things to get started: 1.python 3 recent would be nice

computer vision(opencv) with python

Image
face detection using HAAR'S CASCADE with python In this tutorial we're gonna look into a face detection using "HAAR's CASCADE" algorithm in open cv. haar's cascade a is face detection classifier built-in  opencv for face and many more detection. Haar's cascade is originally developed from viola-jones algorithm. but it's not perfect it is prone to noise often, but for just simplicity we use it today. "using this method we can also detect many other features like face,eyes,full body,lowerbody,russian number_plates,etc.." here the same method modified for video face detection to get started u need few things, and just few line of codes you get ur face detection. we  need the following things to get started: 1.python 3 recent would be nice! 2.opencv lib package installed using pip 3.laptop/desktop with webcam step 1:               go to www.python.org and download latest version of python3  choose the install python along with pip and Option say