Skip to content
Switch branches/tags

Latest commit

BarcodeDetector: This demo demonstrates basic barcode detection and
integration with AVFoundation. The app highlights barcodes in the
camerapreview frame.

MultiDetector: This demo demonstrates how to use the MultiDataOutput in
GoogleMVDataOutput pod to integrate both face and barcode detectors with
the video pipeline. The app draws overlay on top of detected barcodes
and faces.

Change-Id: I6d95a39a6294eb3a29baedb4d98d29aa864da29c

Git stats


Failed to load latest commit information.
Latest commit message
Commit time

iOS Vision API Samples

At this time, these samples demonstrate the vision API for detecting faces.

A note on CocoaPods

The Google Mobile Vision iOS SDK and related samples are distributed through CocoaPods. Set up CocoaPods by going to and following the directions.

Try the sample apps

After installing CocoaPods, run the command pod try GoogleMobileVision from Terminal to open up any example projects for the library. There are 2 sample apps available:

  • FaceDetectorDemo: This demo demonstrates basic face detection and integration with AVFoundation. The app highlights face, eyes, nose, mouth, cheeks, and ears within detected faces.

  • GooglyEyesDemo: This demo demonstrates how to use the GoogleMVDataOutput pod to simplify integration with the video pipeline. The app draws cartoon eyes on top of detected faces.

If you want to try the samples from the github source code. Do the following:

  • Run the command pod install from Terminal in the folder that contains the Podfile. This will download the required dependencies.
  • Launch the [Project Name].xcworkspace. This will open the sample app with xcode.


For General questions and discussion on StackOverflow:

If you've found an error in this sample, please file an issue:

Patches are encouraged, and may be submitted by forking this project and submitting a pull request through GitHub.


Copyright 2016 Google, Inc. All Rights Reserved.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


No description, website, or topics provided.




No releases published


No packages published