Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

webrtc without a browser

Right now I am using this project here. It is a python script that runs a server using webrtc to send the clients/browsers webcam to the server and perform face recognition. What I want to do is do the same thing with a web cam or pi cam hooked up to the pi but without the use of the browser. Is there a way to do it with the current set up or is there a better method to accomplish this?

like image 596
BluGeni Avatar asked Dec 19 '14 15:12

BluGeni


People also ask

Can I use WebRTC without browser?

Re: WebRTC peer without a browserUV4L supports STUN/TURN servers for NAT traversal when used for bidirectional audio/video p2p, or can connect as a client to a Janus SFU videoroom on the Internet. In both cases there is no need to expose the rpi (except the HTTP port only in the first case).

Does WebRTC work over HTTP?

WebRTC is fine with HTTP. The issue comes with media device capture.

Does NodeJS support WebRTC?

It's a WebRTC server implemented in NodeJS. You can install it just like any npm package and use along with rest of your implementation.


1 Answers

You can use the native library and connect it to the face recognition server. You can use either the google implementation of webrtc or a more recent implementation (by Ericsson) called openWebrtc. The developers of openWebRTC are very proud of running their implementation on various pieces of hardware like raspberry pi and iOS devices.

If you don't what to mess with a native library you can use a nodejs binding for webrtc (for example node-webrtc or easyrtc)

like image 172
Svetlin Mladenov Avatar answered Oct 07 '22 09:10

Svetlin Mladenov