Category : opencv

As a start to a new project, I am wanting to use detect scale invariant images in opencv. To start off, i tried simply compiling and running the example script found from opencv docs (though very slightly modified) #include <iostream> #include <opencv2/core.hpp> #include <opencv2/highgui.hpp> #include <opencv2/features2d.hpp> #include <opencv2/xfeatures2d.hpp> #include <chrono> using namespace cv; using namespace ..

Read more

I was trying to run a OnnxRuntime Inference on a image file of jpg format using a pretrained Squeezenet model as illustrated in the blog: https://leimao.github.io/blog/ONNX-Runtime-CPP-Inference/ using the script in the link: https://github.com/leimao/ONNX-Runtime-Inference/blob/main/src/inference.cpp . It did work: Now I had a requirement to replace the the input file format from jpg to raw, but upon ..

Read more

Im trying to use OpenCV to detect a QR-Code in a Image. As an Example, i downloaded a basic QR-Code from here: https://de.wikipedia.org/wiki/Datei:QRCodeWikipedia.png, or the direct link is this: https://upload.wikimedia.org/wikipedia/commons/c/cb/QRCodeWikipedia.png What i did is downloading OpenCV 4.5.5. for Windows directly here: https://opencv.org/releases/, and add the include/lib dirs into my project. Now, my code wont detect ..

Read more

I need to filter (multiply) my OpenCV DFT matrix with some custom filter mask (like a band-pass filter). With DFT_COMPLEX_OUTPUT, applying this mask is quite trivial (just multiply real and imaginary channels with the filter mask), and I have that working well. I am doing milions of these operations, and now I want to speed ..

Read more

Basically, I want to create one array or vector named processed_images in EdgeDetector.hpp and I want to add couple of img variable into it. How can i define the variable and append img variable into it ? Here is my script: void EdgeDetector::processImages(){ for (string image: EdgeDetector::images){ Mat img = imread(image, IMREAD_COLOR); Mat gray; cvtColor(img, ..

Read more