Skip to content

Commit

Permalink
Skipped faces in recognized list are 'null'. need to be filtered out.
Browse files Browse the repository at this point in the history
This bug should not be an issue since known result always be in front of 
empty ones.
  • Loading branch information
solderzzc committed Dec 17, 2018
1 parent 1c9fbe6 commit d6dbf93
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/detector/timeline.js
Expand Up @@ -79,6 +79,10 @@ function generate_known_person_message(tracker_id,recognition_results){
get_device_uuid(function(uuid){
get_device_group_id(function(group_id){
recognition_results.forEach(function(item){
if(!item){
console.log('one empty item in recognition_results, might be skipped when has known person recognized')
return
}
var result = item.result
if(result && result.recognized === true && result.face_id ){
var person_info = {
Expand Down

0 comments on commit d6dbf93

Please sign in to comment.