Questions tagged [image-processing]

13941 questions
1

votes
1

answer
146

Views

How to make everything other than face transparent

I'm trying to extract the face from an image using opencv. Initially I'm converting the image to grayscale like so gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) Then I'm using dlib to generate facial points for me and then converting that to a numpy array and using fillconvexpoly method to get the...
Saikiran
-1

votes
0

answer
11

Views

What are the technologies I have to hire to make a AI based Camera APP for a Desktop?

(Note : if the question belong to different stackexhange notify me or mark for migration.Don't downvote ) Our decided to develop an application with below features The aim of the application is to dress a person using previously uploaded clothing materials who is standing before a display with camer...
Lord Commander
1

votes
1

answer
209

Views

How to interprete the result of the skimage radon transform

I'm wondering how I should interprete the result of the radon transform of skimage. The documentation is not really precise. Let's take this image as an example. The 2 lines are represented by the black dots in the picture on the right side. One line has 45 degrees and the other one 135 degrees. Now...
Sheradil
1

votes
1

answer
31

Views

Is there a way to apply a threshold to an image 1 row at a time

I am trying to apply a threshold to an image 1 row at a time. I want to be able to select the the row the threshold would begin and end. Ex. if I have a 1000 x 1000 image I would like to apply my threshold beginning at row 200 and end at row 850. Currently I am able to apply a threshold to an entire...
Ricardo Zaragoza
0

votes
0

answer
7

Views

How to get distance between two objects in given image?

I have one image and there is some puzzle to solve. i want to know the distance between that puzzle in pixels here is link of that image. http://162.243.43.18/Question.png i have tried in tensor but not getting any success
Nilesh Daladra
0

votes
0

answer
2

Views

Lane detection with brightness change and shades on lanes?

I am currently working on a lane detection project, where the input is an RGB road image 'img' from a racing game, and the output is the same image annotated with drawn colored lines on detected lanes. The steps are: Convert the RGB image 'img' to HSL image, then use a white color mask on it (white...
Mohamed EL Tair
1

votes
2

answer
3.9k

Views

How to change invert frames in EmguCV?

Currently, I am working on a real-time IRIS detection application. I want to perform an invert operation to the frames taken from the web camera, like this: I managed to get this line of code, but this is not giving the above results. Maybe parameters need to be changed, but I am not sure. CvInvoke....
gouthaman93
1

votes
0

answer
11

Views

In terms of time complexity, what is the most efficient way to overlay multiple smaller images onto a bigger image?

I am trying to overlay multiple smaller images onto a bigger background image using openCV. Currently I am using addWeighted() API with alpha=1.0 but this API only takes in two images. If img1 is overlaid onto img2 which is in turn overlaid onto img3, then I would have to call addWeighted() multiple...
Rahul Pradeep
1

votes
1

answer
380

Views

Canny Edge vs Thresholding for contour estimation in Open CV

I am using Open CV for an image processing application that involves contour estimation in images. What I would like to know is whether Thresholding the image (like how they have done here) or using Canny Edge Algorithm (here) yields a better result. Does this involve algorithmic analysis or am I m...
rhino2rhonda
1

votes
2

answer
1.5k

Views

OpenCV mean function crashes with mask created from OpenCV threshold function?

I'm very new to OpenCV, so I guess I'm making some silly mistake. First I'm creating an empty cv::mat matrix, mask, of CV_8U type and filling it with zeros. Then I'm filling the matrix with either 0's or 255's by checking the values in CV_32FC1 type cv::mat matrix croppedDifferenceImage by the use...
the_naive
1

votes
2

answer
1.2k

Views

Python converting an image to use less colors

I want to take an image and (somehow) read it as an array of pixels. Meaning each element of the 2d array would be either a hex code or RGB 3-tuple that represent the color of that pixel. I have looked into image processing and found things like Pillow or SciPy but I only found overly simple things...
Rares Dima
0

votes
1

answer
16

Views

Add chroma noise to image

I'm training a deep neural network to improve the quality of images. The images contain some specific types of noise that I want to reduce/remove by means of a deep learning model. In order to do so I'm using a huge dataset of similar clear high-res images with barely any noise, add the specific typ...
Hendrik Wiese
1

votes
1

answer
1.5k

Views

How to resize a labeled mask with nearest neighbor interpolation using scikit-image

I want to resize a labeled segmentation mask specifically with nearest neighbor interpolation. scikit-image has two relevant functions: resize and rescale But neither of these functions allow you to specify the interpolation method. It is very important to use 'nearest neighbor' interpolation when r...
cdeepakroy
1

votes
1

answer
388

Views

Find the perimeter of the leaf

Here is a leaf I want to find the length of it's periphery i.e. it's perimeter using openCV and Python.I tried writing a code but it is not giving the desired result.I have to reset the threshold for every example and also it's not giving a closed contour.I want it to be a generalized code to work o...
Muskan Bansal
1

votes
1

answer
68

Views

How to solve an error about drawcircle in Matlab?

In the following code, that is for draw a circle on an image, an error occurred. I try to solve it but I can't find the problem. figure('color', [1 1 1]); clf; imshow(inputVol(:,:,85),[]); drawcircle([blobSlice(ind,2),blobSlice(ind,1)],round(sqrt(3)*blobSlice(ind,4)),50,'-','g', 1); % Error For Ins...
eli
1

votes
1

answer
99

Views

Merge multiple images in Go

I am trying to merge an array of N images (where N will be a dynamic value) with Go, but I always get a black image as result. Here you are my code: package main import ( 'image' 'image/draw' 'image/jpeg' 'image/png' 'log' 'os' ) func openAndDecode(imgPath string) image.Image { img, err := os.Open(i...
Michele Riva
1

votes
1

answer
47

Views

How does np.outer help in creating a filter kernel?

I was trying the filter2D function with OpenCV using my own kernel: kernel = np.array([1,3,4,5,2]) / 11 cv2.filter2D(img, -1, kernel) and it works fine. I also saw a snippet where the same thing was done as follows: kernel = np.array([1,3,4,5,2]) / 11 kernel = np.outer(kernel, kernel) cv2.filter2D(i...
Sophia
1

votes
1

answer
33

Views

Using gaussian blur with zero size kernel?

I was reading about Gaussian Blur when one of the examples I came across was as follows: cv2.GaussianBlur(img, (0,0), 5) What does 0,0 mean here? This is in sharp contrast to another example I read: cv2.GaussianBlur(img,(5,5),0) How are both different from each other?
Harris Pat
0

votes
0

answer
7

Views

I need to grayscale a image folder, but this folder has a lot of images

I need to grayscale a image folder, but this folder has a lot of images. And the only way that i found until now is doing one by one. I was tring this code: FILES % plot a% plot But this code wasn't working, so I try to create a function to do the same thing, but didn't work too . grayimage
Sarah
1

votes
1

answer
25

Views

Creating an adjacency matrix from a cell array

I'm going to create an adjacency matrix from a cell array, but faced two main problems: I don't know how to access to cell array's elements; so an adhoc method was used. (and the most important) The code produces an error and the partial result is also a weird one! The cell array is as the following...
dtr43
1

votes
1

answer
263

Views

Binary Segmentation of an complex image in python. [closed]

I was trying to implement a binary segementation for my project work but I got stucked with the binary segmentation code. I just want to a get a continuos segmentation of a player and background in the picture like this image (A proper segmentation of a hand). imgort numpy as np impo...
kanik garg
1

votes
1

answer
128

Views

How to pair screenshots with videos?

I have folder with short videos and folder with images. Most of the images are sceenshots from one of the videos, but they may not be exactly the same (different size, noise, loss of details because of compression, etc). My goal is to match every image with video it was taken from. So far, I use Ope...
velblúd
1

votes
1

answer
157

Views

Edge based binarization

I am trying to implement the edge based binarization algorithm that was written in the research paper 'Automatic License Plate Recognition Using Deep Learning Technique' but i as i implemented it i get the final image all black and can not find the problem. import cv2 import numpy as np def edge_bas...
Ibrahim Sherif Yahia
1

votes
0

answer
125

Views

Method to separate dotted numbers from an image

I'm going to do a specialized OCR system which recognizes the above dotted numbers. (The sample picture may not contain all special cases - see below. ) We decided to separate the number string and recognize each digit before we put them altogether to form a final result. The question is: How to cle...
Aurus Huang
1

votes
0

answer
768

Views

Sobel edge detector in R?

I am working on an R assignment about Sobel edge-detection. Unfortunately the video tutorial I was following uses R for every other task, but switches to python for image processing - I am guessing he did not find any useful R package for image convolution type work (this tutorial is from last year)...
Manojit
1

votes
0

answer
75

Views

What's the best idea to remove defferent backgrounds from images?

I want to convert this photo: to this one: And this photo: to this: And son on. I thought I can use color threshold but what if there are some pictures or content inside the photo? because I don't like to damage them and only want to remove the background. So, as I am new in OpenCV and Image process...
Hasani
1

votes
1

answer
411

Views

Implementing a License plate detection algorithm

To improve my knowledge of imaging and get some experience working with the topics, I decided to create a license plate recognition algorithm on the Android platform. The first step is detection, for which I decided to implement a recent paper titled 'A Robust and Efficient Approach to License Plat...
Gooey
1

votes
0

answer
195

Views

Evaluating a double integral in Matlab with Dirac Delta function

For an image processing project I need to calculate the following Integral in Matlab. delta is the dirac delta function. But the Problem is when I calculate some samples the output is always 0. My matlab code is as follows: fun = @(x,y) dirac(0 - (x * cosd(135) + y * sind(135))); q = integral2(fun,...
Olli Ver
1

votes
0

answer
85

Views

Custom Imagenet Dataset

I want to make my own custom dataset of imagenet taking 20 classes out of 1000. I am able to convert it to TFRecords format but I want a keras friendly version for it as keras is more flexible for me.
Ayush Agarwal
1

votes
1

answer
190

Views

image processing : Segregating panel vs house like structure

I am working on a problem that involves segregating solar panel vs house. Both the house as well as panel are of same color. NOTE: There are two houses in the image. I am referring to the one which is bluish. PFB the image as well as my approach. Any insights how to deal with such situations are wel...
vijju
1

votes
1

answer
1.3k

Views

Drawing a histogram in opencv python

I want to detect lane departures of vehicles by processing front camera video.For that I want to select one pixel line of each frame horizontally and analyze how those pixels colors change. For that I want to draw histograms for R,G,B channels which has pixel number from left to right in x axis and...
SSR
1

votes
1

answer
138

Views

Tensorflow Error:ValueError: Shapes (?,) and (656, 875, 3) are not compatible

import tensorflow as tf reader = tf.TFRecordReader() filename_queue = tf.train.string_input_producer(['output/output.tfrecords']) _,serialized_example = reader.read(filename_queue) features = tf.parse_single_example(serialized_example, features={ 'image_raw':tf.FixedLenFeature([], tf.string), 'heig...
liyu
1

votes
0

answer
506

Views

How to automatically find the threshold and sigma values for Canny Edge Detection?

I want to find the range of threshold values used and sigma values used for specific images. For example, If there is a set of images of different types such as too bright and high contrast, too bright and low contrast, not bright and high contrast, How can I know what range of threshold values and...
Image Check
1

votes
2

answer
392

Views

i have trained MNIST with accuracy 99.2% but with wrong predictions

I have been using this program to predict my handwritten images to predict a number using previously trained data. The following is the program. please help me out.im new to this This code is used for image processing: import numpy as np import matplotlib.image as mpimg img=mpimg.imread(/images.png...
john joy
1

votes
0

answer
41

Views

Image processing : Extract background class from annotated images

Given an image of dimensions aXb (see an example below), and a few rectangular annotations for different classes, what is the most effective (or non-brute-force) method for finding non-overlapping rectangular annotations (at least m X n dimension) not covered by the the already provided annotations?...
GKS
1

votes
1

answer
270

Views

How to automatically save the output image file in a specified folder?

I am using Canny edge detection on images. Since my original 10 images are in the path folder, C:\Users\X\Desktop\FoodRGB as 01.jpg, 02.jpg, 03.jpg and so on, I want to save all my output images in the folder C:\Users\X\Desktop\FoodCanny as 01.jpg, 02.jpg, 03.jpg. I figured that I have to use imwrit...
Image Check
1

votes
0

answer
63

Views

Can't get HQ favicon for my blog

I have some HQ images that I'd like to use one of them as my favicon, and I've turned them into icons using this online converter: https://realfavicongenerator.net/ But the result is too blurry no matter what output I tried. I read somewhere that Blogger turns uploaded images for favicons into 16x16...
salam2009
1

votes
0

answer
24

Views

Fastest way to call two functions multiple times without using a list of input parameters

I have written a small programm that uses a pipe. The parent takes care of camera connection while the child is processing the images. The child process calls two functions FunctionA and FunctionB. Both times the image from the parent is processed. I want to run the two functions as fast as possib...
Max Krappmann
1

votes
0

answer
54

Views

how to properly use 1x1px transparent image

I've seen many websites, usually ones with large amounts of images or large resolutions, use this technique. My question is, how do use it properly? From the articles I've read on here as on other forums and blogs here is my base code: Is this how it is suppose to be set up?
user1377298
1

votes
0

answer
370

Views

C# Get pixel location from Image<,> EMGU CV 3.3

I've been working on an EMGU based project where i need to create a skeleton image with the ZhangSuen thinning algorithm, which works perfectly fine. For further analysis I want to obtain all pixel locations of the skeleton and store them in a List I've researched a lot about performance issues when...
Kajij

View additional questions