parameters: (str_img, flag=1)
return_statement: return mx.nd.NDArray(hdl)
docstring: Decode image from str buffer.
      Wrapper for cv2.imdecode that uses mx.nd.NDArray
  
      Parameters
      ----------
      str_img : str
          str buffer read from image file
      flag : int
          same as flag for cv2.imdecode
      Returns
      -------
      img : NDArray
          decoded image in (width, height, channels)
          with BGR color channel order
docstring_summary: Decode image from str buffer.
      Wrapper for cv2.imdecode that uses mx.nd.NDArray
docstring_tokens: Decode image from str buffer . Wrapper for cv2 . imdecode that uses mx . nd . NDArray
function: def imdecode(str_img, flag=1):
      """Decode image from str buffer.
      Wrapper for cv2.imdecode that uses mx.nd.NDArray
  
      Parameters
      ----------
      str_img : str
          str buffer read from image file
      flag : int
          same as flag for cv2.imdecode
      Returns
      -------
      img : NDArray
          decoded image in (width, height, channels)
          with BGR color channel order
      """
      hdl = NDArrayHandle()
      check_call(_LIB.MXCVImdecode(ctypes.c_char_p(str_img),
                                   mx_uint(len(str_img)),
                                   flag, ctypes.byref(hdl)))
      return mx.nd.NDArray(hdl)
function_tokens: def imdecode ( str_img , flag = 1 ) : hdl = NDArrayHandle ( ) check_call ( _LIB . MXCVImdecode ( ctypes . c_char_p ( str_img ) , mx_uint ( len ( str_img ) ) , flag , ctypes . byref ( hdl ) ) ) return mx . nd . NDArray ( hdl )