introlab / find-object

Find-Object project
http://introlab.github.io/find-object/
BSD 3-Clause "New" or "Revised" License
448 stars 189 forks source link

M-JPEG streamer #78

Open exist16 opened 5 years ago

exist16 commented 5 years ago

Question: is there a way to use M-JPEG streamer installed in raspberry pi as the camera source. I think, using the actual tcp/ip settings is not possible to transfer the video from raspberry. P.S.: the application is running on a pc .

matlabbe commented 5 years ago

Possible solution: https://github.com/introlab/find-object/issues/32

exist16 commented 5 years ago

Thanks matlabbe, it worked. one more question: How could we detect if the stream freeze? because it continues to show the last active frame, although there is no active connection.

matlabbe commented 5 years ago

We use cv::VideoCapture class from OpenCV, the image query is there: https://github.com/introlab/find-object/blob/ef0c565b7e3b3a3e78ae5424a7536cf3dd3e9101/src/Camera.cpp#L126

There are couple solutions in this post: https://stackoverflow.com/questions/30032063/opencv-videocapture-lag-due-to-the-capture-buffer

exist16 commented 5 years ago

thank you.. I have resolved the issue