Code with live stream part implemented.
Beware u need a good (hd) web cam for this to work