All Questions
28,775 questions
0
votes
0
answers
22
views
Opencv Contrib Python 3.4 with Python 3.12 Version
Would it be possible to install the
opencv-contrib-python==3.4.11.45
on a Python version 3.12?
I want to use the patented algorithm SURF Feature Detection. It says that when I install the opencv ...
-4
votes
0
answers
24
views
Open CV failure with zero bytes images and videos frequently [closed]
I wrote an opencv based program that runs on a loop. The code uses YOLO framework. But, it goes like the opencv fails to write images with cv2.imwrite() and videos with the video writer object, not ...
-2
votes
0
answers
38
views
OpenCV VideoCapture not working with DSHOW backend on Windows [closed]
I'm trying to initialize the webcam using OpenCV on Windows with the DSHOW (DirectShow) backend to avoid potential issues with the default backend. However, it still throws the same error, and the ...
1
vote
0
answers
31
views
Why don't the custom markers (lines and circle) appear on mouse click in OpenCV using setMouseCallback?
I'm working on an object tracking application using OpenCV and YOLOv8. I want to display a custom marker (a circle and two crossing lines) at the center of a detected object when I click on it.
I'm ...
0
votes
0
answers
40
views
Haar Cascade classifier freezing code's execution
Trying to use Haar Cascade classifier, the program stops indefinitely using this code:
import cv2
haar_file = cv2.data.haarcascades + 'haarcascade_frontalface_default.xml'
face_cascade = cv2....
0
votes
0
answers
95
views
Raspberry Pi Camera Flask Streaming
I am setting up a flask application on a pi zero to stream video via LAN. The camera can take normal pictures using libcamera-still command line, but when trying to stream the video the below blurry ...
0
votes
0
answers
74
views
i have working eye detection using OpenCV in python but can't manage to save those eyes as an image
I have tried various eye recognition but so far only this one worked for me. But i need to export those eyes as image (.jpg). I have done similar code with faces but it will just not work with eyes. I ...
0
votes
0
answers
75
views
Gtuner IV doesn't detect OpenCV
I have a Titan Two gaming device, which uses software that can be downloaded here: https://www.consoletuner.com/titan-two-downloads/. I can't figure out how to install OpenCV so it can detect it. I've ...
0
votes
0
answers
100
views
How to catch findTransformECC error (-7:Iterations do not converge)
I am using ECC for camera motion compensation but it fails with the following error:
OpenCV(4.11.0) /Users/xperience/GHA-Actions-OpenCV/_work/opencv-python/opencv-python/opencv/modules/video/src/ecc....
0
votes
0
answers
84
views
cv2 cap.read() returns FALSE when reading a mp4 file
I’m using OpenCV in Google Colab to read an .mp4 file using cv2.VideoCapture(). The file opens successfully and the frame count is correct, but cap.read() always returns False, and no frames are ...
1
vote
1
answer
125
views
Image matching fails with low confidence using pyautogui and OpenCV
I'm working on automating GUI testing using OpenCV and PyAutoGui. I tried both pyautogui.locateOnScreen() and cv2.matchTemplate() to detect UI elements by matching a reference image inside a screen ...
0
votes
2
answers
61
views
Python CV2 and tkinter canvas
I have been working on face recognition tool and I have to draw a square on an image.
The problem is before the last line cv2.rectangle(photo1.....) because the image is not a cv2 it says I have given ...
-1
votes
1
answer
79
views
resizing an image before overlay causes problems
I have the following code:
def def showData(frame, extracted_boxes, scaleFactor):
# frame = cv2.resize(frame, (0,0), fx=scaleFactor, fy=scaleFactor)
overlay = frame.copy()
for idx, ...
0
votes
0
answers
45
views
Unable to load opencv-python-headless using lambda layers - cv2.abi3.so file not found
I have a Python 3.9 Lambda function which has opencv-python-headless as a dependency.
Due to the size limitations of the zipped lambda package, I have created a lambda layer with the opencv-python-...
-2
votes
2
answers
104
views
Crop from image using OpenCV without including green - OpenCV & Python
Recently began developing a basic ANPR application using OpenCV and PyTesseract. The overall contouring and cropping seems to work but there is a glaring problem in that i'm unable to figure out how ...