GithubHelp home page GithubHelp logo

opencvwrapper's Introduction

Opencvwrapper

Hello. This is my framework which wraps opencv functionality. Only for demonstration purposes. It's a complete Android Studio project.

Android

Android library

opencvwrapperlib is an adndroid library that includes shared libraries for the framework (potentially can be changed into static), headers and a ready-to-use kotlin file.

Demo app

Demo app sources are located inside app directory.

iOS

The project is intended to build an iOS framework

How to build

build opencv

  1. Clone the opencv repository into the 'opencv_build_scripts' directory (so the path of repository root is 'opencv_build_scripts/opencv')
  2. Switch to 4.x branch (this is the branch I've tested)
  3. Prepare one of the build_opencv_xxx build scriptsd depending on your OS:
    1. In case of Android build open the build script (for now available for Windows and Linux) and edit ANDROID_SDK_ROOT and ANDROID_NDK values to your SDK and NDK locations respectively
    2. You'll probably need to make the script executable using chmod
  4. Run the build script

The script will create a build directory and fill this directory with needed build variants.

If you have build errors on macOS check your cmake version. For now openCV can't be build with cmake 3.24. Using cmake v3.23 instead fixes the problem.

Build the ios framework

  1. Make the build_ios_framework.sh script executable using chmod.
  2. Run ./build_ios_framework.sh

No other actions or parameters available for now. You can also use cmake directly.

Build the android library (and test app)

  1. Open the Android directory in Android Studio
  2. Build the project

Probably I'll add some build scripts later to be able to avoid Android Studio installation.

opencvwrapper's People

Contributors

dicrit avatar

Watchers

 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.