Ask Your Question

rbds's profile - activity

2015-03-20 12:27:08 -0600 received badge  Famous Question (source)
2014-06-28 20:39:37 -0600 received badge  Notable Question (source)
2014-05-07 07:02:32 -0600 received badge  Popular Question (source)
2013-11-22 15:51:07 -0600 commented question object position detection

I have made an attempt, but I have not been successful. Basically I find keypoints using SurfFeatureDetector, then calculate descriptors for each set of keypoints. After this I calculate the distances between keypoints.

My question is how to define a position within the image based on these distances. Once I have the keypoints I am not sure how to proceed.

If it helps, I am basically trying to draw a ROI rectangle within the larger image. I am not sure how to get from having a vector of distances to an actual position and orientation of the object. I tried using cv::minAreaRect, but there are often a few points that are outside the ROI which makes this rectangle too large. I have also looked at Mat::locateROI but I do not think this helps.

Any suggestions would be appreciated.

2013-11-22 14:23:57 -0600 asked a question object position detection

I am trying to do object detection inside of an image, where I have a template image and search through a larger image for matches to the template. It needs to be rotation- independent, although scale independence is not as important.

Template matching seems to be slow and is dependent on orientation. I think flann based matching will work, and I have started here: http://answers.opencv.org/question/983/object-detection-using-surf-flann/

Can anyone help with how to modify this code? I need to detect object position and orientation, but I don't really need to map or draw the lines.

Using openCV 2.4.7, visual studio 2012.

2013-11-21 08:51:58 -0600 asked a question Error, unresolved externals, while declaring Mat

I am trying to combine openCV libraries with the driver for another camera and use template matching. I am using the template matching demo. When I try to declare a Mat I get three errors all similar:

Error 3 error LNK2019: unresolved external symbol "int __cdecl cv::_interlockedExchangeAdd(int *,int)" (?_interlockedExchangeAdd@cv@@YAHPAHH@Z) referenced in function "public: void __thiscall cv::Mat::release(void)" (?release@Mat@cv@@QAEXXZ)

I thought this was because I had not added additional libraries to the linker input correctly, but that does not seem like the case. The template matching code runs perfectly when it is not combined with anything else.

I am using OpenCV version 2.4.7, Visual Studio 2012, windows 7.

Does anyone know what might be causing this issue?

2013-11-15 12:17:47 -0600 received badge  Supporter (source)
2013-11-15 07:35:23 -0600 commented answer Building Library using Visual Studio 2013

Thanks. However, I am still having an issue installing. When I click Configure, I get the messages: Checking for Windows Platform SDK Checking for Visual Studio 2012 Could NOT find JNI ( and then several Java libraries missing)

Is it necessary to have Java first?

Then, when I hit Generate, I get a long list of errors of the format: CMake Error: install(EXPORT "OpenCVModules") given absolute DESTINATION "/lib" but the export references an installation of target "opencv_videostab" which has relative DESTINATION "bin".

Can anyone tell me what I have done wrong?

2013-11-14 15:53:24 -0600 asked a question Building Library using Visual Studio 2013

I am trying to start using OpenCV. I have CMake version 2.8.12.1, but it does not show VS2013 as an option for a generator. Do I need a different version of CMake, or is there something I have not installed properly?

Thanks.