Ask Your Question

Himanshu's profile - activity

2020-02-24 17:06:39 -0600 received badge  Notable Question (source)
2017-06-26 07:32:21 -0600 received badge  Famous Question (source)
2017-06-16 06:25:22 -0600 received badge  Notable Question (source)
2017-01-06 11:28:13 -0600 received badge  Popular Question (source)
2016-04-17 23:24:49 -0600 received badge  Popular Question (source)
2015-03-22 12:18:28 -0600 received badge  Notable Question (source)
2014-10-06 10:56:05 -0600 commented question Grabbing frames from GigE Vision compatible FLIR camera

You got any lead on this?

2014-09-22 02:54:48 -0600 commented question Save MAT without header

@berak @jamesnzt - I have tried that cout (fout) operation to write the MAT in the file. But it still saves it in a YAML format with first two lines as header and then a field called data which contains the values. I just want to write the values in a file. It seems OpenCV can only save it as YAML or XML format.

2014-09-17 00:34:35 -0600 asked a question Mat FileStorage Zip format

Hi,

FileStorage allows us to save XML or YML in compressed format too. The example in OpenCV documentation says '.gz' format. Has anyone tried saving it in '.zip' format?

Thanks.

2014-09-16 23:23:45 -0600 asked a question Save MAT without header

Hi,

I am using FileStorage to write out Mat object (in my case it's a depthMap from Kinect). FileStorage either saves it as XML or YAML with headers. I tried using 'for loop' to save only the data, but its time consuming. Is there a way where I can save only the data of MAT object directly in a file without the headers?

Thanks.

2014-07-26 00:26:46 -0600 received badge  Popular Question (source)
2014-01-09 12:26:40 -0600 commented answer OpenCV LINUX Installation

Thanks! From where can I get ffmpeg libs for centos to install with opencv?

2014-01-08 08:08:35 -0600 asked a question OpenCV LINUX Installation

Hi, Hi,

Can anyone list steps for installing OpenCV on Linux? I have CentOS.

Thanks!

2013-09-04 12:41:52 -0600 answered a question videocapturing and CV_CAP_PROP_FPS

Hi,

I also have the same problem of setting the frame rate of my webcam using the CV_CAP_PROP_FPS.

Did you find any solution?

Thanks and regards Himanshu

2012-12-13 08:32:38 -0600 asked a question Matrix Transpose does not work properly

Hi,

I am using M.t() transpose function, but the output is incorrect:

Input matrix M:

 1    -2     1     0     0     0     0     0
 0     1    -2     1     0     0     0     0
 0     0     1    -2     1     0     0     0
 0     0     0     1    -2     1     0     0
 0     0     0     0     1    -2     1     0
 0     0     0     0     0     1    -2     1

After transposing (M.t()), I am getting following output which is wrong:

 1    -2     0     1     0     0
 1     0    -2     1     1    -2
 0     0     0     0     1     0
 0     0     0     0     0     0
 0     0     0     0     0     0
 0     0     0     0     0     0
 0     0     0     0     0     0
 0     0     0     0     0     0

Can anyone tell me why is this happening?

Thanks.

2012-09-04 08:13:30 -0600 asked a question OpenCV + libdc1394 on Windows

Hi,

Has anyone tried configuring OpenCV(2.4.2) including libdc1394 on Windows??

Thanks and regards Himanshu

2012-09-04 07:56:37 -0600 commented answer Reading pixel values from a frame of a video

Thanks; It's a good solution!

2012-09-04 07:56:06 -0600 received badge  Scholar (source)
2012-08-30 14:01:48 -0600 asked a question Reading pixel values from a frame of a video

Hi,

Is this the right way of reading pixel values from a frame of video?:

IplImage* bgr_frame = cvQueryFrame( capture );
int width, height, nchannels, step;
int i, j, r_ch, b_ch, g_ch;

width = bgr_frame->width;
height = bgr_frame->height;
nchannels = bgr_frame->nChannels;
step = bgr_frame->widthStep;
uchar *data = ( uchar* )bgr_frame->imageData;

for(i = 0 ; i < height ; i++) 
{
  for( j = 0 ; j < width ; j++)
  {
    b_ch = ((uchar *)(bgr_frame->imageData + i*bgr_frame->widthStep))[j*bgr_frame->nChannels + 0];
    g_ch = ((uchar *)(bgr_frame->imageData + i*bgr_frame->widthStep))[j*bgr_frame->nChannels + 1];
    r_ch = ((uchar *)(bgr_frame->imageData + i*bgr_frame->widthStep))[j*bgr_frame->nChannels + 2];       
  }
}

Thanks and regards Himanshu

2012-08-24 14:26:12 -0600 asked a question RGB Camera with OpenCV Windows

Hi,

I used a Logitech web-camera for live capture and it worked.

How to use a User RGB Camera (Olympus, Sony etc) with OpenCV on windows?? cvCaptureFromCAM doesn't recognize that camera!! Is libdc1394 library required??

Thanks and regards Himanshu

2012-08-24 14:13:56 -0600 commented answer Frame Rate of Live Capture

t is expressed in microseconds! so used 1000000/t; but the problem now i am facing is the FPS is varying!

2012-08-21 10:26:09 -0600 commented answer Frame Rate of Live Capture

Hi,

Martin, thanks for your reply.

I did what you suggested and i am still getting approx. 0 FPS.

Thanks.

2012-08-21 05:55:42 -0600 received badge  Student (source)
2012-08-20 12:50:52 -0600 asked a question Frame Rate of Live Capture

Hi,

I know to find frame rate from a video, we can use the capture property and ID:CV_CAP_PROP_FPS.

But how to find the frame rate of a live capture? the capture property (CV_CAP_PROP_FPS) doesn't work for live capture.

Thanks.