Category "opencv"

cv2 SystemError when using webcam on MacOS

I am trying to run a very simple script using opencv, which should display frames from my webcam (on a 2019 macbook pro running OS Catalina) until interrupted.

How can I detect image artifacts?

I need to make the script that will return True if image contains visual artifacts that look like gray clusters of pixels Kind of artifact that I want to catch

Fastest way to remove white background from image/video

I need to make the below faster as I need it to run on a video. Basically I am trying to remove a white background on a video and then overlay that onto another

Evaluating Dots and Noise in an Image

I have an image that consists of small black dots, and in each dot's vicinity there is some noise that appears as grayish smudge. I'm trying to use some sort of

Python3 'cv2.resizeWindow('img', 500,500)' error

I am trying to run this face tracking program provided here, but running the python program returns; Traceback (most recent call last): File "C:\Users\User\De

How to read grayscale img from a video with OpenCV?

I read all pictures from my pic directory and then convert them each to gray-scale with canny edge detections before writing it all to a video. But, when I use

How fix "unresolved external symbol" during OpenCV building with "WITH_QT" flag on in Visual Studio 2019?

I want to build an OpenCV library with Qt support from the source with CMake and Visual Studio 2019. Here are steps I did: Downloaded both opencv-4.5.5 and open

normalize image with opencv in c++?

I have a TfLite model that takes a standardized float32 image as an input, the pixel range should convert from the [0~255] to [-1~1] I wrote a demo function but

What can cause an LNK2019 Error when building a project?

I built my program with wxWidgets Library and OpenCV. I set up my project by first including wxWidgets property file as follows: Property manager where property

Is there a way to guarantee a certain number of lines detected with cv2.HoughLines()?

This question is an extension to my previous question asking about how to detect a pool table's corners. I have found the outline of a pool table, and I have ma

Show the center coordinate of the object tracking bounding box

I would like to know how I can print the tracking coordinate rectangle onto the video. I want the coordinate of the center point of the rectangle and, of course

Count Unique Faces from Image dataset

I'm using OpenCV's haar cascade(haar-classifier) to detect faces in the image and storing those faces(cropped from the image) in one folder. I've around 10000+

find object canny edge detection and remove noise background

Hello i am trying to get this canny edge detection in this but what I achieve is how to remove noise from the background like the example one and only show th

How to record depth stream from realsense L515

I have a depth camera (Intel Realsense L515) and I do like to record a video of the depth. I have seen this answer which is using FFMPEG, but I didn't know how

convert cv::mat to IplImage

Mat m = Mat(4, 4, CV_8UC3); IplImage * iplImage = cvIplImage(m); error: cannot convert ‘_IplImage’ to ‘IplImage*’ {aka ‘_IplImage

How can I go about averaging different sized images?

I have a collection of images from tissue sections which contain a specific area of interest. Given this is biology, each image is slightly different (position

Why is there an extra row of zeros in the histogram of images in a folder?

I have a folder comprising 20 images (.jpg format). I am trying to obtain the histogram of each of the images and store it as a Pandas data frame. My code is sh

Build OpenCV for Android with CMake's ExternalProject_Add

I am creating an Android library that uses OpenCV via NDK. It doesn't require any Java parts of OpenCV, native parts only, so I decided not to use OpenCV for An

How to detect checkboxes by removing noise using Python OpenCV?

I am trying to identify the checkboxes in the image The top 4 are identified but the bottom 2 are not. At the same time I would like to be able to get rid of th

cv2.VideoCapture inconsistent behavior between cap.set and loop read

I was trying to read the 600th frame of a video using cv2.VideoCapture. However, I found that the following two methods both successfully read an image but the