OpenCV: Converting from NumPy to IplImage in Python
2-way to apply:

img = cv2.imread(img_path)
img_buf = cv2.imencode('.jpg', img)[1].tostring()
just read the image file:
img_buf = open(img_path, 'rb').read()
I have an image that I load using cv2.imread().  This returns an NumPy array.  However, I need to pass this into a 3rd party API that requires the data in IplImage format.
I've scoured everything I could and I've found instances of converting from IplImage to CvMat,and I've found some references to converting in C++, but not from NumPy to IplImage in Python.  Is there a function that is provided that can do this conversion?