Ask Your Question

Nain's profile - activity

2017-06-29 10:10:02 -0600 received badge  Famous Question (source)
2017-03-03 07:56:58 -0600 received badge  Notable Question (source)
2017-01-10 00:38:20 -0600 received badge  Popular Question (source)
2016-11-28 10:58:29 -0600 received badge  Student (source)
2016-02-13 01:46:53 -0600 commented answer Numpy Arrays

In the original code above, debugImage and frame are declared as Matrix . The frame is being used to capture the frames from the camera and then it copies the contents of frame matrix to the debugImage matrix. Now when I try to do the same in python by declaring debugImage matrix and frame as numpy arrays , python throws an error. Please tell me how to code this then.

2016-02-10 11:07:27 -0600 commented answer Numpy Arrays

This I know very well. Please tell me how to conver the debugImage matrix and the frame matrix into numpy arrays

2016-02-10 10:15:58 -0600 asked a question Numpy Arrays

I am using python bindings to convert a project ,initially made in C++ , in python. The following is the snapshot of some part of the code :

cv::Mat debugImage;
CvCapture* capture;
cv::Mat frame;
capture = cvCaptureFromCAM( -1 );
  if( capture )
  {
      while( true ) 
      {
        frame = cvQueryFrame( capture );
        // mirror it
        cv::flip(frame, frame, 1);
        frame.copyTo(debugImage);
       }
   }

Here frame is defined as matrix which is then copied to the debugImage matrix inside the loop. But if I use numpy arrays declaration for frame and debugimage and then copy it using the copyto method of numpy, it throws error. Please help me to covert this code into python.

2016-02-10 06:14:30 -0600 received badge  Supporter (source)
2016-02-10 04:27:00 -0600 asked a question What is the equivalent of cv::Mat in python?

I am trying to convert a openCV c++ code in python.I want to convert the following in python.

cv::Mat skinCrCbHist = cv::Mat::zeros(cv::Size(256,256),CV_8UC1);

Please help!!

2016-01-30 11:01:36 -0600 asked a question Eye detection using OpenCV in python

I am working on a project for which I need to detect the position of eyes using webcam. All the project work is being done in python . Initially,I implemented the eye detection using the tutorial provided in the documentation of OpenCV. But the performance of that is very poor. It doesn't perform well if the person is wearing glasses on the eye. Sometimes it even detect the mouth as ey if you are speaking while looking at the webcam. Is there a way so that I can implement eye detection to the most accurate level in OpenCV (programming language preferred-Python) ?