Category "opencv"

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 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

Not a Doxygen trailing comment

I am creating a project using Xcode using OpenCV library. I get an compiling error saying Not a Doxygen trailing comment in core.hpp and lots of other s

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

Creating a Linear Gradient Mask using opencv or

I am trying to stitch images together right now to create panoramas. The approach that I have tried so far was to warp the first image and align the second imag

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

How to remove noise artifacts from an image for OCR with Python OpenCV?

I have subsets of images that contains digits. Each subset is read by Tesseract for OCR. Unfortunately for some images the cropping from the original image isn'

if else in a face detector with opencv

Note I am a beginner. I made a script that analyzes a picture and places a box around any faces found in the image, that part works, What i need it to do is cha

LINK : fatal error LNK1104: cannot open file '.obj'

I have a big problem with building a simple program. I am using many tutorials, instructions and I can't solve it. I edit the variable's path as follows: C

How to detect and extract rectangles with Python OpenCV?

I am trying to detect three rectangles from the contour. I have already extracted the entire contour from the whole image. I am attaching the image of extracted

How to extract green objects in an image?

I have ROI's for the bounding boxes around the objects in an image. The ROI's are obtained by the Faster R-CNN. Now I want to get the green spike objects contai

Pycharm/Python OpenCV and CV2 install error

I've been trying to install both OpenCV and cv2 from both Pycharm and from the terminal as suggested using: pip install --user opencv pip install --user cv2

Pycharm/Python OpenCV and CV2 install error

I've been trying to install both OpenCV and cv2 from both Pycharm and from the terminal as suggested using: pip install --user opencv pip install --user cv2

Finding circles in a live video feed using python 2.7.11and opencv 3.0.0

I need help finding circles in a live video feed from my webcam. I just need feedback from python that a circle has or has not been detected. Also what is the b

error: OpenCV(4.1.0) error: (-215:Assertion failed) !ssize.empty() in function 'cv::resize'

This is the error I get: error: OpenCV(4.1.0) C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:3718: error: (-215:Assertion failed) !ssize.empty

Import error:DLL load failed:The specific module could not be found

I am trying to execute handtracking module program,but I am getting this dll error while trying to import handtracking module Program code: import cv2 from cvz

How do I capture images in OpenCV and saving in pgm format?

I am brand new to programming in general, and am working on a project for which I need to capture images from my webcam (possibly using OpenCV), and save the im

How to extract multiple objects from an image using Python OpenCV?

I am trying to extract object from an image using the color using OpenCV, I have tried by inverse thresholding and grayscale combined with cv2.findContours() bu

I m trying to convert the pixels which is painted black to another color but ı got an error l

import cv2 import numpy as np image = cv2.imread('images1.png') ss=[] for x in range (0,260,1): for y in range(0,190,1): if image[y,x]==[0,0,0]