Coder Social home page Coder Social logo

ios-opencv-demo's Introduction

IOS - OpenCV - Demo

前言

This is a demo for image stitching use swift & object-c & OpenCV 3.2 .

Hope it's helpful for anyone want to use OpenCV in IOS.

(Better use simulators, it's very slow run at my iphone6.)

这是一个使用 Swift 开发的图片拼接 demo , 利用 object-c 整合 OpenCV 3.2

希望对在 IOS 中使用 OpenCV 的朋友有点帮助

(最好使用模拟器运行,在手机上运行会非常慢)

使用

修改循环中的数字,对应文件夹中的图片名字,也可以加入新的图片.

for i in 0...17{
    if let image = UIImage(named:"\(i).jpg") {
         images.append(image)
     }
}

此方法为 使用OpenCV 自带的方法实现 图片拼接

-(UIImage *) stitchWithOpenCV:(NSArray *) images;

此方法为 根据Madcola 前辈的 帖子把 他使用的 opencv2 转 成 opencv3.2 实现的图片拼接.

-(UIImage *) startTest:(UIImage *)pimage1 image2:(UIImage *)pimage2;

资料

以下自学过程中的搜集的一些资料

open cv 官网

Madcola 的 博客

如何 openCV 3 后使用 SIFT and SURF 算法

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.