Python Forum

Full Version: Using openslide
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can anyone help me with the package "openslide". I'm trying to import the package and want to output an image with .svs format. I have installed the package with pip but I'm not able to use it. I'm new to python and is having a real difficult time on using this pacakge.
How exactly you are not able to use it? Please, post your code in code tags and full traceback in error tags.
I was able to import it successfully. Can you help me with the syntax of how to read an image using openslide. I'm trying to read an ".svs" format.
Best would be to start with reading the docs for the package
are there any tutorials for openslide? I'm finding it very difficult to work with this package as I'm fairly new to Python as well.
I was able to output the .svs format with the help of Pillow and openslide but the image was converted to bmp format.
This was my code

from PIL import Image
import openslide

img = Image.open('region.svs')
img.show()


The image was distorted because when the image opened it was changed to a different format that was bmp and the original image that was read was in .svs format.
I want to output the image in .svs format