Category "opencv"

npm install opencv4nodejs error on mac m1 bigSur

I have been trying to install opencv4nodejs package with npm install opencv4nodejs command. But unfortunately the below is being thrown. Have done some research

How to use the output of a CNN as the input of another in an autonomous vehicle

I am developing a mini autonomous car using 3 CNNs and a camera sensor using this approach. One of the CNNs detects lanes on the images and outputs images wit

QR Code Detection from Pyzbar with Camera Image

I am having trouble detecting QR code using Pyzbar. Under perfection condition, I am able to detect the QR code using the original png image. However, when I do

TypeError: Can't convert vector element for 'scores', index=0

I'm trying to take the output of a yolov5s.onnx model and and run NMSBoxes on it. But I keep getting this error: Traceback (most recent call last): File "pyth

numpy and cv2, no modules available after installation via pip on linux

I installed opencv and numpy using pip on debian 11.2 with python 3.9. In visual studio the modules aren't available and terminal returns: Traceback (most recen

AttributeError: module 'cv2.cv2' has no attribute 'CascadeClassifer' (OpenCV Face Detection)

I have tried running this code for the OpenCV face detection and upon running it I get the error (AttributeError: module 'cv2.cv2' has no attribute 'CascadeClas

TypeError: lowerb is not a numpy array, neither a scalar

I needed to run some parts of the code in GPU using cupy instead of numpy. So, I only made comment out for this line # import numpy as np and used this line ins

Estimating distance from camera to ground plane point

How can I calculate distance from camera to a point on a ground plane from an image? I have the intrinsic parameters of the camera and the position (height, p

Is is possible to use OpenCV.js with Web Worker in Angular?

I'm trying to use OpenCV.js in web workers in Angular. My project needs to conduct multiple graphic computings at the same time, which would take long time. But

How to detect corners of a square with Python OpenCV?

In the image below, I am using OpenCV harris corner detector to detect only the corners for the squares (and the smaller squares within the outer squares). Howe

OpenCV Python: How to overlay an image into the centre of another image

How can I paste a smaller image into the center of another image? Both images have the same height, but the smaller one has a width that is always smaller. The

Errors/Empty video after using write() from cv2.VideoWriter

I am performing template matching and everything seems to be working fine in cv2.imshow(). I want to write a video with all frames resulting from the template m

Connecting to Cognex Camera using Open CV and Python

My problem is that I need to take a picture from the camera and process it with opencv and Python to get coordinates and send them to a robotic arm, but I can't

How to properly use cv2.findContours() on opencv version 4.4.0.?

Im trying to use cv2.findContours() on opencv version 4.4.0. (Im using Python version 3.8.5) but it throws an error, I cant figure out. Im not sure whats wrong

Python opencv Aruco "No module named 'cv2.aruco'"

I am running an Ubuntu virtual machine with, Python 3.6.1, Anaconda 4.4.0 (64-bit). I am trying to run the code on this website. When I try to use import cv2

How to convert Yolo format bounding box coordinates into OpenCV format

I have Yolo format bounding box annotations of objects saved in a .txt files. Now I want to load those coordinates and draw it on the image using OpenCV, but I

"In-source builds are not allowed" in cmake

I'm new to cmake, and I'm only using it to install opencv on my ubuntu linux. Here's the command I ran: cmake -DCMAKE_BUILD_TYPE=Release DCMAKE_INSTALL_PREFIX=/

Drawing bounding rectangles around multiple objects in binary image in python

I am trying to write some easy code in python to produce bounding rectangles around objects in a binary image, where there may be 1 or more objects. This is fa

How are openCV matrices serialized in Google's mediapipe

Google's mediapipe framework is able to work with openCV matrices across different languages, certainly C++ and Python. Since it uses protocol buffers to commun

divide image into two equal parts python opencv

can someone tell me how to implement a bisection of the image into upper and lower part? so that I could overlap them. for example, I have an image and I should