박민혀기
OpenCV Include, Lib, PATH 본문
opencv설치(리눅스)
https://webnautes.tistory.com/1433 (Raspberry Good)
https://m.blog.naver.com/erroring/221623344213 (Good)
https://hl4rny.tistory.com/365
https://blog.xcoda.net/97 (라즈베리파이 OpenCV 설치(빌드 없이 설치파일로))
OpenCV 라즈베리파이 제로 설치
https://remnant24c.tistory.com/110?category=790786
파이썬 matplotlib, pytesseract 설치
https://ddolcat.tistory.com/698 (matplotlib)
https://lapina.tistory.com/82 (pytesseract)
opencv설치(Window)
https://www.youtube.com/watch?v=QCjqPeYR-tk (Cuda)
https://www.youtube.com/watch?v=J5TUipRipj4 (인프런)
Linux opencv 컴파일시 Command
-O1 실행 파일크기 작게
-O2 중간
-O3 실행 파일크기 크기만 빠른코드
-lstdc++ $(pkg-config opencv4 --libs --cflags)
g++ -o example example.cpp $(pkg-config opencv --libs --cflags)
OpenCV Mat 네트웤 통신
https://pythonq.com/so/c%2B%2B/402643
데스크톱 (Release Mode)
Debugging -> Environment => PATH=C:\opencv-4.5.3\build\x64\vc16\bin;%PATH%
C/C++ -> Additional Include Directories => C:\opencv-4.5.3\build\include
Linker -> Additional Library Directories => C:\opencv-4.5.3\build\x64\vc16\lib
Input -> Additional Dependencies -> opencv_world453.lib;
dll파일 복사
노트북
구성 속성 - VC++ 디렉터리 - 포함 디렉터리 - $(OPEN_LIB)\include
- 라이브러리 디렉터리 - $(OPEN_LIB)\x64\vc15\lib
#include "opencv2/opencv.hpp"
#include <iostream>
constexpr auto out = "could not find or open file";
constexpr auto in = "open file";
using namespace std;
using namespace cv;
int main() {
Mat img = imread("C:\\Users\\xlfks\\Downloads\\pixel.jpg", IMREAD_COLOR);
if (img.empty()) {
cout << out << endl;
return -1;
}
cout << in << endl;
namedWindow("img", 1);
imshow("img", img);
waitKey(0);
destroyAllWindows();
return 0;
}
'OpenCV' 카테고리의 다른 글
Capture to the score frame in streaming video game (Template Match) for Python (0) | 2023.12.20 |
---|---|
Capture to the score frame in streaming video game (Template Match) for Python (0) | 2023.12.14 |
MeanShitf 예제 (0) | 2023.06.23 |
OpenCV selectROI() API (0) | 2023.06.23 |
Ubuntu, Raspberry Pi OpenCV Install(txt File) (0) | 2022.11.08 |