Software Stack
DepthAI

ON THIS PAGE

  • Camera video max resolution
  • Pipeline
  • Source code

Camera video max resolution

Display the camera stream at the highest available resolution on the host using OpenCV. This example uses the Camera node with requestFullResolutionOutput(useHighestResolution=True) to request the sensor’s maximum stream.This example requires the DepthAI v3 API, see installation instructions.

Pipeline

Source code

Python
C++

Python

Python
GitHub
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.