Reader small image

You're reading from  Mastering OpenCV 4 - Third Edition

Product typeBook
Published inDec 2018
Reading LevelIntermediate
Publisher
ISBN-139781789533576
Edition3rd Edition
Languages
Tools
Right arrow
Authors (2):
Roy Shilkrot
Roy Shilkrot
author image
Roy Shilkrot

Roy Shilkrot is an assistant professor of computer science at Stony Brook University, where he leads the Human Interaction group. Dr. Shilkrot's research is in computer vision, human-computer interfaces, and the cross-over between these two domains, funded by US federal, New York State, and industry grants. Dr. Shilkrot graduated from the Massachusetts Institute of Technology (MIT) with a PhD, and has authored more than 25 peer-reviewed papers published at premier computer science conferences, such as CHI and SIGGRAPH, as well as in leading academic journals such as ACM Transaction on Graphics (TOG) and ACM Transactions on Computer-Human Interaction (ToCHI).
Read more about Roy Shilkrot

David Millán Escrivá
David Millán Escrivá
author image
David Millán Escrivá

David Millán Escrivá was 8 years old when he wrote his first program on an 8086 PC in Basic, which enabled the 2D plotting of basic equations. In 2005, he finished his studies in IT with honors, through the Universitat Politécnica de Valencia, in human-computer interaction supported by computer vision with OpenCV (v0.96). He has worked with Blender, an open source, 3D software project, and on its first commercial movie, Plumiferos, as a computer graphics software developer. David has more than 10 years' experience in IT, with experience in computer vision, computer graphics, pattern recognition, and machine learning, working on different projects, and at different start-ups, and companies. He currently works as a researcher in computer vision.
Read more about David Millán Escrivá

View More author details
Right arrow

Camera access in Android OS

Most, if not all, mobile phone devices running Android are equipped with a video-capable camera, and the Android OS provides APIs to access the raw data stream from it. Up until Android version 5 (API level 21), Google recommended using the older Camera API; however, in recent versions, the API was deprecated in favor of the new Camera2 API, which we will use. A good example guide for using the Camera2 API is provided for Android developers by Google: https://github.com/googlesamples/android-Camera2Basic. In this section, we will only recount a few important elements, and the complete code can be viewed in the accompanying repository.

First, using the camera requires user permissions. In the AndroidManifest.xml file, we flag the following:

    <uses-permission android:name="android.permission.CAMERA" />
<uses-permission android...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering OpenCV 4 - Third Edition
Published in: Dec 2018Publisher: ISBN-13: 9781789533576

Authors (2)

author image
Roy Shilkrot

Roy Shilkrot is an assistant professor of computer science at Stony Brook University, where he leads the Human Interaction group. Dr. Shilkrot's research is in computer vision, human-computer interfaces, and the cross-over between these two domains, funded by US federal, New York State, and industry grants. Dr. Shilkrot graduated from the Massachusetts Institute of Technology (MIT) with a PhD, and has authored more than 25 peer-reviewed papers published at premier computer science conferences, such as CHI and SIGGRAPH, as well as in leading academic journals such as ACM Transaction on Graphics (TOG) and ACM Transactions on Computer-Human Interaction (ToCHI).
Read more about Roy Shilkrot

author image
David Millán Escrivá

David Millán Escrivá was 8 years old when he wrote his first program on an 8086 PC in Basic, which enabled the 2D plotting of basic equations. In 2005, he finished his studies in IT with honors, through the Universitat Politécnica de Valencia, in human-computer interaction supported by computer vision with OpenCV (v0.96). He has worked with Blender, an open source, 3D software project, and on its first commercial movie, Plumiferos, as a computer graphics software developer. David has more than 10 years' experience in IT, with experience in computer vision, computer graphics, pattern recognition, and machine learning, working on different projects, and at different start-ups, and companies. He currently works as a researcher in computer vision.
Read more about David Millán Escrivá