mozmorris / react-webcam

Webcam component
https://codepen.io/mozmorris/pen/JLZdoP
MIT License
1.65k stars 281 forks source link

How to improve quality of video using front camera #329

Open JeevaS0722 opened 2 years ago

JeevaS0722 commented 2 years ago

Hi, I am trying to capture video (front cam) in 720*1280 resolution but this setting also scales camera. I need camera to still fit the screen height and width but need to increase video quality alone. Document is not very helpful on this. Could you please guide us how to increase video quality?

We are trying to increase dimension to increase quality but if there is setting to increase quality of video, please let us know

Also video captured through this library is not matching with quality of video directly taken in mobile using front camera. Is there any settings to match the quality

umutsesen commented 2 years ago

this is not possible since even if you render camera at max res for example, 2160x4096, you cannot get screenshot at the same resolution. Also, quality will be never be the same as a native camera app since we lose quality when drawing to canvas.