Category "opencv"

ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly

I was trying to install OpenCV4 in a docker on jetson nano. It has jetpack 4.4 s os. The docker was successfully created and Tensorflow is running but while ins

How to use `cv2.findContours` in different OpenCV versions?

I am trying to use OpenCV with Python in order to detect squares in a live video feed from a Raspberry Pi camera. However, the cv2.GaussianBlur and cv2.Canny fu

How to use `cv2.findContours` in different OpenCV versions?

I am trying to use OpenCV with Python in order to detect squares in a live video feed from a Raspberry Pi camera. However, the cv2.GaussianBlur and cv2.Canny fu

"cv2.error: OpenCV(4.5.5) :-1: error: (-5:Bad argument) in function 'line'"

Traceback (most recent call last): File "C:\Users\Inspiron\PycharmProjects\car\main.py", line 13, in <module> cv2.line(img,(coord[0][0],coord[0][1],

Cannot find module '../build/Release/opencv4nodejs

I am new to OpenCV and node js, trying to learn OpenCV in node js. I came across opencv4nodejs which I found best for learning. I have followed all steps to ins

selective search in cv2 python

I am learning R-CNN, the first step for R-CNN is selective search, I used this algorithm on a sample image from my dataset. Code - ss = cv2.ximgproc.segmentatio

check IPP is enabled or not in opencv

I have system with installed opencv-3.0. I need to check whether IPP is enabled or not in the opencv. How can I check that ?

Finding similar images with different intensities/brightness

Suppose I have images as follows: What would be my options to compare the similarity between the two images? Obviously they are the same image just with diffe

Qt and Intel realsense Getting started

I didn't know where to ask as a beginner. So If you can help... I want to create a project using: Qt 5.15.0 Visual studio 2019 C++ openCV 4.2.0 (if is nece

opencv.imshow will cause jupyter notebook crash

I check other question on google or stackoverflow, they are talking about run cv2.imshow in script, but my code run in jupyter notebook. Here is my configurati

Performane issue for matlab-like reshape in OpenCV

I am translating a Matlab code to OpenCV. The Code Involves lots of reshaping of large Matrices. As the matlab reshape differs from OpenCV you can't just use Op

Determine if a point is inside or outside of a shape with opencv

I have images with white background and simple shapes in them (each image has one shape). I want to determine if a certain point (x,y) is inside the shape or no

CalcOpticalFlowLK camera motion c++

this time i would know how can i calculate for each frame the camera motion in term of x and y pixel coordinates, i've googled and i've found that CalcOpticalFl

Understanding Hierarchy, from findContours opencv

I am trying to understand Hierarchy and findContours, from opencv c++, but am finding it difficult. I did go through this question here, but I still am not abl

JPEG Compression using OpenCV

I'm trying to perform a basic JPEG Compression (DCT + quantization + IDCT) using OpenCV not using entropy-encoding/Huffman-coding. The problem is that after I d

Resize image to maintain aspect ratio in Python, OpenCv

I'd like to get a 1000 x 1000 picture in Python from any input picture so that the input doesn't lose it's aspect ratio. In other words, I want to resize the in

Python OpenCV Contour Tree Hierarchy Structure

I am trying to implement the algorithm found here in python with OpenCV. I am trying to implement the part of the algorithm that remove irrelevant edge boundari

Calculate affine motion model coefficients using OpenCV in C++

In order to correctly represent the camera motion characterization, I have to find different camera operations (such as Zoom, Pan, Rot and Tilt) in a video. The

How to decode mpeg motion vector using OpenCV in C++?

I want to decode the MPEG motion vectors using OpenCV in C++. Is there any function in OpenCV through which we can get this? Brightness may not be constant thro

mat is not a numerical tuple : openCV error

i have write down a code showing error i ma not getting it: Please help: Its showing mat is not a numerical tuple: import cv import cv2 capture = cv2.VideoCap