YOLOv5 calls IP camera

This article will show how to call an IP camera (taking calling a mobile phone camera as an example).

accomplish

  1. First download the APP on the mobile phone that can call the mobile phone camera through the Internet

I use this

  1. Check RTSP, click to share

  1. Note down the LAN address, which needs to be modified accordingly in the following code

  1. Change the default value of '--source' in detect.py, pay attention to the format, and then click to run

Effect

On the PC side, there will be a detection frame similar to the real-time target detection, but the camera of the mobile phone is called.

Multi-camera call

By the way, review, multi-camera real-time object detection. I won’t explain too much here, you can read my previous blog for details:

Using YOLOv5 to realize multi-camera real-time target detection

Change '--source' default to point to txt file

Add a new line to the txt file

After running, three detection boxes appear, 0 is the computer's built-in camera, 1 is the USB camera, and the other is the mobile phone camera

On the way to school, you and I encourage each other (๑•̀ㅂ•́)و✧

Guess you like

Origin blog.csdn.net/Albert_yeager/article/details/128878200