Courtesy: GitHub
Warning: file_get_contents(../git/googlesamples/android-vision/visionSamples/multi-tracker/ failed to open stream: No such file or directory in /var/www/ on line 10

compileSdkVersion 24

applicationId ""

minSdkVersion 9

targetSdkVersion 24

versionCode 1

versionName "1.0"

compile fileTree(dir: 'libs', include: ['*.jar'])

compile ''

compile ''

compile ''


versionCode 1

versionName 1


  • android.permission.CAMERA


Activity for the multi-tracker app. This app detects faces and barcodes with the rear facing camera, and draws overlay graphics to indicate the position, size, and ID of each face and barcode.

Initializes the UI and creates the detector pipeline.

Handles the requesting of the camera permission. This includes showing a "Snackbar" message of why the permission is needed then sending the request.

Creates and starts the camera. Note that this uses a higher resolution in comparison to other detection examples to enable the barcode detector to detect small barcodes at long distances.

Restarts the camera.

Stops the camera.

Releases the resources associated with the camera source, the associated detectors, and the rest of the processing pipeline.

Callback for the result from requesting permissions. This method is invoked for every call on {@link #requestPermissions(String[], int)}.

Note: It is possible that the permissions request interaction with the user is interrupted. In this case you will receive empty permissions and results arrays which should be treated as a cancellation.

* @param requestCode The request code passed in {@link #requestPermissions(String[], int)}. @param permissions The requested permissions. Never null. @param grantResults The grant results for the corresponding permissions which is either {@link PackageManager#PERMISSION_GRANTED} or {@link PackageManager#PERMISSION_DENIED}. Never null. @see #requestPermissions(String[], int)

Starts or restarts the camera source, if it exists. If the camera source doesn't exist yet (e.g., because onResume was called before the camera source was created), this will be called again when the camera source is created.