fahim arif | 29 May 10:30 2012
Picon

Play Free Online Games - Meyraj Games



Its my personal site. Plz visit to play games.

http://www.meyraj.com/

Dr. Fahim, Carleton U.


__._,_.___

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

__,_._,___
vaclav_sal | 28 May 19:49 2012
Picon

Who's on first?

Now that 2.4 is barely out and there is a site which collects bug reports for 2.5. already.
So - who is in charge?
It looks like each release has its own clientele of support, mighty confusing.

And since I am on the soap box - as a OPEN software - why are the geniuses who write it or copy it from previous
release  so stingy with WRITING COMMENTS in the code? 

I am still looking for someone who can explain to me why camera capture DOES NOT USE the callback on frame. But
it sets it!

Actually want to know how preview rate and callback on frame interact.

But I lost much face in this group, since I have been asking this seems forever and nobody bites.

Happy programming.
Thanks for your time.
Vaclav 

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

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
yfrank10 | 28 May 10:06 2012
Picon

cvRectangle source code



I'm at the beginning in opencv and I would like to see the content of the func code cvRectangle.

I only found this in core_c.h:


CVAPI(void)  cvRectangle( CvArr* img, CvPoint pt1, CvPoint pt2,
                          CvScalar color, int thickness CV_DEFAULT(1),
                          int line_type CV_DEFAULT(8),
                          int shift CV_DEFAULT(0));

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




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

__,_._,___
freethemalloc10 | 27 May 20:48 2012
Picon

CascadeClassifier not working on opencv 2.4



Hi all,

i've been trying all day the example of CascadeClassifier that you can see at: 

For being more specific, this is my simplified code:

Here you can see the tests:

Step 1-- before loading cascade xml


Step 2-- after loading cascade xml

Conclusion: He founds the XML because the if condition is never executed (and if i change the name of the xml to another one that doesnt exist like 'test.xml' then the return -1; is executed) but is not able to load the file because as you can see at the debugger  the cascade structure is always the same, after and before loading the XML...

Any solution? Thanks.

The weird part is that the same code on javacv 2.4 works properly.

System information:
IDE: Visual Studio 2010 c++
opencv: 2.4
OS: XP

Thank you all.


__._,_.___

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

__,_._,___
Soroosh | 28 May 10:00 2012
Picon

Using opencv installed on one device on a remote server _ linux

Hello all,

I'm a little bit new to both OpenCV and linux ( I use ubuntu 11.10 )
I need to use OpenCV on a linux based remote serve. I have OpenCV installed on my own system. Is there a way to
use OpenCV installed on my own system while compiling my programs on the server?

Thanks you
Soroosh

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

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
kaveri_thakoor | 28 May 02:19 2012
Picon

