esp-who icon indicating copy to clipboard operation
esp-who copied to clipboard

delete_face_id_in_flash_with_name

Open peterGruen opened this issue 5 years ago • 4 comments

When I delete the last Name of the st_face_list, all names will be broken.

Every Face ID has the Entry Matched Face: ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒o▒?▒o▒? The Error occurs only at the last Entry, not on the first, second, ..

I use this Code:

int8_t left = delete_face_id_in_flash_with_name(&st_face_list, face_name); if (left > 0){ ESP_LOGE(TAG, "%s ID Deleted", face_name); } Peter

peterGruen avatar Jun 26 '19 19:06 peterGruen

Hi what's the length of the last Name in the st_face_list ? There is a limit that the size should be no more than ENROLL_NAME_LEN: https://github.com/espressif/esp-face/blob/bb800f9abc2e336d585abf2d13035bdc5712f71d/face_recognition/include/fr_forward.h#L31

XiaochaoGONG avatar Jun 27 '19 04:06 XiaochaoGONG

When I try this: sprintf(add_face, "listface:%s", head->id_name); ESP_LOGI(TAG, " Face-ID: %s Lenght: %d \n",add_face,strlen(add_face)); I get following output: E (131774) app_delete: Face-ID: listface:Face0 Lenght: 14 E (131774) app_delete: Face-ID: listface:Face1 Lenght: 14

peterGruen avatar Jun 28 '19 21:06 peterGruen

When I try do delete the first Entry, I get: Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled. But the Face ID is deleted and the names are ok. Deleting the second or third Face ID are ok, only the first and the last Entry making Problems.

peterGruen avatar Jun 28 '19 23:06 peterGruen

Hi Peter, I have tested with my code, there was no problem. Can you post on some of your test code ?

XiaochaoGONG avatar Jun 29 '19 08:06 XiaochaoGONG