feature-detection

opencv 3, blobdetection, The function/feature is not implemented () in detectAndCompute

我是研究僧i 提交于 2019-12-04 19:50:48
问题 I have a problem with opencv 3: I want to use a feature detector, SimpleBlobDetector, about to use filters by convexity and circularity. But when I try to execute the code, the following error is tracked: The function/feature is not implemented () in detectAndCompute Then the application crashes. I searched for informations in the internet without any relevant answer. I think the 3rd version of Opencv could be responsible for this bug, because I know I use the detector the good way (I tried

OpenCV on iOS: False matching with SurfFeatureDetector and FlannBasedMatcher

試著忘記壹切 提交于 2019-12-04 18:17:38
I am trying to use OpenCV's feature detection tools in order to decide whether a small sample image exists in a larger scene image or not. I used the code from here as a reference (without the homography part). UIImage *sceneImage, *objectImage1; cv::Mat sceneImageMat, objectImageMat1; cv::vector<cv::KeyPoint> sceneKeypoints, objectKeypoints1; cv::Mat sceneDescriptors, objectDescriptors1; cv::SurfFeatureDetector *surfDetector; cv::FlannBasedMatcher flannMatcher; cv::vector<cv::DMatch> matches; int minHessian; double minDistMultiplier; minHessian = 400; minDistMultiplier= 3; surfDetector = new

Using document length in the Naive Bayes Classifier of NLTK Python

蓝咒 提交于 2019-12-04 15:45:08
I am building a spam filter using the NLTK in Python. I now check for the occurances of words and use the NaiveBayesClassifier resulting in an accuracy of .98 and F measure for spam of .92 and for non-spam: 0.98. However when checking the documents in which my program errors I notice that a lot of spam that is classified as non-spam are very short messages. So I want to put the length of a document as a feature for the NaiveBayesClassifier. The problem is it now only handles binary values. Is there any other way to do this than for example say: length<100 =true/false? (p.s. I have build the

How to store Hierarchical K-Means tree for a large number of images, using Opencv?

烂漫一生 提交于 2019-12-04 09:01:54
I am trying to make a program that will find similar images from a dataset of images. The steps are extract SURF descriptors for all images store the descriptors Apply knn on the stored descriptors Match the stored descriptors to the query image descriptor using kNN Now each images SURF descriptor will be stored as Hierarchical k-means tree, now do I store each tree as a separate file or is it possible to build some sort of single tree with all the images descriptors and updated as images are added to dataset. This is the paper I am basing the program on. Use a KD-Tree instead. You will be

How to use Mikolajczyk's evaluation framework for feature detectors/descriptors?

时光怂恿深爱的人放手 提交于 2019-12-04 07:29:56
I'm trying the assess the correctness of my SURF descriptor implementation with the de facto standard framework by Mikolajczyk et. al . I'm using OpenCV to detect and describe SURF features, and use the same feature positions as input to my descriptor implementation. To evaluate descriptor performance, the framework requires to evaluate detector repeatability first. Unfortunately, the repeatability test expects a list of feature positions along with ellipse parameters defining the size and orientation of an image region around each feature. However, OpenCV's SURF detector only provides feature

OpenCV ORB detector finds very few keypoints

我的未来我决定 提交于 2019-12-04 02:03:23
I'm trying to use the ORB keypoint detector and it seems to be returning much fewer points than the SIFT detector and the FAST detector. This image shows the keypoints found by the ORB detector: and this image shows the keypoints found by the SIFT detection stage (FAST returns a similar number of points). Having such few points is resulting in very poor feature matching results across images. I'm just curious about the detection stage of ORB right now though because this seems like I'm getting incorrect results. I've tried using the ORB detector with default parameters and also custom

How to use feature detection to know if browser supports border-radius? (Including IE9)

北城余情 提交于 2019-12-04 01:13:19
问题 I've seen plenty of examples for detecting support for border radius using something like: var cssAttributeNames = ['BorderRadius', 'MozBorderRadius', 'WebkitBorderRadius', 'OBorderRadius', 'KhtmlBorderRadius']; for (var i = 0; i < cssAttributeNames.length; i++) { var attributeName = cssAttributeNames[i]; if (window.document.body.style[attributeName] !== undefined) { this._useCss = true; break; } } But this doesn't seem to work for IE9, which does support border-radius. Am I missing something

Facial feature detection with OpenCV with eyes and mouth corners points

余生长醉 提交于 2019-12-03 20:45:50
I'm working on a face feature detection project and I do detect the eyes, nose and mouth using OpenCv withHaarcascade xml files. But, I want to have the eyes and mouth corners points and the nose center. The goal is using it to predict emotions. I found this link that shows how it works, and I need to get to this result using JAVA. Could any one help me? Thanks in advance. http://cmp.felk.cvut.cz/~uricamic/flandmark/ in this part we receve the face image and we drawRect on the face: public void drawFaces(BufferedImage image) { final List<PotentialFace> faces = FacialRecognition.run(image, db);

How to black out everything outside a circle in Open CV

依然范特西╮ 提交于 2019-12-03 15:38:49
I am currently trying to black out everything outside a circle. I am drawing the circle using the following lines of code: cv::Point center(cvRound(circles[i][0]), cvRound(circles[i][1])); // CVRound converts floating numbers to integer int radius = cvRound(circles[i][2]); // Radius is the third parameter [i][0] = x [i][1]= y [i][2] = radius circle( image, center, 3, cv::Scalar(0,255,0), -1, 8, 0 ); // Drawing little circle to Image Center , next Line of Code draws the real circle circle( image, center, radius, cv::Scalar(0,0,255), 3, 8, 0 ); // Circle(img, center, radius, color, thickness=1,

Javacv Blob detection

别说谁变了你拦得住时间么 提交于 2019-12-03 14:02:29
问题 I would like to use some blob detection in my application which is written in Java and thus using JavaCV instead of OpenCV . I found many classes like: SimpleBlobDetector , CvBlobDetector , CvBlob , ... but I can't find any tutorial or demo/example code to use these in Java. Could anyone please tell me how to use these as I can't figure it out and there's no good documentation for them. Thanks! 回答1: I am just in this moment working on the same problem and have a first solution. There's a lot