01. http://opencv.org/ download - opencv 2.4.4 >> includeC:\opencv2.4.4\build\includeC:\opencv2.4.4\build\include\opencvC:\opencv2.4.4\build\include\opencv2 >> libraryC:\opencv2.4.4\build\x86\vc10\lib ------------------------------Debug-----------------------------opencv_calib3d244d.libopencv_contrib244d.libopencv_core244d.libopencv_features2d244d.libopencv_flann244d.libopencv_gpu244d.lib opencv..
Develop tools openCV 2.4.10 with CUDA 6.5 openCV 3.2.0 with CUDA 8.0 Introduction 시간이 지남에 따라 최신의 개발버전을 설정하기위해, 그리고 기존에 사용하던 버전을 사용하기위해 여러가지 설정 방법들이 있지만, 천천히 정리해둔 글을 포스팅 하려 합니다. (자세한 포스팅은 천천히) 아래는 현재 각각의 개발 환경 설정 부분 메모용. For openCV 3.2.0 with CUDA 8.0 windows 시스템 환경 변수 설정 OPENCV3200 / D:\SDK\opencv320\opencv320lib\dll OPENCV2410 / D:\SDK\opencv2410x86\bin 시스템 전역 path에는 아래와 같이 추가 ;%OPENCV2410%;%OP..
openCV Mat을 사용하면서 Mat을 초기화 하는 방법으로. 아래와 같은 파라미터들이 들어감. 파라미터 정보는 참고하여 항상 생성하도록 하자. Mat을 사용할 때는 아래와 같이 사용함.
Setting the develop environment OpenCV 3.2.0 build with CUDA 8.0, TBB, extraModule Introduction 현재 openCV3.2.0(최신버전, 2017.05.xx) 및 extraModule를 이용하여 cmake에서 빌드를 하는 방법은 많이 포스팅 되어있으나, 빌드가 제대로 되지 않아 포스팅 함 openCV 2.4.10, openCV 2.4.13, openCV 3.2.0 등 x86, x64 버전에에 대해 visual studio (2010, 2013, 2015, 2017) 제각각 돌려보았으나, 각 버전별로 차이가 있음. 그러나 중요한 것은 build tools의 호환성 문제도 있지만, 초보자들에 있어 path 문제 및 버전을 제대로 맞추지 ..
영상처리에서 영상1+영상2 를 합치고자 할때 사용. 코드의 사용 목적. - Object 검출 후 경고 메시지를 발생하기 위해서 코드 작성함. - 간단한 예제인데, point를 이용하여 Mat에 접근 하는 것보다 그냥 func 를 이용하는게 편하기 때문에 메모! Input (입력영상1/입력영상2/결과영상) 결과이미지는 클릭해서 보도록하세요!!영상을 가로로 넣었는데 조절이 안됨 ㅜ_ㅜ! 소스코드 #include "opencv2/gpu/gpu.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/opencv.hpp" #include "opencv2/core/core.hpp" #include "iostream" // 괄호 문제로 큰따옴표로 수정함 usin..
Python 2.7.5 Windows Install with OpenCV 2.4.3 - Python 에서 opencv를 사용하는 방법이 설명이 제대로 된곳이 없네요. 그래도 - Reference 한곳에서 꼼꼼히 살펴보고 하니 되네요 ㅎ그래도 출처에 남겨진 곳에서 보고 하면 되는데...왜 -_- 계속 삽질을 했던건지.. Windows 8 64bit 를 쓴다고해서 개발도 64bit 로 하면 안되는군요....32bit를 설치해서 공부하도록 합시다. 출처 : 무재칠시님 블로그( http://imky.egloos.com/2969966 ) [Download]Python (32bit 2.7.5 version Download)http://www.python.org/NumPy 1.7.0http://sourceforge...
SVM C/C++ code >> 주의사항 - svm 에 초기값을 제대로 넣어주어야 결과가 제대로 나온다. dataclass 의 type 수를 2개만 줄건지 그 이상 줄건지 확실히 하도록 하자. 그렇지 않으면 svm 의 predict() 함수의 return 값이 원하는 값이 아닐 거다! >> 코드 - 초기화 // Set up training data float labels[4] = {1.0, 2.0, 2.0, 1.0}; Mat labelsMat(4, 1, CV_32FC1, labels); float trainingData[4][2] = { {501, 10}, {255, 10}, {501, 255}, {10, 501} }; Mat trainingDataMat(4, 2, CV_32FC1, trainingDat..
영상에 글자 출력 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 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..
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..