Realtime YOLO Object Detection using laptop webcam in Google Colab

前端 未结 2 1787
无人及你
无人及你 2020-12-21 12:07

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

相关标签:
2条回答
  • 2020-12-21 12:12

    I've used the take photo function from google snippets mentioned in the above answer then registered a callback between python and the js function.
    For the output used cv2_imshow.
    Currently it takes 4 photos from the webcam and does object detection on it.
    You can find the notebook here

    0 讨论(0)
  • 2020-12-21 12:24

    Google have provided a code snippet to do that by calling some JavaScript to access the webcam via the browser (mediaDevices.getUserMedia({video: true})):

    • https://colab.research.google.com/notebooks/snippets/advanced_outputs.ipynb#scrollTo=2viqYx97hPMi

    It works well, and can be easily modified to remove the confirmation button if needed.

    0 讨论(0)
提交回复
热议问题