I am using YOLOv3 and OpenCV for realtime object detection on my local system using a Webcam. Everything works like a charm and here is the link of what I did for my local s
Google have provided a code snippet to do that by calling some JavaScript to access the webcam via the browser (mediaDevices.getUserMedia({video: true})):
It works well, and can be easily modified to remove the confirmation button if needed.