Questions tagged [image-preprocessing]

285 questions
1
vote
0 answers

Applying a specific High pass filter on a RGB image in numpy

I'm trying to preproccess my image before feeding it to the CNN. Goal To extract the residual after applying a high pass filter( Reference 1 ) on a RGB image of dimensions 512x512 ( basically a shape of (512,512, 3) ) using the following…
1
vote
1 answer

Does prediction / fearure extraction based on keras pretrained models depend on pre_processing_input

Keras application has pretrained models with saved weights. These weights are independent of the nature of "preprocessing_input" on images it was trained with. Now when I submit my set of images for feature extraction depending upon my backend and…
1
vote
2 answers

How to make boundaries of an object well defined?

Is there any tool to make the boundaries to be well defined in an image. I am using Python-OpenCV. Does it have any methods for this functionality? For eg. Let my input image be like this. You can see some disturbances on the boundaries. Some…
Sreeragh A R
  • 2,871
  • 3
  • 27
  • 54
1
vote
1 answer

ZCA whitening in python for Machine learning

I am training 1000 images of 28x28 size. But before training, I am performing ZCA whitening on my data by taking the reference from How to implement ZCA Whitening? Python. Since I have 1000 data images of size 28x28, after flattening, it becomes…
Akhilesh
  • 1,024
  • 1
  • 9
  • 26
1
vote
0 answers

How does ZCA whitening affect the training?

I trying to implement shape detector in tensorflow. For this, I am having two class, one is only vertical rectangle and another one is only right arrow, like the following images. Training is done with 190 samples for each class. I trained the…
Akhilesh
  • 1,024
  • 1
  • 9
  • 26
1
vote
1 answer

Tensorflow: Issue with tf.image.central_crop

I am facing the following issue with tf.image.central_crop() def preprocessor(image): image = tf.reshape(image, (IMAGE_HEIGHT, IMAGE_WIDTH, IMAGE_CHANNELS)) print(image.get_shape()) image = tf.image.central_crop(image,0.8) …
user3142067
  • 1,222
  • 3
  • 13
  • 26
1
vote
1 answer

Convert image magick command to magick++ c++ code

I'm working on an image preprocessing project in my university and used an image magick script to clean image background.Now I want to get the same output through Magick++ (c++ api for imageMagick). ImageMagick Command: "convert -respect-parenthesis…
TJay
  • 63
  • 10
1
vote
0 answers

Image pre-processing for better accuracy in OCR

I am using Gaussian kernel for image enhancements in OpenCV with 250% enlagrement: import cv2 import numpy as np image = cv2.imread("test.png") small = cv2.resize(image, (0,0), fx=2.5, fy=2.5) img = small kernel_sharpen_3 =…
Henil Shah
  • 137
  • 4
  • 14
0
votes
0 answers

preprocess ID images before extract the text?

I need to extract text from these type of Sri Lankan ID images. But before that I need to preprocess the input image. I am going to use Tesseract OCR to extract text from the images. Can anyone suggest me some flow of methods to preprocess the ID…
0
votes
0 answers

Tensorflow Image Processing Matching Image, Bounding Box and Labels

I have three folders with millions of records each: Images (has jpg images) Box (has xml files with bounding box coordinates, one xml file per image) Label (has txt files with the label of the image, one txt file per image) how can I match all three…
0
votes
0 answers

How to improve output of tesseract OCR

I am trying to detect text from aadhar card(ID) using Tesseract OCR but i am getting incomplete result. like not detecting 'Government of India' which is available on the top of the id and in some cases not detecting the 'name' and 'gender' I have…
Groot
  • 1
0
votes
0 answers

How can I separate lines in this text for OCR?

I want to use OCR on this block of text: It works well on some lines, but on other lines it doesn't detect anything / gibberish. I'm pretty sure it's because of how the text is skewed, since if I alter the angle of the block just slightly, I get…
0
votes
0 answers

Found 0 images belonging to 0 classes. how can i solve this error

During data augmentation, I define the path of my original dataset, but in the output I recevived this error "Found 0 images belonging to 0 classes. how can I solve this error" I want data augmentation in the output directory, I want to save 10…
0
votes
0 answers

How can I crop out the perimeter of a circular petri dish to evaluate only what is inside the circular dish using Python 3.11 and scikit-image?

I have been tasked with taking scanned images of a petri dish with bacterial colonies growing on it over time and performing an analysis of different statistics such as growth rate, time of appearance, etc. Thus far, I have taken the scanned…
0
votes
0 answers

How can I preprocess the image(OpenCV) to segment the round part better?

I want to better segment the round part in my pictures(use Segment Anything),and i try many ways to improve the effect,including threshholding(OTSU/adaptive....),OpenCV edge detection(Sobel/Scharr/Laplacian/Canny). The original image is here: After…