Book Image

OpenCV for Secret Agents

By : Joseph Howse
Book Image

OpenCV for Secret Agents

By: Joseph Howse

Overview of this book

Table of Contents (15 chapters)
OpenCV for Secret Agents
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Specifying the app's requirements


The AndroidManifest.xml file (the Android Manifest) is the place where an app announces information that the system, Google Play, and other apps might need to know. For example, Goldgesture requires a front-facing camera and permission to use it (a license to shoot, one might say). Goldgesture also expects to run in landscape mode regardless of the physical orientation of the phone, because OpenCV's camera preview always uses the camera's landscape dimensions. (OpenCV's Android documentation does not indicate whether this behavior is intended. Perhaps future versions will provide better support for portrait orientation.) To specify these requirements, edit AndroidManifest.xml to match the following sample:

Note

When you open AndroidManifest.xml in Eclipse, you might see a form titled Android Manifest. To edit the source code directly instead of using the form, click on the AndroidManifest.xml tab below the form.

<?xml version="1.0" encoding="utf-8"?>...