Questions tagged [image-preprocessing]
285 questions
0
votes
1 answer
TypeError: float() argument must be a string or a number, not 'module'
Any help will be appreciated. I am trying to "define the expected input shape" as a part of a tutorial model which you can find on this website: (https://machinelearningmastery.com/how-to-perform-object-detection-with-yolov3-in-keras/). The code I…

Max
- 509
- 1
- 7
- 21
0
votes
1 answer
adding noise to an area in the image
As part of image preprocessing I want to corrupt an image by adding random pixel values to a part of the image, specified with a mask. I'm working with python. Are there any common ways to do this, or maybe is there a paper published with this…

Majmun
- 19
- 5
0
votes
2 answers
Asp.net MVC Image Upload and Preview
I have a project. There is a Portfolio page, which contains project information, project-related categories, project-related technologies and project-related images. I want the pictures of the project to be added one by one and deleted if desired.…

mert
- 1
- 2
- 4
0
votes
0 answers
OpenCV - Using a open (not closed) Canny contour line as boundary for mask
I apologize if I am posting in the wrong location. Please let me know if that is the case. Otherwise, I appreciate any help or direction given.
I have an image of an object against a backdrop that I would like to pre-process to only have the…

Nikita Albert
- 31
- 4
0
votes
1 answer
How to determine the optimal number of "Steps" and "Batch Size" for test dataset in Keras ImageDataGenerator?
I have trained an image similarity network. The network is designed to distinguish between similar/dissimilar pairs of images.
Whare a pair contains a camera image and its corresponding sketch image.
The test dataset contains 4 image directories…

Ali R. Memon
- 121
- 1
- 1
- 12
0
votes
2 answers
Filter for noisy image with low contrast
I try to implement OCR in a really noisy image. There is also a low contrast between the number and background. I have tried to use some median filter to smooth background noise and edge enhancement method but without sensible effect. Does anyone…

Bartek
- 9
- 2
0
votes
1 answer
Do you think that a decoder encoder FCN can substitute a kernels convolution algorithm?
I would like to try to implement a autoencoder fully-connected convolutional neural network as Unet to transform an image into another with an unknown non-linear relation between them.
I've got Gaussian kernel convolution algorithm which works well…

lucasdbo
- 1
- 1
0
votes
0 answers
Conversion of pickle files to images slows down progressively in loop
I'm trying to convert a preprocessed dataset stored in the form of pickle objects back into images. There are a total of 820 images of either 227227 or 299299 resolution.
I've attached the code below.
The problem is that initially tqdm shows that ~…

Dnana_Dev
- 1
- 1
- 1
0
votes
1 answer
Converting image magick convert command to magick++ c++ code
Converting image magick command to magick++ c++ code
I am new to Magick++. I am working on a project to dynamically make button image objects. Browsing through some help pages, I was able to create the following convert command that does what I…

Karna
- 3
- 1
0
votes
1 answer
download svs file on s3 directly to RAM in AWS Lambda or open without local download
I would like to use AWS Lambda (Python) for Image (svs) pre-processing (create tiles ect). Unfortunately the images are around 1 GB and wont fit on /tmp (512MB). Hence, I was hoping to load the images either directly into RAM through something…

y4nnick
- 101
- 1
- 4
0
votes
1 answer
Can object detection models adapts to different point of view channels
I have depth and thermal images of the same scene but with a slighly different point of view.
I use to compute the rotation/translation matrix in order to stack the two images in a (300, 300, 2) array.
But can object detection model like SSD or…

antoine Mathu
- 81
- 9
0
votes
2 answers
ImageDataGenerator doesn't like my fashionMNIST dataset. Which input does it need?
I have a set called train_images and train_labels from the tensorflow basic image classification guide:
https://www.tensorflow.org/tutorials/keras/classification
I load the dataset with:
fashion_mnist = keras.datasets.fashion_mnist
(train_images,…

Luca Troncone
- 33
- 4
0
votes
1 answer
How to append images to a list inside a Keras network
I would like to append the images which are procurred by the ImageDataGenerators to two different lists. I believed I could do that with a lambda layer but I am getting an error message. For a toy example see the code below. You can use any set…

user8270077
- 4,621
- 17
- 75
- 140
0
votes
0 answers
OpenCV Python - AbsDiff Latest Changes
prev_frame_gray is the first frame taken in my videoCapture(0). It depicts me holding a phone and c_frame_gray is the next frame where the phone was moved quickly. So now I only want the current frame changes.
frame_diff =…

CigarDon
- 79
- 1
- 4
- 14
0
votes
1 answer
How to resize VisDrone dataset and change annotation files accordingly?
I am using the VisDrone dataset to train MobileNet-YOLOV3. The dataset contains images with different size i.e. 960 x 540 P, 1920 x 1080 P etc and an annotation file for each image. But when I train the YOLO model it resizes all the images to 416 x…

Asad Javed
- 31
- 1
- 6