TadasBaltrusaitis / OpenFace

OpenFace – a state-of-the art tool intended for facial landmark detection, head pose estimation, facial action unit recognition, and eye-gaze estimation.
Other
6.84k stars 1.84k forks source link

use openface with rtsp stream #736

Open glitzflitz opened 5 years ago

glitzflitz commented 5 years ago

Describe the bug Is it possible to use OpenFace with rtsp url?

TadasBaltrusaitis commented 5 years ago

I've never really evaluated it, but you should be able to just input the rtp/rtsp url using (e.g.): -f rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov

Internally, OpenFace uses OpenCV for dealing with image/video loading, and OpenCV seems to support rtp streams, although I don't know how well.

Would be interesting to test it, let me know if you encounter any issues or if it works.

glitzflitz commented 5 years ago

@TadasBaltrusaitis Using -f option gives boost::filesystem::filesystem_error. It says it can not find the file.

TadasBaltrusaitis commented 5 years ago

I'll have a look and see if there's an easy way to address it for the next release, as it is OpenCV this should not be too difficult, I think currently the model fails when trying to create an output file to write to.