From 3d30d21763e7cc3371a7e37a66c8c734a6f1380f Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sat, 28 May 2022 09:25:58 +1000 Subject: [PATCH] adding wrong person to menu, no code to process, just the item --- internal/js/view_support.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/internal/js/view_support.js b/internal/js/view_support.js index f1fcbc0..bf9eb5b 100644 --- a/internal/js/view_support.js +++ b/internal/js/view_support.js @@ -226,7 +226,10 @@ $(document).ready( function() if( x >= fx && x <= fx+fw && y >= fy && y <= fy+fh ) { if( objs[current].faces[i].who ) + { item_list['match']={ 'name': objs[current].faces[i].who, 'which_face': i, 'id': objs[current].faces[i].id } + item_list['wrong_person']={ 'name': 'wrong person', 'which_face': i, 'id': objs[current].faces[i].id } + } else { item_list['no_match_new_person']={ 'name': 'Add as reference image to NEW person', 'which_face': i, 'id': objs[current].faces[i].id } @@ -280,6 +283,11 @@ function FaceDBox(key, item) ` } + if ( key == 'wrong_person' ) + { + div+='
wrong person, so mark this as the wrong person/refimg connection, for face#' + item[key]['which_face'] + div+='
face db id: ' + item[key]['id'] + } if ( key == 'no_match_no_face' || key == 'no_match_too_young' || key == 'no_match_ignore' ) { div+='
just track this against face#' + item[key]['which_face']