Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to check the camera stream addresses #8

Closed
guijuzhejiang opened this issue Jun 10, 2020 · 9 comments
Closed

How to check the camera stream addresses #8

guijuzhejiang opened this issue Jun 10, 2020 · 9 comments

Comments

@guijuzhejiang
Copy link

guijuzhejiang commented Jun 10, 2020

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
Copy link
Owner

LeonLok commented Jun 10, 2020

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
Copy link
Author

guijuzhejiang commented Jun 11, 2020

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

@LeonLok
Copy link
Owner

LeonLok commented Jun 11, 2020

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

@Duy-Cao-Vo
Copy link

Duy-Cao-Vo commented Jun 13, 2020

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
Copy link
Owner

LeonLok commented Jun 13, 2020

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
Copy link

Duy-Cao-Vo commented Jun 13, 2020

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
Copy link
Owner

LeonLok commented Jun 13, 2020

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
Copy link

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

@LeonLok LeonLok closed this as completed Jul 16, 2020
@ghost
Copy link

ghost commented Apr 17, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants