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'
def test(): return misc.findFileNameByExt(testData,'jpg') + ' <-: file name found in :-> ' + testData