Exemplo n.º 1
0
def take_picture(): # take picture and return stdout
    out = misc.runProc(settings.cmd_base + settings.p_take_image)
    fileName = misc.findFileNameByExt(out,'jpg')

    if(fileName != 'None'):
        settings.update_l_picture(fileName)
        return send_file(fileName)
    else:
        return 'Camera Error'
Exemplo n.º 2
0
def test():
    return misc.findFileNameByExt(testData,'jpg') + ' <-: file name found in :-> ' + testData