How cv::meanStdDev works
Hi everyone, I'm porting some parts of OpenCV code to an ActionScript/AIR project. I have to port the function meanStdDev, which, according to the documentation: > calculates the mean and the...
View ArticleIs this expected HOG outcome?
Hi, HOGDescriptor::compute() somehow does not behave as expected for me. It generates different output for the same window(see code). Is there a explanation for? Mat imgRaw = imread("...", 1); //Cut...
View Articleintelligent sort by location countors
Hi, i detect number in the plate with the contours algorithm . how can i sort by location the contours? for example left to right contour[0] ...................contour[10]. but without a loop for check...
View Articleimshow misunderstanding ?
"2.bmp" is a valid bitmap file located in the correct folder. So what's wrong with the following code to make it produce the error ... error: ..\..\..\..\opencv\modules\highgui\src\window.cpp:261:...
View ArticleMissing cv::MOTION_HOMOGRAPHY and findTransformECC()
I am new to opencv and I guess I am doing something silly. But so far I really could not figure out what I am doing wrong. I have used SIFT/SURF and ORB feature detection and matching in opencv 2.4,...
View ArticleA clarification with BFMatcher.knnMatch
Hi, I am using Opencv-3.0.0 beta through Python 2.7.x , under Ubuntu 14.04 LTS. I am using the descriptor matching between two images through BFMatcher.knnMatch. I am doing the following commands: orb...
View Articleopencv: video stabilization module sample failing for any video with...
running the video stabilization module sample with any video, fails with different errors tried it with different files and it is always failing: [theATeamMBP:ghooo]~/Projects/opencv/samples/cpp$...
View ArticleCan't get detectMultiScale working (even after seeing facecasade.load..)
OpenCV Error: Assertion failed (!empty()) in detectMultiScale, file /Users/xxxx/Downloads/opencv-3.0.0/modules/objdetect/src/cascadedetect.cpp, line 1634 workcycleObjectDetectorFunction: ERROR: OpenCV...
View ArticleHow to draw straight line inside a thresholded image
Hello, I have 2 questions 1) If we calculate the Euclidian distance between two points from the open cv function, would it be able to know the gradient of the straight line? 2) If I have a centroid...
View ArticleOpenCV 3.0, cv::Canny (TBB version) fails while running in parallel threads
Hello, everyone. I have a project under Qt 5.5, TBB 4.4, OpenCV 3.0.0 (compiled with IPP and TBB). Building under MSVS 2012 u5. I have 3 equal parallel threads (but for 2 this isssue is also actual)....
View ArticleWhat is the origin of the world coordinates after stereo rectification?
How can i set where is the origin point after stereo rectification and disparity map, and what are the X-Y-Z axes? Thanks a lot!
View ArticleDetect and frame an object in the real world over glasses
Hi, I'm not sure it's the right place for this question. I use the epson bt200 Moverio glasses. I detect an object with the camera and draw a green rect around it. I can display this camera stream with...
View ArticleContribute: Adding FHOGDescriptor
Hi! I'm trying to add FHOG descriptor but the buildbot returned an error while building for Mac and IOS. The report showed the error: error: no member named 'FHOGDescriptor' in namespace 'cv' This is...
View ArticleBackground subtraction to create chroma key effect with live webcam stream
I've implemented a C# based OpenCV demo using BackgroundSubtractorMOG. The C# code is exactly based on the Java port of OpenCV. I am correctly getting contours or very rough outlines of any moving...
View ArticleWhat's causing the assertion fail in cv::ocl::convertFromImage
I'm getting an assertion fail in the last assertion in ocl.cpp (line 5466?), OpenCV Error: Assertion failed (clEnqueueCopyImageToBuffer(q, clImage, clBuffer, src_origin, region, offset, 0, NULL, NULL)...
View ArticleImplementation of Matlab function rgb2ntsc in opencv using c++
I am trying to implement rgb2ntsc colorspace conversion in OpenCV using C++. for(int i=0;i(i,j); R = intensity.val[2]; G = intensity.val[1]; B = intensity.val[0]; Y = 0.299*R+0.587*G+0.114*B; I =...
View ArticleImplementation of rgb2xyz in opencv using c++
I am trying to implement matlab rgb2xyz function in opencv using c++. I used cvtColor function for implementation. But my output image is not similar to Matlab output image.Should I use any other...
View ArticleDownload example file
Where can I download the slow.flv file mentioned in the example code for mean shift tracking http://docs.opencv.org/master/db/df8/tutorial_py_meanshift.html#gsc.tab=0
View ArticleHow to set other parameters in StereoBM
I noticed that in mexopencv object StereoBM lacks many parameters that can be set in openCV. I find that weird, because in the related StereoSGBM you can set all the parameters. Links for comparison:...
View ArticleHow to remove detected shadows from foreground image in the light projector
Hi guys, i applying background subtraction MOG2 to detect hand in the beam light of projector. I already done this much, but i can remove shadow in foreground image. I already changes the parameter...
View Article