Giter Club home page Giter Club logo

webcam-app's Introduction

Webcam App

Scripts

Install node modules

yarn or yarn Install

Run

yarn app:dev

Build

  • Installer will be in release folder
yarn app:build

Step 1. I started from looking at this tutorial on youtube

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

Step 2. Then I learned how to save pictures with this discussion form

https://stackoverflow.com/questions/13760805/how-to-take-a-snapshot-of-html5-javascript-based-video-player

Step 3. And the assignment requirements seems to be meet. However, the snapshots are a bit blurry and I don't know how to fix it.


Step 4. Then I started thinking about adding functionality to this program. My first idea was dark mode. So I added it on Wednesday.

Step 5. I then wanted to add a filter for the video feed, so I started search for ideas online. However, I wasn't successful for the first 2 days until I found this video:

How To Build A Photo Editor With React And CSS Filters
https://www.youtube.com/watch?v=J243ncoInNE

And that made me think I should look more into the canvas 2D context, and then I found it also has the simple filters

Then I found this post
https://stackoverflow.com/questions/32104975/html5-mirroring-webcam-canvas
Which includes a way to continuously update the canvas, and also a way to flip the canvas

Step 6. From here, I figured out how to save canvas Image as ImageData, and then show it else where. I was also pleasantly surprised that the image quality is much better.

  • One last problem, the text is also blurred by the filter, and I want to show clear text with blurred image.

Step 7. I solved it by

  1. blurring the image and saving it first.
  2. Remove the filter, then putting the image back.
  3. Then write the text onto the canvas.

webcam-app's People

Contributors

karlwang3420 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.