Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- 김창준
- Specification
- 와인버그
- xper
- Documentation
- 스펙
- 보석들
- 인사과
- 회고
- 품의
- Computer Vision
- MacOS X
- 맥
- 애자일
- 개저씨
- 안좋은기억
- OpenCV
- 페북글
- Python
- 코딩 테스트
- 엔지니어
- 개인성향
- Agile
- 직무의사유화
- 원격면접
- 교훈들
- build
- 인간
- Open Computer Vision Library
- 인사
Archives
- Today
- Total
세상을 놀라게 하자!
Build OpenCV and python interface on Mac OS X 본문
The standard guide to build open computer vision library is written on OpenCV wiki. How to use openCV in X code is described in this link (Korean). It's simple. Mac OS X is UNIX os using Darwin kernel. But building python interface was difficult. So I googled and tested the results. I summarized the search result.
-
- MacPorts is the project of porting UNIX program to Mac OS X and it can manage pre-built packages like apt-get in Debian or Ubuntu. The similar one is Fink.
- MacPorts is the project of porting UNIX program to Mac OS X and it can manage pre-built packages like apt-get in Debian or Ubuntu. The similar one is Fink.
-
Download open compter vision library.
- You can download 'OPENCV-LINUX' from sourceforge. If you click package file twice, Mac OS X shall extract whole package.
- You can download 'OPENCV-LINUX' from sourceforge. If you click package file twice, Mac OS X shall extract whole package.
-
Standard build
- Let extract OpenCV code pacakage into $OpenCV$ folder.
- Make folder build (mkdir build) under $OpenCV$ and go into this folder(cd build ).
- Type "../configure CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib" in terminal. It shall configure build environment of OpenCV. If you install fink instead MacPorts, type "../configure CPPFLAGS="-I/sw/include" LDFLAGS="-L/sw/lib".
- If there are nothing strange in output message, execute "make" in terminal
- If there are nothing strange in output message, execute "sudo make install" in terminal.
-
Build Python binding
- OpenCV wiki described that "--with--python" option in configure ( see 3.3 ) will compile python binding. But I got the error message in output. I found that the same problem made people crazy.
- Go into $OpenCV$/interfaces/swig/python/ in terminal.
- Run "python setup-for-win.py install" in terminal.
- Run IDLE and type the command below. If you success, building process is successfully done.
import opencv
- I executed facedetect.py. Hello gramma Lenna. ;-)
I have failed with this method. But this result is top listed in Google result. Please have fun. ;-).
Comments