Code Monkey home page Code Monkey logo

emcvlib's Introduction

EMCVLib

An OpenCV framework for iOS and macOS.

Usage

Needed iOS 8.0+.

Needed macOS 10.10+ and OpenCV 2.4.x.

iOS: Install OpenCV for iOS

Install OpenCV by using Cocoapods.

cd EMCVLib
pod install

macOS: Install OpenCV for macOS

Install OpenCV with brew:

We cannot use brew to install OpenCV due to this issue: [OpenCV #7833]

It'll crash when releasing camera in Cocoa application.

So we need to compile it by ourselves.

Headers should be here:

/usr/local/include/opencv

/usr/local/include/opencv2

Librarys should be here:

/usr/local/lib

Install the framework

Download the repo. Then drag the framework project to your project.

Functions

What can this framework does now?

  • Display image and play real-time processing video with customized filter.
  • Color convert. Channals split. Image flip, smooth, blending.
  • Edge Detection. Find extreme values and locations. Calculate and compare histograms.
  • Corener Harris. Shi-Tomasi. Optical Flow.
  • Matching algorithm: Template Match. Back Projection. SURF Match.

Screenshots

Some screenshots of the demo.

iOS Image Sample

Image Smooth

Image Blending

Threshold

Canny and Edge Detection

Corner Harris

Optical Flow

Template Match

SURF Match

Back Projection

History Compare

Tips

Use @autoreleasePool when doing loop can solve some memory problems.

Documents

API docs and bugs here.

  • [Bug] Bugs.

  • [API] EMCVFactory: A wrapped functions whitch can do some computer vision calculations.

  • [API] EMCVBasicImage: A wrapped basic image class.

  • [API] EMCVImage: A wrapped image class.

  • [API] EMCVSplitedImage: A wrapped multi channel image class.

  • [API] EMCVSingleImage: A wrapped single channel image class.

  • [API] EMCVFilter: A wrapped image filter.

  • [API] EMCVFilterOperation: A wrapped image operation by using block.

  • [API] EMCVVideoCapture: A wrapped video player class.

  • [API] EMCVVideoWriter: A wrapped video writer class.

  • [API] NSImageView + EMCVLib: A category of NSImageView.

  • [API] UIImageView + EMCVLib: A category of UIImageView.

Contect

Blog: http://enumsblog.com

Email: [email protected]

HAVE FUN! : )

emcvlib's People

Contributors

trmbhs avatar

Watchers

James Cloos 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.