Camera video max resolution
Display the camera stream at the highest available resolution on the host using OpenCV. This example uses the Camera node withrequestFullResolutionOutput(useHighestResolution=True)
to request the sensor’s maximum stream.On some sensors (e.g., IMX586), viewing the full image may require an 8K display to see the entire frame at once.
Pipeline
Source code
Python
C++
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
Need assistance?
Head over to Discussion Forum for technical support or any other questions you might have.