This article will show how to call an IP camera (taking calling a mobile phone camera as an example).
accomplish
First download the APP on the mobile phone that can call the mobile phone camera through the Internet
Check RTSP, click to share
Note down the LAN address, which needs to be modified accordingly in the following code
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
On the way to school, you and I encourage each other (๑•̀ㅂ•́)و✧