Apple introduces CoreML − Machine Learning Framework

On June 2017 in an opening keynote of WWDC in California, Apple introduced CoreML − machine learning framework that is designed to help developer build amazing user experiences.

Two main parts of this framework are Vision and NLP (Natural Language Processing).

Vision allows you to integrate machine learning features into your applications, like:  face tracking, face detection, landmarks, text detection, rectangle detection, barcode detection, object tracking, and image registration.

Where is NLP focused on: language identification, tokenization, lemmatization, part of speech, and named entity recognition.

This is a very big step forward for a developers. Giving this set of tools and API's will allow us in the next 5 months build and bring new category of applications into customers smartphones by the time new iPhone 8 (?) and iOS11 will be delivered by Apple.

Just as an example, imagine an application, that will allow you to point your camera onto a dog, flower, tree, piece of furniture, etc and get full information about it: name, breed, classification, price and so much more.

Considering this exciting news I've created example application and custom Image Recognizer class written in Swift that takes user provided picture, process it and returns name of the object and confidence number (from 0-100%). See example screenshot below.

apple coreml vision application exampleFull github example of the working application project can be found here.

1,943 total views, 2 views today

How to increment build number on every “Build” you perform in xCode Project

These are 5 steps that will allow you fully automate process of incrementing a build number in xCode project:

  1. Open your xCode project and go to Target Settings -> Build Settings -> Switch to show ALL settings
  2. Scroll down to Versioning tab and find option called Curent Project Version. Double click on it's value and set it to be the number of build you want increment to start from.
    Set Curent Project Version in xCode
  3. Now switch to Build Phases tab
  4. Click on + icon and select "New run script phase"
    Build Phases
  5. Click on newly created run script and copy next code snipped:


    "${DEVELOPER_BIN_DIR}/agvtool" next-version -all

    Auto increment build bumber xCode script

You all set! Now press command + B to build your application and see your Build Number automatically increments.
So what happens, is that on every build you perform xCode will execute terminal command that will instruct agvtool to increment your build number.

Happy coding!

1,576 total views, 3 views today