ImageManip
放置方法
Python
Python
1pipeline = dai.Pipeline()
2manip = pipeline.create(dai.node.ImageManip)输入与输出
使用方法
Python
Python
1pipeline = dai.Pipeline()
2manip = pipeline.create(dai.node.ImageManip)
3
4manip.initialConfig.setResize(300, 300)
5manip.initialConfig.setFrameType(dai.ImgFrame.Type.BGR888p)支持的图像格式
- 支持的输入格式:RGB/BGR、平面/交错、YUV/NV12、RAW8 和 GRAY8
- 可将格式转换为上述任意其他格式
- 支持 RAW16(uint16,
depth输出),但无颜色转换 能力
限制
- 由于硬件 warp 限制,只能对宽度为 16 倍数的帧进行旋转/warp 操作
- 帧的最大输出宽度为 4056 像素
功能示例
- 单目 & MobilenetSSD
- RGB 编码 & 单目 & MobilenetSSD
- RGB 摄像头控制
- ImageManip 平铺 - 使用 ImageManip 进行帧平铺
- ImageManip 旋转 - 使用 ImageManip 旋转彩色/单色帧
参考
class
depthai.node.ImageManip(depthai.Node)
method
getWaitForConfigInput(self) -> bool: boolSee also: setWaitForConfigInput Returns: True if wait for inputConfig message, false otherwise
method
method
method
method
method
method
setMaxOutputFrameSize(self, arg0: typing.SupportsInt)Specify maximum size of output image. Parameter ``maxFrameSize``: Maximum frame size in bytes
method
setNumFramesPool(self, arg0: typing.SupportsInt)Specify number of frames in pool. Parameter ``numFramesPool``: How many frames should the pool have
method
method
method
setWaitForConfigInput(self, wait: bool)Specify whether or not wait until configuration message arrives to inputConfig Input. Parameter ``wait``: True to wait for configuration message, false otherwise.
method
property
initialConfig
Initial config to use when manipulating frames
property
inputConfig
Input ImageManipConfig message with ability to modify parameters in runtime Default queue is blocking with size 8
property
inputImage
Input image to be modified Default queue is blocking with size 8
property
out
Outputs ImgFrame message that carries modified image.
需要帮助?
请前往 OAKChina 官网 获取技术支持或解答您的任何疑问。