Skip to content

Version 2.0 of OpenCVStitch. How to stitch images using OpenCV on iOS. This version demonstrates using Swift, Objective-C and C++ together in one project.

Notifications You must be signed in to change notification settings

mablekos/OpenCVSwiftStitch

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCV computer vision with iOS: stitching panoramas

Version 2.0 of OpenCVStitch

This new version demonstrates how to mix Swift, Objective-C and C++ in one project whilst keeping the code clearly separate. The project starts life in Swift. The AppDelegate and View Controller are written in Swift. Swift cannot talk directly to C++ (which we need for OpenCV), so we provide an Objective-C++ wrapper class to mediate between Swift and C++. We also provide an Objective-C++ category on UIImage to mediate between UIImage and CV::Mat image formats. The CVWrapper header file is pure Objective-C. This is important. If any C++ headers are included here the app will not compile (Swift won't like it).

Version 2.0 uses CocoaPods to import the latest OpenCV framework. Assuming you have first installed CocoaPods, run 'pod install' in this directory to install OpenCV for the project. If you want to try stitching without CocoaPods, take a look at V1.

OpenCVStitch is a very simple iOS/openCV example showing basic use of the Stitcher class. The c++ code is adapted from the c++ samples included with the openCV distribution.

Version 1.0 is built with XCode 4.5.2 for iOS 5.1+
Version 2.0 is built with XCode 6.3 / Swift 1.2 for iOS 7.0+

Provides a partial answer to: Libraries to capture panoramas in iOS 6 (Stack Overflow)

About

Version 2.0 of OpenCVStitch. How to stitch images using OpenCV on iOS. This version demonstrates using Swift, Objective-C and C++ together in one project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C++ 34.9%
  • C++ 29.0%
  • Swift 26.2%
  • Objective-C 7.5%
  • C 1.6%
  • Ruby 0.8%