@defer.inlineCallbacks
def image(self):
    '\n        Get an image from the camera.\n        \n        Returns an Image object.\n        '
    try:
        (flag, img_array) = (yield threads.deferToThread(self.camera.read))
    except SystemError:
        return
    if (flag is False):
        print('No image')
        return
    defer.returnValue(Image(img_array, ColorSpace.BGR))
Get an image from the camera.

Returns an Image object.
@defer.inlineCallbacks
def image(self):
    '\n        Get an image from the camera.\n        \n        Returns an Image object.\n        '
    try:
        (flag, img_array) = (yield threads.deferToThread(self.camera.read))
    except SystemError:
        return
    if (flag is False):
        print('No image')
        return
    defer.returnValue(Image(img_array, ColorSpace.BGR))