middleware to connect webcam and helmet.