I would like to do something like the following in order to display two images on the screen:
imshow("1", img1); imshow(\'2\', \'img2\');
If your images are in numpy arrays, you could use numpy.hstack function which merges two arrays into a single and use the cv2.imshow() to display the array.
https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.hstack.html