Questions tagged [scikit-image]

scikit-image is a Python image processing toolbox for SciPy.

scikit-image is a collection of algorithms for image processing with SciPy. The scikit-image SciKit extends scipy.ndimage to provide a versatile set of image processing routines.

1871 questions
3
votes
5 answers

ImportError: DLL load failed while importing _rolling_ball_cy:

I am a newbie to Python and working on a small opencv application. I need local_threshold from scikit-image but getting below error : Traceback (most recent call last): File "D:/Projects/Python/Document_Scanner/main.py", line 6, in from…
Avinash
  • 313
  • 1
  • 5
  • 14
3
votes
1 answer

Reduce an image to paths defined by a collection of points

I'm currently trying to represent an image like the one below as a point defined path. Every "trace" should be a separate path. See picture below The thing I'm trying to do right now is using scikit-image and scipy in python to fill up and…
3
votes
1 answer

Converting PIL.Image to skimage

I have 2 modules in my project: first works with image in bytes format, second requires skimage object. I need to combine them. I have this code: import io from PIL import Image import skimage.io area = (...) image =…
3
votes
3 answers

installing skimage with pip3 fails

I am trying to pip install the package "skimage" on my Ubuntu VM to analyze structural similarity of images with scikit-image. But I always get a strange error. I already tried to install it with conda but it didn't succeeded either. Conda seems to…
DaHst
  • 49
  • 1
  • 1
  • 4
3
votes
1 answer

how to order the regions in regionprops by area?

i am doing some OCR whit python, in order to get the coordinates of the letters in an image, i take the centroid of a region(returned by the regionprops from skimage.measure) and if a distance between one centroid vs the others centroids is less…
mimus
  • 367
  • 4
  • 21
3
votes
3 answers

Add extra properties to regionprops in skimage

I'm using the regionprops function from the scikit-image (or skimage) package to compute region features of a segmented image using the SLIC superpixel algorithm from the same package. I need additional features than those computed in the fucntion,…
3
votes
0 answers

why skimage.io.imread warns “corrupt exif data” but cv2.imread doesn't?

I am using pytorch to build a neural network classifier. I read somewhere that many python packages use the same c++ api when reading a picture, so I thought skimage.io.imread and cv2.imread would be the same except channel order. However I got…
3
votes
1 answer

How do I fit rectangles to an image in python and obtain their coordinates

I'm looking for a way to split a number of images into proper rectangles. These rectangles are ideally shaped such that each of them take on the largest possible size without containing a lot of white. So let's say that we have the following…
Thijser
  • 2,625
  • 1
  • 36
  • 71
3
votes
1 answer

Block reduce (downsample) 3D array with mode function

I would like to downsample a 3d array by taking the most frequent value (mode) of the original values. After some research, I found the block_reduce function in skimage library. For example, if I wanted like to take the average of the block, I can…
user2847666
  • 119
  • 10
3
votes
1 answer

Image alignment with ORB and RANSAC in scikit-image

I am attempting to align timelapse images using skimage.feature.orb to extract keypoints and then filtering them using skimage.measure.ransac. The transform modelled by RANSAC should then be able to align my images. The process appears to work well,…
3
votes
2 answers

Remove background

I am doing OCR to extract information from the ID card. However, accuracy is quite low. My assumption is that removing the background will make OCR more accurate. I use the ID scanner machine (link) to obtain the grey image below. It seems that the…
Sơn Ninh
  • 331
  • 1
  • 10
3
votes
1 answer

Blob detection in Python?

I'm trying to detect a blob from the following image. I used the skimage and used the 3 different methods explained in the manual, but it's not able to detect the grey blob. Here is the original image: So I tried the following code: from math…
Mohammad
  • 1,078
  • 2
  • 18
  • 39
3
votes
4 answers

convert IR image to RGB with python

The code below is intended to take an infrared image (B&W) and convert it to RGB. It does so successfully, but with significant noise. I have included a few lines for noise reduction but they don't seem to help. I've included the starting/resulting…
pbthehuman
  • 123
  • 3
  • 12
3
votes
4 answers

Identifying positive pixels after color deconvolution ignoring boundaries

I am analyzing histology tissue images stained with a specific protein marker which I would like to identify the positive pixels for that marker. My problem is that thresholding on the image gives too much false positives which I'd like to…
AMM
  • 2,195
  • 2
  • 20
  • 28
3
votes
1 answer

scikit-image can not import an image

Environment: Python 3.7.0 After creating a virtualenv, scikit-image is via pip installed. scikit-image==0.16.2, Pillow==7.1.1 Anaconda on Linux Source Code: from skimage.io import imread file_path = "image_you_like.png" img = imread(file_path,…
H. Shindoh
  • 906
  • 9
  • 23