I am using YOLOv4 and YOLOv5 for object detection from IP Camera. When I used Hikvision camera, the program was successfully executed and I could get the expected result. When I try to use a new camera from another company for object detection using YOLOv5, the following error is encountered.
[rtsp @ 00000207f6a7cb40] method DESCRIBE failed: 454 Session Not Found
I went through this question in stackoverflow and tried using the double quoation mark before the camera ip address, but I failed.
I also found this link, however this is for linux. I need for windows.
P.S.When I ping the camera ip address from command prompt, the ping is successful. Also, the command for yolov5 used is:
python detect.py --source rtsp://username:[email protected] --weights bestweight.pt --conf 0.25
I do not have much knowledge regarding cameras. I would really appreciate if anyone could help me with this.
CodePudding user response:
I tried and found the answer. I also need to enter trackID. The follwoing command worked for me.
python detect.py --source rtsp://username:[email protected]/trackID=1 --weights bestweight.pt --conf 0.25