release: bump version to 0.71.0
Some checks failed
ci / backend (push) Has been cancelled
ci / frontend (push) Has been cancelled
release / images (push) Has been cancelled
ci / delivery (push) Has been cancelled

This commit is contained in:
linkong
2026-06-11 16:47:24 +08:00
parent 8c204717cd
commit 899e3bce43
56 changed files with 4618 additions and 260 deletions

View File

@@ -70,13 +70,14 @@ class UsbCameraInput:
"or start the agent with --dry-run for protocol testing."
) from exc
capture = cv2.VideoCapture(self.spec.index)
capture = cv2.VideoCapture(self.spec.index, cv2.CAP_V4L2)
if not capture or not capture.isOpened():
raise MotionAgentCameraError(f"Unable to open USB camera index {self.spec.index}.")
capture.set(cv2.CAP_PROP_FRAME_WIDTH, self.spec.width)
capture.set(cv2.CAP_PROP_FRAME_HEIGHT, self.spec.height)
capture.set(cv2.CAP_PROP_FPS, self.spec.fps)
capture.set(cv2.CAP_PROP_BUFFERSIZE, 1)
self._capture = capture
def read(self) -> Any:
@@ -116,6 +117,7 @@ class UrlCameraInput:
f"Unable to open camera URL {self.spec.url}. Check the stream URL, "
"firewall, and LAN reachability."
)
capture.set(cv2.CAP_PROP_BUFFERSIZE, 1)
self._capture = capture
def read(self) -> Any: