Category "opencv"

How to increase speed of video playback within Python using openCV [duplicate]

I am writing a program that draws a line on a video where the first pixels of the railing are encountered, my problem is that the video playba

Filling contour won't work using drawContours() thickness=-1 [duplicate]

I am trying to fill a contour which was obtained by separately thresholding 3 color channels. image_original = cv2.imread(original_image_pat

Join broken lines in image using OpenCV for python

I am working on a project in which I have to complete the broken lines in the image below and then calculate the area. Is there any way to complete the broken l

Join lines to create closed contours using OpenCV

I have the following image: And I would like to join all of these "green" linear pixels to create a bounding box contour - is this something that is possible w

Join broken lines in image using OpenCV for python

I am working on a project in which I have to complete the broken lines in the image below and then calculate the area. Is there any way to complete the broken l

Low pass filter with apply function - Help to solve

I have a question.how can I write the code. I want to create an image interface. The class filter should apply a low-pass filter to a given image and should be

Compare two images and find all pixel coordinates that differ

I have designed a program that compares two images and gives you the coordinates of the pixels that are different in both images and plots the using pygame. I d

Why does find_objects give a bunch of Nones and then range of the whole image?

I am trying to find all objects detected in difference of frames, I thougt this would give a list of each area detected in the threshold, but find_objects is gi

OpenCV Android React Native unknown exception on some functions in imgproc module

I'm trying to use OpenCV in an mobile app written with React Native. For now i only focus on the Android part. I use the official OpenCV for Android release. I

How to delay in c++?

I am working on a rehabilitation application that relies on four ARuco markers,i need to draw on the four markers in the exercise sequence i.e. the object appea

How to run the code using two OpenCV versions python at the same time?

Two versions are installed on my computer, OpenCV 3.3.1 is working with ROS library (kinetic) and OpenCV 4.2 has some advantage compared to 3.3.1. So, I'd like

Opencv ellipse() bug?

cv.ellipse( img, center, axes, angle, startAngle, endAngle, color[, thickness[, lineType[, shift]]] ) The startAngle is the starting angle of the elliptic arc

CV2: "[ WARN:0] terminating async callback" when attempting to take a picture

I am trying to take a picture from the defualt carmera with python, to do this I am using openCV (import cv2 from python shell). However, when I attempt to disa

Segmentation fault (core dumped) in image pyramid construction

I am looking at the source code of orb-slam2. I see that the source code of feature extraction written by the author contains a piece of code for building an im

joining dotted line by interpolation in an image

I have this image as shown below. It is a binary mask I created this image using the below code. Basically I got the x_idx, y_idx for just those white pixels,

How do I Display Two Continous Data Stream into OpenCV.imshow()?

I have this project that combines two data from two different sensors, a TFLuna LiDAR and a Raspberry Pi Camera Module V2, for an Object Detection self driving

How do I perform row arithmetic in OpenCVSharp?

In c++ I can perform row arithmetic on a matrix: Mat pPrime = Mat::ones(Size(3, 3), CV_64F); pPrime.row(0) = pPrime.row(0) / pPrime.row(2); Is it possible t

increase opencv webcam speed

i need to capture a video with my webcam. I would like to use open cv for my usage. The skript you can find down under needs a bunch of time to start the captur

How to resize text for cv2.putText according to the image size in OpenCV, Python?

fontScale = 1 fontThickness = 1 # make sure font thickness is an integer, if not, the OpenCV functions that use this may crash fontThickness = int(fontThicknes

opencv4nodejs how to calculate the blur degree with variance of laplacian

I have a code: const cv = require('opencv4nodejs'); let text = ""; let image = cv.imread('./images/focused.jpg'); let gray = image.cvtColor(cv.COLOR