blob: 699b01ded5df40d5fa458ce3aaa2867303c54dd7 [file]
# Copyright 2020 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from .utils import detect_camera
def detect():
"""
Checks whether the device has a built-in USB camera.
@returns string: 'usb_camera' if true, '' otherwise.
"""
return 'usb_camera' if detect_camera('usb') else ''