Building a Cloud Doorbell


Dependencies and Prerequisites


You should also read


The Android Doorbell sample demonstrates how to create a “smart” doorbell. The sample captures a doorbell button press from a user, obtains an image of the user via a camera peripheral, processes the image data using Google’s Cloud Vision API, and uploads the image and event data to a cloud database where it can be viewed by a companion app.

Android 门铃例子演示了如果创建一个“智能”门铃。在实例中,我们的设备会捕捉用户按下门铃按钮,获取一张用户通过相机外设拍摄的用户照片,使用 Google’s Cloud Vision API 处理图片数据,并且上传图片和事件数据到云数据库中,并可以通过配套应用查看门铃数据。

By walking through the steps to create this sample, you’ll learn:


  • How to capture a button press event using Peripheral I/O.
  • 如何使用外部 I/O 设备捕捉按钮的按压事件。
  • How to access a camera peripheral from an Android Things app using standard Android camera APIs.
  • 如何在一个使用标准 Android camera APIs 的 Android Things 应用中使用相机外设。
  • How to use Google Cloud Vision from an Android Things app to do image analysis.
  • 如何使用 Google Cloud Vision 在 Android Things 应用中分析图片。
  • How to communicate between an Android Things app and a companion app using Firebase Realtime Database.
  • 如何在一个 Android Things 应用和一个使用了 Firebase 实时数据库的配套应用中进行通讯。

results matching ""

    No results matching ""