Video Preview and Facial Recognition in Swift, Part 2: Saving a Photo with Overlays

This post continues my summary of lessons learned in implementing SwiftSquareCam, a Swift version of Apple’s SquareCam demo project. As described in my prior post, the original Objective-C code provided a number of core features: – taking input from either the front or back cameras, if both are present, and providing the user with a switch to toggle between the two; – displaying a live video preview […]

Read More

Video Preview and Facial Recognition in Swift, Part 1: Affine Transforms

Recently I set out to implement Apple’s SquareCam demo app for iOS in Swift. The experience proved interesting for a number of reasons, one of which I’ve already discussed: Swift’s apparent preference for optional chaining in lieu of other error detection and handling mechanisms. Here and in a forthcoming post I turn to the topic of how SwiftSquareCam implements some of its more interesting features. The entire […]

Read More

Swift’s Optional Chaining as an Experiment in Modifying Programmer Behavior

Joe

September 30, 2014

Hacker School, iOS, Swift

No Comment

Much (virtual) ink has been spilled on the topics of learning Swift and transitioning from Objective-C to Apple’s new language, so I’ll keep this one light. While working on SwiftSquareCam (in progress), a number of Swift’s features (or idiosyncrasies) stood out, not merely for being different or new, but for forcing me to program using certain patterns and idioms. It then occurred to me to think […]

Read More

enroute web service on heroku!

Recently I pushed a development version of the enroute web service to heroku! Enroute is an idea born of several road trips: we wanted something that would tell us not what’s around us right now, or just near our destination, but what’s on the way. While the concept is quite simple, the execution was, as is typical, a […]

Read More