requestFullResolutionOutput(useHighestResolution=True) 请求传感器的最大流。在某些传感器(例如 IMX586)上,查看完整图像可能需要 8K 显示器才能同时看到整个帧。
管道
源代码
Python
PythonGitHub
1#!/usr/bin/env python3
2
3import cv2
4import depthai as dai
5
6# Create pipeline
7with dai.Pipeline() as pipeline:
8 # Define source and output
9 cam = pipeline.create(dai.node.Camera).build()
10 # In some cases (IMX586), this requires an 8k screen to be able to see the full resolution at once
11 videoQueue = cam.requestFullResolutionOutput(useHighestResolution=True).createOutputQueue()
12
13 # Connect to device and start pipeline
14 pipeline.start()
15 while pipeline.isRunning():
16 videoIn = videoQueue.get()
17 assert isinstance(videoIn, dai.ImgFrame)
18 cv2.imshow("video", videoIn.getCvFrame())
19
20 if cv2.waitKey(1) == ord("q"):
21 break需要帮助?
请前往 OAKChina 官网 获取技术支持或解答您的任何疑问。