WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Displaying Images (https://forum.worldviz.com/showthread.php?t=5090)

agrima 07-02-2014 06:27 AM

Displaying Images
 
Hi,

I am trying to create a 3d image from a depth map. But when i try to display the .jpg file the windows photo viewer gives an error saying:

"WINDOWS PHOTO VIEWER CAN'T OPEN THIS PICTURE BECAUSE EITHER THE PHOTO IS DELETED OR IS IN A LOCATION WHICH ISN'T AVAILABLE".

but neither have i deleted my photo and it is in t same location where my vizard file is stored.

here is the code:

from PIL import Image
im=Image.open("IMG_1930.jpg")
im.show()

Jeff 07-02-2014 05:28 PM

You can try changing the default image viewer for .bmp files on your machine. It seems the PIL show() function saves the image to bitmap format before displaying it with the viewer. Other than that, you might search online for more information since this is not a Vizard error.


All times are GMT -7. The time now is 02:21 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC