Exemple #1
0
def click():
    global picture_number
    global bild
    camera.click("db/images/"+bild)
    camera.stop_display()
    print "Picture saved"
    filename = bild
    saveThumbFile(filename)
    picture_number = picture_number + 1
    bild = 'image' + str(picture_number) + '.jpg'
    return filename
Exemple #2
0
def click(app, button):
    global picture_number
    camera.click(app['file_name'])
    picture_number += 1
    app['file_name'] = 'Image' + str(picture_number) + '.jpg'