Questions tagged [opencv]
OpenCV (Open Source Computer Vision) is a library for real time computer vision. When using this tag, please add a language specific tag (python, c++, ...), if relevant.
opencv
73,555
questions
0
votes
0
answers
43
views
OpenCV contours sorting x-axis and y-axis
I am working on a python program to solve a wordsearch. I am using pytesseract and opencv to process an image of the wordsearch and the solution will be displayed as a text. The script processes the ...
-1
votes
0
answers
63
views
Why is the color of the line black if the BGR Code I have is red?
When running this code the desired outcome is for the line drawn to be red but it is drawing a black line. I am confused since I wrote the BGR code for white but it seems that is it is just working in ...
0
votes
1
answer
63
views
PS Camera taking too much light on OpenCV
I installed a third-party driver and firmware to use my PS 4 Camera on PC and I need it to do a object detection project. Everything works fine on camera on Windows (the screen resolution looks buggy ...
-2
votes
1
answer
41
views
I'm getting an "src is not a numerical tuple" for an opencv program I'm developing that works in their official documentation but not for me [closed]
I'm creating a python program and trying to get feed from a camera and then perform a fourier transform on it to see its spectrum. I've been trying to initialize the camera with cv2.imread() but for ...
-2
votes
0
answers
29
views
OpenCV program cannot detect more than one frame [closed]
I wanted to try using opencv for some simple face recognition (not specific faces, just if it sees a human face or not). I was using this model, installed both opencv and opencv-contrib, and it does ...
1
vote
0
answers
21
views
Opencv module dnn inference with batch greater than 1
I want to perform inference using the dnn module of opencv. This is my code:
static cv::Mat inputBlob2;
static std::vector<cv::Mat> outputs2;
cv::dnn::blobFromImages(images, inputBlob2, 1.0 / ...
-2
votes
0
answers
31
views
how to open windows when ı run the computer_vision.py [closed]
ı didn't open the windows like frame,white_region,extended_midlane.. etc. I think ı wrote the codes correctly. but it can be mistake. I don't know.I'll share my codes with you.
this computer_vision.py
...
0
votes
0
answers
28
views
crop document within an image
enter image description here
enter image description here
Hello to everyone. I am working on a project as a student. I have many such documents and my task in the project is to write a function that ...
0
votes
0
answers
21
views
OpenCV with a FLIR Lepton
I Have a FLIR Lepton hooked up to a raspberry pi 5. I have been able to confirm the Lepton works, and run it by following the instructions from the GroupGets Github repo.
import cv2
cv2.namedWindow(&...
-2
votes
0
answers
60
views
CUDA Kernel Taking: Large Amount of Process Memory
I have total 811 images with each RGB image dimension of 1440x1080. Therefore total 3.52 GB. I'm using CUDA v12.2, NVIDIA RTX 3090 GPU, and Visual Studio 2019. I'm facing two issues
After readImage() ...
3
votes
1
answer
59
views
How can I optimize the process to find the best 4-sided shape that contains my mask?
I am currently working on a project where I need to detect pool table and pool balls from a video frame.
I then need to recreate the state of the game in a 2D mini-map, and in order to do so I need ...
-4
votes
0
answers
40
views
Capture image from android camera [closed]
I am working on an application that works with cameras in android using java and android studio.
in python or cpp we can access camera with something codes like this:
import cv2 # opencv
vc = cv2....
-1
votes
0
answers
32
views
I'm struggling to compile anything with OpenCV using g++ [duplicate]
For some reason none of the commands I try are working.
Command: g++ file.cpp -o file -I C:\Users\Username\vcpkg\installed\x64-windows\include -L C:\Users\Username\vcpkg\installed\x64-windows\lib -...
0
votes
0
answers
26
views
Generate graph edges based on region boundaries on image
I want to analyze experiment data of particle packing, and specifically calculate things like coordination number. I've managed to autodetect the centroids of each particle using OpenCV thresholding ...
0
votes
0
answers
39
views
Low-latency RTSP stream using OpenCV and ffmpeg seems to ignore flags
I'm writing a Qt6 application in C++ which should display and optionally store mutltiple RTSP streams. Currently, I'm using OpenCV to capture the stream:
m_capture = new cv::VideoCapture("rtsp://...