pattern | 13 Jun 16:45 2012
Picon

HOW I got 30 fps increase and NO SLOWDOWN!

Hi there,

I have some *.MTS videos (with W x H = 1440 x 1080, fps=50) and I want to convert them to AVI videos with 640 x 480,
fps=30. When I have done this, the output videos were slowed down. I think the problem is due to reducing
fps. 

My question is how can I change fps without changing video speed?

thanks in advance

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
Hemant Singh | 13 Jun 08:09 2012
Picon

Edge detection



Hello,

I am using Hough Transform for circle detection. HT uses Canny for edge detection. The problem I am facing is Canny detects some noise as edges, so like some false edges appear and then they disappear in next frame. Through some tweaking and changing the source I have improved alot but still there are issues which leads to false detection of circles. My aim is to find radius and number of circles and objects are nearly circular not exact.

I have tried noise removal filters. 

You can help me out with:

1. Suggesting how to improve Canny
or
2. Any other approach I should be using.
or 
3. You past experience with HT and Canny.
Thanks.
Cheers,
-Hemant Kumar Singh


__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
timo.rieck | 12 Jun 14:25 2012
Picon

Traincascade: Maximum sample size?!

Is there a specified maximum size for the training samples? I would like to use sample sizes 140x100 or
140x60, respectively, but the application crashes. I have to use 76x54 or 92x40 instead. Is there any
volitional restriction in size or is it due to hardware/software limitations (Total amount of RAM should
not be the problem, it's 16GB)? 

Thanks.

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
Death Jester | 13 Jun 13:48 2012
Picon

Matrix class member size/step


Hello everybody,
I have a question about the Matrix class of the OpenCV library.
Nothing about usage, but an implementation detail.
What are the data types of the 'Mat'-class' member variables 'size'
and 'step'?
 I have looked into the documentation page
(http://opencv.willowgarage.com/documentation/cpp/basic_structures.html)
and can't even find a member called 'size' (only a function 'Size
Mat::size()'). But the constructor (in file 'mat.hpp' line 67),
assigns the address of 'rows' to the 'size' variable. So where does
the matrix class get this member from? And what is the class of this
member. Because I have seen in the code that it is accessed with the
'[]'-operator and also has a member 'p'.
The same is for the 'step' member I have seen that it is defined as
'size_t step'. But in the file 'mat.hpp', line 429, a member of this
'step' variable is accessed, and in my knowledge size_t is only a
typedef for 'unsigned int'.
I hope someone can help me.

Thank you.

Cheers,
Jester
Nabiha | 13 Jun 12:35 2012
Picon

calibrate a camera and correct the distorsion

hi,  i'm new in programming with opencv and C++, I read a lot of documents on the subject of calibration, but
can someone help me to determinate the coordinates of objectpoints  and imagepoints in the function:

[[ Double cvCalibrateCamera (const CvMat * objectPoints, const CvMat * imagePoints, const CvMat *
pointCounts, ImageSize CvSize, CvMat * cameraMatrix, CvMat * distCoeffs, CvMat * rvecs = NULL, CvMat *
tvecs = NULL, int flags = 0); ]]
wich are the steps to follow, wich unit of measure(pixel or millimeter...)?
in other hand, in my program i have two errors in: 
undistort(myimage, undistoredimage, F, K, F);
where, undistoredimage is the distored image to correct IplImage* undistoredimage=
cvCreateImage(cvGetSize(myimage),8,3);(the error is "a refrence of type cv::mat cannot be intialize
with a value of type Ip┬žImage") F is the intrinsic matrix and k is the distortion_coeffs i declared it like
this : Vector< double> K(3,0.01);(the error is "no suitable user-defined conversion from
cv::vector<double> to const cv::mat exists")
please i need really your help, and thanks. 

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
momo_the_monster | 12 Jun 20:18 2012

Decimal Placement in cv::Mat loaded from File is off?

If I call:

 cv::Mat cameraMat;
 cv::FileStorage fs(filename.c_str(), cv::FileStorage::READ);
 fs["camera_matrix"] >> cameraMat;
cout << cameraMat << endl;

I get these values:

[2307.174403712946, 0, 505.0718955194203;
  0, 2300.274024056947, 910.200216497984;
  0, 0, 1]

instead of these values:

[ 2.3071744037129456e+03, 0., 5.0507189551942031e+02, 
   0., 2.3002740240569474e+03, 9.1020021649798400e+02, 
   0., 0., 1. ]

The Matrix is has 3 rows, 3 columns, and stores its values as doubles (dt: d).

Any idea what's going on and how I can fix it?

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
mustafa_iraq20062000 | 13 Jun 02:14 2012
Picon

problem with webcam

hi 
i have problem when try to display the camera with these code
that when i test it i have error
the code

#include <opencv\cv.h>
#include <opencv\highgui.h>
#include <opencv\cxcore.h>
#include <opencv2\highgui\highgui.hpp>
#include<math.h>
#include <iostream>

using namespace std;

int main( int argc, char** argv )
{   
    cvNamedWindow( "KillCam", CV_WINDOW_AUTOSIZE );
    cvWaitKey(0);
    CvCapture* capture = cvCreateCameraCapture(-1);
    assert(capture != NULL);
    IplImage* frame;

    while(1){
        frame = cvQueryFrame( capture ); 
        if( !frame ) break;
        cvShowImage( "KillCam", frame );
        char c = cvWaitKey(33);
        if( c == 30 ) break;
    }
    cvReleaseCapture( &capture );
    cvDestroyWindow( "KillCam" );
}

the error like that
debug error!
R6010
-abort() has been called

pleas help me what is the wrong???

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
f_anto_f | 12 Jun 14:19 2012
Picon

Video face recognition

Hi, 
I recently started using OpenCV and I wonder if there is already an algorithm that given as input a picture
and a video, it is able to tell me if the person in the photo is in the video. 
Thank you.

Best Regards,
f_anto_f

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
julien lengrand-lambert | 13 Jun 13:32 2012
Picon

OpenCV Planet?



Simple question that crossed my mind today, 

Why isn't there a planet for OpenCV? 

I follow a lot of different people creating blog posts about OpenCV, but there is no simple way to link them to each other.
Wouldn't a planet allow people to simply get some OpenCV code every day? Bloggers would simply have to subscribe, and it would enhance the amount of code available for newcomers (and others).

If I get some positive feedback here, I'll contact the opencv staff and let them know about the idea :). 


Regards, 
Julien


__._,_.___

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com




Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___
thomas_ong11 | 13 Jun 10:45 2012
Picon

Installation in Windows

Hi All,
I am trying to install OpenCV in for visual studio 2010.
I update OpenCV libraries using Tortise SVN.
When I check out from the following website https://code.ros.org/svn/opencv/trunk/opencv
Ask me user name and password.I have only user group id and password.
But it can be used. Where can I have user name and password?
Thanks,
Thomas 

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com
frmir2 | 12 Jun 21:31 2012

Passing multiple images to a CUDA kernel

Hi,

I'm trying to apply an operation that processes multiple images using my own kernel in CUDA and OpenCV. For
some reason I'm not able to use my sourceImage which is declared as PtrStepb ptrSourceImage[11]. It
creates a memory access error. During compilation I also get the warning: "Cannot tell what pointer
points to, assuming global memory space" for the lines "val += (int)(ptrSourceImage[i].ptr(y)[x]);"
and "result.ptr(y)[x] = (unsigned char) ((float)val/(float)nbSourceImage );"

Does anyone had a similar problem ?

If I replace "val += (int)(ptrSourceImage[i].ptr(y)[x]);" for example by "val += 10;" everything is
fine, but it's useless.

ptrSourceImage is created in the main as follow:

PtrStepb ptrSourceImage[11];
for( int i = 0; i < nbSourceImage; i++ )
        ptrSourceImage[i] = PtrStepb( sourceImage[i].data, sourceImage[i].step );

__global__ void myOwnKernel(int rows, int cols, int cn, int nbSourceImage, PtrStepb* ptrSourceImage,
PtrStepb result)
{
    int x = blockIdx.x * blockDim.x + threadIdx.x;
    int y = blockIdx.y * blockDim.y + threadIdx.y;

    if (y < rows && x < cols)
    {     
        int val = 0;

        for( int i = 0; i < nbSourceImage; i++ )
	    val += (int)(ptrSourceImage[i].ptr(y)[x]);

        result.ptr(y)[x] = (unsigned char) ((float)val/(float)nbSourceImage );
    }
}	

void myOwnKernelCaller(int rows, int cols, int cn, int nbSourceImage, PtrStepb* ptrSourceImage,
PtrStepb& result)
{
    dim3 threads(16, 16);
    dim3 grid( (cols*cn+threads.x-1)/threads.x, (rows+threads.y-1)/threads.y );

    myOwnKernel<<<grid, threads, 0>>>(rows, cols * cn, cn, nbSourceImage, ptrSourceImage, averageImage);

    cudaGetLastError();
    cudaDeviceSynchronize();
}

------------------------------------

Change settings: http://www.yahoogroups.com/mygroups, select
   Get Emails (get all posts)
   Daily Digest (one summary email per day)
   Read on the web (read posts on the web only)Or Unsubscribe by mailing OpenCV-unsubscribe <at> yahoogroups.com

Gmane