undefined reference to `cv::SIFT::SIFT(int, int, double, double, double)

Hi,

I'm trying to use Sift in OpenCV-2.4.0, specifically SiftFeatureDetector and
SiftDescriptorExtractor.  When I try to compile my file, however, I get the following two errors:

/tmp/cciTQTlu.o: In function `main':
SIFT_iso.C:(.text+0x306): undefined reference to `cv::SIFT::SIFT(int, int, double, double, double)'

/tmp/cciTQTlu.o: In function `cv::SIFT::~SIFT()':
SIFT_iso.C:(.text._ZN2cv4SIFTD1Ev[virtual thunk to cv::SIFT::~SIFT()]+0x1e): undefined
reference to `vtable for cv::SIFT'

I believe these are apparently in the SIFT constructor.

I have included the following OpenCV header files, including the files from the new nonfree module:

   #include "opencv2/core/core.hpp"
   #include "opencv2/features2d/features2d.hpp"
   #include "opencv2/highgui/highgui.hpp"
   #include "opencv2/nonfree/features2d.hpp"
   #include "opencv2/nonfree/nonfree.hpp"

Having tried all this, I'm still getting the same errors.  Does anyone know why I might be getting these
errors and how to fix them?

Thank you!

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

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
dadielaasri | 26 May 17:57 2012
Picon

problem with Eigenfaces

Hello, 
 i try to calculate eigenVectors and EigenValues and show some of those eigenfaces based on the servo
magazine code source, but when i copmile it, it gives me 2 warning :
- "'fopen': This function or variable may be unsafe. Consider using fopen_s instead."
 -"fscanf': This function or variable may be unsafe. Consider using fscanf_s instead"

But when i run the project it give me this error :

 0x0015f394 "OpenCV Error: Incorrect size of input array (Non-positive width or height) in unknown
function, file ..\..\..\src\cxcore\cxarray.cpp, line 113"	char [65536].

i dont know where is the mastake that i made, please help me 
Thank you. 

Here is the code:

IplImage ** TableImage=0;
IplImage **TableEigenVect=0;
IplImage *ImageMoyenne=0;
CvMat *EigenValMat=0;
CvMat *NumPersonne=0;
//int nTrainfaces=0 ; //nombres d'images d'approntissage
 int NbEigenVal =0; //nombres des valeurs propres
 int nPersons; //nombre d'individu
 //vector<string> personNames;	

int _tmain(int argc, _TCHAR* argv[])
{
	FILE *FichierImage;
	int NbVisage = 0;
	char buffer[512];
	 CvSize ImageSize;
	CvTermCriteria calcLimit;
	

	

	if(!(FichierImage=fopen("train.txt","r")))
	{ 
		fprintf(stderr,"echec d'ouverture du fichier %s",FichierImage);
		return 0;
	}
	while(fgets(buffer,sizeof(buffer)-1,FichierImage)) ++NbVisage;
	rewind(FichierImage);

	TableImage = (IplImage **)cvAlloc(NbVisage*sizeof(IplImage *));
	NumPersonne = cvCreateMat(1,NbVisage,CV_32SC1);

	//personNames.clear();
	//nPersons = 0;

	for(int k = 0;k<NbVisage;k++)
	{
		//char NomPersonne[255];
		string spersonneName;
		int personneNumber;
		fscanf(FichierImage,"%d %s",NumPersonne->data.i[k],buffer);

		//spersonneName = NomPersonne;
		//NumPersonne->data.i[k] = personneNumber;

		TableImage[k] = cvLoadImage(buffer,CV_LOAD_IMAGE_GRAYSCALE);
		

	}
	fclose(FichierImage);

	   printf("variable est %d",NbVisage);

	 NbEigenVal = NbVisage-1;
	ImageSize.height = TableImage[0]->height ;
	ImageSize.width = TableImage[0]->width ;

TableEigenVect=(IplImage**)cvAlloc(NbEigenVal*sizeof(IplImage*));
	

	for (int i = 0; i < NbEigenVal ;i++)
		TableEigenVect[i] = cvCreateImage(ImageSize,IPL_DEPTH_32F,1);
		EigenValMat = cvCreateMat(1,NbEigenVal,CV_32SC1);
		ImageMoyenne = cvCreateImage(ImageSize,IPL_DEPTH_32F,1);
		 calcLimit = cvTermCriteria(CV_TERMCRIT_ITER,NbEigenVal,1);

		cvCalcEigenObjects(NbEigenVal,
			(void*)TableImage,
			(void*)TableEigenVect,
			CV_EIGOBJ_NO_CALLBACK,
			0,
			0,
			&calcLimit,
			ImageMoyenne,
			EigenValMat->data.fl); 

		cvNamedWindow("Image1:",1);
        cvShowImage("Image1:",TableEigenVect[0]);
        cvWaitKey(0);
        cvReleaseImage(&TableEigenVect[0]);

	return 0;

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

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
whatsamattayous | 28 May 05:27 2012
Picon

Does VideoCapture::open return any error codes?

I am having difficulty getting a code ported to a new platform to work, and the problem is when I open a file.  I
can't see anything obviously wrong, and this code works on other platforms with these files, but
VideoCapture::isOpened keeps returning false.  Is there any way to get any useful information out of Open?

Thanks much,
John

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

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
Brendan Miller | 28 May 01:49 2012
Picon

is there a branch for opencv 2.4.1?

I'm using opencv's EM implementation, but I'm running up against a bug
in the released version (2.4.0):

http://code.opencv.org/issues/1939

This bug says it's fixed in 2.4.1. Is there a bunch for 2.4.1? I'd
like to get the fix, but not be running "bleeding edge" opencv where
other things might be broken. Is there any way to get ahold of a
fixed, but stable version?

Thanks,
Brendan Miller

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

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
abhinavtripathi01@ymail.com | 27 May 20:41 2012

drawing a binding rectangle across moving pixels and getting its width

Hi,
I am trying to get the width of the moving pixels in Motion detection.
For that I have separated t5he foreground too. Now I have no idea about how to get the width of the
foreground.This code is for a video file as well as live webcam. I am concerned about just camera part. The
code is given below :

#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/video/background_segm.hpp>
#include <stdio.h>

using namespace std;
using namespace cv;

// Algortihm variables
cv::Mat gray;			// current gray-level image
cv::Mat background;		// accumulated background
cv::Mat backImage;		// background image
cv::Mat foreground;		// foreground image

int Algorithm(cv:: Mat &frame, double learningRate, int threshold ) 
{
	Mat output;
	double t = (double)cvGetTickCount();

	// convert to gray-level image
	cv::cvtColor(frame, gray, CV_BGR2GRAY); 

	// initialize background to 1st frame
	if (background.empty())
		gray.convertTo(background, CV_32F);
		
	// convert background to 8U
	background.convertTo(backImage,CV_8U);

	// compute difference between current image and background
	cv::absdiff(backImage,gray,foreground);

	// apply threshold to foreground image
	cv::threshold(foreground,output,threshold,255,cv::THRESH_BINARY);
	
	// accumulate background
	cv::accumulateWeighted(gray, background, learningRate, output);
    	t = (double)cvGetTickCount() - t;
	printf( "LearningRate = %g   ", learningRate ); 
    	printf( "detection time = %g ms\n", t/((double)cvGetTickFrequency()*1000.) );

	// show foreground
	cv::imshow("Extracted Foreground", output );

	return( t/((double)cvGetTickFrequency()*1000.) );
}

int main( int argc, char *argv[] )
{
	cv::VideoCapture cap;
	int				 LearningRate;
	int				 Threshold;
	int				 framenum;
	int				 frametime, algtime, framedelay;
	bool			 Camera;

	// Open the video file
	Camera = true;
	frametime = 33;
    if( argc == 1 || (argc == 2 && strlen(argv[1]) == 1 && isdigit(argv[1][0])))
        cap.open(argc == 2 ? argv[1][0] - '0' : 0);
    else if( argc == 2 )
	{
        cap.open(argv[1]);
		Camera = false;
		frametime = 1000/cap.get(CV_CAP_PROP_FPS);
	}

	// check if video successfully opened
	if (!cap.isOpened())
	{
		if( Camera == false )
		{
			printf( "\n\n!Error! - Failed to open file - %s", argv[1] ); 		
			cv::waitKey();
		}
		else
		{
			printf( "\n\n!Error! - Faild to connect to web camera" ); 		
			cv::waitKey();
		}

		return 0;
	}

	// current video frame
	cv::Mat frame; 
	cv::Mat result;

	cv::namedWindow("Parameters");
	LearningRate = 0;
	Threshold = 10;
	cv::createTrackbar( "LearnRate", "Parameters", &LearningRate, 100, 0 );
	cv::createTrackbar( "Threshold", "Parameters", &Threshold, 255, 0 );
	cv::createTrackbar( "delay",     "Parameters", &frametime, 100, 0 );

	bool stop(false);
	framenum = 0;
	algtime = 0;
	// for all frames in video
	while (!stop) {

		// read next frame if any
		if (!cap.read(frame))
		{
			if( !Camera )
			{
				cap.release();
				cap.open(argv[1]);
				cap.read(frame);
			}
			else
				break;
		}

		cv::imshow("Raw Video",frame);

//-------------------------------------------------------------------------
// Insert Algorithm here
//-------------------------------------------------------------------------

		if( framenum++ > 5 )
			algtime = Algorithm( frame, (10001-(LearningRate*100))/10000.0, Threshold );
		else
			continue;

//-------------------------------------------------------------------------
// Algorithm Done
//-------------------------------------------------------------------------

		// introduce a delay
		// or press key to stop
		printf( " frametime = %d,%d", frametime, algtime );
		if( frametime > algtime )
			framedelay = frametime - algtime;
		else
			framedelay = 10;
		printf( " framedelay = %d", framedelay );
		if (cv::waitKey(framedelay)>=0)
				stop= true;
	}
}

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

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
Mohammed | 28 May 02:22 2012
Picon

No implementation of found native

D/dalvikvm(  392): Trying to load lib /data/data/com.android.faceAuth/lib/libfaceRec.so 0x40515928
D/dalvikvm(  392): Added shared lib /data/data/com.android.faceAuth/lib/libfaceRec.so 0x40515928
D/dalvikvm(  392): No JNI_OnLoad found in /data/data/com.android.faceAuth/lib/libfaceRec.so
0x40515928, skipping init
W/dalvikvm(  392): No implementation found for native Lcom/android/faceAuth/core/faceAuthJNI;.init (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
D/AndroidRuntime(  392): Shutting down VM
W/dalvikvm(  392): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime(  392): FATAL EXCEPTION: main
E/AndroidRuntime(  392): java.lang.UnsatisfiedLinkError: init
E/AndroidRuntime(  392): 	at com.android.faceAuth.core.faceAuthJNI.init(Native Method)
E/AndroidRuntime(  392): 	at com.android.faceAuth.FaceRecActivity.initFaceRec(FaceRecActivity.java:257)
E/AndroidRuntime(  392): 	at com.android.faceAuth.FaceRecActivity.onCreate(FaceRecActivity.java:287)
E/AndroidRuntime(  392): 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime(  392): 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
E/AndroidRuntime(  392): 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
E/AndroidRuntime(  392): 	at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/AndroidRuntime(  392): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
E/AndroidRuntime(  392): 	at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime(  392): 	at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime(  392): 	at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime(  392): 	at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(  392): 	at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime(  392): 	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime(  392): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime(  392): 	at dalvik.system.NativeStart.main(Native Method)
W/ActivityManager(   70):   Force finishing activity com.android.faceAuth/.FaceRecActivity

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

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