Ask Your Question

mmmmhw's profile - activity

2019-04-05 12:31:52 -0600 received badge  Notable Question (source)
2018-01-18 04:09:59 -0600 received badge  Popular Question (source)
2016-04-05 07:40:42 -0600 received badge  Enthusiast
2016-03-29 08:11:26 -0600 commented answer How do I install openCV to work with ROS

May i know what you mean by CMakeList.txt in your package?

2016-03-16 15:18:18 -0600 commented question fatal error opencv2/nonfree/nonfree.hpp: No such file or directory #include <opencv2/nonfree/nonfree.hpp>

where can i find a webpage that guides me step by step of the installation of opencv with all the required libraries that can do SIFT algorithms?

2016-03-16 15:16:55 -0600 commented answer build modules from open_cv_contrib

do you know how i would be able to do this on ubuntu operating system?

2016-03-15 19:08:19 -0600 asked a question build modules from open_cv_contrib

i am trying to install opencv 2.4.12 to see if i can obtain the sift libraries that i think are not present in opencv 3.1.0

i do not understand from this webpage http://docs.opencv.org/3.1.0/d7/d9f/t...

how do i build the other modules from opencv_contrib

2016-03-15 17:47:22 -0600 commented question fatal error opencv2/nonfree/nonfree.hpp: No such file or directory #include <opencv2/nonfree/nonfree.hpp>

i wonder if there is a problem with the installation i followed this website to install opencv https://help.ubuntu.com/community/OpenCV

2016-03-15 16:46:49 -0600 commented question fatal error opencv2/nonfree/nonfree.hpp: No such file or directory #include <opencv2/nonfree/nonfree.hpp>

should i install these opencv_contribrepo repositories?

2016-03-15 08:34:51 -0600 commented question fatal error opencv2/nonfree/nonfree.hpp: No such file or directory #include <opencv2/nonfree/nonfree.hpp>

yes i am using opencv3.1

2016-03-14 16:18:27 -0600 commented question fatal error opencv2/nonfree/nonfree.hpp: No such file or directory #include <opencv2/nonfree/nonfree.hpp>

in this code are the images detected and loaded automatically because in python it use imread to read the image. but in this code instead of imread('image.jpeg') it uses char variables argv[1] ?

2016-03-14 16:16:32 -0600 asked a question fatal error opencv2/nonfree/nonfree.hpp: No such file or directory #include <opencv2/nonfree/nonfree.hpp>

i copied the code from this webpage to do feature detection http://docs.opencv.org/ref/master/d7/...

i have encountered this error

maurice@maurice-GS70:~$ g++ -ggdb pkg-config --cflags opencv -o basename featuredetector.cpp .cpp featuredetector.cpp pkg-config --libs opencv

featuredetector.cpp:3:28: fatal error: opencv2/core.hpp: No such file or directory #include "opencv2/core.hpp"

                        ^

compilation terminated.

2016-03-14 08:27:33 -0600 commented question Sift Beginner

opencv 3.1.0

2016-03-14 08:14:30 -0600 commented question Sift Beginner

is there a way to implement it in C++?

2016-03-14 07:51:42 -0600 asked a question Sift Beginner

Please ignore the first question that i have posted

Again the problem i encountered is about SIFT

Here is my actual code and error

   #include "opencv2/core/core_c.h"
   #include "opencv2/core/core.hpp"
   #include "opencv2/flann/miniflann.hpp"
   #include "opencv2/imgproc/imgproc_c.h"
   #include "opencv2/imgproc/imgproc.hpp"
   #include "opencv2/video/video.hpp"
   #include "opencv2/features2d/features2d.hpp"
   #include "opencv2/objdetect/objdetect.hpp"
   #include "opencv2/calib3d/calib3d.hpp"
   #include "opencv2/ml/ml.hpp"
   #include "opencv2/highgui/highgui_c.h"
   #include "opencv2/highgui/highgui.hpp"
   #include "opencv2/contrib/contrib.hpp"


int main()
{    
 import cv2
  import numpy as np

     img = cv2.imread('python.jpeg')
     gray= cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)

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

    img=cv2.drawKeypoints(gray,kp)

    cv2.imwrite('sift_keypoints.jpg',img)

   img=cv2.drawKeypoints(gray,kp,flags=cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS)
    cv2.imwrite('sift_keypoints.jpg',img)

}

the error i have encountered

sift.cpp:21:23: warning: character constant too long for its type [enabled by default]

      img = cv2.imread('python.jpeg')
                       ^
sift.cpp:29:17: warning: character constant too long for its type [enabled by default]

     cv2.imwrite('sift_keypoints.jpg',img)
                 ^
sift.cpp:31:17: warning: character constant too long for its type [enabled by default]

     cv2.imwrite('sift_keypoints.jpg',img)
                 ^
sift.cpp: In function ‘int main()’:

sift.cpp:18:2: error: ‘import’ was not declared in this scope

  import cv2
  ^
sift.cpp:18:9: error: expected ‘;’ before ‘cv2’

  import cv2
         ^
2016-03-14 07:51:41 -0600 commented question first time using sift can't work

please ignore this question i accidentally used the wrong code i will post up another question with the error i really encountered

2016-03-14 07:51:41 -0600 asked a question first time using sift can't work

http://docs.opencv.org/3.1.0/da/df5/t... i copied this code into my c++ code and i am not sure if it is correct. Here is my code

#include "opencv2/core/core_c.h"

#include "opencv2/core/core.hpp"

#include "opencv2/flann/miniflann.hpp"

#include "opencv2/imgproc/imgproc_c.h"

#include "opencv2/imgproc/imgproc.hpp"

#include "opencv2/video/video.hpp"

#include "opencv2/features2d/features2d.hpp"

#include "opencv2/objdetect/objdetect.hpp"

#include "opencv2/calib3d/calib3d.hpp"

#include "opencv2/ml/ml.hpp"

#include "opencv2/highgui/highgui_c.h"

#include "opencv2/highgui/highgui.hpp"

#include "opencv2/contrib/contrib.hpp"

int main()

{

import cv2

import numpy as np

img = cv2.imread('python.jpeg') gray= cv2.cvtColor(img,cv2.COLOR_BGR2GRAY)

sift = cv2.xfeatures2d.SIFT_create() kp = sift.detect(gray,None) img=cv2.drawKeypoints(gray,kp)

cv2.imwrite('sift_keypoints.jpg',img)

img=cv2.drawKeypoints(gray,kp,flags=cv2.DRAW_MATCHES_FLAGS_DRAW_RICH_KEYPOINTS)

 cv2.imwrite('sift_keypoints.jpg',img)

}

this is the error that occured when the gode is executed

maurice@maurice-OptiPlex-9020:~$ g++ -ggdb pkg-config --cflags opencv -o basename sift.cpp .cpp sift.cpp pkg-config --libs opencv

sift.cpp:2:43: fatal error: opencv2/xfeatures2d/nonfree.hpp:

No such file or directory

include <opencv2 xfeatures2d="" nonfree.hpp="">