Questions tagged [opencv]

Open Source Computer Vision Library (OpenCV) is an open source machine learning library used primarily for computer visions applications. OpenCV contains over 2,500 optimized algorithms (including state of the art computer vision ones).

Filter by
Sorted by
Tagged with
10 votes
2 answers
16k views

How can I detect blocks of text from scanned document images

ORIGINAL IMAGE: GOAL: I want to separate texts into individual paragraphs by placing bounding boxes over them (as shown above). I tried it do this via traditional computer vision approach using ...
DGS's user avatar
  • 291
10 votes
2 answers
2k views

Find missing object(s) in image with a priori knowledge about the missing object(s) (w.r.t base image)

Problem Statement: I am working on developing a method, or borrow/modify/combine existing ones, where given an golden image (reference or base with all expected objects to be present), it is able to ...
TwinPenguins's user avatar
  • 4,207
8 votes
0 answers
3k views

Python : Feature Matching + Homography to find Multiple Objects

I'm trying to use OpenCV via Python to find multiple objects in a train image and match it with the key points detected from a query image. For my case, I'm trying to detect the tennis courts in the ...
Reward's user avatar
  • 81
6 votes
2 answers
1k views

How to remove the hotspots from given image by using Python and opencv?

In the picture below there are some regions which are very bright (i.e. more white). Some bright regions are wide and some are narrow or thin. The red box covers one such wide bright spot, and blue ...
S. M.'s user avatar
  • 173
6 votes
2 answers
3k views

Why image is more blurred through PIL?

I was using PIL library to open an image and then convert it into array later on for DL operations. However I found out that image opened was blurry as opposed to the original image. Why is the image ...
anon012358's user avatar
6 votes
2 answers
868 views

How can I detect partially occluded objects using Python?

I'm building a computer vision application using Python (OpenCV, keras-retinanet, tensorflow) which requires detecting an object and then counting how many objects are behind that front object. So, ...
Mark Presser's user avatar
5 votes
2 answers
2k views

how to apply similarity algorithm(or comparision) of over one million vectors with other one million vectors?

How can I apply similarity algorithm (or comparison) of over one million vectors with another one million vectors? I am following this pyimage search tutorial but don't know how to scale up the ...
Lalit Vyas's user avatar
5 votes
1 answer
2k views

FREAK feature extraction OpenCV

I want to know how to use FREAK feature extraction in python, I read the documentation but I need some examples. I wrote this code : ...
Saha's user avatar
  • 223
4 votes
1 answer
2k views

Identify credit card shape using machine learning

I have to approach this task: identify credit card from an image. I am attaching example image below: I have to identify and localize the credit card from this image. The real challenge is that the ...
Ajinkya's user avatar
  • 235
4 votes
1 answer
3k views

Where is the rotated angle actually located in fitEllipse method?

Main task: I fit the ellipse using the fitEllipse() method and then I'd like to count the rotation angle between the horizontal axis and the major axis of the ...
Demon's user avatar
  • 61
3 votes
1 answer
113 views

Train ML algorithm to find edges

I have input RGB images as follows: I have a dataset of manually annotated images highlighting the outline(edges) from the input images I am attaching an example. My aim is to train a ML algorithm ...
Ajinkya's user avatar
  • 235
3 votes
1 answer
9k views

TypeError: 'tuple' object cannot be interpreted as an integer

I have an image (480,640,3) and I am trying to resize it to (150,150,1). Since my Keras model has been trained on images of shape (150,150,1), unfortunately I cannot seem to resize it using the PIL ...
Zahid Ahmed's user avatar
3 votes
0 answers
312 views

Importing TensorFlow trained model in OpenCV

I want to import a TensorFlow pretrained model in OpenCV dnn C++ module. How can this be done? Are there any examples available?
Naser Piltan's user avatar
2 votes
1 answer
346 views

What is the origin of YOLO/darknet coordinates

I am aware of that darknet/yolov3 outputs relative coordinates, would the coordinate (0,0) be at the bottom left, or at the top left? I am confused as opencv2 seems to have the ...
LMB's user avatar
  • 123
2 votes
2 answers
1k views

How to Extract Information from the Image(PNG)

I'm trying to extract some particular information from the image(png). I tried to extract the text using the below code ...
Pluviophile's user avatar
  • 3,588
2 votes
1 answer
794 views

Distance of a people in an image [closed]

What is the best approach to find the distance of a person/people from camera, using an image?
Karthik Sunil's user avatar
2 votes
1 answer
3k views

