Category "image-processing"

Python: Image resizing: keep proportion - add white background

I would like to create a Python script to resize images, but not changing its proportions, just by adding a white background (So, a : 500*700 px image would t

Reverse Image search (for image duplicates) on local computer

I have a bunch of poor quality photos that I extracted from a pdf. Somebody I know has the good quality photo's somewhere on her computer(Mac), but it's my unde

Python OpenCV Contour Tree Hierarchy Structure

I am trying to implement the algorithm found here in python with OpenCV. I am trying to implement the part of the algorithm that remove irrelevant edge boundari

using histogram to determine colored object presence?

I'm trying to determine if portion of the picture contains red-white striped object (liftramp). If it is present, it looks like this: , and when not like this:

Recommended pattern recognition technique for chess board

I'm trying to do an application which, among other things, is able to recognize chess positions on a computer screen from screenshots. I have very limited exper

Bitmap image to base64 conversion

I am trying to convert a bitcode image to base64 format. I tried to code like public static String encodeToBase64(Bitmap image, Bitmap.CompressFormat compressF

OpenCV - Apply mask to a color image

How can I apply mask to a color image in latest python binding (cv2)? In previous python binding the simplest way was to use cv.Copy e.g. cv.Copy(dst, src, mas

How to find corner (x, y) coordinate points on image Python OpenCV?

This is a truck container image but from the top view. First, I need to find the rectangle and know each corner position. The goal is to know the dimension of

Detect white blobs using opencv python

I am trying to simply find white circular blobs in an image. When i tried going with houghcircles, I keep getting letters and digits mistaken for circles, where

How to detect if two images are the same with different cropping ratios?

I have two different images with different dimensions: 100px and 400px As you can see the two are clearly the "same" from a human point of view. Now I wanna

How to mask image with binary mask?

Suppose I have a greyscale image here: And a binary masked image here: With the same dimensions and shape. How do I generate something like this: Where the v

How to approximate jagged edges as lines using Python OpenCV?

I am trying to find accurate locations for the corners on ink blotches as seen below: My idea is to fit lines to the edges and then find where they intersect. A

Python OpenCV - How to save a 5 channel image

I'm using Google Colab with Python 3 and I need to merge 3 images to make a new one with 5 channels, but i get this error: error: OpenCV(4.1.2) /io/opencv/modu

How to clean images before OCR with Python OpenCV?

I've been trying to clear images for OCR: (the lines) I need to remove these lines to sometimes further process the image and I'm getting pretty close but a

How to clean images before OCR with Python OpenCV?

I've been trying to clear images for OCR: (the lines) I need to remove these lines to sometimes further process the image and I'm getting pretty close but a

Difference between scipy.ndimage.gaussian_gradient_magnitude & gaussian_filter function

Anyone know what's the difference between scipy.ndimage.gaussian_gradient_magnitude [1] and scipy.ndimage.gaussian_filter[2] function? I imagine that gaussian_

How to crop sub-part from national ID without losing quality

I am having a use case where dividing National ID card is mandatory for OCR Received Image vary in size and pixels number Samples Used the following code to c

Resize multiple images with OpenCV to square size without padding

My question is simple yet I haven't found any solution on Google, all the answers are for adding padding which in my case I don't want... It's basically resizin

How to detect multiple colored regions in an image and produce individual crops for each with Python OpenCV?

I have an image like this: And I want to crop the image anywhere there is red. So with this image I would be looking to produce 4 crops: Obviously I f

How to find and crop words into individual images with Python OpenCV?

I have a binary image of words as shown, and I want crop the image with each character in different image. Output should have different images of k,7,2,f,5 &am