diff --git a/web-ui/js/app/camera.js b/web-ui/js/app/camera.js index 419c9d0..6d0cf9d 100644 --- a/web-ui/js/app/camera.js +++ b/web-ui/js/app/camera.js @@ -36,7 +36,7 @@ var video = $('camera-video'); try { stream = await navigator.mediaDevices.getUserMedia({ - video: { facingMode: { ideal: facing }, width: { ideal: 1280 }, height: { ideal: 720 } }, + video: { facingMode: { ideal: facing }, width: { ideal: 1920 }, height: { ideal: 1080 } }, // 고정초점 웹캠은 멀리 두고 잘라 보므로 화소가 많을수록 유리(미지원이면 브라우저가 낮춰 줌) audio: false }); } catch (e) { @@ -63,6 +63,7 @@ box.id = 'camera-focus'; box.style.cssText = 'display:flex;align-items:center;gap:6px;font-size:12px;flex-wrap:wrap'; var res = (set.width && set.height) ? set.width + '×' + set.height : ''; + if (caps.width && caps.height && caps.width.max > set.width) res += ' (최대 ' + caps.width.max + '×' + caps.height.max + ')'; var fd = caps.focusDistance; if (!fd || !(fd.max > fd.min)) { box.textContent = '초점 조절 미지원' + (res ? ' · ' + res : '');