Ask Your Question

Fačko's profile - activity

2020-03-28 16:32:48 -0600 received badge  Popular Question (source)
2017-02-25 05:08:35 -0600 received badge  Student (source)
2017-02-24 07:01:16 -0600 asked a question BOW how to handle empty sift descriptors

I am using BOW to object categorization. My function looks like:

 def prepare_data_for_bow_sift(self, testing_paths, b_o_w):
        for p in self:
            image = cv2.imread(p, 0)
            kp, dsc = sift.detectAndCompute(image, None)
            if len(kp) < 1:
                # what to do now? how to handle if not keypoint found
            else:
                b_o_w.add(dsc)

Sometimes happens, that Surf or Sift do not find any keypoints. My question is, how to handle with this situation? What should I add to to bow traininig set? Is there any possibility to add any simple default empty descriptors? Or just delete the specific image from process of training?

2016-12-23 05:28:44 -0600 received badge  Enthusiast
2016-12-20 10:17:42 -0600 commented question How to compare more SUFR descriptors

Yeah thanks, I tried FaceRecognizer. EigenFaces works fine, but from Fisher and LBPH I get error as you can see : here

2016-12-17 07:20:58 -0600 commented question How to compare more SUFR descriptors

Here is example of my cropped image: link text

2016-12-17 07:19:38 -0600 commented question How to compare more SUFR descriptors

OK for better understanding. I did not skipped any detection. I have already trained cascade to detect ears and then I can easily crop the image. SO basically I am working now with image, which contains only ear. My point was, that if are there any possibility to compare Descriptors and get some vectors, which tell me how similar are picture. If I understood you correctly, there is no other options for classification only using machinelearning (SVM,KNN) right?

2016-12-17 04:32:10 -0600 commented question How to compare more SUFR descriptors

Yes that is right ,I am trying to predict which person it is.

2016-12-17 04:31:42 -0600 commented question How to compare more SUFR descriptors

ok my fault. So Is there any possibility to use these descriptors for classification?

2016-12-17 04:24:41 -0600 asked a question How to compare more SUFR descriptors

I am working on ear Recognition project. I have database of ears, 60 person - each 4 ears. What I have already done, is that I detectAndCompute from each image Descriptors and Keypoints. Now I need to compare each image with each and find the best result.

What I did is that, I used BFMacther which returns matches link text . The larger the vector is, the difference between the images is smaller and are more similar right? So I saved the largest vector in comparison in one image with every other image and that is the result as the largest vector?

I am thinking now about second maybe better options?

I also found out, that is BFMatcher has method to train. So I can add every train Descriptors to BFMatcher and then call train. But now when I have trained BFMatcher how can I compare and get the result of my test vector?

2016-12-16 07:08:09 -0600 commented answer Cannot find Brief DescriptorExtractor OpenCV 3.1

Thank you.

2016-12-16 07:07:51 -0600 received badge  Supporter (source)
2016-12-16 07:07:49 -0600 received badge  Scholar (source)
2016-12-16 06:26:41 -0600 asked a question Cannot find Brief DescriptorExtractor OpenCV 3.1

This is my Python code:

import cv2 import numpy as np

img = cv2.imread('image.jpg') gray= cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)

star = cv2.xfeatures2d.StarDetector_create()

brief = cv2.BriefDescriptorExtractor_create()

kp = star.detect(gray,None)

kp,des=brief.compute(img,kp)

cv2.imshow('img',img) cv2.waitKey(0) cv2.destroyAllWindows()Blockquote

I am getting this error: File "earBRIEFsample.py", line 9, in <module> brief = cv2.BriefDescriptorExtractor_create() AttributeError: 'module' object has no attribute 'BriefDescriptorExtractor_create'

I also use SUFR, SIFT, ORB, FastFeature algorithms from library and didn' t have problem.

2015-02-19 14:53:41 -0600 commented question Wrong arguments for CascadeClassifier detection

berak thanks you were right , it should look like std::vector<cv::rect> faces; face_cascade.detectMultiScale(mat, faces, 1.1, 2, 0, cv::Size(30, 30));

2015-02-19 14:52:10 -0600 commented question Wrong arguments for CascadeClassifier detection

berak thanks you were right , it should look like std::vector<cv::rect> faces; face_cascade.detectMultiScale(mat, faces, 1.1, 2, 0, cv::Size(30, 30));

2015-02-19 14:45:29 -0600 commented question Wrong arguments for CascadeClassifier detection

i can use only OpenCV version which supported Microsoft for Windows phone platform here

2015-02-19 09:20:40 -0600 commented question Wrong arguments for CascadeClassifier detection

thanks, but this does not solve my problem

2015-02-19 09:05:37 -0600 asked a question Wrong arguments for CascadeClassifier detection

I work on CascadeClassifier MultiScale detection for WindowsPhone 8.1 C# using Windows Runtime Component. (Visual Studio 2013) Here is my code in WinRT:

cv::Mat mat(width, height, CV_8UC4);
cv::CascadeClassifier face_cascade;
face_cascade.load("haarcascade_frontalface_alt.xml");
std::vector<Rect> faces;
.
.
.
equalizeHist(mat, mat);
face_cascade.detectMultiScale(mat, faces, 1.1, 2, 0, Size(30, 30));

And I still get error: error C2664: 'void cv::CascadeClassifier::detectMultiScale(cv::InputArray,std::vector<_Ty> &,double,int,int,cv::Size,cv::Size)' : cannot convert parameter 2 from 'std::vector<_Ty>' to 'std::vector<_Ty> &'

I follow the tutorial on OpenCV website and I do not why my parameters should be wrong.

Thanks for reply.

2014-10-15 10:45:55 -0600 asked a question Windows phone 8.1

Hello everybody,

I am beginner with OpenCV Windows Phone 8.1 programming , is there any useful tutorials?

Thanks for reply.