feature-extraction

Difference between Feature Detection and Descriptor Extraction

杀马特。学长 韩版系。学妹 提交于 2019-11-28 15:21:19
Does anyone know the difference between FeatureDetection and DescriptorExtraction in OpenCV 2.3? I understand that the latter is required for matching using DescriptorMatcher. If that's the case, what is FeatureDetection used for? Thank you. Feature detection In computer vision and image processing the concept of feature detection refers to methods that aim at computing abstractions of image information and making local decisions at every image point whether there is an image feature of a given type at that point or not. The resulting features will be subsets of the image domain, often in the

Extracting HoG Features using OpenCV

大憨熊 提交于 2019-11-28 15:12:47
I am trying to extract features using OpenCV's HoG API, however I can't seem to find the API that allow me to do that. What I am trying to do is to extract features using HoG from all my dataset (a set number of positive and negative images), then train my own SVM. I peeked into HoG.cpp under OpenCV, and it didn't help. All the codes are buried within complexities and the need to cater for different hardwares (e.g. Intel's IPP) My question is: Is there any API from OpenCV that I can use to extract all those features / descriptors to be fed into a SVM ? If there's how can I use it to train my

How to calculate Local Binary Pattern Histograms with OpenCV?

∥☆過路亽.° 提交于 2019-11-28 06:59:41
I have already seen that OpenCV provides a classifier based on LBP histograms : But I want to have access to the LBP histogram itself. For instance: histogram = calculate_LBP_Histogram( image ) Is there any function that performs this in OpenCV? You can get the C++ code for computing LBP using OpenCV's Mat data structure here: http://www.bytefish.de/blog/local_binary_patterns You should be able to find the Python version as well on the same site. The code is written by Philipp Wagner, who I believe contributed the face recognition code you mentioned to OpenCV, so it should be the same thing.

Issue with OneHotEncoder for categorical features

时光怂恿深爱的人放手 提交于 2019-11-27 21:07:25
I want to encode 3 categorical features out of 10 features in my datasets. I use preprocessing from sklearn.preprocessing to do so as the following: from sklearn import preprocessing cat_features = ['color', 'director_name', 'actor_2_name'] enc = preprocessing.OneHotEncoder(categorical_features=cat_features) enc.fit(dataset.values) However, I couldn't proceed as I am getting this error: array = np.array(array, dtype=dtype, order=order, copy=copy) ValueError: could not convert string to float: PG I am surprised why it is complaining about the string as it is supposed to convert it!! Am I

Are there any fast alternatives to SURF and SIFT for scale-invariant feature extraction?

早过忘川 提交于 2019-11-27 17:43:12
SURF is patented, as is SIFT. ORB and BRIEF are not patented, but their features are not scale-invariant, seriously limiting their usefulness in complex scenarios. Are there any feature extractors that can extract scale-invariant features as fast as SURF and are not so strictly patented as SURF and SIFT? Rui Marques Although you already choose BRISK, you might find FREAK interesting. Author claims to have better results than BRISK and ORB. I should also add that ORB is scale-invariant but has some problems in that area. So I would still recommend it for someone to try it. The FREAK source code

OpenCV - Detect hand-drawing shapes

谁说胖子不能爱 提交于 2019-11-27 14:14:13
问题 Could OpenCV detect the geometric shapes which is drawn by hand as below? The shape can be a rectangle, triangle, circle, curve, arc,polygon,... I am going to develop an android application which detect these shapes. 回答1: Well, I tried it in a harry. Normally you need to skeletonize the input. Anyway. You can reason about the shapes based on their points. Normally a square has 4, a triangle 3, etc. Effort results: Canny results: Polygonal approximation: Console output: contour points:11

Convolutional Neural Network (CNN) for Audio [closed]

痞子三分冷 提交于 2019-11-27 09:22:01
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 11 months ago . I have been following the tutorials on DeepLearning.net to learn how to implement a convolutional neural network that extracts features from images. The tutorial are well explained, easy to understand and follow. I want to extend the same CNN to extract multi-modal features from

Difference between Feature Detection and Descriptor Extraction

佐手、 提交于 2019-11-27 09:07:47
问题 Does anyone know the difference between FeatureDetection and DescriptorExtraction in OpenCV 2.3? I understand that the latter is required for matching using DescriptorMatcher. If that's the case, what is FeatureDetection used for? Thank you. 回答1: Feature detection In computer vision and image processing the concept of feature detection refers to methods that aim at computing abstractions of image information and making local decisions at every image point whether there is an image feature of

Extracting HoG Features using OpenCV

怎甘沉沦 提交于 2019-11-27 09:04:51
问题 I am trying to extract features using OpenCV's HoG API, however I can't seem to find the API that allow me to do that. What I am trying to do is to extract features using HoG from all my dataset (a set number of positive and negative images), then train my own SVM. I peeked into HoG.cpp under OpenCV, and it didn't help. All the codes are buried within complexities and the need to cater for different hardwares (e.g. Intel's IPP) My question is: Is there any API from OpenCV that I can use to

What does the distance attribute in DMatches mean?

有些话、适合烂在心里 提交于 2019-11-27 05:32:07
问题 I have a short question: When I do feature-matching in OpenCV, what does the distance attribute mean of DMatches in MatOfMatches ? I know that I have to filter matches with bigger distance because they aren't as good as them with lower distance. But what is the meaning of this attribute? Is it a kind of deviation? 回答1: In this context, a feature is a point of interest on the image. In order to compare features, you "describe" them using a feature detector . Each feature is then associated to