What is difference between "cv2.filter2D" vs Keras "Conv2D" function

When I have to sharpen an image using opencv, I use: ...
Ajinkya's user avatar
  • 235
2 votes
1 answer
609 views

What's the difference between Haar-like Features and Haar Cascades?

Are they the same in terms of their algorithm? Or do they differ in their respective detection methods?
Kirk's user avatar
  • 23
2 votes
1 answer
1k views

Skin Detection From a Face Image

I have photos of people's faces, and I want to detect each person's skin color for later use. I don't want to use predetermined color ranges, instead I want to determine each person's color and then ...
AmrSherbiny's user avatar
2 votes
3 answers
31k views

I get this error Expected Ptr<cv::UMat> for argument '%s' while resizing image in open cv2

This is my code: ...
A R MOHAMMED's user avatar
2 votes
1 answer
105 views

Detecting unique icon on video in real time

For a project I am working on I'd like to be able to detect unique icons/barcodes in video footage. Suppose you have 10 people in the frame where each person is wearing a t-shirt with a similar but ...
Edouardos Kim's user avatar
2 votes
1 answer
3k views

Uniformity of color and texture in an image

I am new to the field of deep learning and have a problem in determining whether two images have uniform color and texture. For example, I have a Master image - Now, with respect to this image i ...
Devashish Prasad's user avatar
2 votes
0 answers
984 views

Difference detection between two images

I am trying to compare two images and detect the difference between them whether in shape or color. -The change in shape: the number of parts has changed ( increased or decreased). -The change in ...
fracv's user avatar
  • 21
2 votes
0 answers
31 views

orientation detection - images of govt. issued documents

Trying to figure out a macro approach to detecting the orientation of documents that works across document types (maybe a pipe dream). We successfully used SIFT to detect orientation in documents ...
Vikram Murthy's user avatar
2 votes
2 answers
49 views

shapes recognition for shapes formed by dotted points

In the image, below right corner there is circle shape and triangle shape made with set of co-ordninates.I have searched extensively in the net for algorithm or approach to classify shape correctly ....
Papasani Mohansrinivas's user avatar
1 vote
1 answer
4k views

Ellipses detecting at the image

I have the following image: I need to get two ellipses which will 'describe' my 'ring'. I have the following code at the moment: ...
CapJS's user avatar
  • 125
1 vote
1 answer
78 views

Is there a way (like planning algorithms) to draw a successive polyline to fill a specific shape (like triangle)?

there is a specific shape (like triangle) area, i am trying to develop an program to draw a successive polyline inside the triangle to fill the triangle, one line 3 layers this post demonstrates some ...
Jay's user avatar
  • 425
1 vote
3 answers
1k views

Is it possible to detect a person using facial recognition on the fly?

I am working on a small app for face detection in Python using face_recognition and opencv libraries. I have trained the data ...
Sociopath's user avatar
  • 1,233
1 vote
2 answers
45 views

Classifier not predicting real data

I'm trying to train a classifier to recognize my own signature. This is how I built my classifier How did I collect data? Signed on a piece of paper for 50 times and created 50 images out of it. for ...
shashank's user avatar
1 vote
1 answer
1k views

error: (-215:Assertion failed) [closed]

I was testing OpenCV with their code provided within the documentation. Unfortunately, I'm facing an unexpected error. I think, it might be due to the newer version that I've. I've tried the fix of ...
Ammar's user avatar
  • 11
1 vote
1 answer
79 views

illumination problem for face landmark detection

I trained dlib face landmark detection model using ibug and yaleB datasets. Accuracy of the model is dropping when a bright light or a shadow appears on the side face. Used default parameters and ...
Rakesh V's user avatar
1 vote
1 answer
165 views

People detection methods

