Category "opencv"

What do the h31 and h32 terms in a homography matrix mean?

I have used the MOTION_HOMOGRAPHY function in OpenCV (python3.6) to register a pair of images, and I am trying to interpret the 3 x 3 warp matrix the function r

Inspite of my model being properly trained and dumped in an pickle file and getting an unwanted error while testing the file using cv2.VideoCapture

My model is already trained and is saved in model_trained.pkl file. And I'm trying to test the same using video captures. But getting error "FileNotFoundError:

How To Detect There Is A Piece On A Chess Board

I'm Tring To Convert A Chess Board Image Into A Matrix With The Pieces On The Board. like so: [ [P, P, P, P, P, P, P, P,] [P, P, P, P, P, P, P, P,] [-, -, -,

CV2 puttext is not adding special characters

I am trying to update text om images using CV2.Puttext feature. Its adding all english words properly but special/asci characters like №,■,<<,

hand tracking system using opencv error:TypeError: handDetector.findHands() missing 1 required positional argument: 'img'

I'm following an online advanced CV course but the code wouldn't run properly for me. These are the error messages I've gotten: #Traceback (most recent call las

mingw32-make fails in cmd due to temporary errors of non-literal type and non-trivial destructor in open CV sources

I need to inject Open CV to Qt according to this tutorial, but at the stage mingw32-make on cmd I got en error. C:/opencv/sources/3rdparty/protobuf/src/goog

Use cv2.findContours output as plt.contour input

I have the following image I find the contour using contours, hierarchy = cv2.findContours(thresh, cv2.RETR_LIST, cv2.CHAIN_APPROX_NONE) contour = contours[0]

RGB to V (from HSV)

I am trying to convert an RGB image to its Value component. I cannot use the RGB2HSV function because I have been instructed to convert it without it. If I am n

EmguCV never open ".jpg" file but open only ".tif" files..Why?

I am using EmguCV in Visual Studio 2022 and I am simple trying to read and open my image but it only opens .tif image files not .jpg or any other file... When I

How to open GStreamer pipeline in OpenCV

I'm a software engineer in South Korea. I'm trying to open webm video using GStreamer pipeline in opencv program But I can't find any solution to figure out it.

find_package() ignores <PackageName>_ROOT

In my CMake script I append the path to a folder containing <PackageName>Config.cmake to <PackageName>_ROOT and then call find_package(<PackageNa

2D Ball Stabilization Platform

I am trying to do 2D ball stabilization platform which always keeps the ball which is put on the platform, center of the platform (x= 0, y=0). Here is my restri

Drawing with cv::circle's over a line Iterator in c++ with openCV

I'm creating an iterator line, which I pass through a for() and draw with cv::circle points. So far so good, form a line drawing, by the iterator's line points.

(-5:Bad argument) in function 'rectangle' - Can't parse 'pt1'. Sequence item with index 0 has a wrong type

As I detect my tflite file, the problem happened. The command I wrote. python detect.py --weights ./checkpoints/yolov4-tiny-tf.tflite --size 416 --model yolov4

Use OpenCV to identiy hollow and filled circles

I'm using OpenCV houghcircles to identify all the circles (both hollow and filled). Follow is my code: import numpy as np import cv2 img = cv2.imread('images/3

Python/Opencv save multiple images to folder with different names

I am working on image processing, I have a folder with all of the images that needs to be processed, and I want to save all the processed images to another fold

Regarding Multiple ROIs in an image using python/opencv

When you select multiple ROIs in an image, how to display them all simultaneously in that image white selecting one by one? How to deselect some selected ROIs i

Detection and classification of objects placed in front of a video camera

Through this code, I aim to detect an object in real-time that will be put in front of the video camera and classify it. My reasoning is the following I tried t

An error occurred while performing face recognition using opencv

I took a face recognition lecture using opencv and I followed it, but I get an error import cv2 model = 'data/res10_300x300_ssd_iter_140000.caffemodel' config

Image segmentation for extracting letters

I am trying to extract the individual letters from the below image Below is the code which I implemented for the segmentation img = cv.imread('image10.jpg') i