0

I'm trying to run an android app on Android Things OS. The app uses facial detection as a first step filter for reaching facial recognition. The recognition process is made by a third party (remote) API, so there is nothing to worry about it, but the detection is being carried out by the Google Mobile Vision API for Android. The problem I'm facing is that the app crashes every time a camera preview is about to start. The code of the app is derived from this example: https://github.com/googlesamples/android-vision (Face tracking). So if this code runs, my app runs. I also know that there is a known issue with the raspberry pi and the camera trying to create more than one output surface. My questions are: (1) Is there a way to successfully run the code in the example https://github.com/googlesamples/android-vision (Face tracking)? (2) When is going to resolved that known issue?

Thanks in advance.

Attentive,

Gersain Castañeda.

1 Answers1

0

The latest version of Android Things(DP6) which is with API 27, supports the new camera API Camera2 as its explained here.

Camera2 API supports more than one output surface and its runnable on Android Things.

For getting more inspirations of how doing this check this tutorial(how to use camera2) and this very useful sample(how to use Google Vision).

Reza Hosseini
  • 154
  • 1
  • 10