Skip to content

tony-xlh/WebRTC-High-Resolution-Photo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

WebRTC-High-Resolution-Photo

A demo of taking a high resolution photo with WebRTC's getUserMedia.

Online demo

The demo uses several ways to take a photo with the camera.

  1. Use WebRTC's getUserMedia to start camera preview in a video element and then use a 2D canvas context to drawImage from that video. The canvas can return a data URL for an image to use. It can alse use the Image Capture API which can take a high resolution photo which has a higher resolution than the camera preview's. But the API has a limited browser support.
  2. Use the HTML Media Capture API, i.e. <input type="file" name="image" accept="image/*" capture>

Blog

https://www.dynamsoft.com/codepool/take-high-resolution-photo-in-the-browser.html

About

A demo of taking a high resolution photo with WebRTC's getUserMedia.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages