1

I need to open an image for the user to view, wait a second, then close that image and open a new one from an array.

I have tried Image.open() in PIL however, I have read that we cannot close the image afterwards.

I have tried using subprocess, however, I for some reason cannot close the image. I have tried kill() and terminate() here, and have an open question for this here: Close Image with subprocess If you know what is wrong with my code using subprocess, I'd be happy to hear!

What is another way I can open and close an image without using PIL or subprocess?

Community
  • 1
  • 1
Drake491
  • 67
  • 1
  • 12
  • Try it using OpenCV 3. Display the image using `cv2.imshow()`, wait for some time using `cv2.waitKey()` and then use `cv2.destroyWindow()` to close it. Use them sequentially within a `for loop`. – Jeru Luke Jan 02 '17 at 15:01
  • Check [THIS PAGE](http://docs.opencv.org/3.0-beta/doc/py_tutorials/py_gui/py_image_display/py_image_display.html) for more details. – Jeru Luke Jan 02 '17 at 15:05
  • You can also use PILasOPENCV found at https://github.com/bunkahle/PILasOPENCV . Images can be shown easily using internally opencv for it. More info on mentioned the webpage. – bunkus Apr 10 '19 at 23:57

0 Answers0