• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2020 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5from .utils import detect_camera
6
7
8def detect():
9    """
10    Checks whether the device has a built-in USB camera.
11
12    @returns string: 'usb_camera' if true, '' otherwise.
13    """
14    return 'usb_camera' if detect_camera('usb') else ''
15