Skip to main content

All Questions

Tagged with
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 / ...
zenereyes's user avatar
-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() ...
Md. Rokonuzzaman Reza's user avatar
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 ...
LordGrim's user avatar
-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 -...
user25257614's user avatar
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://...
Dominic's user avatar
  • 461
-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(...
Indu's user avatar
  • 31
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 ...
Yajax's user avatar
  • 73
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:/...
Aparkin Matvey's user avatar
-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 ...
iosif9619's user avatar
-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 ...
Crazy's user avatar
  • 1
-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 ...
Harry Emerson's user avatar
-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 ...
Aleks-CST's user avatar
-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 ...
Wiktor Kujawa's user avatar
-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 ...
Kobe Van Den Broeck's user avatar

15 30 50 per page
1
2 3 4 5
1300