Questions tagged [image-preprocessing]
285 questions
0
votes
0 answers
How to load the data from datapath from annotation file
Hi i have a custom dataset for sign language. I want to load the dataset from directory but directory is also there for each image stored as value in the column name "Framespath" in the file annotation.csv and type of that column is dataframe.
The…

shrivas sp
- 25
- 7
0
votes
1 answer
Annotations and extracted images from videos
I am working with extracted images from videos and I was able to accomplish that and I have an annotation xml file for the extracted images. As I am new to computer vision. I am confused about how to proceed from there and how to add the xml file to…

Lolo
- 31
- 6
0
votes
1 answer
Loop over images in directories/Subdirectories for data processing
I am trying to do image processing on my dataset. The dataset is divided into 346 folders according to the following manner
What I want to do is
loop over the 346.
Enter each folder and process the images within
Process the image in regards to…

Lolo
- 31
- 6
0
votes
1 answer
Resize the Depth of CT data in Python
I have multiple CT datasets in Dicom format all with varying number of slices or 2D CT images.
Example:
Dataset 1 Shape: (512 x 512) x 100
Dataset 2 Shape: (512 x 512) x 130
Dataset 3 Shape: (512 x 512) x 122
How can I resize the data such that the…

user9209723
- 1
- 1
0
votes
1 answer
Image Classification - Use Dictionary Dataset in Sequential Model
I am building a basic Image Classification Project. However, my data set is a dictionary of labels as keys and respective images as values.
{'label_name1': ['imagepath1', 'imagepath2',....], 'label_name2': ['imagepath1', 'image2path',....],....}
How…

Go For Pro
- 115
- 1
- 8
0
votes
0 answers
Detecting numbers from image of different lighting condition using tesseract OCR, Python
the problem for this image with different light condition:-
Img_1
worked for this morning image:-
Img_2
I am trying to extract numbers from the video by using Tesseract OCR & Python . in that video, there is a train available on each train there is…

satyam pawar
- 9
- 3
0
votes
0 answers
3 channels Grayscale image(in C++) must give same confidence values as NumPy(python) processed image
here is the python code :
image = cv2.imread(img)
gray=cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
image1=np.zeros_like(image)
image1[:,:,0]=gray
image1[:,:,1]=gray
image1[:,:,2]=gray
here is the C++ code:
Mat img1 = imread(fn[i]);
Mat…

Muratali016
- 13
- 2
- 8
0
votes
1 answer
Measuring image processing quality for tesseract ocr
I'm testing various Python image pre-processing pipelines for tesseract-ocr.
My input data are pdf invoices and receipts of all manner of quality from scanned documents (best) to mobile phone supplied photos taken in poor lighting (worst), and…

xtian
- 2,765
- 7
- 38
- 65
0
votes
0 answers
InvalidArgumentError: Unknown image file format. One of JPEG, PNG, GIF, BMP required. [Op:DecodeJpeg]
Hi there I'm quite new to this sort of stuff,
I'm at the final stages of completing my facial verification software and everything has run smoothly right up to the last section.
I've had an error.
It says that the error comes from the following and…

Freddie
- 1
0
votes
0 answers
Is there another option to resize nrrd's as image.resizer does not seem to work
I have been trying to resize images (specifically nrrd files)
I tested the following code on normal JPEG and PNG files and it works.
data_path = r'H:\User\Code\TestingData\TestData'
path_open_patients = glob.glob(data_path + '//' + '*')
for patient…

Lars VanderBroeck
- 23
- 4
0
votes
1 answer
Import batches of images for non-classification problems
I'm trying to do a superresolution network, but I am having trouble importing my own data. I have two types of images: resized images (smaller), original images. The first one is going to be used as an input of the network and the second ones will…

Noether
- 39
- 1
- 5
0
votes
0 answers
i got StopIteration error , how to solve this error
i am storing the names of each image in the filename array and labels associated with that image in labels array. so i wrote this code
import numpy as np
subdirs, dirs, files = os.walk('/content/all_images').__next__()
m =…

musta
- 1
- 3
0
votes
1 answer
Image Standardization
I want to ask about image preprocessing for classification tasks with cnn. I standardized the input data (mean = 0, standard deviation = 1), I got results with a range of [-1.1]. How to use that technique with result range [0,1]? so that the image…

hilyap
- 1
- 2
0
votes
1 answer
Path directory could not be found
A simple dataLoader for image segmentation. I am having trouble with pathing the dataset from my computer file
import torchvision
import torch
import torchvision.transforms as transforms
import numpy as np
import matplotlib.pyplot as plt
import os,…

Mw W
- 1
0
votes
0 answers
How to verify original image's input channels when using Keras load_image?
I am using tf.keras.preprocessing.image.load_image to load 3-channel images into a simple classification network. Based on the documentation for load_img, this method will return a 3-channel image even if the original image had a single channel (by…

Ophir S
- 395
- 5
- 13