LeonLok / Multi-Camera-Live-Object-Tracking

Multi-camera live traffic and object counting with YOLO v4, Deep SORT, and Flask.
GNU General Public License v3.0
972 stars 283 forks source link

How to check the camera stream addresses #8

Closed guijuzhejiang closed 4 years ago

guijuzhejiang commented 4 years ago

In the camera_client_0.py,path = "rtsp://192.168.1.70:8080//h264_ulaw.sdp". How should I replace the entire path to my own camera.

LeonLok commented 4 years ago

You need to find the address of your own IP camera stream.

For example, if you use an IP camera app on your phone, then it should give you a stream address that you can copy and enter in the client script.

guijuzhejiang commented 4 years ago

Thanks for your answer, I want to use the camera on remote PC as a video stream, is it possible?

LeonLok commented 4 years ago

Yes - if you have the IP address of your remote PC camera.

Duy-Cao-Vo commented 4 years ago

Can you help me? I got an error File "C:\Users\duy.vonc\Desktop\Face recognition\People_counter 2 github\Flask-Multi-Camera-Streaming-With-YOLOv4-and-Deep-SORT\base_camera.py", line 90, in get_frame return BaseCamera.frame[unique_name] KeyError: ('yolo', '0')

The code is a little bit complicated so I can't debug it.

LeonLok commented 4 years ago

Can you help me? I got an error File "C:\Users\duy.vonc\Desktop\Face recognition\People_counter 2 github\Flask-Multi-Camera-Streaming-With-YOLOv4-and-Deep-SORT\base_camera.py", line 90, in get_frame return BaseCamera.frame[unique_name] KeyError: ('yolo', '0')

The code is a little bit complicated so I can't debug it.

I think that might be happening because no frames are being received. Could you check to see if your camera stream is working properly?

Duy-Cao-Vo commented 4 years ago

Can you help me? I got an error File "C:\Users\duy.vonc\Desktop\Face recognition\People_counter 2 github\Flask-Multi-Camera-Streaming-With-YOLOv4-and-Deep-SORT\base_camera.py", line 90, in get_frame return BaseCamera.frame[unique_name] KeyError: ('yolo', '0') The code is a little bit complicated so I can't debug it.

I think that might be happening because no frames are being received. Could you check to see if your camera stream is working properly?

Camera stream 1 was able to receive frames and displayed. But Yolo stream 1 was not. I have checked the key in the dictionary and just got [('camera', '0')]. Can you please find me a way to fix this. Thank so must

LeonLok commented 4 years ago

The yolo_frames method in camera_yolo.py takes the frames from the ('camera', '0') stream and then applies YOLO and tracking to each frame. These are then used in the yolo_thread method in base_camera.py.

If camera_yolo.py was successful, then the ('yolo', '0) stream should be working. I think maybe something is wrong within these steps somewhere since your camera stream has no issues?

I hope that makes sense - I think I've never had this issue before. Please let me know how it goes.

Duy-Cao-Vo commented 4 years ago

The yolo_frames method in camera_yolo.py takes the frames from the ('camera', '0') stream and then applies YOLO and tracking to each frame. These are then used in the yolo_thread method in base_camera.py.

If camera_yolo.py was successful, then the ('yolo', '0) stream should be working. I think maybe something is wrong within these steps somewhere since your camera stream has no issues?

I hope that makes sense - I think I've never had this issue before. Please let me know how it goes.

Thanks a lot, I will try to figure it out. I 'm feeling thankful when fixing bug and got some help

ghost commented 3 years ago

The yolo_frames method in camera_yolo.py takes the frames from the ('camera', '0') stream and then applies YOLO and tracking to each frame. These are then used in the yolo_thread method in base_camera.py. If camera_yolo.py was successful, then the ('yolo', '0) stream should be working. I think maybe something is wrong within these steps somewhere since your camera stream has no issues? I hope that makes sense - I think I've never had this issue before. Please let me know how it goes.

Thanks a lot, I will try to figure it out. I 'm feeling thankful when fixing bug and got some help

Hello Duy-Cao-Vo I have been having this same issue for some time now. Did you ever find a solution to this issue? That would be greatly appreciated.