AGENDA
Tutorials - OpenCV
Konfigurasi OpenCV Pada Microsoft Visual Studio 2012

Konfigurasi ini dilakukan untuk meng-import library-library OpenCV, agar program bisa berjalann dengan baik.



Konfigurasi OpenCV Pada Microsoft Visual Studio 2012

Dibawah ini adalah langkah-langkah untuk melakukan Konfiguarasi OpenCV pada Microsoft Visual Studio 2012.

1) Pertama-tama buka aplikasi Microsoft Visual  Studio 2012  yang sudah terintall sebelumnya. Kemudian buatlah New Project dengan cara : pilih File » New » Project, seperti gambar berikut :

2) Pilih Visual C++ » Win32 Console Application » beri nama » Klik » tentukan lokasi penyimpanannya » Ok, seperti pada gambar berikut :

3) Kemudian akan muncul jendela Win32 Application Wizard – menampilkanGambar » Klik Next.

4) Lalu pilihlah Console Application dan cheklistlah Empty Project » Klik Finish.

5) Klik kanan pada nama project, pilih Add, lalu pilih New Item.

6) Kemudian akan muncul jendela Add New Item, pilihlah Visual C++ » C++ File (.cpp) » beri nama » tentukan lokasi penyimpanan » klik Add.

 

7) Klik Project pada menu bar Visual Studio, kemudian pilih (nama file) Properties ..

8) Kemudian akan tampil gambar seperti dibawah ini. Klik Submenu C++ kemudian pilih General. lalu pilih Edit ..

Akan muncul jendela seperti gambar berikut :

Isi kolom Additional Include Depedencies dengan :

C:\Program Files\opencv\build\include; C:\Program Files\opencv\build\include\opencv;

Lalu klik OKSetelah itu klik Apply, lalu klik OK.

9) Ulangi Step 7, klik tab project Properties, kemudian akan tampil gambar seperti dibawah ini. Klik Submenu Linker, pilih Input. Lalu klik Additional Dependencies, pilih Edit.

Lalu, akan muncul jendela seperti di bawah ini :

Isi Additional Depedencies dengan :

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_calib3d2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_calib3d2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_contrib2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_contrib2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_core2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_core2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_features2d2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_features2d2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_flann2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_flann2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_gpu2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_gpu2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_highgui2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_highgui2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_imgproc2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_imgproc2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_legacy2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_legacy2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_ml2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_ml2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_nonfree2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_nonfree2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_objdetect2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_objdetect2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_ocl2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_ocl2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_photo2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_photo2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_stitching2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_stitching2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_superres2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_superres2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_ts2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_ts2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_video2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_video2410d.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_videostab2410.lib";

"C:\Program Files\opencv\build\x86\vc10\lib\opencv_videostab2410d.lib";

Kemudian klik OK » Apply » OK.

Note : cara-cara konfigurasi OpenCV diatas harus diimplementasikan pada saat setiap akan memulai membuat program menggunakan OpenCV.

 

 

Like or Share This Article




COMMENTS ( 0 )
 
Keep connected with us, mobile apps available now !!