Questions tagged [image-preprocessing]
285 questions
0
votes
1 answer
ImageDataGenerator in Keras
I am using Keras functionality ImageDataGenerator() to generate training and validation dataset. I an trying to understand what this function does internally. What are the preprocessing steps does this function perform?
Where can I find the source…

AKSHAYAA VAIDYANATHAN
- 2,715
- 7
- 30
- 51
0
votes
1 answer
how to get the correspond image_id and label when using predict_generator and flow_from_directory
I am using keras.preprocess.image.ImageDataGenerator.flow_from_directory to generate image batches. However, when I try to use model.predict_generator to predict the labels, I do not know the label and the correspond image_id. Anyone help me? My…

Abraham Ben
- 147
- 1
- 2
- 12
0
votes
1 answer
PIL preprocessing for tesseract ocr
How do I increase the accuracy of OCR?
I am using pyocr to use call the tesseract binary, wand to convert pdf to Image, and then Pillow to process the Image for OCR.
Have attached all the images
I feel this is the best preprocessing that can be…

Darshan Jadav
- 374
- 1
- 3
- 15
0
votes
1 answer
Converts my own image data to TFRecords
now I am practicing to convert my own image data to TFRrcords for tensorflow.I am really new with tensorflow so I just modified the build_image_data.py which I got from Github.
This is some parts of the original…

Vosco
- 51
- 2
- 7
-1
votes
1 answer
How can i use Viola Jones Algorithm to detect the Face as a region of interest and crop it till the rectangle box?
I want to detect the face in the video frame and remove the other elements such as background etc. and just want to focus on the facial region, for this i need to use viola jones algorithm, czn anyone give me a hint or suitable answer for…

Yoga Srinivas Reddy
- 19
- 2
-1
votes
1 answer
I got this shape (1,254,254,1) while expected shape is (1,254,254,3)
Image comes from the front end in PIL I preprocess it but it giving me a different shape than expected.
my code is
def preprocess(img):
img = np.array(img)
resized = cv2.resize(img, (254, 254))
img =…

Hamza.S
- 1,319
- 9
- 18
-1
votes
1 answer
How to handle negative values before CNN
I am going to generate my train and test datasets from an image representing volume values. This image contains a range of -25 to 75. I want to ignore the negative values in preprocessing step. Could anyone tell me how I should treat negative…

Sam
- 59
- 11
-1
votes
1 answer
Azure Formrecognizer - how to improve input image quality by performing preprocessing?
Does the Azure FormRecognizer by default does any preprocessing to the file to improve the accuracy of recognition by the OCR Engine. Just out of curiosity I performed preprocessing(like- binarisation cv2.adaptiveThreshold, Denoised the image using…
-1
votes
1 answer
how to counting white pixels in every rectangle in over image?
I have thousands of images 1000X2000 px and I want count only white pixels in each small windows of image 100X200 and write count number in vector array
please how can I do that by python openCV?
Sample Image:

Salem Attia
- 13
- 2
-1
votes
1 answer
Change a cell in array into the mean of it's surroundings, for an entire array
I want to go through an array and find anomalies (specifically, values higher than 100).
I then want the anomalous cell to be replaced by the mean value of the surrounding cells.
Let's say the input is:
[6, 28, 33]
[20, 100, 41]
[87, 3, 39]
I want…

anakar
- 316
- 2
- 13
-1
votes
1 answer
How the Input Image Pixel Values Scaled in YOLO-V4?
I have an issue with something vague for me regarding the input data preprocessing in YOLO-V4,
If the input image is a grayscale image of 16-bits per pixel, i.e. range of pixel values [0,2^16) instead of [0,2^8), it is mentioned that they are scaled…

Ghada
- 1
-1
votes
1 answer
Machine Learning - training data vs 'has to be classified' data
i have a general question about data pre-processing for machine learning.
I know that it is almost a must do to center the data around 0 (mean subtraction), normalize the data (remove the variance). There are other possible techniques. This hast to…

Apolonius
- 107
- 7
-2
votes
1 answer
Differentiate between feature detectors and descriptors
I was solving my Image Processing - Features descriptors when I came across this problem. I could not understand the difference between image detectors and descriotors
I tried googling but could not get any clear differences.

Arkodeep Koley
- 1
- 2
-2
votes
1 answer
How to choose some specific images from a large dataset of images?
My dataset has 366 folders means folder for each day covering a duration of 1 year nd each folder containing 51-55 images, out of which I need only 36 images for building neural network. so can I assign some index to those images and select some…

Shivam Yadav
- 3
- 4
-2
votes
1 answer
Special CDN to function as Image Server
I would like to host my images in a special CDN server which could server images with preprocessing. For example images loaded by clients may be in jpeg, png or gif format, they may present the images at a different resolution in the final document,…

iSrini
- 905
- 2
- 9
- 18