def RACE(): global imageList if len(imageList) == 0: imageList = om.getImagesLabellingList() else: print("Images Left:", len(imageList) - race_count) return render_template('race.html', imageDict=imageList[race_count], imageDict2=imageList[race_count + 1], imageDict3=imageList[race_count + 2], imageDict4=imageList[race_count + 3], imageDict5=imageList[race_count + 4], imageDict6=imageList[race_count + 5], imageDict7=imageList[race_count + 6], imageDict8=imageList[race_count + 7], imageDict9=imageList[race_count + 8], imageDict10=imageList[race_count + 9], imageDict11=imageList[race_count + 10], imageDict12=imageList[race_count + 11], imageDict13=imageList[race_count + 12], imageDict14=imageList[race_count + 13], imageDict15=imageList[race_count + 14], imageDict16=imageList[race_count + 15], imageDict17=imageList[race_count + 16], imageDict18=imageList[race_count + 17], imageDict19=imageList[race_count + 18], imageDict20=imageList[race_count + 19], imageDict21=imageList[race_count + 20], imageDict22=imageList[race_count + 21], imageDict23=imageList[race_count + 22], imageDict24=imageList[race_count + 23], imageDict25=imageList[race_count + 24], imageDict26=imageList[race_count + 25], imageDict27=imageList[race_count + 26], imageDict28=imageList[race_count + 27], imageDict29=imageList[race_count + 28], imageDict30=imageList[race_count + 29], imageDict31=imageList[race_count + 30], imageDict32=imageList[race_count + 31], imageDict33=imageList[race_count + 32], imageDict34=imageList[race_count + 33], imageDict35=imageList[race_count + 34], imageDict36=imageList[race_count + 35], imageDict37=imageList[race_count + 36], imageDict38=imageList[race_count + 37], imageDict39=imageList[race_count + 38], imageDict40=imageList[race_count + 39], imageDict41=imageList[race_count + 40], imageDict42=imageList[race_count + 41], imageDict43=imageList[race_count + 42], imageDict44=imageList[race_count + 43], imageDict45=imageList[race_count + 44], imageDict46=imageList[race_count + 45], imageDict47=imageList[race_count + 46], imageDict48=imageList[race_count + 47], options=RACE_Dict)
def group_1(): global imageList if len(imageList) == 0: imageList = om.getImagesLabellingList() else: print("Images Left:", len(imageList) - group_1_count) return render_template('group_1.html', imageDict=imageList[group_1_count], options=GROUP_1)
def full_outfit(): global imageList if len(imageList) == 0: imageList = om.getImagesLabellingList() else: print("Images Left:", len(imageList) - full_outfit_count) return render_template('full_outfit.html', imageDict=imageList[full_outfit_count], options=FULL_OUTFIT)
def RACE(): global imageList if len(imageList) == 0: imageList = om.getImagesLabellingList() print(imageList) else: print("Images Left:", len(imageList)-race_count) return render_template('race.html', imageDict=imageList[race_count], imageDict2=imageList[race_count+1], imageDict3=imageList[race_count+2], imageDict4=imageList[race_count+3], imageDict5=imageList[race_count+4], imageDict6=imageList[race_count+5], imageDict7=imageList[race_count+6], imageDict8=imageList[race_count+7], imageDict9=imageList[race_count+8], imageDict10=imageList[race_count+9], imageDict11=imageList[race_count+10], imageDict12=imageList[race_count+11], imageDict13=imageList[race_count+12], imageDict14=imageList[race_count+13], imageDict15=imageList[race_count+14], imageDict16=imageList[race_count+15], imageDict17=imageList[race_count+16], imageDict18=imageList[race_count+17], imageDict19=imageList[race_count+18], imageDict20=imageList[race_count+19], imageDict21=imageList[race_count+20], imageDict22=imageList[race_count+21], imageDict23=imageList[race_count+22], imageDict24=imageList[race_count+23], imageDict25=imageList[race_count+24], imageDict26=imageList[race_count+25], imageDict27=imageList[race_count+26], imageDict28=imageList[race_count+27], imageDict29=imageList[race_count+28], imageDict30=imageList[race_count+29], options=RACE_Dict, page_number=race_page_count, page_tt_number = page_total, pg_percent =race_page_percent)