In my problem I want to distinguish people from other shapes in images e.g I want to accurately know how many people are in specific region of image (at least for small number of people, for crowded ...
tobix10's user avatar
  • 11
1 vote
2 answers
36k views

cv2.error: OpenCV(3.4.3) (-215:Assertion failed) !empty() in function

Would anyone have a tip on how to fix this empty function error in OpenCV? I am attempting to follow the guides on OpenCV.org The script will detect a face in an image and draw boxes around ...
bbartling's user avatar
  • 403
1 vote
1 answer
2k views

Keypoint matching using HoG and SIFT

I have two images and I've found their keypoints using sift keypoint detector, Now I have to match their keypoints with HoG features, I know how to extract HoG description, but I dont know how to ...
Saha's user avatar
  • 223
1 vote
0 answers
48 views

Highlight specific paragraphs from documents

I have a bunch of documents in which I want to highlight certain paragraphs/keyphrases. I have a list of the most frequently appearing sentences and I want to search for these paragraphs/keyphrases in ...
spectre's user avatar
  • 1,886
1 vote
0 answers
25 views

Object Detection, custom dataset, algorithm [closed]

I'm looking for a solution to detect objects and classify them, using a custom dataset.The overall goal is to detcet objects using my webcam. So far I've wanted to use YOLO in combination with OpenCV, ...
st0412's user avatar
  • 11
1 vote
0 answers
42 views

Which library is better to go with for text recognition(CNN+RNN+CTC), OpenCV vs Keras vs Tensorflow?

I want to build a model to recognize text form images, for this purpose I need CNN stacked with Bidirectional LSTM and CTC. I would like to know which library would be better and how?
maryam mehboob's user avatar
1 vote
0 answers
712 views

Real distance between bounding box centers

Assume that I have a camera pointing in a specific direction. I know the Euclidean distance (Real world distance) of the camera to a fixed point, X (mm). Using ...
Serge de Gosson de Varennes's user avatar
1 vote
0 answers
67 views

crop part of image from image, change it and put it same place in original image

I have image (think of image of small plant) with bounding box. For data augmentation I want to rotate (45 degrees) the image (plant) in bounding box, and place it at same place in original image. so ...
venkysmarty's user avatar
1 vote
0 answers
258 views

Using machine learning to find the most similar image that contains another image

As the title states I want to use ml (maybe some kind of CNN autoencoder?) to find the most similar image (I have a list of 10k+ images) within another image. I am currently just using opencv with ...
mike_gundy123's user avatar
1 vote
2 answers
335 views

Facial recognition on offline images

I want to do facial recognition on wide varieties of images captured at various ages of my family members. Below are some of the questions I have. If a person uses glasses of different types, do I ...
Akash's user avatar
  • 235
1 vote
0 answers
23 views

Object identifaction with trained CV model

I am rather new to Computer Vision and Neural Networks, but I already build the following setup: I have a robot which crawls through the grass with a live video feed. I build an OpenCV filtering and ...
seb2010's user avatar
  • 11
1 vote
0 answers
186 views

Detect the presence/absense of simple components from a circuit board using object detection

In this case I have a challenge of inspecting a recently mounted product, using computer vision, to detect the absence of any component that I have to check. For this task, I tried the concept of ...
denisb411's user avatar
  • 123
1 vote
0 answers
124 views

Paragraph extraction from text

I am trying to separate scanned pages of a 3 column book into paragraphs. On the pages there can be images located in an arbitrary location, occupying part of one, two or all three of the columns. ...
dmayilyan's user avatar
1 vote
1 answer
111 views

White circles extraction from a little darker background

I'm trying to extract three white circles on the top left corner from the image below: I've tried to use: ...
CapJS's user avatar
  • 125
1 vote
0 answers
130 views

Improve results of image stitching using OpenCV (material science)

I'm trying to improve image stitching results with a series of pictures taken via microscope. The object I've photographed is a 3D printed cube that has a number of repeating shapes on the surface. ...
jsifferman's user avatar
1 vote
0 answers
31 views

how to update a face recongition ( e.g facenet)

I'm searching for a face recognition that detects new faces not just faces getting from the datasets, for example, facenet is a project that can detect and recognize a face from labels. I would like ...
abdou_dev's user avatar
  • 153
1 vote
0 answers
746 views

how to resize image without changing DPI in opencv for detecting text and feeding into OCR?

i resized the image using open cv and it changed the dpi of the image from 300 dpi to 90 dpi . What is the correct way to resize image without changing its dpi in open cv . if we feed the resized ...
star's user avatar
  • 1,431
1 vote
3 answers
2k views

Detect blur image using ssdmobilenet and tensorflowlite

I have clear images of cards vs blurry images of card. My task is to capture photo when the image is not blurry, as you can see from the description I need this code to run in real time on android ...
Ajinkya's user avatar
  • 235
1 vote
0 answers
1k views

Implement and train YOLO 3 with Opencv and C++

I want to implement and train YOLO 3 with my dataset using Opencv and C++. I can't find an example to start with, or a tutorial to explain how to train YOLO with my own data. All of the tutorials I ...
all.west's user avatar