영상에 글자 출력 for Android Native code CvFont m_font; // OpenCV font // get fps and Output if(IS_DEBUG){ fTime = (cvGetTickCount() - fTime)/(cvGetTickFrequency()*1000); DPRINTF("Excution Time = %g ms", fTime); char outputString[30] = {0,}; sprintf( outputString, "fps = %lf", fTime ); putText( *pMatRgb, outputString, Point(10, 30), FONT_HERSHEY_SIMPLEX, 1.0, CV_RGB(0,255,0), 2.0); } // init Font - 혹시나..
using a FunctiongetTickCount()getTickFrequency()cvGetTickCount()- native Code 를 위해서 찾아보았는데 GetTickCount() 를 사용하지 않고 cv 의 함수를 사용하여서 불필요한 include header 를 할 필요가 없어진다. float fTime = cvGetTickCount(); // To do list DetectMarker(pMatGr); DrawSquares(pMatRgb); // get fps and Output if(IS_DEBUG){ fTime = (cvGetTickCount() - fTime)/(cvGetTickFrequency()*1000); DPRINTF("Excution Time = %g ms", fTime); } ..
using openCV2.4.3 for Detect Rectangle(제목이 문법이 맞는가 모르겠네~ for 빼는게 나아보이는데 ) openCV version : 2.4.3 using Visual studio 2010 소스코드 #include #include #include #include using namespace std; using namespace cv; // example : Creating Bounding rotated boxes and ellipses for contours // http://docs.opencv.org/doc/tutorials/imgproc/shapedescriptors/bounding_rotated_ellipses/bounding_rotated_ellipses.html M..
OpenCV :groupRectangles() OpenCV version : 2.4.3 #include "" 부분은 태그를 방해하므로~ #include #include #include #include using namespace std;using namespace cv; 함수원형 CV_EXPORTS void groupRectangles(CV_OUT CV_IN_OUT vector& rectList, int groupThreshold, double eps=0.2); CV_EXPORTS_W void groupRectangles(CV_OUT CV_IN_OUT vector& rectList, CV_OUT vector& weights, int groupThreshold, double eps=0.2); CV_EXPO..
ubuntu 에 특별히 FTP 를 설치하지 않고 계정 생성 이후 public_html 폴더를 filezilla 를 이용하여 접근 할때 권한설정 방법이다. $cd /home/new_user/public_html $sudo chown new_user *$sudo chgrp new_user * 를 주게 되면 ftp 에서 파일권한이 읽기/쓰기 모드가 된다.
Posted Nov 21, 2012 09:14 PM by vbflash Eclipse Using the NDK pluginEclipse에 OpencV2.4.3 버전을 사용하면서 문득 JNI(native code) 가 같이 컴파일이 되었다.!오!? 이렇게 좋은것이!? 그리고 새로운 프로젝트를 생성하면 설정하는게 간단한줄 알았는데, 뭐 이건 모르면 못하는거다. Setting 과정이 별로 복잡하지 않으니, 아래와 같이 따라하면 Project를 생성하고나서 같이 Build 를 할 수 있을 것이다. 그리고 C/C++ 문법에 대해서 자동으로 쪼매!? 에러를 찾아주긴하는데, 그래도 작업은 Visual Studio 에서 하고 복사-붙여넣기를 이용해서 작업을 하기 때문에Build Setting 에서 에러를 표시해주는 부..
Rectangle Detection 현재 OpenCV 2.4.3 버전 기존의 Detection 방법 Referencehttp://dasl.mem.drexel.edu/~noahKuntz/openCVTut7.html http://opencv-users.1802565.n2.nabble.com/findContours-in-OpenCV-2-0-beta-td3740052.html Mat 를 이용하는 방법http://stackoverflow.com/questions/7838487/executing-cvwarpperspective-for-a-fake-deskewing-on-a-set-of-cvpoint http://stackoverflow.com/questions/8667818/opencv-c-obj-c-detecti..
IplImage or CvMat to Mat > IplImage or CvMat -----> cv::Mat: > from definition of cv::Mat // converts old-style CvMat to the new matrix; the data is not copied by default Mat(const CvMat* m, bool copyData=false); // converts old-style IplImage to the new matrix; the data is not copied by default Mat(const IplImage* img, bool copyData=false); IplImage *myIplImage = cvCreateImage(...); Mat myIplIm..
아나 너무 어이가 없군요 ㅜ_ㅜ 정작 하루를 날리면서...이클립스만 잔뜩 setting 하게되네요 흑흑.... opencv 2.4.3 버전을 셋팅하고나서 컴파일이 잘되었습니다. 근데...이유모를 에러가 생기는데 cpp 에서 자동컴파일로 인해 에러가 발생하였는데...그건 eclipse 에서 빌드를 못하도록 막았습니다. 근데..-_-; 에러가 남는데 로그가 남지않아서 이리저리 찾다가. ndk-build 를 못찾는다라고 나오는데...eclipse 메뉴를 다 뒤져서 -_-; build 명령어를 지워줬더니 원상복귀되네요. 으아아아악. opencv 2.4.3 을 꼭 써야해 =ㅅ= 흑..!! 그래도 찾아따. 맥에서 편집하는거라 상태가 영...마우스도 없고, 편집하는 콘트롤은 맥에서는 꽝이니..ㄸㄷ무튼 표시해둔곳에서 ..
Unable to resolve target 'android-11' until the SDK is loaded. 라는 문구가 뜬다. Eclipse 가 버전별로 그리고 갯수가 지금 4개나 깔려있다. 이것이 전부 동시에 안된다. 왜일까 생각해보니...하위버전 SDK 를 지웠다. 그리고나서 안된다. =ㅅ=... 뭐 다시 다운받는데 오래걸리지만 해야지 -_- 어쩌겠어. 우이띠. AndroidManifest.xml 에서 꼭 최 하위버전 SDK 를 확인하도록 하자.
Mat 를 이용한 데이터 저장 (FileStorage) 사용. Reference[Good Example] http://docs.opencv.org/modules/core/doc/xml_yaml_persistence.htmlhttp://www710.univ-lyon1.fr/~eguillou/documentation/opencv2/classcv_1_1_file_storage.htmlhttp://d.hatena.ne.jp/takmin/20100108/1262938079https://code.ros.org/trac/opencv/browser/trunk/opencv/samples/cpp/filestorage.cpp?rev=4032http://opencv.jp/opencv2-x-samples/xml_yamlhttp..
01. CDUA 홈페이지 http://developer.nvidia.com/cuda/cuda-downloads 00. DownloadWindows1. devdriver_4.2_winvista-win7_64_301.32_general.exe2. cudatoolkit_4.2.9_win_64.msi3. gpucomputingsdk_4.2.9_win_64.exe 01. visual studio 2010 setting a. 도구 - 옵션 - 텍스트 편집기 - 파일 확장명 설정편집기 : Microsoft Visual C++확장자명 cu, cuh 추가하기 cu | Microsoft Visual C++cuh | Microsoft Visual C++ b. library 추가하기cuda.libcudart.lib c. 사용..