Skip to main content
11 votes
Accepted

How to replace NaN values for image data?

Given you have images stretched out as columns in a table with ~48,500 rows, I am assuming you have the raw images that are 220x220 in dimension. You can use a function available via OpenCV called <...
n1k31t4's user avatar
  • 14.9k
4 votes
Accepted

How to remove the hotspots from given image by using Python and opencv?

Based on this answer's algorithm I have written my code which is working as intended. Here's a breakdown of the coding steps: Otsu's thresholding is applied to the grayscale ...
S. M.'s user avatar
  • 161
3 votes

Difference between normalization and zero centering

what is the difference between these two steps? In that specific Notebook that you linked, normalization means: shrink a numerical distribution in the [0,1] interval. It is commonly referred to as ...
Leevo's user avatar
  • 6,265
3 votes
Accepted

Medical Image Analysis

Check out this blog post. There you find a summary of two fairly new papers from the field, which might start you off. One about semantic segmentation, the other about a classification problem.
matthiaw91's user avatar
  • 1,545
3 votes
Accepted

Finding outliers in Image dataset

Detecting outliers is actually not an easy task. You can detect outliers by looking at uncertainty measurements. Nevertheless there are different kind of outliers. For example an outlier can be an out ...
Andreas Look's user avatar
3 votes

How can I detect blocks of text from scanned document images

There are two options : Scan the images with a higher DPI. This should accentuate vertical separation between paragraphs. Train a Deep learning model for Text Detection in scene. Examples : https://...
Shamit Verma's user avatar
  • 2,259
3 votes

How to Extract Information from the Image(PNG)

If all of your images are similar to this one(or have a small set of possible designs), you can simply reference the location (pixel-wise) on the image where this fields are and slice it. After ...
Pedro Henrique Monforte's user avatar
3 votes

Data Quality Assessment in Image Data

I am building on the first part of @Dylan's answer: For general items like "dogs" pre-trained models are easily available. A good starting point is ImageNet. There are plenty of pre-trained models ...
Jonathan's user avatar
  • 5,430
3 votes

Cannot reshape array of size 12288 into shape (64,64)

$64\times 64 = 4096$. You're short about $8000$ pixels.
Dave's user avatar
  • 3,960
2 votes

Comparison between addition and multiplication function in deep neural network?

The observation is very interesting you report, since concatenation and addition are practically the same. A nice explanation can be found in https://distill.pub/2018/feature-wise-transformations/ .
Andreas Look's user avatar
2 votes
Accepted

Image Matching for similar products

Yes, it is technically possibly. The easiest algorithm you can try out is siamese networks. Basically siamese networks try to learn a similarity measurement of two inputs (images, sounds, whatever) ...
Andreas Look's user avatar
2 votes

Why image is more blurred through PIL?

Some parts of the code are missing that might contain clues (e.g. you plot method would only plot random noise, as it stands). What might be happening is that you are showing the image in matplotlib ...
n1k31t4's user avatar
  • 14.9k
2 votes

How to replace NaN values for image data?

There are multiple ways to go after this. You can do mean imputation, median imputation, mode imputation or most common value imputation. Calculate one of the above value for either rows or columns ...
karthikeyan mg's user avatar
2 votes

How to replace NaN values for image data?

for any (x,y) if NAN you can impute to average of surrounding pixels as: ...
Ansh's user avatar
  • 179
2 votes

Finding outliers in Image dataset

BiGAN, Bi-directional GAN(variation of GAN(Generative Adversarial Network)) can be explored for anomaly detection. I have used for my use case. Since I dont have large image dataset, my results are ...
vipin bansal's user avatar
  • 1,272
2 votes

How can I detect blocks of text from scanned document images

Have you looked into Tesseract (and its Python wrapper/interface: pytesseract)? I don't guarantee that it will solve your problems entirely, but it offers bounding box and OCR features. On this ...
AlexK's user avatar
  • 350
2 votes

How and Why to rescale image range between [0,1] and [-1,1]

You can use the following scalings $$x’=\dfrac{x}{255} \qquad (1)$$ $$x’=\dfrac{x-127.5}{127.5} = \dfrac{x}{127.5}-1 \qquad (2)$$ for rescaling to $[0,1]$ or $[-1,1]$. The rescaling of inputs tries ...
MachineLearner's user avatar
2 votes

A Question: is it possible for me to create an AI that learns to play games which I did not create?

As far as I know you might archieve this with Reinforcement Learning. But there are some limitations in this approach: You have to train your algorithm a long time for even learning to press a button. ...
Jan's user avatar
  • 139
2 votes

Tread wear detection

I understand the data you have is just a bunch of unlabeled images of tires and you need to predict the tread depth. Your solution 1 requires a different dataset of labeled images. But if you had ...
Paul's user avatar
  • 913
2 votes

Does white balance correction improve the performance of visual object detection?

I don't know about any papers, though making your objects more distinct should definitely help your model to learn proper filters. One thing to keep in mind though is your production data. Will you be ...
Piotr Rarus's user avatar
2 votes

Why do we use different image processing at train and test time for an image classification tasl

The key difference is that for training the preprocessing serves the purpose of data augmentation: it increases variance in the training data and thereby helps to better generalize. That is why you ...
Jonathan's user avatar
  • 5,430
2 votes
Accepted

How to add jpg images information as a column in a data frame

I assume you a list of the filenames called movie_images ...
n1k31t4's user avatar
  • 14.9k
2 votes
Accepted

ValueError: Shapes are incompatible when fitting using ImageDataGenerator

Have you tried setting class_mode='categorical' in your generators? I believe class_mode='sparse' works when your loss function ...
Vincent Yong's user avatar
2 votes

Canny edge detection not working on Gaussian blurred images

You don't have to blur your image before passing it to Canny. OpenCv's implementation already includes a blurring step. So by passing a blurred image, you're ...
bogovicj's user avatar
  • 734
2 votes
Accepted

Find missing object(s) in image with a priori knowledge about the missing object(s) (w.r.t base image)

This is a typical scenario in multi-object tracking problem The general idea behind a multi-object tracking algorithm is the following: Find all objects from both images and crop them into patches(...
ComeOnGetMe's user avatar
2 votes

Does resizing the image size, reduce the quality of the images in CNN?

Of course, making them smaller will cause loss of information. Since before you had N x M data points for each image to describe the content of the image, but after resizing you will have n x m (Where ...
Shahriyar Mammadli's user avatar
2 votes

How many images are generated when ImageDataGenerator is used, and when data augmentation is included as a part of the model?

In one epoch - It's the number of images in your Directory or the DataFrame In case of a custom Generator. It will be batch_size * steps_per_epoch You may check ...
10xAI's user avatar
  • 5,634
2 votes

Is it possible to apply pooling across the channel dimension of the input tensor?

Check this..! ...
Naveen's user avatar
  • 21
2 votes
Accepted

Keras ImageDataGenerator unable to find images

The path you are providing to the flow_from_directory method is one level to deep. The data generator expects a path to a directory which contains one subdirectory ...
Oxbowerce's user avatar
  • 7,602
2 votes
Accepted

Clustering on Raw Image Pixel Array

You are right, a clustering algorithm such as Gaussian Mixture Model would require cartesian coordinates. This can be done as follows to get the coordinates of the dark pixels: ...
Broele's user avatar
  • 1,535

Only top scored, non community-wiki answers of a minimum length are eligible