Skip to content

A simple server that serves webcam pictures to a website.

License

Notifications You must be signed in to change notification settings

mattfreed/IDD-Fa19-Lab7

 
 

Repository files navigation

Video Doorbell, Lab 7

A lab report by Matt W. Freed

In This Report

  1. Upload a video of your version of the camera lab to your lab Github repository
  2. As usual, update your class Hub repository to add your forked IDD-Fa18-Lab7 repository.
  3. Answer the questions in-line below on your README.md.

Part A. HelloYou from the Raspberry Pi

a. Link to a video of your HelloYou sketch running.

https://www.youtube.com/watch?v=Mi93wV90XF4

Part B. Web Camera

a. Compare helloYou/server.js and IDD-Fa18-Lab7/pictureServer.js. What elements had to be added or changed to enable the web camera? (Hint: It might be good to know that there is a UNIX command called diff that compares files.)

In order to load the webcam module we had to call "var NodeWebcam = require("node-webcam");

Code was also added for webcam setup. These include default options located in the var opts variable and starting up the webcame by calling NodeWebcam.create(opts);.

Along with this, functionality on the webpage had to be added. This functionality can be seen at the line containing socket.on('takePicture', function(){ var imageName = new Date().toString().replace...;

Video Doorbell Video:

https://www.youtube.com/watch?v=AqBkUx28rXM

Part C. Make it your own

a. Find, install, and try out a node-based library and try to incorporate into your lab. Document your successes and failures (totally okay!) for your writeup. This will help others in class figure out cool new tools and capabilities. I tried a multitude of packages but could not get many to work.

Packages tried includes: Colourless, OpenCV, GM, Canva refused to install, and some facial recognition packages.

Either these packages were depreciated or had issues that required other packages to be installed that couldnt be installed through node.

Given these issues, I called it quits and modified the arduino code instead and made a very low framerate video feed:

https://www.youtube.com/watch?v=o5HKzkSNUto

About

A simple server that serves webcam pictures to a website.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 89.4%
  • C++ 6.4%
  • HTML 4.2%