Questions tagged [image-preprocessing]

Image preprocessing are the steps taken to format images before they are used by model training and inference. This includes, resizing, orienting, and color corrections.

Preprocessing is required to clean image data for model input. For example, fully connected layers in convolutional neural networks required that all images are the same sized arrays. Image preprocessing may also decrease model training time and increase model inference speed.

161 questions
13
votes
2 answers

Finding outliers in Image dataset

I have been working on an image classification tasks for which I am extracting the image frames from the video stream collected for different classes. I have already trained an image classification model (using transfer learning) however due to the…
deepguy
  • 1,471
  • 8
  • 21
  • 39
11
votes
2 answers

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

Problem Statement: I am working on developing a method, or borrow/modify/combine existing ones, where given an golden image (reference or base with all expected objects to be present), it is able to identify the missing objects and draw a bounding…
TwinPenguins
  • 4,429
  • 3
  • 22
  • 54
11
votes
4 answers

How to replace NaN values for image data?

My data set has a total of 200 columns, where each column corresponds to the same pixel in all of my images. In total, I have 48,500 rows. The labels for the data range from 0-9. The data looks something like this: raw_0 raw_1 raw_2 raw_3 …
11
votes
2 answers

How can I detect blocks of text from scanned document images

ORIGINAL IMAGE: GOAL: I want to separate texts into individual paragraphs by placing bounding boxes over them (as shown above). I tried it do this via traditional computer vision approach using opencv. I plotted character level bounding…
7
votes
2 answers

Comparison between addition and multiplication function in deep neural network?

I designed a specific Convolution Neural Network to study in the area of image processing. The network has a part that there are two tensors that have to be transformed into a tensor in order to be fed to the next layer. This situation happens at…
6
votes
2 answers

Why image is more blurred through PIL?

I was using PIL library to open an image and then convert it into array later on for DL operations. However I found out that image opened was blurry as opposed to the original image. Why is the image coming out the way it is? and what can be done to…
anon012358
  • 61
  • 1
  • 3
6
votes
2 answers

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

In the picture below there are some regions which are very bright (i.e. more white). Some bright regions are wide and some are narrow or thin. The red box covers one such wide bright spot, and blue box covers one thin bright spot. Thin bright spots…
5
votes
1 answer

Image Matching for similar products

Is it technically possible to find out similar products online based on an given image? Say the first link is a hoodie for women selling on Amazon. I want to do two things. Based on the image, I want to generate features of the hoodie in addition…
4
votes
1 answer

Digitize graphs. Pull out data from points in a scatter plot

I have a project where I would like to extract data from a series of scatter plots that are image files (Jpeg or png). The plots are similar but the axes scales are not always exactly the same. I have looked online and there are some web app…
ThomasG
  • 81
  • 4
4
votes
1 answer

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

I am trying to implement model described in Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network in which author says in section 3.2 that We scaled the range of the LR input images to [0, 1] and for the HR images…
4
votes
1 answer

Difference between normalization and zero centering

I am working on some pre-processing for lung CT images. I see a nice tutorial in here. Two of them are normalization and zero centering. I wonder what is the difference between these two steps? If one normalizes the image pixel values to range [0,…
Hunar
  • 1,197
  • 2
  • 11
  • 33
4
votes
1 answer

How to make a Python code execute on GPU and not CPU

I am doing some image pre-processing using Python 3. As I know the code is executed on CPU for which the process is a little bit slow, its a good idea to make it run on GPU for the faster process because GPU can do graph operation much faster than…
Hunar
  • 1,197
  • 2
  • 11
  • 33
4
votes
1 answer

How to Select Effective Features from Color-Based Image Statistics for Glucose Prediction?

I am working on a regression task to estimate glucose concentration from image data. The images are of reagent test strips, where a chemical reagent reacts with a blood sample and changes colour (ideally brown, but contaminated by red due to blood…
4
votes
2 answers

Combining image and tabular data for a binary classification task

I'm working on a binary classification task where the goal is to determine whether a tissue contains malignant cells Each instance in my dataset consists of a microscope image of the cell a small set of tabular metadata including an identifier of…
4
votes
2 answers

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

I have an image I loaded with the image.load_img() function but when I try to reshape it I get this error: ValueError: cannot reshape array of size 12288 into shape (64,64) Here is my code: test_image =…
Houmes
  • 41
  • 1
  • 1
  • 2
1
2 3
10 11