Questions tagged [opencv]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

mtcnn accuracy drops for cv2.imread() vs. pyplot.imread()

Following the tutorial here: mtcnn tutorial I noticed that the mtcnn repo example.py uses cv2.imread() and the tutorial uses <...
0
votes
0answers
22 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 ...
0
votes
0answers
63 views

Identify/Fetch table like structure from Image using opencv

I need to identify table(highlighted in red rectangle)) like structure in image. For now i am following the concept of box detection approach in the below link. https://medium.com/coinmonks/a-box-...
0
votes
0answers
48 views

Extract features ( predictions ) from tflite model on Android device

I'm working on a eyes detection in real time project that uses the tensorflow library. I train my own model using CNN and dataset on images and I have generated the frozen inference graph, and I test ...
0
votes
0answers
20 views

Orange widget with OpenCV setMouseCallback

I am designing an Orange Widget for facial recognition. I would like to draw a rectangle around faces captured in video by setting mouse events with ...
1
vote
0answers
18 views

Semantic Segmentation using Scipy or Scikit-image

Many days ago I saw a user using scipy function to get region of interest (RoI) in an image using different colors. I believe it was some sort of filter. Now I'm trying to do the same but I'm not able ...
1
vote
0answers
15 views

How to detect only the lane boundaries using Hough transform?

This is my code to detect the lane boundaries. But only one line(left most) is detected here. Is there a way to remove other objects from the picture (remove bushes and trees) and detect only the ...
0
votes
0answers
49 views

How to detect hand or head using opencv in python (Without bounding box)

Can anyone help me how we can detect hand or head using opencv. I want to detect hand or head in any lighting condition. right now I have developed using bounding box and contour comparison algorithms ...
2
votes
1answer
26 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?
1
vote
1answer
46 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 ...
0
votes
1answer
146 views

Prerequisites for openCV [closed]

I am looking to start learning openCV to perform a car detection program. Should I know data science and/or machine learning stuff before going for openCV? If not, where can I start learning openCV ...
2
votes
0answers
32 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 ...
1
vote
1answer
31 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 ...
1
vote
1answer
61 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 ...
1
vote
1answer
562 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 ...
0
votes
0answers
78 views

B-spline interpolation for image

I am looking B-spline image interpolation implementation using python library. Like: bicubic_interpolation = cv2.resize(image, (512, 512), interpolation = cv2.INTER_CUBIC)
3
votes
2answers
51 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 ...
4
votes
2answers
151 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 ...
2
votes
1answer
92 views

How can I detect partially obscured 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, ...
2
votes
1answer
325 views

Identify credit card shape using machine learning

I have to approach this task : identify credit card from a image. I am attaching example image below I have to identify and localize credit card from this image. The real challenge is that the card ...
0
votes
1answer
51 views

does tensorflow use opencv to covert image to numpy array

Does tensorflow use opencv to covert image to numpy array ? How is feature extraction done in tensorflow ? How is it different from opencv model ?
0
votes
0answers
119 views

Images similarity using SIFT and Annoy

Given an image, I need to get the most similar ones with "score" or percent of similarity I'm using SIFT to get the descriptors from all the images and storing them in Annoy as individual vectors ...
0
votes
1answer
4k 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 ...
0
votes
1answer
86 views

Calculate image width

In this code below, a picture can be loaded into openCV and then the region of interest RIO can be created by just selecting a box around something with the mouse, then press ...
0
votes
0answers
191 views

openCV tracking algorith & Haar Cascades

(long question sorry) This script below will utilize my windows 10 laptop webcam detect faces with haar cascades and calculate the centroid of what ever is captured. Besides OpenCV I also use the ...
1
vote
0answers
99 views

Detecting blinking light on a device

Can anyone tell me good approaches to detect blinking light in a video? The background may change constantly. As of now, the color would remain same but the intensity and angle of vision can change. ...
0
votes
0answers
100 views

Approximate Median Filter for background subtraction

I want to know how can I subtract background of a video using Median filter, I need some examples in opencv and python.
4
votes
2answers
336 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 ...
0
votes
1answer
602 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 ...
2
votes
0answers
242 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 : ...
1
vote
0answers
1k views

i got the following error : 'numpy.ndarray' object has no attribute 'detectMultiScale' to show image in python?

import cv2 videoCam = cv2.VideoCapture(0) face = cv2.CascadeClassifier('haarcascade_frontalface_default.xml') eye = cv2.CascadeClassifier('haarcascade_eye.xml') nose = cv2.CascadeClassifier('...
1
vote
1answer
477 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 ...
1
vote
0answers
48 views

Recognize polygons and get coordinates on transparent image

I have to implement a program to recognize polygons on transparent images, like this: So, in this picture we have 4 main polygons, we need to recognize them with a blue background and more dark blue ...
1
vote
2answers
29 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 ...
0
votes
1answer
123 views

Opencv kmeans predict equivalent

I'm moving my project from Python's libraries to opencv, and I have one big problem. In Python skylearn, I have kmeans object, which has two useful methods: fit_predict and fit, which both are ...
1
vote
0answers
59 views

Image processing algorithm [closed]

Can you give me a idea about image processing segmentation algorithm invariant to light that can be implemented in Opencv in Jupyter Notebook?Please!
0
votes
1answer
404 views

Bounding box coordinates prediction

How to pass multiple bounding boxes coordinates to CNN model?My goal is to predict the coordinates of texts in an image.
1
vote
2answers
402 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 ...