Category "opencv"

OpenCV cannot read manually edited YAML parameters

I manually add a custom matrix to a YAML file for openCV parameters, the problem is it cannot read the matrix and so OpenCV returns none-type. I do not know wha

How can i find selected area in photo using OpenCV?

I need to detect a selected area in a photo: Original photo: I used this code: import cv2 as cv import numpy as np img = cv.imread(cv.samples.findFile('./Pict

Is it possible to get the number of pixels of the detected object with Detectron2?

I'm totally new to deep learning. I have a Detectron2 model detecting solar panels located on rooftops. I'd love to calculate the surface of the detected panels

Checking images for similarity with OpenCV

Does OpenCV support the comparison of two images, returning some value (maybe a percentage) that indicates how similar these images are? E.g. 100% would be retu

OpenCV HoughCircles parameters for detecting circles (microstructure spheres)

I am creating program that helps processing microstructure images. One of the function is detecting circles with the same radius. User draws one circle, my prog

Add a button with functionality in c++ using Visual Studio

I am a newbie to c++ and the IDE I am using is Visual Studio '22. I have written a code to detect a face (eyes and mouth too) and save the roi to a folder on th

Finding a specific shape position in the Image

I want to Finding a specific shape position in the Image. Firstly, I have a main image like below and I have multiple icons like below. I want to find the posit

Installing RTSP Server Python bindings on Linux

I am trying to install Python bindings of RTSP Server on my Linux camera. I have working Gstreamer, opencv. When I try installing the below, I get the following

Trying to print the center position of a square

I have tried to use cv2.putText and it appears to show the position based on the the top right of the window and not the actual center of the image. It will pro

showing image from 4k video

Hi i'm using opencv to read the frame of a 4k video: ret, frame = cap.read() gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY) cv2.imshow('frame', gray) but it do

How to send Frame from openCV client to server

I am trying to send input from a capture card on a client to a server. I can get the capture card to display on the client, but I am having some trouble sending

Why converted images now shown as grayscale?

I am working on image compression problem, i want to convert the images from 3 channel to 1 channle , i used tf.image.rgb_to_grayscale(img_data_array, name=None

Fixing green YUYV frame format being streamed using OpenGlView

I am using a library to do RTMP streaming from an USB/UVC camera in android. The library I am using is this one. This library works just fine for android USB ca

Failed to Build Wheel For Opencv

I upgraded wheel, pip, and setuptools all to the latest version, with the following command. pip3.9 install --upgrade pip setuptools wheel When I try to install

How to determine between inner and outer contour with Python OpenCV?

I want to have a polygon region of interest and would like to perform an object detection algorithm within this area. For example, the user gives some points an

SIFT match computer vision

I need to determine the location of yogurts in the supermarket. Source photo looks like With template: I using SIFT to extract key points of template: img1 =

How to convert CMSampleBuffer to OpenCV's Mat instance in swift

I am working on an OpenCV project where I am taking input from iPhone native camera as CMSampleBuffer now I wanted to create Mat instance that is required in Op

EasyOCR disables Cuda GPU when installed

Hello after installing EasyOCR via pip install easyocr via Anaconda Prompt (base) I receive this error. OpenCV(4.5.4) D:\a\opencv-python\opencv-python\opencv\m

SIFT detection / FLANN matching results in matches with way too long distance

I'm doing some feature detection/pattern matching based on the OpenCV example code shown at https://docs.opencv.org/3.4/d5/dde/tutorial_feature_description.html

Opencv 4.5.4 YoloV5

I export the Yolov5 .pt model to onnx with the command-line command python3 export.py --weights best.pt --include onnx --simplify I am able to read the yolov5.o