Skip to main content

All Questions

Tagged with
2 votes
0 answers
42 views

Can't set seeker in GSTREAMER cv2, python

I want to skip n seconds forward and backward in gstreamer cv2 capture for recorded videos. But when I use cap_gstreamer.set(cv2.CAP_PROP_POS_FRAMES, fps*skip_second) it resets seeker to beginning of ...
Alperen Ölçer's user avatar
0 votes
0 answers
47 views

Why don't I get the expected neighbor indices with OpenCVs KNearestNeighbour?

I'm trying to use OpenCVs KNearestNeighbours in python. I'd like to use it to extract Euclidean distances to the nearest neighbour. The outputs are not what I expect, which I think means I'm either ...
eek253's user avatar
  • 1
0 votes
0 answers
61 views

Image/color recognition and scanning/timing

So I am trying to make a code for game automation. There is this minigame "Claw machine". The claw moves around with the same speed all the time and I need to time it's location with a ...
Dave's user avatar
  • 1
0 votes
0 answers
35 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 ...
Jay's user avatar
  • 1
-4 votes
0 answers
30 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 ...
Girish Gopi's user avatar
-2 votes
0 answers
44 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 ...
chat free's user avatar
1 vote
0 answers
35 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 ...
Helli KARI's user avatar
0 votes
0 answers
44 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....
Matrodsilver's user avatar
0 votes
0 answers
97 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 ...
Desert Road's user avatar
0 votes
0 answers
77 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 ...
Dyragon's user avatar
0 votes
0 answers
78 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 ...
msd's user avatar
  • 91
0 votes
0 answers
103 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....
Mike B's user avatar
  • 3,506
0 votes
0 answers
85 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 ...
Shil Majumdar's user avatar
1 vote
1 answer
128 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 ...
Safaa Mhirsi's user avatar
0 votes
2 answers
63 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 ...
Markuss Celms's user avatar

15 30 50 per page
1
2 3 4 5
1919