Ask Your Question

okgogo2000's profile - activity

2018-04-20 09:49:50 -0600 received badge  Notable Question (source)
2016-06-05 19:20:30 -0600 received badge  Popular Question (source)
2013-06-15 21:12:46 -0600 asked a question Android Error: GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvNamedWindow

Hi, My Android Programe have the below error, I google about it and found nothing about this for Android. Any idea for this error?

OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvNamedWindow, file /home/reports/ci/slave/50-SDK/opencv/modules/highgui/src/window.cpp, line 479

2013-06-02 05:51:22 -0600 asked a question Does anyone success excute cv::VideoCapture capture(CV_CAP_ANDROID + 0) or 1?

Does anyone success excute the following code? I tried in several device(such as SAMSUNG GT-P3100. Huawei Honor 2, and other no brand devices.) and never success. anyone success excute this code alreay? Could you please tell me the device's information?

Regards

Andy.

Code:

cv::VideoCapture capture(CV_CAP_ANDROID + 0);

or

//cv::VideoCapture capture(CV_CAP_ANDROID + 1);

or

CvCapture *capture = NULL; capture = cvCaptureFromCAM(CV_CAP_ANDROID + 1);

2013-05-29 01:50:30 -0600 received badge  Student (source)
2013-05-29 01:26:51 -0600 asked a question can't open android camera with opencv.

I'm using opencv 2.4.5 trying to open the android camera with NDK.

I'm tring to use cv::VideoCapture videoCapture(CV_CAP_ANDROID + 0);

or

CvCapture *capture = cvCaptureFromCAM(CV_CAP_ANDROID + 0);

to open the camera. it always can't open the camera success.

The log in Eclipse always show the two errors:

OpenCV::camera: CameraWrapperConnector::connectToLib ERROR: cannot dlopen camera wrapper library OpenCV::camera: Native_camera returned opening error: 4

I'm testing with the SAMSUNG GT-PG3100 with Android 4.1.2

and another no brand device with Android 4.1.1

I tried 1 day already and still can't slove the problem. anyone can help me?

2013-04-25 06:31:28 -0600 commented answer is it possible display full screen in mac with opencv?

Yes, I rebuilded the Opencv2.4.3 as the person suggested but still have the same problem. I will retry it for opencv2.4.2 then back here because the person used opencv2.4.2, even i know it is most probably still have the problem.

2013-04-25 03:12:10 -0600 commented question is it possible display full screen in mac with opencv?

The simple code:

include "opencv2test.h"

include <opencv2/core/core.hpp>

include <opencv2/highgui/highgui.hpp>

include <opencv2/imgproc/imgproc.hpp>

define WIN_NAME "Test"

int main(int argc, char *argv[]) { int screen_height = 768; int screen_width = 1366; cv::namedWindow(WIN_NAME, CV_WINDOW_NORMAL); cv::setWindowProperty(WIN_NAME, CV_WND_PROP_FULLSCREEN, CV_WINDOW_FULLSCREEN); cv::Mat img = cv::Mat::zeros(screen_width, screen_height, CV_8UC3); cv::imshow(WIN_NAME, img); cv::waitKey(100); }

2013-04-25 03:10:54 -0600 commented question is it possible display full screen in mac with opencv?

Thanks. I try your ideas. and use the simple code. it still can't work on my macbookair with osx10.8.2. the programe run it shows a full screen white dialog(program cashed). but I can't quit (command+q, command+option+esc )except I push down power button on the keyboard.

2013-04-24 23:05:50 -0600 commented question is it possible display full screen in mac with opencv?

I test it and see it is crashed and don't want to mislead someone. so I try to found the bug of my code. but after one day effort. the bug still didn't fix. :(

2013-04-24 22:46:07 -0600 commented answer is it possible display full screen in mac with opencv?

Hi Steven, Thanks. It is really full screen in Mac, But it always crash when show image. Do you of any idea of this?

I have edit the question to show the crash code.

2013-04-24 04:16:21 -0600 received badge  Editor (source)
2013-04-24 03:29:14 -0600 commented answer is it possible display full screen in mac with opencv?

thanks. fix it with your comments

2013-04-24 03:20:23 -0600 asked a question 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);
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

....