Reduce webcam resolution to 720p

This commit is contained in:
alejandro-angulo 2025-06-07 16:12:33 -07:00
parent ed240e2f40
commit 668f14e1b6
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6

View file

@ -402,6 +402,9 @@ func Webcam(input json.RawMessage) (string, error) {
}
defer webcam.Close()
webcam.Set(gocv.VideoCaptureFrameWidth, 1280.0)
webcam.Set(gocv.VideoCaptureFrameHeight, 720.0)
if !webcam.IsOpened() {
return "", errors.New("Unable to open video capture device")
}