• 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 MIPI camera.
11
12    @returns string: 'mipi_camera' if true, '' otherwise.
13    """
14    return 'mipi_camera' if detect_camera('mipi') else ''
15