iOS - getUserMedia resolution

Hi Everyone


We're trying to build a website, which accesses the iPhone camera in order to scan documents and do some OCR. As of iOS 11 we're able to get the camera track and display it inside a video element. Since MediaStream Image Capture is not supported on iOS, the only way to retrieve a still image is to use canvas.getContext("2d").drawImage(). We've tried various high values for ideal constraints (width&height), however safari will only offer a track of 720p. For our use case the resulting image quality is way too bad.

It seems kind of strange apple would restrict the camera resolution in such a way.

Does anyone have any experience in getting higher quality pictures from an iPhone's camera in safari (no native apps, just secure webpage)?

The video resolution within the webpage is fine at 720p but the picture to be uploaded to our webserver should be 1080p or even 2k.


Thanks in advance!

Cheers

Lukas