I am doing gender and emotion classification using python programming and I want to save results in sqlite databases...A piece of code is following: text2 = emotion_mode + " " + gender_mode
tstmp = datetime.datetime.now().strftime("%S")
date = str(datetime.datetime.fromtimestamp(int(time.time())).strftime('%Y-%m-%d %H:%M:%S'))
fps.update()
fps.stop()
t = fps.elapsed()
if text2 == last_row1:
continue
else:
last_row1 = text2
c.execute("INSERT INTO users (gender,emotion,time,start,end) VALUES (?,?,?,?,?)" ,(gender_mode,emotion_mode,date,t,t1))
conn.commit()
bgr_image = cv2.cvtColor(rgb_image, cv2.COLOR_RGB2BGR)
cv2.imshow('window_frame', bgr_image)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
emotion_mode and gender_mode is for example (angry man and etc...) I want to get t and t1 :t=time that start angry man and t1:time that end angry man and so on...