SLIDE 47 "src": "data:image/jpeg;base64...", "remark": "", "subject_type": 0, "description": "", "title": "", "timestamp": 1474454214, "start_time": 0, "avatar": "http://10.201.105.140:8867/static/upload/photo/2016-09- 21/12345f1ea4fff5df02edadffa37c82308bde0e63.jpg", "job_number": "", "birthday": null, "entry_date": null, "department": "", "end_time": 0, "id": 103821, "name": "\u5218\u5b9a\u5cf0" }, "error": "\u5141\u8bb8\u8fdb\u5165", "open_door": true, "type": "recognized" } POST callback function support
After setting callback address on hos:8866 page, this address will be request in POST method, try three times at most if the request failed. The data format is as following:
{ 'short_group': -1, // unused field 'confidence': 59.541946, // confidence 'fmp_error': 0, // whether fmp detection is passed 'group': -1, // unused field 'event_type': 0, //0 indicates reliable 'timestamp': 1527076819, // timestamp of start time of recognition 'photo': 'image base64', // image base64 'age': 46.27829360961914, // gender recognition 'photo_md5': '148dae134019f2d9d11a052166f60708', //image md5, used for removing duplicates 'fmp': 0, // fmp fraction, 0 indicates unused,started with a floating number between 0 and 1. 'screen_token': '59f35a', // screen token, used for finding camera 'gender': 0.9878131151199341, // gender 'quality': 0.9966946775093675, // image quality 'subject_id': None // stranger is None, employee or visitor is an actual subject_id value 'subject_photo_id': // this item does not exist when the photo is from a strange, if photo is from an employee or a visitor, this item is corresponding recognized photo id }
11.2 Dynamic 1:1 interface