def is_hardware_present():
    if picamera is None:
        return False
    try:
        # start the Pi camera and watch for errors
        with picamera.PiCamera() as camera:
            camera.start_preview()
    except:
        return False
    return True

# load the cameras global with the list of available cameras
Add AS number to NIPAP.
dataset/ETHPy150Open miguelgrinberg/oreilly-flask-apis-video/camera/camera.py/is_hardware_present--crossover with--dataset/ETHPy150Open SpriteLink/NIPAP/nipap/nipap/backend.py/Nipap.add_asn