Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 1.23 KB

File metadata and controls

30 lines (18 loc) · 1.23 KB

Stream webcam video and display them on screen

Reference implementation in C/C++. Tests that a compatible camera is connected, streams 10 seconds of video (image frames), and displays them in a window on the screen.

This is the libuvc documentation example, with the on-screen display enabled. It uses the locally built dependencies used by this package, but builds them in this directory.

Additional requirements

  • Libraries:
    • opencv for displaying the stream of images.

Building

Using the package dependency cmake-js instead of cmake to share build default values with the package build.

npx cmake-js compile

Usage

See the terminal for some debugging output, and the newly opened window for 10 seconds of streaming video from the camera.

./build/stream-display

node-libuvc Copyright © 2020, 2021 Joel Purra. Released under GNU Lesser General Public License version 3.0 (LGPL-3.0). Your donations are appreciated!