webcamjs icon indicating copy to clipboard operation
webcamjs copied to clipboard

Capture in high resolution

Open mzohaibniaz opened this issue 8 years ago • 2 comments

How to capture image in high resolution(using full power of camera) from android browser?

Currently, image captured from phone is a very low resolution.

I am using "width" and "height" equal to view port width and height.

@luopio @jhuckaby @twentyrogersc @CezaryDanielNowak @linagee

mzohaibniaz avatar Feb 22 '18 03:02 mzohaibniaz

Taking best possible image resolution is kind of tricky. Following solution was working for a long time http://stackoverflow.com/a/27444179/2590921 From my experience - currently It does not work well on new Samsung or Google Pixel devices (NotReadableError randomly happens).

You can try to implement quick scan like it's done here: https://webrtchacks.github.io/WebRTC-Camera-Resolution/

PR with that would be appreciated :-)

CezaryDanielNowak avatar Feb 22 '18 10:02 CezaryDanielNowak

One more note: This affects webrtc only. Afaik flash is limited to 640x480

CezaryDanielNowak avatar Feb 22 '18 10:02 CezaryDanielNowak