Giter Club home page Giter Club logo

opencv's Introduction

OpenCV (C++)

OpenCV Kurulumu ve Visual Studio Entegresi

OPENCV KURULUMU :

Öncelikle OpenCV kütüphanesini makinemize indiriyor ve istediğimiz bir dizine çıkarıyoruz.

http://opencv.org/releases.html adresinden istenilen version (bendeki 4.1.1) indirilebilir. Kütüphane dosyasını istediğimiz herhangi bir dizinde çıkarabiliriz. Ben C:\ dizinini tercih ettim.

Kütüphaneyi rahatça kullanabilmek için gerekli pathlerin verilmesi gerekiyor, sırasıyla;

Control Center -> System and Security -> System -> Advanced System Settings yolunu izliyoruz. Daha sonra "Environment Variables" butonuna tıklıyoruz. Açılan ekranda aşağıda gösterilen Path yazan yere tıklayıp, düzenle butonuna basıyoruz.

Ben C:\ dizinine OpenCV kütüphanesini çıkarttığım için C:\opencv\build\x64\vc14\bin adresini yeni butonuna bastıktan sonra yapıştırıyoruz. Bu adres sizde OpenCV ‘yi çıkarttığınız yere göre değişkenlik gösterebilir.

OPENCV VISUAL STUDIO 2018 ENTEGRESİ:

Daha sonra uygulamayı C++ ile Visual Studio ortamında yazacağımızdan dolayı Visual C++ Win32 Konsol Uygulaması oluşturuyoruz.

ÖNEMLİ: Eğer VStudio toolbar da Debug seçeneği x86 ise onu x64 yapıyoruz. Bu işlemin sebebi OpenCV'nin v3.0 ile birlikte yalnızca x64 mimariyi desteklemesidir. Ayrıca debug mode yerine release mode çalışmak isteyebilirsin. Bunun için yapman gereken yalnızca son adımda kullanılan opencv_world411d.lib ismindeki -d harfini silmektir, bu debug anlamına gelir.

Derleyicinin sağ üst bölümünde bulunan Solution Explorer -> Properties diyoruz.

Sizin kurduğunuz dizine göre değiştirip opencv\build\include dizinini;

Configuration Properties -> VC++ Directories -> Additional Include Directories kısmına yapıştırın. Ben ekleme kodu dosyalarını C’ye çıkardığımdan, C:\opencv\build\include adresinini yapıştırıyorum.

Yine sizin kurduğunuz dizine gore degistirip opencv\build\x64\vc14\lib dizinini;

Configuration Properties -> VC++ Directories -> Library Directories kısmına yapıştırın. Ben kütüphane dosyalarını C'ye çıkardığımdan, C:\opencv\build\x64\vc14\lib adresini ekliyorum.

Son olarak kurduğunuz sürüme göre faklılık oluşturan opencv_world411d.lib dosya ismini:

VC++ Dizinleri deki işlemlerimizi hallettikten sonra Configuration Properties -> Linker -> Input -> Additional Dependincies seçeneğine tıklıyoruz. C:\opencv\build\x64\vc14\lib dizininde bulunan, opencv_world411d.lib dosyasını (debug mode için) ekliyoruz.

Bu işlemlerden sonra örnek proje kodları çalıştırılabilir.

opencv's People

Contributors

fbasatemur avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.