Skip to content

Face recognition and comparison event #573

Description

@avantcv1-commits

I have DHI-NVR2116HS-I/L and DHI-VTO2101E-P-S2, on the NVR there is an option to use one channel for face recognition and comparison with the face database. I would like to implement opening the door upon positive recognition and sending a notification about such an event to the phone (possibly with a photo from which the recognition was carried out).

Using curl, I saw an event that corresponds to positive recognition, but unfortunately I do not see this in your integration. If there is an opportunity to implement this in your integration, I will be infinitely grateful.

`Heartbeat

--myboundary
Content-Type: text/plain
Content-Length: 5217

Code=FaceRecognition;action=Start;index=10;data={
"IsGlobalScene" : true,
"Object" : {
"ObjectID" : 370,
"RelativeID" : 370,
"ObjectType" : "HumanFace",
"Action" : "Appear",
"FrameSequence" : 0,
"Source" : 0.0,
"BoundingBox" : [ 0, 0, 2320, 5368 ],
"Center" : [ 2176, 2832 ],
"Image" : {
"Offset" : 76076,
"Length" : 60615,
"Width" : 544,
"Height" : 708
},
"Speed" : 0,
"SpeedTypeInternal" : 0,
"Glass" : 4,
"Feature" : [ "Happy" ],
"Emotion" : "Happy",
"Sex" : "Woman",
"Age" : 67,
"Eye" : 1,
"Mouth" : 1,
"Mask" : 1,
"Beard" : 1,
"Hat" : 0,
"Attractive" : 47,
"Confidence" : 0,
"FaceQuality" : 7500,
"FaceClarity" : 0,
"Angle" : [ 0, 0, 0 ],
"FaceAlignScore" : 10000,
"Candidates" : [
{
"Similarity" : 91,
"Person" : {
"UID" : "5",
"PersonID" : 5.0,
"GroupID" : "1",
"Name" : "Marta",
"GroupName" : "Home",
"Sex" : "Female",
"Birthday" : null,
"CertificateType" : "Unknown",
"ID" : null,
"Country" : null,
"Province" : null,
"City" : null,
"Comment" : null,
"PicLen" : 49742,
"PicUrl" : "/var/sda/xfs/data/appdata/database/FaceRecognition/1/5.jpg",
"HomeAddress" : null,
"FeatureErrCode" : 0,
"picUrl" : "/var/sda/xfs/data/appdata/database/FaceRecognition/1/5.jpg",
"Image" : [
{
"FilePath" : "/var/sda/xfs/data/appdata/database/FaceRecognition/1/5.jpg",
"Length" : 0,
"Offset" : 0
}
]
}
}
],
"OriginalBoundingBox" : [ 0, 0, 362, 471 ]
},
"Face" : {
"ObjectID" : 370,
"ObjectType" : "HumanFace",
"RelativeID" : 370,
"BoundingBox" : [ 0, 0, 2320, 5368 ],
"Center" : [ 2176, 2832 ],
"Angle" : [ 0, 0, 0 ],
"FaceQuality" : 7500,
"FaceAlignScore" : 10000,
"FaceClarity" : 0,
"Candidates" : [
{
"Similarity" : 91,
"Person" : {
"UID" : "5",
"PersonID" : 5.0,
"GroupID" : "1",
"Name" : "Marta",
"GroupName" : "Home",
"Sex" : "Female",
"Birthday" : null,
"CertificateType" : "Unknown",
"ID" : null,
"Country" : null,
"Province" : null,
"City" : null,
"Comment" : null,
"PicLen" : 49742,
"PicUrl" : "/var/sda/xfs/data/appdata/database/FaceRecognition/1/5.jpg",
"HomeAddress" : null,
"FeatureErrCode" : 0,
"picUrl" : "/var/sda/xfs/data/appdata/database/FaceRecognition/1/5.jpg",
"Image" : [
{
"FilePath" : "/var/sda/xfs/data/appdata/database/FaceRecognition/1/5.jpg",
"Length" : 0,
"Offset" : 0
}
]
}
}
],
"Sex" : "Woman",
"Age" : 67,
"Feature" : [ "Happy" ],
"Mask" : 1,
"Eye" : 1,
"Mouth" : 1,
"Beard" : 1,
"Attractive" : 47,
"Glass" : 4,
"OriginalSize" : {
"Width" : 290,
"Height" : 671
}
},
"Code" : "FaceRecognition",
"Name" : "Face Recognition",
"UTC" : 1776716946,
"UTCMS" : 0,
"Mode" : 0,
"Sequence" : 579715,
"Class" : "FaceAnalysis",
"Candidates" : [
{
"Similarity" : 91,
"Person" : {
"UID" : "5",
"PersonID" : 5.0,
"GroupID" : "1",
"Name" : "Marta",
"GroupName" : "Home",
"Sex" : "Female",
"Birthday" : null,
"CertificateType" : "Unknown",
"ID" : null,
"Country" : null,
"Province" : null,
"City" : null,
"Comment" : null,
"PicLen" : 49742,
"PicUrl" : "/var/sda/xfs/data/appdata/database/FaceRecognition/1/5.jpg",
"HomeAddress" : null,
"FeatureErrCode" : 0,
"picUrl" : "/var/sda/xfs/data/appdata/database/FaceRecognition/1/5.jpg",
"Image" : [
{
"FilePath" : "/var/sda/xfs/data/appdata/database/FaceRecognition/1/5.jpg",
"Length" : 49742,
"Offset" : 136691
}
]
}
}
],
"ImageInfo" : {
"IsDetected" : true,
"Offset" : 0,
"Length" : 76076,
"Height" : 720,
"Width" : 1280
},
"FeatureVersion" : "1003001005003",
"FeatureVector" : {
"FeatureEnc" : false,
"Offset" : 186433,
"Length" : 2048
}
}

`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions