yarn or yarn Install
yarn app:dev
- Installer will be in release folder
yarn app:build
https://www.youtube.com/watch?v=nhX9EUGIZ6o
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.
- blurring the image and saving it first.
- Remove the filter, then putting the image back.
- Then write the text onto the canvas.