Category "image-processing"

Improve edge detection using opencv

so I am working on a project to scan analog photos. The program should detect the edges and crop it automatically. For that I am using Python and OpenCV. My pro

How to detect the exact color of the images using hsv color model and opencv

I have datasets of images of gemstones.I have categorised the gemstones into folders based on their colours.(That is Red, Blue, Pink,Purple,Yellow). What I want

image.Mat in EmguCV is always in BGR format?

My code is all done thinking that the input Mat is in BGR format, so I am wondering if given an Image object in EmguCV, the property Mat from this object is alw

CS50: Filter Edge Returns Mostly White Image

I have been stuck on CS50 Filter - Edges for a few days now, having a hard time determining what's wrong with my code. This code returns an almost all white ima

Particle detection with Python OpenCV

I'm looking for a proper solution how to count particles and measure their sizes in this image: In the end I have to obtain the lists of particles' coordinates

Find Corners of pool table for perspective warp with OpenCV

I have an image of a pool table with slight perspective distortion: I am trying to un-warp the image (such that the corners of the pool table correspond to the

Find Corners of pool table for perspective warp with OpenCV

I have an image of a pool table with slight perspective distortion: I am trying to un-warp the image (such that the corners of the pool table correspond to the

Find question text block in image with Python Opencv

How can I select question blocks in a jpg file with questions in Python code? The codes below select texts. I want to select question blocks with their choices.

How to fill holes or reduce noise in an image?

I need to reduce the noise in images like the one bellow, i.e. fill the holes in the white object. I tried something with opencv but it ended up removing part o

How to fill holes or reduce noise in an image?

I need to reduce the noise in images like the one bellow, i.e. fill the holes in the white object. I tried something with opencv but it ended up removing part o

Identify table grid in image

I have to identify the table grid in this image and change it to Grimson red color. I am a beginner in image processing. img_arr = mpimg.imread("1.jpg") plt.

Is there any way to detect edge in this situation?

I try to detect edge using python. There are hundreds of algorithms for edge detection, however, the image is very obscure and unclear. The most serious problem

Ros2 : stereo image rectification

I'm starting to develop a visual odometry program. The "front" part (image acquisition and hopefully rectification) is done in ROS2, then the core of the proces

finding not exactly same template in image

I want to find a character in my input image. When I crop char from an image and use template matching, in almost all cases, it works perfect; but if I use that

How to connect broken lines into one continuous line?

I have this picture: As you can see, some lines are not connected. These lines were drawn using semantic segmentation. What I want is to connect these lines, b

I need to measure the gap between railway switch and track using python

I need to predict the gap in railway switch using python. Switch image:

Converting NRRD file to JPG

i am trying to convert nrrd file into jpg by reading that nrrd image using pynrrd and then using the pixel i am trying to form an image but the out i am getting

How to connect broken lines that cannot be connected by erosion and dilation?

I have an image like this that has multiple stoppers and some of the lines are broken. To connect this broken line, I used a morphological operation like this:

Join broken lines in image using OpenCV for python

I am working on a project in which I have to complete the broken lines in the image below and then calculate the area. Is there any way to complete the broken l

Join lines to create closed contours using OpenCV

I have the following image: And I would like to join all of these "green" linear pixels to create a bounding box contour - is this something that is possible w