chuckfairy / node-webcam

Nodejs Cross Platform Webcam usage
MIT License
193 stars 51 forks source link

Webcam stream #27

Open valereds opened 5 years ago

valereds commented 5 years ago

Is there a way to show webcam stream from node?

chuckfairy commented 5 years ago

Nah not with video, but there is a capturing example below with websockets. It's just taking pictures though. https://github.com/chuckfairy/node-webcam/tree/master/examples/websocket

Ideally we are going to have a C++ add-on, one thing I am discovering though is that older encoding packages are now broken in newer versions of node. I'm currently at the end of porting a jpg library. Linux will be the first for video too as I just found more examples.

cancerberoSgx commented 4 years ago

What I accomplished so far is taking screenshots but the webcam seems tobe tunrinig on and off between them so it's too slow. I wonder if there's a way to leave the cammera turned on ? or am I missing something ?

igorms-pro commented 4 years ago

hey @cancerberoSgx ,

I am facing the same issue... only turn on/off

cancerberoSgx commented 4 years ago

I started to work with my own implementation that's based on puppeteer (chrome headless browser) and so is portable and works acceptably fine (40fps in my machine for video size 480x320) : https://www.npmjs.com/package/camera-capture