Ask Your Question

chiongsterx's profile - activity

2017-07-11 14:32:02 -0600 received badge  Popular Question (source)
2014-10-31 04:59:29 -0600 received badge  Editor (source)
2014-10-31 04:58:06 -0600 asked a question Opencv 2d image detecting and tracking( detecting Cans or cups)

Hi, i am currently able to do shape detection, detecting circle. How can i convert to detecting 2d image of circular objects like cans, cups or glass? i am using asus xtion pro live. Please advise me. Thanks

2014-10-09 21:39:18 -0600 commented question How do i use opencv with openni to use Asus xtion pro live camera?

Yes the camera is connected.

2014-10-09 07:12:46 -0600 asked a question How do i use opencv with openni to use Asus xtion pro live camera?

im currently using opencv to detect object base on colour, however i want to open an external camera rather then internal webcam. However, i tired editting the the coding but yet it kept auto using the internal webcam.

 #include <iostream>
 #include "opencv2/highgui/highgui.hpp"
 #include "opencv2/imgproc/imgproc.hpp"

 using namespace cv;
 using namespace std;

   int main( int argc, char** argv )
 {
  VideoCapture cap(0); //capture the video from web cam

 if ( !cap.isOpened() )  // if not success, exit program
 {
     cout << "Cannot open the web cam" << endl;
     return -1;
}

I tired editting VideoCapture cap(0) to (1) or any other digit but it still uses the internal webcam. I even tried VideoCapture cap(CV_OPENNI_ASUS) but still can't do it.

Please advice thanks.