Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

is it possible display full screen in mac with opencv?

Hi guys,
I can use the below code to display full screen in Windows and Linux. but in Mac OS X, it always have the menu bar in the top! Is it possible to display full screen in mac with opencv? any one have ideas of this?

Regards Andy

cvNamedWindow(CALIBRATE_FORM_NAME, CV_WINDOW_AUTOSIZE); cvSetWindowProperty(CALIBRATE_FORM_NAME, CV_WINDOW_FULLSCREEN, CV_WINDOW_FULLSCREEN); cvMoveWindow(CALIBRATE_FORM_NAME, 0, 0);

int screen_width = GlobalData::Instance()->GetScreenWidth();
int screen_height = GlobalData::Instance()->GetScreenHeight();
IplImage* img = cvCreateImage(cvSize(screen_width, screen_height), IPL_DEPTH_8U, 3);
cvZero(img);


//cvMoveWindow(CALIBRATE_FORM_NAME, 0, 0);
cvShowImage(CALIBRATE_FORM_NAME, img);

is it possible display full screen in mac with opencv?

Hi guys,
I can use the below code to display full screen in Windows and Linux. but in Mac OS X, it always have the menu bar in the top! Is it possible to display full screen in mac with opencv? any one have ideas of this?

Regards Andy

cvNamedWindow(CALIBRATE_FORM_NAME, CV_WINDOW_AUTOSIZE); cvSetWindowProperty(CALIBRATE_FORM_NAME, CV_WINDOW_FULLSCREEN, CV_WINDOW_FULLSCREEN); cvMoveWindow(CALIBRATE_FORM_NAME, 0, 0);

int screen_width = GlobalData::Instance()->GetScreenWidth();
int screen_height = GlobalData::Instance()->GetScreenHeight();
IplImage* img = cvCreateImage(cvSize(screen_width, screen_height), IPL_DEPTH_8U, 3);
cvZero(img);


//cvMoveWindow(CALIBRATE_FORM_NAME, 0, 0);
cvShowImage(CALIBRATE_FORM_NAME, img);
click to hide/show revision 3
show the crash code

is it possible display full screen in mac with opencv?

Hi guys,
I can use the below code to display full screen in Windows and Linux. but in Mac OS X, it always have the menu bar in the top! Is it possible to display full screen in mac with opencv? any one have ideas of this?

Regards Andy

solved fullscreen but crashed! this is the code: I used opencv2.4.3 and done like this link http://code.opencv.org/issues/2846

but still crased!

cvNamedWindow(WIN_NAME, CV_WINDOW_NORMAL);
cvSetWindowProperty(WIN_NAME, CV_WND_PROP_FULLSCREEN, CV_WINDOW_FULLSCREEN);
int screen_width = GlobalData::Instance()->GetScreenWidth();
int screen_height = GlobalData::Instance()->GetScreenHeight();
IplImage* img = cvCreateImage(cvSize(screen_width, screen_height), IPL_DEPTH_8U, 3);
cvZero(img);
cvShowImage(WIN_NAME, img);
sleep(1);
cvReleaseImage(&img);
cvDestroyWindow(WIN_NAME);

is it possible display full screen in mac with opencv?

Hi guys,
I can use the below code to display full screen in Windows and Linux. but in Mac OS X, it always have the menu bar in the top! Is it possible to display full screen in mac with opencv? any one have ideas of this?

Regards Andy

solved fullscreen but crashed! this is the code: I used opencv2.4.3 and have done like this link http://code.opencv.org/issues/2846

but still crased!

cvNamedWindow(WIN_NAME, CV_WINDOW_NORMAL);
cvSetWindowProperty(WIN_NAME, CV_WND_PROP_FULLSCREEN, CV_WINDOW_FULLSCREEN);
int screen_width = GlobalData::Instance()->GetScreenWidth();
int screen_height = GlobalData::Instance()->GetScreenHeight();
IplImage* img = cvCreateImage(cvSize(screen_width, screen_height), IPL_DEPTH_8U, 3);
cvZero(img);
cvShowImage(WIN_NAME, img);
sleep(1);
cvReleaseImage(&img);
cvDestroyWindow(WIN_NAME);

is it possible display full screen in mac with opencv?

Hi guys,
I can use the below code to display full screen in Windows and Linux. but in Mac OS X, it always have the menu bar in the top! Is it possible to display full screen in mac with opencv? any one have ideas of this?

Regards Andy

solved fullscreen but crashed! this is the code: I used opencv2.4.3 and have done like this link http://code.opencv.org/issues/2846

but still crased!

cvNamedWindow(WIN_NAME, CV_WINDOW_NORMAL);
cvSetWindowProperty(WIN_NAME, CV_WND_PROP_FULLSCREEN, CV_WINDOW_FULLSCREEN);
int screen_width = GlobalData::Instance()->GetScreenWidth();
int screen_height = GlobalData::Instance()->GetScreenHeight();
IplImage* img = cvCreateImage(cvSize(screen_width, screen_height), IPL_DEPTH_8U, 3);
cvZero(img);
cvShowImage(WIN_NAME, img);
sleep(1);
cvWaitKey(0);
cvReleaseImage(&img);
cvDestroyWindow(WIN_NAME);

Crash Informations:

    0   CoreFoundation                      0x00007fff8d1060a6 __exceptionPreprocess + 198

1   libobjc.A.dylib                     0x00007fff91d543f0 objc_exception_throw + 43
2   CoreFoundation                      0x00007fff8d19c6ea -[NSObject(NSObject) doesNotRecognizeSelector:] + 186
3   CoreFoundation                      0x00007fff8d0f45ce ___forwarding___ + 414
4   CoreFoundation                      0x00007fff8d0f43b8 _CF_forwarding_prep_0 + 232
5   libopencv_highgui.2.4.dylib         0x0000000100594a8f -[CVView setFrameSize:] + 175
6   libopencv_highgui.2.4.dylib         0x000000010059246c cvShowImage + 1068

....