makenai / node-uvc-control

Control UVC compliant USB webcams from node
80 stars 28 forks source link

how to caputure photo or video? #17

Closed lhr000lhr closed 5 years ago

lhr000lhr commented 7 years ago

how to caputure photo or video?

positlabs commented 7 years ago

This lib is just for setting controls on UVC devices.

You can do this with web apis like these:

https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getUserMedia https://developer.mozilla.org/en-US/docs/Web/API/MediaStream_Recording_API

positlabs commented 7 years ago

You could also use ffmpeg. https://trac.ffmpeg.org/wiki/Capture/Webcam

lhr000lhr commented 7 years ago

i see. but I want to capture fill resolution pic,rather than a frame in video. can you help me?

positlabs commented 7 years ago

You can use a dslr that is compatible with gphoto2 if you want to take still photos.

http://gphoto.org/proj/gphoto2/