All Questions
19,488
questions
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
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 ...
-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
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://...
-3
votes
0
answers
60
views
why cv::waitKey(x) is not closing frame after x seconds? [closed]
#include <opencv2/imgcodecs.hpp>
#include <opencv2/highgui.hpp>
#include <string>
int main()
{
std::string path = "wallpaperflare.jpg";
cv::Mat img = cv::imread(...
0
votes
0
answers
28
views
Ceres-Solver-does the initial reference 3D point matter? Experiencing significantly high reprojection error
So I have a set of 2d-3d correspondence points where the 2d coordinate points are detected by a corner detection algorithm (not written by me, and verified to be correct) and 3d coordinate points ...
0
votes
0
answers
42
views
OpenCV issue with including lib in CMake (Clion)
I have this CMake file in my project:
cmake_minimum_required(VERSION 3.28)
project(AICS)
include_directories(include)
include_directories(src)
set(CMAKE_CXX_STANDARD 17)
set(OpenCV_DIR "C:/...
-6
votes
0
answers
62
views
How to detect and measure small dents on a car body using OpenCV and C++? [closed]
I'm developing a hail damage scanner that detects and measures even the smallest dents on a car body using high-resolution 3D models. I'm using C++ and OpenCV for this purpose. My goal is to ...
-1
votes
0
answers
98
views
How do I mark the differences between the two pictures with C++?
I want to compare the two images below, but none of the codes I have tried produce any meaningful output. Here are the pictures :
Orginal
Changed
Desired Result
First, the sizes of the pictures are ...
-1
votes
1
answer
58
views
How to include opencv headers without using cmake?
I installed the opencv library by using apt:
sudo apt install libopencv-dev libopencv-contrib-dev
But how to involve the installed library into my own project without using cmake? I tried directly ...
-3
votes
0
answers
98
views
Issues linking to MSYS2-installed OpenCV libraries in Visual Studio Code
Windows 10
Visual Studio Code
Compiler: C:\msys64\ucrt64\bin\g++
When compiling the following code, I get no errors, and it prints out "Testing OpenCV version: 4.9.0" in the terminal as ...
-2
votes
0
answers
57
views
OpenCV ubuntu instalations - multiple errors
I need to install opencv from source, because I want to use opencv package for Rust and have tried many ways, how to do it. I was even able to install opencv with make, however it didn't work with ...
-1
votes
0
answers
41
views
How can I make OpenCV work normally without needing to run "CMake: Run Without Debugging" in the Command Palette in VS Code?
When I run my C++ script (located at "C:\Users\kobe_\software zone\ObjectDetection\main.cpp") in VS Code, I get this error: "Error exists after running preLaunch Task 'C/C++: g++.exe ...