Skip to content

SwiftVision is a Swift framework for image manipulation and editing that utilizes OpenCV, an open-source computer vision library. It includes a feature for dewarping book pages, allowing them to appear flat.

License

Notifications You must be signed in to change notification settings

joeypatino/swiftvision

Repository files navigation

Swift Version Cocoapods platforms License: MIT PRs Welcome

SwiftVision

SwiftVision is a Swift framework for image manipulation that utilizes OpenCV, an open-source computer vision library. It includes a feature for dewarping book pages, allowing them to appear flat.

Features

  • Image manipulation using OpenCV: SwiftVision provides a wide range of image editing functions such as scaling, rotating, blurring, thresholding, and more.
  • Dewarping of book pages: SwiftVision's book dewarping feature is based on a model that assumes a book's surface is warped like a cylinder. This model allows a user to take a picture of a book page from various points of view, which can be difficult with other dewarping techniques that require the camera to be strictly parallel to the book surface.

A lot of credit for the page dewarping process goes to the great write-up by Matt Zucker: https://mzucker.github.io/2016/08/15/page-dewarping.html.

Requirements

  • iOS 12.0+

Installation

CocoaPods

You can use CocoaPods to install SwiftVision by adding it to your Podfile:

platform :ios, '12.0'
use_frameworks!
pod 'SwiftVision', :git => 'git@github.com:joeypatino/swiftvision.git'

Usage example

A working example of how to use SwiftVision can be found in the included SwiftVisionDemo app. You can use this demo app to explore the framework's features and see how to implement them in your own project.

Contributing

Contributions to SwiftVision are welcome! If you find a bug or would like to make an improvement, please report it on the project's GitHub page at https://github.com/joeypatino/swiftvision.

Meta

Joey Patino – @nsinvalidargjoey.patino@pm.me

License

SwiftVision is released under the MIT License. See the LICENSE file for details.

About

SwiftVision is a Swift framework for image manipulation and editing that utilizes OpenCV, an open-source computer vision library. It includes a feature for dewarping book pages, allowing them to appear flat.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published