Faster Launch of WEBcam and Smoother Video in OpenCV on Windows

YouTube video player
This is the code we developed in Video Lesson #6 showing how to launch a webcam quicker and with less delay in OpenCV running on windows. The video above explains the code step by step, but for your convenience, I include the code below.