Category "opencv"

How to crop and extract stamp from an image with OpenCV?

I am new to OpenCV. I have a "simple" image of a stamp that I have already processed a bit, as you can see in the code below. Now I have the problem of cropping

How to know the name of a library installed with vcpkg?

In my simple app which I build with cmake I use opencv, which is installed with vcpkg. On CMakeLists.txt I have to find_package(OpenCV REQUIRED), replacing Open

How to get the value of a python script I run through ssh

I am using 2 raspberry pi and each of them has a camera connected. I am trying to run, from the first pi, a script to get the video feed of the second one. And

I can't install opencv-python because I don't have vs?

whenever I try to pip install opencv-python it comes with an error saying I need to install visual studio 2022 but I already have it installed. I'm completely o

How to desaturate the background of an image in Python

I need to desaturate the background of this kind of images. I thought I can find the largest contour and desaturate everything around. So far I can find the lar

How to convert YOLOv5 PyTorch model to OpenCV DNN compatible format

Could anybody please help me to convert YOLOv5 PyTorch model to ONNX or TensorFlow format to be able to use it with OpenCV C++ inference? I used this tutorial t

Epipolar line using essential matrix for calibrated camera is wrong

I wanted to get the essential or fundamental matrix for calibrated cameras (R, T, Ks are given). There are two cameras. Is this step correct to get the essentia

CMake Error at CMakeLists.txt:7: Parse error. Function missing ending ")". End of file reached

cmake_minimum_required(VERSION 3.0.0) project(opencvtest VERSION 0.1.0) include(CTest) enable_testing() set(OpenCV_DIR C:\Users\Sayar\opencv\build\) find_pac

DARKNET/OPENCV/GSTREAMER: module v4l2src0 reported: Failed to allocate required memory

I'm trying to run the Yolov4-tiny demo of Darknet but am encountering the following error: [WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1824) handl

Face Detection in Preview Camera Feed on Flutter

How do we "draw a square" on detected faces on camera preview feed in Flutter? Is there a cross platform solution to this? Flutter provides a Camera Plugin, but

How can get the hexagons and circle in this image with opencv?

I can's find the hexagons and circle clearly in this image, in the process of finding, i have used too many normal ways but there was still have no effective

Install OpenCV on Mac Catalina

I am trying to install OpenCV on my Mac using this tutorial: https://medium.com/macoclock/setting-up-mac-for-opencv-java-development-with-intellij-idea-fd2153eb

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