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 | 31 |
Tags
- 김창준
- OpenCV
- 교훈들
- Computer Vision
- 페북글
- build
- 직무의사유화
- 스펙
- 회고
- 품의
- 보석들
- Python
- 와인버그
- MacOS X
- 맥
- Documentation
- Agile
- 엔지니어
- xper
- 인간
- 개인성향
- 개저씨
- Specification
- 인사
- 애자일
- 인사과
- 안좋은기억
- 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