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
0
votes
0answers
14 views

how to detect bifurcation, trifurcation, and crossover on image with python opencv

how to detect bifurcation, trifurcation, and crossover from the branch point with OpenCV when the input like this Expect output : I'm trying to use binary_hit_or_miss but I don't know how to display ...
-1
votes
1answer
61 views

ImportError: cannot import name 'cv2' from 'cv2' [closed]

I'm using anaconda and installed OpenCV using conda-forge. conda install -c conda-forge opencv In my notebook I run this line of code ...
0
votes
0answers
19 views

What is the closest interpolation method to INTER_AREA in KERAS for shrinking images

What is the closest interpolation method to INTER_AREA in Keras from the following: nearest, bilinear, bicubic, hamming, box, lanczos. I always used INTER_AREA for shrinking images but for some reason,...
0
votes
1answer
195 views

error in running exe file after changing .py to .exe

I have changed my python code to an .exe file using pyinstaller and anaconda. In my python script ("untitled.py") I import opencv which I have already installed from source using cmake. ...
0
votes
0answers
21 views

How does the below calculation help to create a PNG from a floating point depth map?

What is the effect of max_val * (depth - depth_min) / (depth_max - depth_min) in the below function? ...
0
votes
0answers
13 views

Saving the Autoencoder predicted image to a new directory

I trained an autoencoder model in Keras to generate denoised images given noisy images. The predicted images are stored in the "result" directory, with the individual filenames appended with ...
0
votes
0answers
19 views

object detection algorithm for video

Is there any way to convert the detected object from an object detection algorithm (Mask RCNN in my case) to a white silhouette (while the background has been set to black)? I have commented on the ...
0
votes
0answers
7 views

How to run inference of 2 deep learning models simultaneously on video?

I want to get inference of 2 models. First model(Runs at 20fps, Pytorch), Second one is a heavier model(Inference time 1 sec, Tensorflow) on webcam feed. The first model would be running on every ...
0
votes
0answers
18 views

Opencv installation problem

I tried to install opencv using cmake to work with gpu. After installation, I try to confirm installation. So, I open anaconda prompt and python >> then import cv2. However, I got the error of ...
0
votes
0answers
24 views

Reading data from Twilio video streams

Tl;dr: I would like to read video streams coming from all the participants from this https://tfvideo-5708-dev.twil.io/video.html in python Details: I have a live tutoring website that uses Twilio ...
0
votes
1answer
30 views
0
votes
1answer
163 views

What is the use of applying img_to_array() after cv2.imread()

In a book, I saw the following code to load images from a directory: ...
0
votes
1answer
19 views

Object detection stops predicting well according to how I collect the images

On my problem I have to use 4k resolution (3840x2160) to record images and detect qrcodes at the same time. The images I end resizing it to 1920x1080 to save it on disk. The problem is that if I train ...
1
vote
1answer
202 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 ...
0
votes
2answers
140 views

Does resizing the image size, reduce the quality of the images in CNN?

I am doing a project for cancer recognition. My data set has hunderds of images but not of equal size. I wanna resize them to the size of the smallest image. But I am wondering do you think using the <...
3
votes
0answers
137 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 ...
0
votes
0answers
51 views

Difference between two images but in certain region only

I have two images, where i need to find the difference. i can easily did with the help of SSIM function. Now i want to find the difference between two images but only selected region (i want to ignore ...
0
votes
0answers
57 views

Extracting table data from document image and export to excel

I need to extract data from document image which is in table format. We need to extract it into CSV/Excel format. I was thinking to use opencv and pytessract to detect border line but there is some ...
0
votes
0answers
9 views

How can I plot a bunch of images, given their centre coordinates?

The points here represents centre coordinates of images with unique names. I want to plot all the images on the same 2d space to get a final representation of all the images merged into sort of a ...
0
votes
0answers
222 views

Finding bounding box coordinates in Object Detection

In some of the OpenCV implementations for object detection , I don't understand how the co-ordinates of the bounding box of an object are extracted from the image. For example , In Object Detection ...
0
votes
0answers
16 views

Training images for gender and and age detection from face

Can someone please tell me if it is feasible to train my own set of facial images to detect gender and age without using any cloud architecture or paying some amount of money ? And , on an average how ...
0
votes
1answer
64 views

Cable angle measurement (rotation)

I need to detect the rotation of a cable (degree) in the x-axis with high precision [0.2 (or more) degree detection] from its original state. Detailed description: I have a cable that is set in its ...
0
votes
1answer
311 views

Canny edge detection not working on Gaussian blurred images

I am trying to detect edges on this lane image. First blurred the image using Gaussian filter and applied Canny edge detection but it gives only blank image without detecting edges. I have done like ...
1
vote
2answers
132 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 ...
1
vote
0answers
16 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 ...
0
votes
0answers
13 views

Why did we label optical flow datasets with dense flow fields?

In optical flow datasets like Chairs or Sintel the ground truth is always a dense opticalFlow field. Why don't we have grounds for a per-block motion vector field?
2
votes
1answer
142 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?
1
vote
0answers
48 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 ...
0
votes
1answer
35 views

Comparing two images and showing the difference in a new image?

I would like to compare two web pages images using computer vision techniques. Show what are non-unique portions comparing both images. Which part image1 not exist in image2 vice versa.
1
vote
0answers
24 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. ...
1
vote
1answer
87 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 ...
1
vote
1answer
679 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
14 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
47 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
1answer
413 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
74 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. ...
2
votes
0answers
224 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
21 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
18 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
353 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
679 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
54 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
2answers
39 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 ....
1
vote
1answer
761 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
2answers
80 views

How to convert photo to a vector drawing

I am using the following code to convert photo to a drawing: ...
2
votes
3answers
22k views

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

This is my code: ...
0
votes
2answers
42 views
2
votes
1answer
984 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
278 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 ...