Drop support for cv2, rename tag

This commit is contained in:
Milan Nikolic
2025-06-12 21:19:52 +02:00
parent b302c77f20
commit 074d14ad01
8 changed files with 62 additions and 179 deletions

View File

@@ -1,5 +1,4 @@
//go:build !cv2 && !cv4 && !android
// +build !cv2,!cv4,!android
//go:build !opencv && !android
// Package camera.
package camera
@@ -19,6 +18,20 @@ import (
im "github.com/gen2brain/cam2ip/image"
)
// Property identifiers.
const (
PropBrightness = v4l.CtrlBrightness
PropContrast = v4l.CtrlContrast
PropSaturation = v4l.CtrlSaturation
PropHue = v4l.CtrlHue
PropGain = v4l.CtrlGain
PropExposure = v4l.CtrlExposure
PropWhiteBalanceU = v4l.CtrlWhiteBalance
PropSharpness = v4l.CtrlSharpness
PropWhiteBalanceV = v4l.CtrlDoWhiteBalance
PropBacklight = v4l.CtrlBacklightCompensation
)
// Camera represents camera.
type Camera struct {
opts Options