Image display from database

Thanks Zacht
That works great for images stored on client machine

But, my images are on the gateway, so that’s the reason I stored images in database

I have identified my issue: the format in which the image is stored.

So the solution is to use PIL (Python Imaging Library) to convert the OpenCV array to bytes, using the function ‘fromarray()’ function before storing the result in the database.

Hope this helps anyone else using OpenCV

Thanks