PyQt5 QImage from Numpy Array
Check if the module qimage2ndarray suits your needs, with just one line of code https://pypi.org/project/qimage2ndarray/
yourQImage=qimage2ndarray.array2qimage(yournumpyarray)
I added a copy after the transpose like this:
im_np = np.transpose(im_np,(1,0,2)).copy()
and that worked for me.