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

Can I use an IP camera instead of a USB webcam? #529

Open Aileenlingyu opened 6 years ago

Aileenlingyu commented 6 years ago

Hi, I was wondering that, can I use an IP camera for live inference? If so, how should I specify the device id? I am using a Foscam F19821P IP camera, thank you so much!

TadasBaltrusaitis commented 6 years ago

I haven't tried it (I don't have an IP camera to test with), but if OpenCV has an easy way to interface with IP cameras, this should not be too difficult to implement.

elahia commented 6 years ago

Hi @Aileenlingyu ,

Did you find any solution for your question, ... i also need to use an ip cam and i don't know how...

Cheers

Aileenlingyu commented 5 years ago

Hi @elahia , you can write an OpenCV function to get the video stream through URL (just replace your webcam id with your ip camera url), you may firstly verify the URL of your IP cam through VLC