Skip to content

📋 integrate webcam into javascript app, using a server to host the webcam. Manipulate images using image-js

Notifications You must be signed in to change notification settings

AndrewJBateman/javascript-webcam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⚡ Javascript Webcam

  • Javascript control of PC webcam with functions to manipulate image colours etc.
  • Note: to open web links in a new window use: ctrl+click on link

GitHub repo size GitHub pull requests GitHub Repo stars GitHub last commit

📄 Table of contents

📚 General info

  • Webcam in javascript app, using a local server to host the webcam.

📷 Screenshots

Example screenshot. Example screenshot.

📶 Technologies

💾 Setup

  • run 'npm i' to install 'browser-sync' package then type 'npm run start'.

💻 Code Examples

  • function to get video stream data and play it.
function getVideo() {
  navigator.mediaDevices
  .getUserMedia({ video: true, audio: false })
  .then(localMediaStream => {
    video.srcObject = localMediaStream;
    video.play();
  })
  .catch(err => {
    console.error(`oh no!!`, err);
  });
}

🆒 Features

  • Updated as video.src is deprecated in Chrome Browser: video.srcObject is the new version.
  • npm module image-js can manipulate images to change colours etc.

📋 Status & To-Do List

  • Status: Working.
  • To-Do: add more image filtering functions

👏 Inspiration

📁 License

  • N/A

✉️ Contact

About

📋 integrate webcam into javascript app, using a server to host the webcam. Manipulate images using image-js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published