2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > python opencv cv2.imdecode()函数(从内存中的缓冲区读取图像)

python opencv cv2.imdecode()函数(从内存中的缓冲区读取图像)

时间:2024-03-21 11:52:19

相关推荐

python opencv cv2.imdecode()函数(从内存中的缓冲区读取图像)

from cv2.__init__.py

def imdecode(buf, flags): # real signature unknown; restored from __doc__"""imdecode(buf, flags) -> retval. @brief Reads an image from a buffer in memory.从内存中的缓冲区读取图像。. . The function imdecode reads an image from the specified buffer in the memory. If the buffer is too short or. contains invalid data, the function returns an empty matrix ( Mat::data==NULL ).函数imdecode从内存中的指定缓冲区读取图像。 如果缓冲区太短或包含无效数据,则该函数返回一个空矩阵(Mat :: data == NULL)。. . See cv::imread for the list of supported formats and flags description.. . @note In the case of color images, the decoded images will have the channels stored in **B G R** order.对于彩色图像,解码后的图像将具有以** B G R **顺序存储的通道。. @param buf Input array or vector of bytes.输入数组或字节向量。. @param flags The same flags as in cv::imread, see cv::ImreadModes."""pass

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。