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?
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).
WebRTC is fine with HTTP. The issue comes with media device capture.
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.
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)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With