ragulin / face-recognition-server

An face recognition experiment with WebRTC, Websockets, OpenCV and Python.
215 stars 91 forks source link

AttributeError: 'tuple' object has no attribute 'save' #9

Closed lcsbonilla closed 8 years ago

lcsbonilla commented 8 years ago

In the function called load_images_to_db(path): I receive an error message as follow above:

in load_images_to_db  label.save()
AttributeError: 'tuple' object has no attribute 'save'

Can anyone help me?

lcsbonilla commented 8 years ago

I made by myself. The problem was in the returned method. get_or_create() returns a tuple wich the second term is a boolean.

I just put another variable to get a split information...

maazashraf23 commented 3 years ago

I made by myself. The problem was in the returned method. get_or_create() returns a tuple wich the second term is a boolean.

I just put another variable to get a split information...

can you tell me in detail how you manage to solve it. i have the same problem while saving the photos of my labelled data.

ghost commented 3 years ago

I'd be very much interested in that solution too!