Ask Your Question

gelgel's profile - activity

2016-09-16 05:29:36 -0600 commented answer How to use the dense sampling detector to image with OpenCV3_python?

The problem was solved with your help. I'm so glad!
Thank you very much!

2016-09-16 04:47:37 -0600 commented answer How to use the dense sampling detector to image with OpenCV3_python?

Fixed my code to "sift.detectAndCompute()",thank you!

2016-09-16 04:41:11 -0600 commented answer How to use the dense sampling detector to image with OpenCV3_python?

Thank you for answering. "the Dense was removed..." It is sad. I understand I have to create my own detector. But I don't know how add the keypoints properties to my own detector like a list, list = [(5,5),(10,10),...] Please tell me how. Or, I have to create in xfeatures2d.hpp before make cv2.so files?

2016-09-16 03:41:49 -0600 asked a question How to use the dense sampling detector to image with OpenCV3_python?

I am using python2.7, OpenCV3 with opencv-contrib to image processing.
So I can use SIFT and get features as follows,

sift = cv2.xfeatures2d.SIFT_create()
kp = sift.detect(gray,None)
des = sift.compute(gray,kp)

This is good.
Now "kp" is the keypoint that result computed by SIFT's feature detector.
But I want to change this detector to dense(grid) sampling detector like this. https://www.safaribooksonline.com/lib...
and I want to compute descriptors with "sift.compute(gray,kp)"
please help me.
Note: previously, it seems this is available "dense = cv2.FeatureDetector_create("Dense")"

2016-01-29 03:14:42 -0600 received badge  Student (source)
2016-01-11 22:21:27 -0600 commented question how to trance to gray in cv2.imread(img,0) ?

when I use "bmp", all the elements has become true. I understand that these methods are the same. thank you.

2016-01-11 21:52:44 -0600 commented question how to trance to gray in cv2.imread(img,0) ?

i tried
>>>A == B
array([[ True, True, True, ..., True, True, True],
[ True, True, True, ..., True, True, True],
[ True, True, True, ..., True, True, True],
...,
[ True, True, True, ..., True, True, False],
[ True, True, True, ..., True, False, True],
[ True, True, True, ..., False, True, True]], dtype=bool)
It is a slight , but there was a difference .

2016-01-11 21:42:46 -0600 asked a question how to trance to gray in cv2.imread(img,0) ?

I using the opencv3.
I tried
A = cv2.imread(str,0).
img = cv2.imread(str,1).
B = cv2.cvtColor(img,cv2.COLOR_BGR2GRAY).
now A is not equal B. I think, there are difference method.

I found B 's method in http://docs.opencv.org/master/de/d25/...
but can't found A 's method. how to trance to gray in A ? where the fomula ?

2015-10-14 21:32:06 -0600 asked a question what is the 'bestLabels' params in cv2.kmeans() ?

I use opencv3 in python.
I confirmation this page ↓
http://docs.opencv.org/3.0-beta/doc/p...

In this explain , cv2.kmeans() function required 5 params 'samples', 'nclusters(K)', 'criteria', 'attempts', 'flags'. but there examples required 6 params. 'None' is in third param.
I found cv2.kmeans() seems required 'bestLabels" parameter. In many cases , it is None.
what is the 'bestLabels' ? is it case of non-"None"?

2015-10-08 00:45:49 -0600 received badge  Enthusiast
2015-10-02 04:12:21 -0600 received badge  Scholar (source)
2015-10-02 04:11:57 -0600 received badge  Supporter (source)
2015-10-02 04:11:35 -0600 commented answer cannot use opencv3 with python2 in windows7. cv2.pyd is strange.

Sorry my misjudgment. 97 was Update unnecessary. error was 0. again, thank you for answer .

2015-10-02 03:39:22 -0600 commented question cannot use opencv3 with python2 in windows7. cv2.pyd is strange.

Thank you berak! I tried to as your advice. After build "INSTALL", cv2.pyd size is 29.2MB. and successful import cv2. very thank you! but I have a question. when build "INSTALL" , output was "build 3, error 97". what errors mean? If I neglect it , is there anything wrong?

2015-10-02 01:16:43 -0600 asked a question cannot use opencv3 with python2 in windows7. cv2.pyd is strange.

python2.7.9 on win 32. numpy,matplotlib.

cmake.

1.configure the sorce file.checked visual studio 2013(visual studio12).
2.get the red screen and input OPENCV_EXTRA_MODULES_PATH to C:/python27/opencv_contrib-master/modules
3.again configure
4.generate and cmake end. now my build file has 7.68MB.

build

1.open the OpenCV.sln
2.build mode change to Release.
3.build "ALL_BUILD" build 99 nothing error.
4.build "INSTALL" build 3 error 97. this time my build file has 3.91GB.

check Python27/Lib/site-packages

site-packages has cv2.pyd but this size 1.61MB.
of course , cannot import cv2.
ImportError: DLL load failed......
Among these processes , do you think the cause that does not work there is what ?
PATH? cmake? build?
and teach me Required settings.
please help me.