Questions tagged [image-preprocessing]
285 questions
0
votes
0 answers
IndexError: list index out of range during image preprocessing practicing
i'm junho who is student at unis.
i tried to study this code for image preprocessing.
and i tried to change face recognization to label recongization to crop properly.
but Error occure like below code.
it seems like list problem. but i couldn't…

원준호
- 33
- 6
0
votes
3 answers
how to load a very large mat file in chunks?
okay so the code is like this
X1 is the loaded hyperspectral image with dimensions (512x512x91)
what i am trying to do is basically crop 64x64x91 sized matrices with a changing stride of 2. this gives me a total of 49952 images each of 64x64x91 size…

Newbie_101
- 11
- 4
0
votes
4 answers
crop images with different black margins
I have an image dataset and before feeds it to deep learning algorithm I need to crop it to the same size. All images have different size of black margins as the below image demonstrates.
Any suggestions for a way to crop images with different…

Sarah K
- 63
- 10
0
votes
1 answer
How to use classification Learner in my environment?
I am working on facial expression recognition. i made a dataset
contain features & classes of 213 images.
Step1: Each row of my dataset represents the features of 1 image. so
for 213 images 213 rows
Step2: the last column represents classes…

Muhammad Kashif
- 13
- 6
0
votes
0 answers
Image processing using C# for currency detection
Is there any reference for the currency detection using image processing in c# ?
For example I will feed the picture of the currency note to the code and it detects the currency ?

Vikas Kottari
- 495
- 2
- 10
- 24
0
votes
0 answers
Convolution preprocess consuming more RAM Python
I am trying to implement this CNN model for stock prize prediction: https://github.com/ZezhouLi/Convolutional-Networks-for-Stock-Predicting
But I am facing the issue while preprocessing the data for the implementation. The preprocess step is…

Jaffer Wilson
- 7,029
- 10
- 62
- 139
0
votes
1 answer
Understanding parameters in ImageDataGenerator and flow in Keras
Question 1
Does the rotation_range: Int. Degree range for random rotations refer to the range [0, rotation_range] or [-rotation_range, rotation_range]. If I set rotation_range=40, will my images be randomly rotated between [-40, 40] or [0,…

aad
- 98
- 7
0
votes
1 answer
Image preprocessing in convolutional neural network yields lower accuracy in Keras vs Tflearn
I'm trying to convert this tflearn DCNN sample (using image preprocessing and augmemtation) to keras:
Tflearn sample:
import tflearn
from tflearn.data_utils import shuffle, to_categorical
from tflearn.layers.core import input_data, dropout,…

tokyotribe
- 33
- 3
0
votes
3 answers
preprocess_input in keras increase the size of train drastically
Before training with a resnet50 model, I preprocessed my input using:
img = image.load_img(os.path.join(TRAIN, img), target_size=[224, 224])
img = image.img_to_array(img)
img = np.expand_dims(img, axis=0)
img = preprocess_input(img)
and save a…

ajp55
- 81
- 1
- 11
0
votes
2 answers
ImageDataGenerator how to change the range of the rotation?
It is possible to do a roation between $theta_{min}$ and $theta_{max}$?
ImageDataGenerator(rotation_range=90) rotate the images with a random angle between 0 and 90 degrees it is possible for example to rotate between 50 and 60 degrees?

Didier
- 11
- 1
- 3
0
votes
1 answer
How to handle ImportError: cannot import name '_ellipsoid' Keras
I am getting an error which says
ImportError: cannot import name '_ellipsoid'
while importing
"from keras.preprocessing.image import ImageDataGenerator ".
Please help me to rectify this issue.
I am using
keras version: 2.1.5
python version: 3…

dharani priya
- 1
- 1
0
votes
1 answer
Fill empty space with PCL
I'm trying to create bounding box around “non ground” objects with PCL and measure its dimensions.
My pipeline looks like this:
Getting XYZ cloud points → Pass Through → Voxel Grid → Statistical
outline removal → Euclidean clusterization →…
user4636876
0
votes
0 answers
Keras image preprocessing error at return
I am using the Keras ImageDataGenerator to process the inputs to my CNN. I want to basic preprocessing that scales the image pixels to values from -1 to 1 as it was done in the paper of the Mobilenet architecture.
My datagenerator only defines the…

Gegenwind
- 1,388
- 1
- 17
- 27
0
votes
1 answer
What is the normalization method so that there is no negative value?
I am trying to normalize MR image.
There is a negative value in the MR image.
So the MR image was normalized using the Gaussian method, resulting in a negative area.
But i don't want to get negative area.
My question:
What is the normalization…

lv9999
- 5
- 2
0
votes
1 answer
Convert RGB image to YUV and YCbCr color space image in Opencv Python
Can anyone help me to convert an RGB colour space image to YUV colour space image and to YCbCr colour space image using opencv Python?

Tharani Gnanasegaram
- 287
- 2
- 5
- 17