Posts

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 jus...

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 ...

DIY VOLTMETER USING ARDUINO ADC

Image
This post helps to DIY yourself a high precision multimeter using Arduino. The UNO already comes with an excellent 10-bit ADC which is enough, but I recommend using an external ADC of 16-bit if you want to take it to serious measurement. But you don’t want you use it as replacement for a multimeter, buy a good multimeter instead of it. This Arduino based one is helpful for projects and static voltages that doesn’t change over the time.  We can create a voltage divider hence  We can measure voltage drop between the divider and hence multiply with resistance to get the VIN. Here I’m using a 1Kohm and 2.2KOHM resistance to measure max voltage of 5V. If want to measure the higher voltage use the following formula to adjust the resistors.   Vout = VIN * (R1R2/R1+R2) [NOTE:   This voltage “VOUT” should not have to be more than 5v, I recommend VOUT<less than 5V is safe to use]. Sounds easy because it is, but V_IN cannot be measure hence we need ADC to do trick, the...

HOW TO IMPLEMENT PRECISE TIMED EVENT WITH ARDUINO

Image
Let us assume a situation where you want to blink an event at a precise moment with a trigger, while the Arduino doing other tasks and you want to prioritize the blink as important event. Well in order to do that you need timers help to time it precisely hence you need to use timer as interrupt to do that. The Arduino IDE default has a time function called “delay (microseconds)” it is pretty good and we can use it almost in many things, but it’s not precise and tends to shift some mill-seconds after sometime hence not reliable. That being said let’s see how we can implement a timer of Arduino to create a triggered event. The Arduino comes with two 8-bit timers, one 16-bit timer hence we can use the 16-bit timer to implement and triggered event. We are gonna use the TCCR1A and TCCR1B timer registers to implement. In the datasheet it is given clearly about how to implant it. The Timer/Counter (TCNT1), output compare registers (OCR1A/B), and input capture register (ICR1) are all...

HOW TO WRITE YOUR OWN CODE FOR AN LCD DISPLAY (16X2 OR 16X4)

The Arduino ide default comes with an excellent library with examples for LCD display it’s really easy! One to use. Mine is not best one but the reason behind this post is to experience the feel of writing your own code and understanding the embedded displays and their working technology and how they works with u-controllers, maybe in future it can helps you to write a code for lcd display with other new microcontrollers or other programming languages. So let’s start with the one important things: The datasheet is your friend in this quest for any quest, for real! So getting the data sheet is important here I’m using a 16x2 LCD. This kind LCD is based on parallel interface LCD controller chip from Hitachi called the HD44780. Next is physical pinout the display uses a matrix of dots and displays only characters in 16x2 matrixes. Each character is displayed in a 5 column × 8 row dot matrix or a 5 column × 10 row dot matrix The pinout is LCD has totally 16 pins they are: 1....