Coder Social home page Coder Social logo

hcanfly / kbeview Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 17.28 MB

KBEView is an iOS view that presents a slideshow using a Ken Burns Effect. That is, if there are people in the image it will pan and zoom to highlight their faces.

License: MIT License

Swift 100.00%

kbeview's Introduction

KenBurnsEffect

The KenBurnsView takes in an array of images and displays them in a slideshow. It uses the Vision framework to detect faces in the images (much, much better than their previous face detection) and will pan and zoom to highlight them. Which is how Ken Burns brings some life to still pictures in his documentaries. If it can't find any images it will simply pan the image horizontally or vertically depending on whether the image is portrait or landscape. I have found that trying to pan to more than three faces requires either a lot of time, or really rushing. So, the view will only pan to a maximum of three faces. If it finds more than three faces it will pan to the left-most one, then the one in the center, and then the one on the right.

Note: All of the included sample images were downloaded from the Internet and may have copyrights. I strongly suggest you don't use them in any product that you distribute widely :-)

|Screenshot

System Requirements

  • Deployment target iOS 11.0+
  • Xcode 10.0+
  • Swift 4.0+

License

KenBurnsEffect is licensed under the MIT License. See the LICENSE file for more information, but basically this is sample code and you can do whatever you want with it.

kbeview's People

Watchers

James Cloos avatar Gary Hanson 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.