background preloader

Android Scripting With Python

Facebook Twitter

Developers. Developer Resources. FaceDetector.Face. Class Overview A Face contains all the information identifying the location of a face in a bitmap.


Summary Constants public static final float CONFIDENCE_THRESHOLD The minimum confidence factor of good face recognition Constant Value: 0.4 public static final int EULER_X The x-axis Euler angle of a face. Constant Value: 0 (0x00000000) public static final int EULER_Y The y-axis Euler angle of a face. Constant Value: 1 (0x00000001) public static final int EULER_Z The z-axis Euler angle of a face. Constant Value: 2 (0x00000002) Public Methods public float confidence () Returns a confidence factor between 0 and 1. Public float eyesDistance () Returns the distance between the eyes. public void getMidPoint (PointF point) Sets the position of the mid-point between the eyes. Parameters public float pose (int euler) Returns the face's pose. Returns. The Developer's Guide. Android provides a rich application framework that allows you to build innovative apps and games for mobile devices in a Java language environment.

The Developer's Guide

The documents listed in the left navigation provide details about how to build apps using Android's various APIs. If you're new to Android development, it's important that you understand the following fundamental concepts about the Android app framework: Apps provide multiple entry points Android apps are built as a combination of distinct components that can be invoked individually. For instance, an individual activity provides a single screen for a user interface, and a service independently performs work in the background. From one component you can start another component using an intent. Learn more: Apps adapt to different devices Android provides an adaptive app framework that allows you to provide unique resources for different device configurations. SDK. Before installing Android Studio or the standalone SDK tools, you must agree to the following terms and conditions.


This is the Android Software Development Kit License Agreement 1. Introduction 1.1 The Android Software Development Kit (referred to in this License Agreement as the "SDK" and specifically including the Android system files, packaged APIs, and Google APIs add-ons) is licensed to you subject to the terms of this License Agreement. This License Agreement forms a legally binding contract between you and Google in relation to your use of the SDK. 1.2 "Android" means the Android software stack for devices, as made available under the Android Open Source Project, which is located at the following URL: as updated from time to time. 1.3 "Google" means Google Inc., a Delaware corporation with principal place of business at 1600 Amphitheatre Parkway, Mountain View, CA 94043, United States. 2. 2.1 In order to use the SDK, you must first agree to this License Agreement.

Installing the SDK. Android Scripting With Python - Installation and Hello World. Installation and Hello World August 19, 2010 By Paul Ferrill One of the things about the Android platform that appeals to many in the Linux community is the fact that it's based extensively on open source, Oracle lawsuits notwithstanding.

Android Scripting With Python - Installation and Hello World

The primary way to write applications for an Android-based phone is still Java. Google provides a Software Development Kit (SDK) with all the documentation, libraries and tools you need. There's even an add-on for the open-source Eclipse Integrated Development Environment (IDE) to help you along. figure 1 Google recently released a new and improved version of what was previously called the Android Scripting Edition (ASE) now renamed to Scripting Layer for Android (SL4A). The first thing you need to do is download the appropriate SDK for your phone. Figure 2 Touching the SLA4 icon launches the scripting host which initially has only the Shell interpreter installed.