Questions tagged [opencv]

The tag has no usage guidance.

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

Find an image in a huge list of other images (feature matching, ORB, BRISK, …)

Imagine I have 20k images of different Beer bottles in different situations, positions, orientations,... I would like to find the picture that contains that specific beer I'm looking for, say a Corona....
0
votes
0answers
47 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: ...
0
votes
1answer
11 views

Get specific object dimensional position from image

I need to get specific object like logo dimensional position from an image. I checked open-cv, pillow package etc but it does not help to me. Can anyone advice which is the best process to do this? Do ...
1
vote
1answer
31 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: ...
0
votes
0answers
15 views

Image transformation methods

For OpenCV-python. Could anyone illustrate the difference between the image transformation method like cv2.wrapprespective and cv2.prespectivetransform?
0
votes
1answer
38 views

How to create a model to recognize matching label and ROI with OCR

I am trying to make a model in python using Tensorflow to process the Tesseract OCR to detecting and extracting particular ROI from Image. I want to recognize the particular fields and values from ...
1
vote
0answers
35 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. ...
0
votes
0answers
8 views

Filters to imitate mobile camera noise

I want to train a super-resolution model that I will further apply to text images. The goal is to work with camera-captured images of text, increase the resolution so that the quality of OCR increases....
1
vote
0answers
25 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 ...
1
vote
0answers
16 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 ...
2
votes
0answers
12 views

orientation detection - images of govt. issued documents

Trying to figure out a macro approach to detecting orientation of documents that works across document types (maybe a pipe dream). We successfully used SIFT to detect orientation in documents where we ...
1
vote
0answers
30 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 ...
2
votes
1answer
82 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 ...
1
vote
1answer
25 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 ...
2
votes
1answer
30 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 ....
0
votes
0answers
54 views

What should I do with this cv2 error?

here is my code in python : ...
1
vote
0answers
187 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 ...
0
votes
1answer
23 views

How to convert photo to a vector drawing

I am using the following code to convert photo to a drawing: ...
1
vote
0answers
32 views

Why when I apply GaussianBlur in my images, my model overfit? CNN KERAS

I have 1400 images (700 each class), and i'm using vgg-16 to classificate between one and other class. But when I apply the preprocess method Gaussian Blur (which seem to be very much clear to see the ...
0
votes
2answers
5k views

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

This is my code: ...
1
vote
2answers
39 views
2
votes
1answer
214 views

What is difference between “cv2.filter2D” vs Keras “Conv2D” function

When I have to sharpen an image using opencv, I use: ...
2
votes
2answers
73 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 ...
0
votes
0answers
9 views

Scenario description of Roads using Deep learning

I want to do scenario description of road. If there are cars, humans infront of the blind person it should describe the scenario and output should be consumable by blind person. Question: Should it ...
0
votes
0answers
30 views

What is the best algorithm for object recognition based on its outline/edge in openCV

I am developing an application that needs to recognize objects based on their outline in any condition. So far I can recognize the objects outline if they have a simple background, however if there is ...
0
votes
0answers
391 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
273 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
57 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
34 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
37 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
226 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
168 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
58 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
252 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
42 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
33 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
89 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
2k 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
148 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)
4
votes
2answers
334 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 ...
6
votes
2answers
3k 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 ...
3
votes
1answer
182 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, ...
4
votes
1answer
943 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
87 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
2answers
16k 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
241 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 ...
1
vote
0answers
239 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. ...
5
votes
2answers
682 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 ...
1
vote
1answer
1k 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 ...
3
votes
0answers
508 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 : ...