Exemple #1
0
def take_standard_exposure_picam_still(pic_path):
    '''
    Used to interface with the Picam camera to take a standard, or automatically exposed image
    '''
    picam = Picam()
    picam.take_still(
        pic_path=pic_path,
        image_width=current_app.config['STILL_IMAGE_WIDTH'],
        image_height=current_app.config['STILL_IMAGE_HEIGHT']
    )
Exemple #2
0
def take_long_exposure_picam_still(pic_path):
    '''
    Used to take a generic 'long exposure image' from the Picam camera if earlier logic determines that conditions warrant
    It's currently configured to always take what seems to be the longest possible exposure
    '''
#TODO: tune this to adjust exposure length based on brightness from the standard exposure picam image that was just taken
    print 'taking long exposure'
    picam = Picam()
    picam.take_long_exposure_still(
        pic_path=pic_path,
        image_width=current_app.config['STILL_IMAGE_WIDTH'],
        image_height=current_app.config['STILL_IMAGE_HEIGHT']
    )