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