Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Browsing all 600 articles
Browse latest View live

Create Aruco Marker in Visual Studio 2012 : opencv_aruco320.dll is missing...

I followed the entire steps from OpenCV Basics - 15 - Aruco Markers tutorial video : youtube.com/watch?v=ZI9uZ9EEeYQ about how to create aruco marker using OpenCV in Visual Studio(by George Lecakes)....

View Article


Alignment using COG

Hello..i am using COG to align an image. But, when the image is being translated to the center of gravity, it is showing the old image boundary and the new translated image, which is not a good...

View Article


How would I solve this runtime error of this dll opencv_ffmpeg320_64.dll.

Am new in to openCVAm getting this problem when I try to compile: Program received signal SIGSEGV, Segmentation fault. In read_InputMediaStream_FFMPEG ()...

View Article

Camera pose from a moving camera

Hi I'm doing a drone landing software using opencv. I have 4 rectangles with different colors on the ground and I need the drone to land in the middle of the rectangles. I'm a newbie in opencv I would...

View Article

How can I load my trained svm to a people detector on a video?

I'm trying to test a HOG detector with a SVM I trained and saved in an .xml file. The problem is I'm not understanding how can I load it to use it with detectMultiscale. Here is he code: int main () {...

View Article


UV disparity map representation

I am currently working on vision based obstacle detection using the Intel RealSense R200 camera. My plan is to use the disparity image to generate a UV disparity map and then use the UV map to "box...

View Article

the last step of add uniform lbp to opencv Lib

i add below code to LBPH::train(InputArrayOfArrays _in_src, InputArray _in_labels, bool preserveData) after produced the mat lbp_image (in opencv source) static int uniform[256] = // for exactly 8 bits...

View Article

I was able to open ids camera the code in visual studio 2012 with opencv...

#include #include using namespace cv; using namespace std; int main() { Mat CameraFrame; Mat Grey; VideoCapture cap; char keypressed; //Opens the first imaging device. cap.open(0); //Check whether...

View Article


I have the codes for live video and finding contours separately.I would like...

CODE FOR LIVE VIDEO #include #include using namespace cv; using namespace std; int main() { Mat CameraFrame; Mat Grey; VideoCapture cap; char keypressed; //Opens the first imaging device. cap.open(0);...

View Article


picamera alternative in openCV(C++)

Hi, There is a python package available for controlling Raspberry Pi camera called [picamera](https://picamera.readthedocs.io/en/release-1.13/#) which exposes all the options available in...

View Article

Initialize MAT from pointer - help.

Hi, Im working with a camera, and the camera gives me the image in its own type of variable, that contains image width , height , depth , and other things. In this data i receive a pointer for the...

View Article

How to Draw Crosshairs/Marked Axes

Is there some OpenCV routine that will draw crosshairs and/or mark the axes of an image in a Mat with tick marks? I have looked a bit and see no mention of one but it seems like something that a lot...

View Article

Implementing SGBM block matcher in CUDA

Hello, i just wanted to ask about your advise. I need to use the SGBM (semi-global block matcher) to get a accurate disparity map. The SBM (stereo block matcher) is delivering quite bad and unuseful...

View Article


I am not able to run the LBPH file in opencv.

It keeps giving me the error error: ‘class cv::face::FaceRecognizer’ has no member named ‘set’ and similar errors for all the getInt and so on functions. Please help.

View Article

OpenCv calculate or convert the speed of a moving Object

I would like to get the real speed of a moving object from my camera or webCam I used OpenCv `**BackgroundSubtractorMOG2**` then it return me the Foreground image( the moving object) then I draw two...

View Article


The program to count number of white and black pixels in a binary image is...

int count_white=0; int count_black=0; for (int y = 0; y < image.rows; y++) { for (int x = 0; x < image.cols; x++) { if (image.at(y, x) == cv::Vec3b(255, 255, 255)) { count_white++; } else if...

View Article

Segmentation fault (core dumped) in C++/OpenCV with functions...

Hey, I wish to learn Open-CV for a project and my purpose is to localize a green target and to put a circle around this target. When I compile my program i have no error, but when I execute it, I have...

View Article


Contour fn is not working well and not getting subpixel image by warpaffine fn

There are no errors while compiling here in the image i need to draw a contour over only a rectangular subpixel image but contours are drawn all over the image and rectangle,moreover subpixel image is...

View Article

Trying to configure OpenCV 3.1 Viz Module with Visual Studio 2015

Hello all, I am currently trying to configure my Visual Studio to work with the Viz module for OpenCV for a 3D scanning project I have been working on. My build of OpenCV only had a build and sources...

View Article

PCA in thousands of dimensions

I have vectors in 4096 [VLAD codes][1], each one of them representing an image. I have to run PCA on them *without reducing their dimension* on learning datasets with less than 4096 images (e.g., the...

View Article
Browsing all 600 articles
Browse latest View live