Category "opencv"

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

How to repair the corrupted image below using opencv, python, numpy and necessary libraries

import cv2 damaged_image = cv2.imread("Corrupted.png") mask = cv2.imread("mask.png", 0) output = cv2.inpaint(damaged_image, mask, 1, cv2.INPAINT_TELEA) cv2.i

opencv 3.1.0 imread stunked, but imdecode is ok

I'm using opencv 3.1.0, tried to read an image by imread, just like Mat image = cv::imread("1.jpg"); but it stunked without any error message (performs like in

How to create x264 RTSP server with OpenCV Python with GStreamer backend

My goal is to create a RTSP server using OpenCV Python using the GStreamer backend. I have RGB images stored as OpenCV Mat, and I would like to create a VideoWr

Concatenate images from folders by their ORDER in python

I know how to concatenate two exact images, but I need to combine two images each from their own folder. I cannot do it by name of the image or don´t know

How to capture Open3d screen without saving

I want to use the open3d image screen right away without saving it as a file. However, the 'capture_screen_image' function provided by open3d must save the imag

error: OpenCV(4.5.3) :-1: error: (-5:Bad argument) in function 'VideoCapture'

I am trying to enable the IP cam that I have access to, it's feed by the browser. but couldn't able to get a video stream using an IP camera, only get a result

opencv bot Recursion Error using pyautogui , python-imagesearch, cv2

Im writing a bot using cv2 , pyautogui,and imagesearch libaries. in this function im searching for an image then I'm going to run another function when found if

How can I retain background after dilating text in image

import cv2 import numpy as np # Load image, grayscale, Gaussian blur, Otsu's threshold image = cv2.imread('1.png') gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRA

Trying to play sound with python opencv with specific pose

hello i'm trying to play some sounds with a specific gesture with my hand but don't know the conditions to play that sound while (for example): my hand is in fe

Opencv facing an error for tesseract module not found even after installations

Opencv facing an error for tesseract moule not found even after installations pip install tesseract opencv reinstallation also done but it wont work. opencv i

Real time detections not happening without creating a 5 second delay

I trained a deeplearning model (EfficientnetB0) and now using OpenCV, I want to make real time predictions on the model. But I am unable to do so without creati

Installation error OpenCV 4.5.5 from source code in Windows

I was trying to install OpenCV-4.5.5 from source on my windows machine. This machine has the latest Nvidia drivers as well as CUDA 11.6, I did not run into any

AttributeError: module 'cv2' has no attribute 'VideoCapture'

I had some problems with Opencv - cv2 in Python. This attribute problem also happens with "imread." I tried to uninstall and reinstall with contrib-Opencv,but i

Fitting a contour inside another contour using OpenCV

The idea is to have a rectangular contour, searching for the points of intersection with the triangle one (as shown in the image below) and then move the recta