Category "opencv"

Improve edge detection using opencv

so I am working on a project to scan analog photos. The program should detect the edges and crop it automatically. For that I am using Python and OpenCV. My pro

How to crop and store bounding box image regions in Python?

My idea is to use the multiple bounding box coordinates of the abnormal regions for a given image and crop these regions to save to a separate folder. I have

How to detect the exact color of the images using hsv color model and opencv

I have datasets of images of gemstones.I have categorised the gemstones into folders based on their colours.(That is Red, Blue, Pink,Purple,Yellow). What I want

opencv video window not opening though sucess true and camera opens wbut no video window

Can somebody help me with finding error on the below code? I am working on tutorial Face Detect Attendance system python opencv but cv fails to load camera....

cv2.error: OpenCV(4.5.2) 👎 error: (-5:Bad argument) in function 'cvtColor'

this is my code and I have a problem. What is the solution for it, please? I try to make a screen recorder: import numpy as np import cv2 import pyautogui code

Linking opencv 3.2 for cv_bridge in Ubuntu 18.04 Jetson

I need to use cv_bridge and transfer the images to vison wx. I am using makefile to link / compile. The problem I have is I don't know where the header files a

cmake: statically link against opencv libs

On Ubuntu 20.04: sudo apt install libopencv-dev Result: kwu@Dev-KWu:/usr$ find . -name "*opencv_imgproc*" -o -name "*opencv_core*" ./lib/x86_64-linux-gnu/libope

OpenCV with Blazor WebAssembly?

I'd like to build a web app with Blazor WebAssembly and do some image processing on the client side with OpenCV. I'm having difficulty using OpenCV on the clien

OpenCV - Calculating SIFT Descriptors for given Harris Corner Features

I need to calculate the SIFT descriptors for given features from the Harris Corner detection in OpenCV. How would I do that? Could you provide me some code exam

Particle detection with Python OpenCV

I'm looking for a proper solution how to count particles and measure their sizes in this image: In the end I have to obtain the lists of particles' coordinates

Find Corners of pool table for perspective warp with OpenCV

I have an image of a pool table with slight perspective distortion: I am trying to un-warp the image (such that the corners of the pool table correspond to the

Find Corners of pool table for perspective warp with OpenCV

I have an image of a pool table with slight perspective distortion: I am trying to un-warp the image (such that the corners of the pool table correspond to the

Find question text block in image with Python Opencv

How can I select question blocks in a jpg file with questions in Python code? The codes below select texts. I want to select question blocks with their choices.

solved - OpenCV DNN YOLO V4 with CUDA in Python is 5x Faster than the same code in C++

TL;DR; it was a stupid bug in my code. Not a cuda problem at all. I'm trying to compare the performance of the following code: frames = ... for i in range(2000)

How to fill holes or reduce noise in an image?

I need to reduce the noise in images like the one bellow, i.e. fill the holes in the white object. I tried something with opencv but it ended up removing part o

How to fill holes or reduce noise in an image?

I need to reduce the noise in images like the one bellow, i.e. fill the holes in the white object. I tried something with opencv but it ended up removing part o

How to get one of the specific values(with the specific index) of this iterable enumerate (results.pose_landmarks.landmark)?

import cv2 #OpenCV is the library that we will be using for image processing import mediapipe as mp #Mediapipe is the framework that will allow us to get our po

Django manage.py runserver graceful reloading

I am working on a Django project, which integrates a webcam and OpenCV. For the webcam access, I use following code. The webcam can be released if I use Ctrl +

OpenCV AttributeError module 'cv2.cv2' has no attribute 'Tracker_create'

I have tried to run this code but get an Attribute Error. Any help would be greatly appreciated. import cv2 import sys (major_ver, minor_ver, subm

OpenCV contrib / Surface Matching / Demo script wrong result / Python / Point Pair Features (PPF)

Installed versions: opencv-contrib-python 4.5.4.60 opencv-python 4.5.4.58 I try to run the demo python script (ppf_load_match.py) for surface matching i