Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- i have this code
- profile=getProfile(Id)
- if(profile!=None):
- cv2.cv.PutText(cv2.cv.fromarray(img),"Name:"+str(profile[1]),(x,y+h+30),font,color);
- cv2.cv.PutText(cv2.cv.fromarray(img),"Age:"+str(profile[2]),(x,y+h+60),font,color);
- cv2.cv.PutText(cv2.cv.fromarray(img),"Gender:"+str(profile[3]),(x,y+h+90),font,color);
- cv2.cv.PutText(cv2.cv.fromarray(img),"Role:"+str(profile[4]),(x,y+h+120),font,color);
- #-----------------------------
- time_log();
- else:
- cv2.cv.PutText(img,"Unknown",(x,y+h+30),font,color);
- it's for face recognition with sqlite3 and cv2
- it work good but if there is person/face that doesn't exists in DB it gone put a last person info on him how can i fix this ?
- else:
- cv2.cv.PutText(img,"Unknown",(x,y+h+30),font,color);
- this part doesn't work correctly how can i fix that?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement