Y
Y
Yanis Gagarin2016-03-28 21:22:03
JavaScript
Yanis Gagarin, 2016-03-28 21:22:03

How to access webcam from code?

I'm just starting to learn JavaScript, so don't kick too hard.
I am writing a bot for Telegram on Node.js .
The task of the bot on command is to send a photo that is in the folder with the bot.
A snapshot should be taken by the webcam once every two minutes (ideally, by the same command), and added to a folder, replacing the previous one. At the moment, working with the webcam is done through special software for the camera, but I really want to avoid this kind of intermediaries, and work with the camera directly from the code.
Question:
1) Is this possible with Node.js?
2) What library \ module allows you to get the specified functionality?
3) Or is it better to look towards other languages? What?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2016-03-29
@yan1ss

https://github.com/kiriapurv/node-camera

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question