CN111898552B - Method and device for distinguishing person attention target object and computer equipment - Google Patents
Method and device for distinguishing person attention target object and computer equipment Download PDFInfo
- Publication number
- CN111898552B CN111898552B CN202010762123.4A CN202010762123A CN111898552B CN 111898552 B CN111898552 B CN 111898552B CN 202010762123 A CN202010762123 A CN 202010762123A CN 111898552 B CN111898552 B CN 111898552B
- Authority
- CN
- China
- Prior art keywords
- face
- size parameter
- parameter value
- image
- current
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/20—Movements or behaviour, e.g. gesture recognition
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
- G06T7/73—Determining position or orientation of objects or cameras using feature-based methods
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/161—Detection; Localisation; Normalisation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/168—Feature extraction; Face representation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30196—Human being; Person
- G06T2207/30201—Face
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/178—Human faces, e.g. facial parts, sketches or expressions estimating age from face image; using age information for improving recognition
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Psychiatry (AREA)
- Social Psychology (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
本发明涉及行为识别技术领域,公开了一种判别人员关注目标物的方法、装置及计算机设备。在所述判别人员关注目标物的方法中,不论目标物中心与相机坐标系原点是否重合,可以基于现场采集的人脸图像,依次提取出现场人员的当前人脸姿态角和当前人脸多维数据,并将所述当前人脸姿态角与根据人脸多维数据与人脸姿态角范围的对应关系确定出的且与所述当前人脸多维数据对应的当前人脸姿态角范围相比较,若所述当前人脸姿态角处于所述当前人脸姿态角范围内,则表明现场人员如用于采集所述人脸多维数据和所述人脸姿态角范围的测试人员一样,在现场关注所述目标物,进而可用较少的计算机资源,来判别人员是否关注目标物,实现远场景下关注点的估计。
The invention relates to the technical field of behavior recognition, and discloses a method, a device and a computer device for judging an object that a person pays attention to. In the method for judging that a person pays attention to a target, regardless of whether the center of the target coincides with the origin of the camera coordinate system, the current face pose angle and the current multi-dimensional data of the face of the person on the scene can be sequentially extracted based on the face images collected on-site , and compare the current face pose angle with the current face pose angle range determined according to the correspondence between the face multidimensional data and the face pose angle range and corresponding to the current face multidimensional data, if the If the current face pose angle is within the current face pose angle range, it indicates that the on-site personnel are paying attention to the target on the spot as the testers who are used to collect the multi-dimensional data of the face and the face pose angle range Objects, and then use less computer resources to judge whether people pay attention to the target object, and realize the estimation of the point of interest in the distant scene.
Description
技术领域technical field
本发明属于行为识别技术领域,具体地涉及一种判别人员关注目标物的方法、装置及计算机设备。The invention belongs to the technical field of behavior recognition, and in particular relates to a method, a device and a computer device for judging an object that a person pays attention to.
背景技术Background technique
在当下很多行业中,都需要及时感知观众的关注点,进而了解他们的兴趣点和评判,以便改进设计方案,促进行业发展。为了判别观众是否关注目标物,在近场景情况下,如头盔式场景等,通常采用眼球追踪技术来实现关注点估计;但是在0.5米以上的远场景,由于目前的技术很难追踪眼球特征,进而难以实现关注点估计,因此这种情况下通常采用头部姿态估计技术来实现。In many current industries, it is necessary to perceive the audience's concerns in a timely manner, and then understand their interests and judgments, so as to improve design solutions and promote the development of the industry. In order to judge whether the audience pays attention to the target object, eye tracking technology is usually used to estimate the attention point in close scenes, such as helmet-mounted scenes. In turn, it is difficult to achieve point of interest estimation, so head pose estimation techniques are usually used in this case.
前述头部姿态估计技术的方案为:先通过一幅人脸图像来获得头部的姿态角(在三维空间中,表示物体旋转姿态可以由如下三个欧拉角来表示:围绕直角坐标系X轴旋转的俯仰角pitch,围绕直角坐标系Y轴旋转的偏航角yaw和围绕直角坐标系Z轴旋转的滚转角roll,因此针对头部而言,通俗讲就是抬头角、摇头角和转头角,如图1所示),然后根据头部姿态角来间接反映眼球的关注方向,若目标物位于该关注方向上,则将该目标物作为估计的关注点。目前通过一幅人脸图像来获得头部姿态角的算法步骤一般如下:(1)对人脸图像进行二维人脸关键点检测;(2)将检测到的二维人脸关键点与三维人脸模型中的对应人脸关键点进行匹配;(3)求解二维人脸关键点与对应三维人脸关键点的转换关系矩阵;(4)根据所述旋转关系矩阵求解头部相对于相机坐标系(该相机坐标系即为以拍摄所述人脸图像的相机的聚焦中心为原点且以光轴为Z轴建立的三维直角坐标系)的三个欧拉角。The scheme of the aforementioned head pose estimation technology is: first obtain the pose angle of the head through a face image (in three-dimensional space, the object rotation pose can be represented by the following three Euler angles: around the Cartesian coordinate system X The pitch angle of axis rotation, the yaw angle of rotation around the Y axis of the Cartesian coordinate system, and the roll angle roll of rotation around the Z axis of the Cartesian coordinate system. angle, as shown in Figure 1), and then indirectly reflect the attention direction of the eyeballs according to the head posture angle. At present, the algorithm steps to obtain the head pose angle through a face image are generally as follows: (1) perform two-dimensional face key point detection on the face image; (2) combine the detected two-dimensional face key points with the three-dimensional The corresponding key points of the face in the face model are matched; (3) solving the transformation relationship matrix between the two-dimensional face key points and the corresponding three-dimensional face key points; (4) solving the head relative to the camera according to the rotation relationship matrix Three Euler angles of a coordinate system (the camera coordinate system is a three-dimensional Cartesian coordinate system with the focus center of the camera that captures the face image as the origin and the optical axis as the Z axis).
目前适用于头部姿态估计技术的场景仅为当目标物中心与相机坐标系原点重合的情况,此时采用固定的偏航角yaw和俯仰角pitch即可判别人体头部是否关注目标物。但是当目标物中心与相机坐标系原点不重合时,由于相机处于第三视角,不能替代目标物视角,如果再次基于固定的偏航角yaw和俯仰角pitch来判别,势必会造成很大误差,甚至南辕北辙,因此亟需提供一种新的技术解决方案。At present, the scene suitable for the head pose estimation technology is only when the center of the target object coincides with the origin of the camera coordinate system. At this time, the fixed yaw angle yaw and pitch angle pitch can be used to determine whether the human head pays attention to the target object. However, when the center of the target does not coincide with the origin of the camera coordinate system, since the camera is in the third perspective, it cannot replace the perspective of the target. If it is judged again based on the fixed yaw angle and pitch angle, it will inevitably cause a large error. Even polar opposites, so urgently need to provide a kind of new technological solution.
发明内容Contents of the invention
为了解决在现有头部姿态估计技术中所存在的适用场景有限,不能适用于当目标物中心与相机坐标系原点不重合情况的问题,本发明目的在于提供一种判别人员关注目标物的方法、装置、计算机设备及计算机可读存储介质,不论目标物中心与相机坐标系原点是否重合,都可以基于现场采集的人脸图像且用较少的计算机资源,来判别人员是否关注目标物,实现远场景下关注点的估计。In order to solve the problem that the existing head pose estimation technology has limited applicable scenarios and cannot be applied when the center of the target object does not coincide with the origin of the camera coordinate system, the purpose of the present invention is to provide a method for judging that a person pays attention to the target object , devices, computer equipment, and computer-readable storage media, no matter whether the center of the target object coincides with the origin of the camera coordinate system, it can be judged whether the person pays attention to the target object based on the face image collected on the spot and with less computer resources. Estimation of points of interest in a distant scene.
第一方面,本发明提供了一种判别人员关注目标物的方法,包括:In a first aspect, the present invention provides a method for judging an object of concern to a person, including:
获取人脸图像,其中,所述人脸图像包含有至少一个人员;Obtaining a face image, wherein the face image contains at least one person;
从所述人脸图像中,提取出所述人员的当前人脸姿态角和当前人脸多维数据;From the face image, extract the current face attitude angle of the person and the multi-dimensional data of the current face;
根据人脸多维数据与人脸姿态角范围的对应关系,确定出与所述当前人脸多维数据对应的当前人脸姿态角范围,其中,所述人脸姿态角范围是指对应所述人脸多维数据能够关注到目标物的人脸姿态角区间;According to the corresponding relationship between the face multi-dimensional data and the face pose angle range, the current face pose angle range corresponding to the current face multi-dimensional data is determined, wherein the face pose angle range refers to the range corresponding to the face Multi-dimensional data can pay attention to the face pose angle interval of the target;
当所述当前人脸姿态角位于所述当前人脸姿态角范围内时,判定所述人员在关注所述目标物。When the current face pose angle is within the range of the current face pose angle, it is determined that the person is paying attention to the target.
基于上述发明内容,可提供一种不论目标物中心与相机坐标系原点是否重合都可以进行关注点估计的新方法,即可以基于现场采集的人脸图像,依次提取出现场人员的当前人脸姿态角和当前人脸多维数据,并将所述当前人脸姿态角与根据人脸多维数据与人脸姿态角范围的对应关系确定出的且与所述当前人脸多维数据对应的当前人脸姿态角范围相比较,若所述当前人脸姿态角处于所述当前人脸姿态角范围内,则表明现场人员如用于采集所述人脸多维数据和所述人脸姿态角范围的测试人员一样,在现场关注所述目标物,进而可用较少的计算机资源,来判别人员是否关注目标物,实现远场景下关注点的估计,便于实际应用和推广。Based on the content of the above invention, a new method of point of interest estimation can be provided regardless of whether the center of the target object coincides with the origin of the camera coordinate system, that is, the current face posture of the on-site personnel can be sequentially extracted based on the face images collected on-site Angle and current face multidimensional data, and the current face pose angle and the current face pose determined according to the corresponding relationship between face multidimensional data and face pose angle range and corresponding to the current face multidimensional data Compared with the range of angles, if the current face pose angle is within the range of the current face pose angle, it indicates that the on-site personnel are the same as the testers who are used to collect the multi-dimensional data of the face and the range of the face pose angle , pay attention to the target on the spot, and then use less computer resources to judge whether people pay attention to the target, and realize the estimation of the focus in the far scene, which is convenient for practical application and promotion.
在一个可能的设计中,从所述人脸图像中,提取出所述人员的当前人脸多维数据,包括:In a possible design, extract the current face multidimensional data of the person from the face image, including:
从所述人脸图像中,提取人脸二维坐标数据;From the face image, extracting two-dimensional coordinate data of the face;
从所述人脸图像中,提取第一人脸成像尺寸参数值,其中,将所述人脸二维坐标数据和所述第一人脸成像尺寸参数值作为所述当前人脸多维数据。From the face image, a first face imaging size parameter value is extracted, wherein the face two-dimensional coordinate data and the first face imaging size parameter value are used as the current face multi-dimensional data.
通过上述可能设计,可以在图像采集设备为单目镜头相机时,利用人脸成像尺寸大小来反映人脸至相机坐标系原点的远近程度,从而在无法测距的情况可替代Z轴坐标,确保所述当前人脸多维数据的可提取性,实现远场景下关注点的估计。Through the above possible design, when the image acquisition device is a monocular lens camera, the size of the face image can be used to reflect the distance from the face to the origin of the camera coordinate system, so that the Z-axis coordinate can be replaced when the distance cannot be measured, ensuring The extractability of the current face multi-dimensional data realizes the estimation of attention points in the distant scene.
在一个可能的设计中,从所述人脸图像中,提取出所述人员的当前人脸多维数据,包括:In a possible design, extract the current face multidimensional data of the person from the face image, including:
从所述人脸图像中,提取人脸二维坐标数据;From the face image, extracting two-dimensional coordinate data of the face;
从所述人脸图像中,提取第一人脸成像尺寸参数值;From the face image, extract the first face imaging size parameter value;
根据所述当前人脸姿态角和所述第一人脸成像尺寸参数值,计算得到第二人脸成像尺寸参数值,其中,将所述人脸二维坐标数据和所述第二人脸成像尺寸参数值作为所述当前人脸多维数据,所述第二人脸成像尺寸参数值为所述人员的人脸在人脸坐标位置不变条件下垂直于图像采集设备的光轴时对应的人脸成像尺寸参数值。According to the current face pose angle and the first face imaging size parameter value, the second face imaging size parameter value is calculated, wherein the two-dimensional coordinate data of the face and the second face imaging The size parameter value is used as the multi-dimensional data of the current face, and the second face imaging size parameter value is the corresponding person when the face of the person is perpendicular to the optical axis of the image acquisition device under the condition that the coordinate position of the face remains unchanged. Face imaging size parameter value.
通过上述可能设计,可以在图像采集设备为单目镜头相机时,利用主视角度下的人脸成像尺寸大小来反映人脸至相机坐标系原点的远近程度,从而在无法测距的情况可替代Z轴坐标,确保所述当前人脸多维数据的可提取性和后续关注判别结果的准确性,实现远场景下关注点的估计。Through the above possible design, when the image acquisition device is a monocular lens camera, the size of the face image under the main viewing angle can be used to reflect the distance from the face to the origin of the camera coordinate system, so that it can be replaced when the distance cannot be measured. The Z-axis coordinates ensure the extractability of the current face multi-dimensional data and the accuracy of the follow-up focus discrimination results, and realize the estimation of focus points in the distant scene.
在一个可能的设计中,从所述人脸图像中,提取出所述人员的当前人脸多维数据,包括:In a possible design, extract the current face multidimensional data of the person from the face image, including:
从所述人脸图像中,提取人脸二维坐标数据;From the face image, extracting two-dimensional coordinate data of the face;
从所述人脸图像中,提取第一人脸成像尺寸参数值;From the face image, extract the first face imaging size parameter value;
根据所述当前人脸姿态角和所述第一人脸成像尺寸参数值,计算得到第二人脸成像尺寸参数值,其中,所述第二人脸成像尺寸参数值为所述人员的人脸在人脸坐标位置不变条件下垂直于图像采集设备的光轴时对应的人脸成像尺寸参数值;According to the current face pose angle and the first face imaging size parameter value, a second face imaging size parameter value is calculated, wherein the second face imaging size parameter value is the face of the person Under the condition that the coordinate position of the face remains unchanged, the corresponding face imaging size parameter value is perpendicular to the optical axis of the image acquisition device;
根据所述人脸图像,识别出所述人员的年龄;Identify the age of the person according to the face image;
当所述年龄小于预设年龄时,根据儿童人脸尺寸标准参数与成年人脸尺寸标准参数的比例关系,校正所述第二人脸成像尺寸参数值,得到第三人脸成像尺寸参数值,其中,所述儿童人脸尺寸标准参数与所述年龄对应,将所述人脸二维坐标数据和所述第三人脸成像尺寸参数值作为所述当前人脸多维数据。When the age is less than the preset age, according to the proportional relationship between the child's face size standard parameter and the adult's face size standard parameter, the value of the second face imaging size parameter is corrected to obtain the third face imaging size parameter value, Wherein, the child's face size standard parameter corresponds to the age, and the face two-dimensional coordinate data and the third face imaging size parameter value are used as the current multi-dimensional face data.
通过上述可能设计,可以在图像采集设备为单目镜头相机时,利用主视角度下的且经过年龄因素校正的人脸成像尺寸大小来反映人脸至相机坐标系原点的远近程度,从而在无法测距的情况可替代Z轴坐标,确保所述当前人脸多维数据的可提取性和后续关注判别结果的准确性,实现远场景下关注点的估计。Through the above possible design, when the image acquisition device is a monocular lens camera, the face imaging size under the main viewing angle and corrected by the age factor can be used to reflect the distance from the face to the origin of the camera coordinate system, so that it is impossible to The distance measurement can replace the Z-axis coordinates to ensure the extractability of the current face multi-dimensional data and the accuracy of the follow-up attention discrimination results, and realize the estimation of the attention points in the distant scene.
在一个可能的设计中,从所述人脸图像中,提取出当前人脸多维数据,包括:In a possible design, extract the current face multidimensional data from the face image, including:
根据所述人脸图像,识别出所述人员的年龄;Identify the age of the person according to the face image;
从所述人脸图像中,提取人脸二维坐标数据;From the face image, extracting two-dimensional coordinate data of the face;
从所述人脸图像中,提取第一人脸成像尺寸参数值;From the face image, extract the first face imaging size parameter value;
根据所述当前人脸姿态角和所述第一人脸成像尺寸参数值,计算得到第二人脸成像尺寸参数值,其中,将所述年龄、所述人脸二维坐标数据和所述第二人脸成像尺寸参数值作为所述当前人脸多维数据,所述第二人脸成像尺寸参数值为所述人员的人脸在人脸坐标位置不变条件下垂直于图像采集设备的光轴时对应的人脸成像尺寸参数值。According to the current face pose angle and the first face imaging size parameter value, a second face imaging size parameter value is calculated, wherein the age, the face two-dimensional coordinate data and the first face imaging size parameter value are calculated. The two-person face imaging size parameter value is used as the current face multi-dimensional data, and the second face imaging size parameter value is the face of the person perpendicular to the optical axis of the image acquisition device under the condition that the coordinate position of the face remains unchanged. The corresponding face imaging size parameter value.
通过上述可能设计,可以在图像采集设备为单目镜头相机时,利用主视角度下的人脸成像尺寸大小来反映人脸至相机坐标系原点的远近程度,从而在无法测距的情况可替代Z轴坐标,确保所述当前人脸多维数据的可提取性,同时通过在所述当前人脸多维数据中增加一个维度——年龄,可以避免因现场人员与测试人员年龄差距较大而给最终的关注判别结果造成误差的问题,进一步提升判别准确性,实现远场景下关注点的估计。Through the above possible design, when the image acquisition device is a monocular lens camera, the size of the face image under the main viewing angle can be used to reflect the distance from the face to the origin of the camera coordinate system, so that it can be replaced when the distance cannot be measured. The Z-axis coordinates ensure the extractability of the current multi-dimensional face data, and at the same time, by adding a dimension—age to the current multi-dimensional data of the face, it is possible to avoid the final result due to the large age gap between the field personnel and the test personnel. Focus on the problem of errors caused by the discrimination results, further improve the accuracy of discrimination, and realize the estimation of the attention points in the far scene.
在一个可能的设计中,根据所述当前人脸姿态角和所述第一人脸成像尺寸参数值,计算得到第二人脸成像尺寸参数值,包括:In a possible design, the second face imaging size parameter value is calculated according to the current face pose angle and the first face imaging size parameter value, including:
将所述当前人脸姿态角导入至用于反映将人脸旋转到平面上的三角函数中,得到旋转变换系数,其中,所述平面与所述图像采集设备的光轴垂直;Importing the current face pose angle into a trigonometric function for reflecting the rotation of the face on a plane to obtain a rotation transformation coefficient, wherein the plane is perpendicular to the optical axis of the image acquisition device;
根据所述第一人脸成像尺寸参数值和所述旋转变换系数,计算得到所述第二人脸成像尺寸参数值。The second human face imaging size parameter value is calculated according to the first human face imaging size parameter value and the rotation transformation coefficient.
通过上述可能设计,可以得到真实准确的人脸主视尺寸参数,确保后续判别的准确性。Through the above-mentioned possible design, real and accurate face main view size parameters can be obtained to ensure the accuracy of subsequent discrimination.
在一个可能的设计中,从所述人脸图像中,提取出当前人脸多维数据,包括:In a possible design, extract the current face multidimensional data from the face image, including:
从所述人脸图像中,提取人脸二维坐标数据;From the face image, extracting two-dimensional coordinate data of the face;
从所述人脸图像中,提取第一人脸成像尺寸参数值;From the face image, extract the first face imaging size parameter value;
根据所述人脸图像,识别出所述人员的年龄;Identify the age of the person according to the face image;
当所述年龄小于预设年龄时,根据儿童人脸尺寸标准参数与成年人脸尺寸标准参数的比例关系,校正所述第一人脸成像尺寸参数值,得到第四人脸成像尺寸参数值,其中,所述儿童人脸尺寸标准参数与所述年龄对应,将所述人脸二维坐标数据和所述第四人脸成像尺寸参数值作为所述当前人脸多维数据。When the age is less than the preset age, according to the proportional relationship between the child's face size standard parameter and the adult's face size standard parameter, the first face imaging size parameter value is corrected to obtain the fourth face imaging size parameter value, Wherein, the child's face size standard parameter corresponds to the age, and the face two-dimensional coordinate data and the fourth face imaging size parameter value are used as the current multi-dimensional face data.
在一个可能的设计中,从所述人脸图像中,提取出当前人脸多维数据,包括:In a possible design, extract the current face multidimensional data from the face image, including:
根据所述人脸图像,识别出所述人员的年龄;Identify the age of the person according to the face image;
从所述人脸图像中,提取人脸二维坐标数据;From the face image, extracting two-dimensional coordinate data of the face;
从所述人脸图像中,提取第一人脸成像尺寸参数值,其中,将所述年龄、所述人脸二维坐标数据和所述第一人脸成像尺寸参数值作为所述当前人脸多维数据。From the face image, extract the first face imaging size parameter value, wherein the age, the face two-dimensional coordinate data and the first face imaging size parameter value are used as the current face multidimensional data.
通过上述可能设计,可以在图像采集设备为单目镜头相机时,利用人脸成像尺寸大小来反映人脸至相机坐标系原点的远近程度,从而在无法测距的情况可替代Z轴坐标,确保所述当前人脸多维数据的可提取性,同时通过在所述当前人脸多维数据中增加一个维度——年龄,可以避免因现场人员与测试人员年龄差距较大而给最终的关注判别结果造成误差的问题,进一步提升判别准确性,实现远场景下关注点的估计。Through the above possible design, when the image acquisition device is a monocular lens camera, the size of the face image can be used to reflect the distance from the face to the origin of the camera coordinate system, so that the Z-axis coordinate can be replaced when the distance cannot be measured, ensuring The extractability of the current multi-dimensional face data, and by adding a dimension—age in the current multi-dimensional data of the face, can avoid the large age gap between the on-site personnel and the test personnel from causing damage to the final attention judgment result. The problem of error can be further improved to further improve the accuracy of discrimination and realize the estimation of points of interest in the far scene.
通过上述可能设计,可以在图像采集设备为单目镜头相机时,利用经过年龄因素校正的人脸成像尺寸大小来反映人脸至相机坐标系原点的远近程度,从而在无法测距的情况可替代Z轴坐标,确保所述当前人脸多维数据的可提取性和后续关注判别结果的准确性,实现远场景下关注点的估计。Through the above possible design, when the image acquisition device is a monocular lens camera, the age-corrected face imaging size can be used to reflect the distance from the face to the origin of the camera coordinate system, so that it can be replaced when the distance cannot be measured. The Z-axis coordinates ensure the extractability of the current face multi-dimensional data and the accuracy of the follow-up focus discrimination results, and realize the estimation of focus points in the distant scene.
在一个可能的设计中,根据人脸多维数据与人脸姿态角范围的对应关系,确定出与所述当前人脸多维数据对应的当前人脸姿态角范围,包括:In a possible design, according to the corresponding relationship between the face multi-dimensional data and the face pose angle range, the current face pose angle range corresponding to the current face multi-dimensional data is determined, including:
将所述当前人脸多维数据导入至连续曲线拟合函数中,计算得到与所述当前人脸多维数据对应的当前人脸姿态角范围,其中,所述连续曲线拟合函数根据多组实测的人脸姿态角范围及人脸多维数据拟合得到。Importing the current multidimensional face data into a continuous curve fitting function, and calculating the current face attitude angle range corresponding to the current multidimensional data, wherein the continuous curve fitting function is based on multiple sets of measured It is obtained by fitting the face pose angle range and face multi-dimensional data.
通过上述可能设计,可以在获取有限组实测的人脸姿态角范围及人脸多维数据后,通过曲线函数拟合技术,精细化地获取到对应不同变量的当前人脸姿态角范围,进而可在减少实现采集工作的同时,确保后续判别的准确性。Through the above possible design, after obtaining a limited set of measured face pose angle ranges and face multidimensional data, the current face pose angle range corresponding to different variables can be obtained in a refined manner through curve function fitting technology, and then can be used in While reducing the collection work, the accuracy of subsequent discrimination is ensured.
第二方面,本发明提供了一种判别人员关注目标物的装置,包括有依次通信连接的图像获取单元、数据提取单元、范围确定单元和关注判别单元;In a second aspect, the present invention provides a device for judging a person's attention to an object, including an image acquisition unit, a data extraction unit, a range determination unit, and a attention judgment unit that are sequentially connected by communication;
所述图像获取单元,用于获取人脸图像,其中,所述人脸图像包含有至少一个人员;The image acquisition unit is configured to acquire a face image, wherein the face image contains at least one person;
所述数据提取单元,用于从所述人脸图像中,提取出所述人员的当前人脸姿态角和当前人脸多维数据;The data extraction unit is used to extract the current facial posture angle of the person and the current multi-dimensional data of the human face from the facial image;
所述范围确定单元,用于根据人脸多维数据与人脸姿态角范围的对应关系,确定出与所述当前人脸多维数据对应的当前人脸姿态角范围,其中,所述人脸姿态角范围是指对应所述人脸多维数据能够关注到目标物的人脸姿态角区间;The range determining unit is configured to determine the current face pose angle range corresponding to the current face multi-dimensional data according to the correspondence between the face multi-dimensional data and the face pose angle range, wherein the face pose angle The range refers to the face attitude angle interval corresponding to the multi-dimensional data of the face that can focus on the target object;
所述关注判别单元,用于当所述当前人脸姿态角位于所述当前人脸姿态角范围内时,判定所述人员在关注所述目标物。The focus judging unit is configured to determine that the person is paying attention to the target when the current face pose angle is within the range of the current face pose angle.
在一个可能的设计中,所述数据提取单元包括有人脸二维坐标提取子单元和第一尺寸参数提取子单元;In a possible design, the data extraction unit includes a human face two-dimensional coordinate extraction subunit and a first size parameter extraction subunit;
所述人脸二维坐标提取子单元,用于从所述人脸图像中,提取人脸二维坐标数据;The human face two-dimensional coordinate extraction subunit is used to extract human face two-dimensional coordinate data from the human face image;
所述第一尺寸参数提取子单元,通信连接所述人脸二维坐标提取子单元,用于从所述人脸图像中,提取第一人脸成像尺寸参数值,其中,将所述人脸二维坐标数据和所述第一人脸成像尺寸参数值作为所述当前人脸多维数据。The first size parameter extraction subunit is communicatively connected to the human face two-dimensional coordinate extraction subunit for extracting a first human face imaging size parameter value from the human face image, wherein the human face The two-dimensional coordinate data and the first face imaging size parameter value are used as the current multi-dimensional face data.
在一个可能的设计中,所述数据提取单元包括有人脸二维坐标提取子单元、第一尺寸参数提取子单元和第二尺寸参数提取子单元;In a possible design, the data extraction unit includes a human face two-dimensional coordinate extraction subunit, a first size parameter extraction subunit and a second size parameter extraction subunit;
所述人脸二维坐标提取子单元,用于从所述人脸图像中,提取人脸二维坐标数据;The human face two-dimensional coordinate extraction subunit is used to extract human face two-dimensional coordinate data from the human face image;
所述第一尺寸参数提取子单元,用于从所述人脸图像中,提取第一人脸成像尺寸参数值;The first size parameter extraction subunit is used to extract a first face imaging size parameter value from the face image;
所述第二尺寸参数提取子单元,分别通信连接所述人脸二维坐标提取子单元和所述第一尺寸参数提取子单元,用于根据所述当前人脸姿态角和所述第一人脸成像尺寸参数值,计算得到第二人脸成像尺寸参数值,其中,将所述人脸二维坐标数据和所述第二人脸成像尺寸参数值作为所述当前人脸多维数据,所述第二人脸成像尺寸参数值为所述人员的人脸在人脸坐标位置不变条件下垂直于图像采集设备的光轴时对应的人脸成像尺寸参数值。The second size parameter extraction subunit is respectively communicatively connected to the human face two-dimensional coordinate extraction subunit and the first size parameter extraction subunit, for The face imaging size parameter value is calculated to obtain the second face imaging size parameter value, wherein the two-dimensional coordinate data of the face and the second face imaging size parameter value are used as the current multi-dimensional data of the face, and the The second face imaging size parameter value is the corresponding face imaging size parameter value when the face of the person is perpendicular to the optical axis of the image acquisition device under the condition that the face coordinate position remains unchanged.
在一个可能的设计中,所述数据提取单元包括有人脸二维坐标提取子单元、第一尺寸参数提取子单元、第二尺寸参数提取子单元、年龄提取子单元和第三尺寸参数提取子单元;In a possible design, the data extraction unit includes a face two-dimensional coordinate extraction subunit, a first size parameter extraction subunit, a second size parameter extraction subunit, an age extraction subunit and a third size parameter extraction subunit ;
所述人脸二维坐标提取子单元,用于从所述人脸图像中,提取人脸二维坐标数据;The human face two-dimensional coordinate extraction subunit is used to extract human face two-dimensional coordinate data from the human face image;
所述第一尺寸参数提取子单元,用于从所述人脸图像中,提取第一人脸成像尺寸参数值;The first size parameter extraction subunit is used to extract a first face imaging size parameter value from the face image;
所述第二尺寸参数提取子单元,通信连接所述第一尺寸参数提取子单元,用于根据所述当前人脸姿态角和所述第一人脸成像尺寸参数值,计算得到第二人脸成像尺寸参数值,其中,所述第二人脸成像尺寸参数值为所述人员的人脸在人脸坐标位置不变条件下垂直于图像采集设备的光轴时对应的人脸成像尺寸参数值;The second size parameter extraction subunit is communicatively connected to the first size parameter extraction subunit, and is used to calculate and obtain a second face according to the current face pose angle and the first face imaging size parameter value Imaging size parameter value, wherein, the second face imaging size parameter value is the corresponding face imaging size parameter value when the face of the person is perpendicular to the optical axis of the image acquisition device under the condition that the coordinate position of the person's face remains unchanged ;
所述年龄提取子单元,用于根据所述人脸图像,识别出所述人员的年龄;The age extraction subunit is used to identify the age of the person according to the face image;
所述第三尺寸参数提取子单元,分别通信连接所述人脸二维坐标提取子单元、所述第二尺寸参数提取子单元和所述年龄提取子单元,用于当所述年龄小于预设年龄时,根据儿童人脸尺寸标准参数与成年人脸尺寸标准参数的比例关系,校正所述第二人脸成像尺寸参数值,得到第三人脸成像尺寸参数值,其中,所述儿童人脸尺寸标准参数与所述年龄对应,将所述人脸二维坐标数据和所述第三人脸成像尺寸参数值作为所述当前人脸多维数据。The third size parameter extraction subunit is respectively communicatively connected to the face two-dimensional coordinate extraction subunit, the second size parameter extraction subunit and the age extraction subunit, for when the age is less than a preset At the time of age, according to the proportional relationship between the child’s face size standard parameter and the adult’s face size standard parameter, the value of the second face imaging size parameter is corrected to obtain the third face imaging size parameter value, wherein the child’s face The size standard parameter corresponds to the age, and the face two-dimensional coordinate data and the third face imaging size parameter value are used as the current face multi-dimensional data.
在一个可能的设计中,所述数据提取单元包括有年龄提取子单元、人脸二维坐标提取子单元、第一尺寸参数提取子单元和第二尺寸参数提取子单元;In a possible design, the data extraction unit includes an age extraction subunit, a face two-dimensional coordinate extraction subunit, a first size parameter extraction subunit and a second size parameter extraction subunit;
所述年龄提取子单元,用于根据所述人脸图像,识别出所述人员的年龄;The age extraction subunit is used to identify the age of the person according to the face image;
所述人脸二维坐标提取子单元,用于从所述人脸图像中,提取人脸二维坐标数据;The human face two-dimensional coordinate extraction subunit is used to extract human face two-dimensional coordinate data from the human face image;
所述第一尺寸参数提取子单元,用于从所述人脸图像中,提取第一人脸成像尺寸参数值;The first size parameter extraction subunit is used to extract a first face imaging size parameter value from the face image;
所述第二尺寸参数提取子单元,分别通信连接所述年龄提取子单元、所述人脸二维坐标提取子单元和所述第一尺寸参数提取子单元,用于根据所述当前人脸姿态角和所述第一人脸成像尺寸参数值,计算得到第二人脸成像尺寸参数值,其中,将所述年龄、所述人脸二维坐标数据和所述第二人脸成像尺寸参数值作为所述当前人脸多维数据,所述第二人脸成像尺寸参数值为所述人员的人脸在人脸坐标位置不变条件下垂直于图像采集设备的光轴时对应的人脸成像尺寸参数值。The second size parameter extraction subunit is respectively communicatively connected to the age extraction subunit, the human face two-dimensional coordinate extraction subunit and the first size parameter extraction subunit, and is used for according to the current facial posture Angle and the first face imaging size parameter value, calculate the second face imaging size parameter value, wherein, the age, the face two-dimensional coordinate data and the second face imaging size parameter value As the current face multi-dimensional data, the second face imaging size parameter value is the corresponding face imaging size when the face of the person is perpendicular to the optical axis of the image acquisition device under the condition that the coordinate position of the person's face remains unchanged. parameter value.
在一个可能的设计中,所述第二尺寸参数提取子单元包括通信相连的系数获取孙单元和尺寸计算孙单元;In a possible design, the second size parameter extraction subunit includes a communication-connected coefficient acquisition grandson unit and a size calculation grandson unit;
所述系数获取孙单元,用于将所述当前人脸姿态角导入至用于反映将人脸旋转到平面上的三角函数中,得到旋转变换系数,其中,所述平面与所述图像采集设备的光轴垂直;The coefficient acquisition grand unit is used to import the current face attitude angle into the trigonometric function used to reflect the rotation of the face on the plane to obtain rotation transformation coefficients, wherein the plane and the image acquisition device The optical axis is vertical;
所述尺寸计算孙单元,用于根据所述第一人脸成像尺寸参数值和所述旋转变换系数,计算得到所述第二人脸成像尺寸参数值。The size calculation grand unit is configured to calculate and obtain the second face imaging size parameter value according to the first face imaging size parameter value and the rotation transformation coefficient.
在一个可能的设计中,所述数据提取单元包括有人脸二维坐标提取子单元、第一尺寸参数提取子单元、年龄提取子单元和第四尺寸参数提取子单元;In a possible design, the data extraction unit includes a human face two-dimensional coordinate extraction subunit, a first size parameter extraction subunit, an age extraction subunit and a fourth size parameter extraction subunit;
所述人脸二维坐标提取子单元,用于从所述人脸图像中,提取人脸二维坐标数据;The human face two-dimensional coordinate extraction subunit is used to extract human face two-dimensional coordinate data from the human face image;
所述第一尺寸参数提取子单元,用于从所述人脸图像中,提取第一人脸成像尺寸参数值;The first size parameter extraction subunit is used to extract a first face imaging size parameter value from the face image;
所述年龄提取子单元,用于根据所述人脸图像,识别出所述人员的年龄;The age extraction subunit is used to identify the age of the person according to the face image;
所述第四尺寸参数提取子单元,分别通信连接所述人脸二维坐标提取子单元、所述第一尺寸参数提取子单元和所述年龄提取子单元,用于当所述年龄小于预设年龄时,根据儿童人脸尺寸标准参数与成年人脸尺寸标准参数的比例关系,校正所述第一人脸成像尺寸参数值,得到第四人脸成像尺寸参数值,其中,所述儿童人脸尺寸标准参数与所述年龄对应,将所述人脸二维坐标数据和所述第四人脸成像尺寸参数值作为所述当前人脸多维数据。The fourth size parameter extraction subunit communicates with the face two-dimensional coordinate extraction subunit, the first size parameter extraction subunit and the age extraction subunit respectively, for when the age is less than a preset At the time of age, according to the proportional relationship between the child’s face size standard parameter and the adult’s face size standard parameter, the value of the first face imaging size parameter is corrected to obtain the fourth face imaging size parameter value, wherein the child’s face The size standard parameter corresponds to the age, and the face two-dimensional coordinate data and the fourth face imaging size parameter value are used as the current multi-dimensional face data.
在一个可能的设计中,所述范围确定单元具体用于将所述当前人脸多维数据导入至连续曲线拟合函数中,计算得到与所述当前人脸多维数据对应的当前人脸姿态角范围,其中,所述连续曲线拟合函数根据多组实测的人脸姿态角范围及人脸多维数据拟合得到。In a possible design, the range determination unit is specifically configured to import the current multi-dimensional face data into a continuous curve fitting function, and calculate the current face pose angle range corresponding to the current multi-dimensional face data , wherein, the continuous curve fitting function is obtained by fitting according to multiple sets of measured face pose angle ranges and face multidimensional data.
第三方面,本发明提供了一种计算机设备,包括通信相连的存储器和处理器,其中,所述存储器用于存储计算机程序,所述处理器用于读取所述计算机程序,执行如第一方面或第一方面中任意一种可能设计所述的判别人员关注目标物的方法。In a third aspect, the present invention provides a computer device, including a memory and a processor connected by communication, wherein the memory is used to store a computer program, and the processor is used to read the computer program to execute the computer program as described in the first aspect. Or any one of the first aspect may design the method for judging the object of human attention.
第四方面,本发明提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有指令,当所述指令在计算机上运行时,执行如上第一方面或第一方面中任意一种可能设计的所述判别人员关注目标物的方法。In a fourth aspect, the present invention provides a computer-readable storage medium, where instructions are stored on the computer-readable storage medium, and when the instructions are run on a computer, any one of the above first aspect or the first aspect is executed. A possible design of the method for judging people's attention to the target.
第五方面,本发明提供了一种包含指令的计算机程序产品,当所述指令在计算机上运行时,使所述计算机执行如上第一方面或第一方面中任意一种可能设计的所述判别人员关注目标物的方法。In the fifth aspect, the present invention provides a computer program product containing instructions. When the instructions are run on a computer, the computer is made to perform the discrimination as described in the above first aspect or any one of the possible designs in the first aspect. The method by which a person focuses on an object.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是现有技术中当头部进行抬头、摇头及转头时的头部姿态示例图。Fig. 1 is an example diagram of the head posture when the head is raised, shaken and turned in the prior art.
图2是本发明提供的图像采集设备、目标物及人脸的位置关系示例图。Fig. 2 is an example diagram of the positional relationship between the image acquisition device, the target object and the human face provided by the present invention.
图3是本发明提供的判别人员关注目标物的方法流程示意图。Fig. 3 is a schematic flow chart of a method for judging an object of concern to a person provided by the present invention.
图4是本发明提供的判别人员关注目标物的装置结构示意图。Fig. 4 is a schematic structural diagram of a device for judging objects of human concern provided by the present invention.
图5是本发明提供的计算机设备的结构示意图。Fig. 5 is a schematic structural diagram of a computer device provided by the present invention.
上述附图中:1-图像采集设备;2-目标物;3-人脸;4-成像视野;5-网格。In the above drawings: 1-image acquisition equipment; 2-target object; 3-human face; 4-imaging field of view; 5-grid.
具体实施方式detailed description
下面结合附图及具体实施例来对本发明作进一步阐述。在此需要说明的是,对于这些实施例方式的说明虽然是用于帮助理解本发明,但并不构成对本发明的限定。本文公开的特定结构和功能细节仅用于描述本发明的示例实施例。然而,可用很多备选的形式来体现本发明,并且不应当理解为本发明限制在本文阐述的实施例中。The present invention will be further elaborated below in conjunction with the accompanying drawings and specific embodiments. It should be noted here that although the descriptions of these embodiments are used to help the understanding of the present invention, they are not intended to limit the present invention. Specific structural and functional details disclosed herein are for purposes of describing example embodiments of the invention only. However, the invention may be embodied in many alternative forms and should not be construed as limited to the embodiments set forth herein.
应当理解,尽管本文可能使用术语第一、第二等等来描述各种单元,但是这些单元不应当受到这些术语的限制。这些术语仅用于区分一个单元和另一个单元。例如可以将第一单元称作第二单元,并且类似地可以将第二单元称作第一单元,同时不脱离本发明的示例实施例的范围。It will be understood that, although the terms first, second etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one unit from another. For example, a first element could be termed a second element, and, similarly, a second element could be termed a first element, without departing from the scope of example embodiments of the present invention.
应当理解,对于本文中可能出现的术语“和/或”,其仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,单独存在B,同时存在A和B三种情况;对于本文中可能出现的术语“/和”,其是描述另一种关联对象关系,表示可以存在两种关系,例如,A/和B,可以表示:单独存在A,单独存在A和B两种情况;另外,对于本文中可能出现的字符“/”,一般表示前后关联对象是一种“或”关系。It should be understood that for the term "and/or" that may appear in this article, it is only an association relationship describing associated objects, indicating that there may be three relationships, for example, A and/or B may indicate: A exists alone, B alone exists, and A and B exist at the same time; for the term "/and" that may appear in this article, it describes another relationship between associated objects, which means that there can be two relationships, for example, A/ and B, can Indicates: A exists alone, and A and B exist independently; in addition, for the character "/" that may appear in this article, it generally indicates that the associated objects before and after are in an "or" relationship.
应当理解,在本文中若将单元称作与另一个单元“连接”、“相连”或“耦合”时,它可以与另一个单元直相连接或耦合,或中间单元可以存在。相対地,在本文中若将单元称作与另一个单元“直接相连”或“直接耦合”时,表示不存在中间单元。另外,应当以类似方式来解释用于描述单元之间的关系的其他单词(例如,“在……之间”对“直接在……之间”,“相邻”对“直接相邻”等等)。It will be understood that when an element is referred to herein as being "connected," "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may be present. In contrast, when an element is referred to as being "directly connected" or "directly coupled" to another element herein, there are no intervening elements present. Also, other words used to describe the relationship between elements should be interpreted in a similar fashion (e.g., "between" versus "directly between," "adjacent" versus "directly adjacent," etc. Wait).
应当理解,本文使用的术语仅用于描述特定实施例,并不意在限制本发明的示例实施例。若本文所使用的,单数形式“一”、“一个”以及“该”意在包括复数形式,除非上下文明确指示相反意思。还应当理解,若术语“包括”、“包括了”、“包含”和/或“包含了”在本文中被使用时,指定所声明的特征、整数、步骤、操作、单元和/或组件的存在性,并且不排除一个或多个其他特征、数量、步骤、操作、单元、组件和/或他们的组合存在性或增加。It should be understood that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments of the invention. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms unless the context clearly dictates otherwise. It should also be understood that when the terms "comprises", "comprises", "comprises" and/or "comprises" are used herein, it designates the stated features, integers, steps, operations, units and/or components. Existence, and does not exclude the existence or addition of one or more other features, quantities, steps, operations, units, components and/or their combinations.
应当理解,还应当注意到在一些备选可能设计中,所出现的功能/动作可能与附图出现的顺序不同。例如,取决于所涉及的功能/动作,实际上可以实质上并发地执行,或者有时可以以相反的顺序来执行连续示出的两个图。It should also be noted that in some alternative possible designs, the functions/acts may occur out of the order out of the order in the figures. For example, two figures shown in succession may, in fact, be executed substantially concurrently or may sometimes be executed in the reverse order, depending upon the functions/acts involved.
应当理解,在下面的描述中提供了特定的细节,以便于对示例实施例的完全理解。然而,本领域普通技术人员应当理解可以在没有这些特定细节的情况下实现示例实施例。例如可以在框图中示出系统,以避免用不必要的细节来使得示例不清楚。在其他实例中,可以不以非必要的细节来示出众所周知的过程、结构和技术,以避免使得示例实施例不清楚。It should be understood that in the following description specific details are provided to facilitate a thorough understanding of example embodiments. However, it would be understood by those of ordinary skill in the art that example embodiments may be practiced without these specific details. For example, systems may be shown in block diagrams in order not to obscure the examples in unnecessary detail. In other instances, well-known processes, structures and techniques may not be shown in unnecessary detail in order not to obscure the example embodiments.
如图2~3所示,本实施例第一方面提供的所述判别人员关注目标物的方法,可以但不限于适用于在诸如商店、展览厅和电梯等场景下判别人员是否关注目标物(例如商品、画作或电梯广告等),并且无论目标物中心与相机坐标系原点是否重合,都可以基于现场采集的人脸图像,实现远场景下关注点的估计。如图2所示,在室内画展厅空间中,图像采集设备1(其可以但不限于为双目镜头相机或单目镜头相机)的相机坐标系原点O与目标物2(其可以但不限于为画作)的中心就明显不重合,当人脸3处于空间任何位置时,从相机坐标系(即所述图像采集设备1的坐标系)来看,人脸姿态的偏航角yaw和俯仰角pitch都是不同的,表示人脸的朝向及眼球的关注方向也不相同,此时就需要采用本实施例第一方面所提供的技术方案来进行远场景下关注点的估计。所述判别人员关注目标物的方法,可以但不限于包括有如下步骤S101~S104。As shown in FIGS. 2-3 , the method for judging whether a person pays attention to an object provided in the first aspect of the present embodiment can be, but is not limited to, applicable to judging whether a person pays attention to an object ( For example, commodities, paintings or elevator advertisements, etc.), and regardless of whether the center of the target object coincides with the origin of the camera coordinate system, it can be based on the face image collected on-site to realize the estimation of the point of interest in the distant scene. As shown in Figure 2, in the space of the indoor painting exhibition hall, the origin O of the camera coordinate system of the image acquisition device 1 (which may be but not limited to a binocular lens camera or a monocular lens camera) and the target object 2 (which may be but not limited to The center of the painting) is obviously not coincident. When the
S101.获取人脸图像,其中,所述人脸图像包含有至少一个人员。S101. Acquire a face image, wherein the face image includes at least one person.
在所述步骤S101中,所述人脸图像可以但不限于由如图2所示的图像采集设备1采集得到,当所述人员出现在所述图像采集设备1的成像视野4中,就可以采集得到所述人脸图像。In the step S101, the face image can be acquired by but not limited to the
S102.从所述人脸图像中,提取出所述人员的当前人脸姿态角和当前人脸多维数据。S102. From the face image, extract the current face pose angle and current face multi-dimensional data of the person.
在所述步骤S102中,从所述人脸图像中提取出所述人员的当前人脸姿态角的具体方式为现有常规方式,可以但不限于包括有:(1)对所述人脸图像进行二维人脸关键点检测;(2)将检测到的二维人脸关键点与三维人脸模型中的对应人脸关键点进行匹配;(3)求解二维人脸关键点与对应三维人脸关键点的转换关系矩阵;(4)根据所述旋转关系矩阵求解人脸相对于所述相机坐标系的三个欧拉角(即所述当前人脸姿态角:俯仰角pitch,偏航角yaw和滚转角roll)。前述所需使用的二维人脸关键点检测是指给定人脸图像,定位出人脸面部的关键区域位置,包括眉毛、眼睛、鼻子、嘴巴和脸部轮廓等。现有的人脸关键点检测方法大致分为三种:基于主动形状模型(Active Shape Model,ASM)和主动外观模型(Active Appearnce Model,AAM)、基于级联形状回归(Cascaded pose regression,CPR)和基于深度学习的方法,基于前述这三种现有方法中的任意一种即可检测到二维人脸标记框、二维人脸关键区域和/或二维人脸关键点等。此外,还可以通过几何学将人脸相对于所述相机坐标系的三个欧拉角转换为人脸相对于其它空间坐标系的三个欧拉角,进而得到所述当前人脸姿态角。In the step S102, the specific way of extracting the current facial posture angle of the person from the human face image is an existing conventional method, which may include but not limited to: (1) for the described human face image Carry out two-dimensional face key point detection; (2) match the detected two-dimensional face key point with the corresponding face key point in the three-dimensional face model; (3) solve the two-dimensional face key point and the corresponding three-dimensional face key point The transformation relation matrix of key point of people's face; (4) according to described rotation relation matrix, solve three Euler angles of people's face relative to described camera coordinate system (that is, described current people's face pose angle: pitch angle pitch, yaw angle yaw and roll angle roll). The aforementioned two-dimensional facial key point detection is to locate the key areas of the human face, including eyebrows, eyes, nose, mouth and facial contour, etc., given a human face image. The existing face key point detection methods are roughly divided into three types: based on Active Shape Model (ASM) and Active Appearance Model (Active Appearance Model, AAM), based on Cascaded pose regression (CPR) And methods based on deep learning, based on any one of the aforementioned three existing methods, the two-dimensional face marker frame, the two-dimensional face key region and/or the two-dimensional face key points, etc. can be detected. In addition, the three Euler angles of the human face relative to the camera coordinate system can also be transformed into three Euler angles of the human face relative to other space coordinate systems through geometry, so as to obtain the current facial pose angle.
在所述步骤S102中,当所述图像采集设备1为双目镜头相机时,可以利用双目测距原理得到人脸3至相机坐标系原点O的距离(即人脸在相机坐标系统中Z轴坐标),同时由于所述人脸图像是垂直于所述图像采集设备1的光轴(即相机坐标系统中Z轴),可以直接基于人脸3在所述人脸图像中的坐标位置得到人脸在相机坐标系统中的X轴坐标和Y轴坐标,如图2所示,当将所述图像采集设备的成像平面划分为若干个网格5,每一个网格5即表示在XY平面中的一个具体坐标位置,如此被所述人脸3占据的网格位置即为X轴坐标和Y轴坐标,进而可以将人脸3在相机坐标系统中的X轴坐标、Y轴坐标和Z轴坐标作为所述当前人脸多维数据。In the step S102, when the
S103.根据人脸多维数据与人脸姿态角范围的对应关系,确定出与所述当前人脸多维数据对应的当前人脸姿态角范围,其中,所述人脸姿态角范围是指对应所述人脸多维数据能够关注到目标物的人脸姿态角区间。S103. According to the corresponding relationship between the face multi-dimensional data and the face pose angle range, determine the current face pose angle range corresponding to the current face multi-dimensional data, wherein the face pose angle range refers to the corresponding Face multi-dimensional data can pay attention to the face pose angle interval of the target.
在所述步骤S103中,所述人脸姿态角区间包含有一对人脸姿态角上限值和人脸姿态角下限值,用于在此区间内确认所述人员在对应所述人脸多维数据时正在关注所述目标物。所述人脸多维数据、所述人脸姿态角上限值和所述人脸姿态角下限值,可在测试人员现场关注所述目标物时,采用与前述步骤S102相同的方式提前采集得到。如图2所示,在室内画展厅空间中,XYZ坐标系即为相机坐标系,在以图像采集设备1的聚焦中心为顶点且以光轴为中心线的四棱锥形体中,该四棱锥形体的底面即为成像视野4,此时在XY平面可划分有4×5个网格,并在Z轴维度上可进一步划分为若干个四棱锥形台空间,每个四棱锥形台空间的XYZ坐标即作为所述人脸多维数据,需针对每个四棱锥形台空间的XYZ坐标,分别采集对应的人脸姿态角上限值和人脸姿态角下限值,以便当人脸3占据某个四棱锥形台空间时,能够根据获取的当前XYZ坐标(即当前人脸多维数据)找到对应的人脸姿态角上限值和人脸姿态角下限值来作为所述当前人脸姿态角范围。In the step S103, the face pose angle interval includes a pair of face pose angle upper limit value and face pose angle lower limit value, which are used to confirm that the person in this interval is corresponding to the face multi-dimensional The data is being focused on the target. The face multi-dimensional data, the upper limit value of the face pose angle and the lower limit value of the face pose angle can be collected in advance in the same way as the aforementioned step S102 when the tester pays attention to the target object on site . As shown in Figure 2, in the space of the indoor painting exhibition hall, the XYZ coordinate system is the camera coordinate system. In the quadrangular pyramid with the focus center of the
S104.当所述当前人脸姿态角位于所述当前人脸姿态角范围内时,判定所述人员在关注所述目标物。S104. When the current face pose angle is within the range of the current face pose angle, determine that the person is paying attention to the target.
在所述步骤S104中,当所述人员的所述当前人脸姿态角位于所述当前人脸姿态角范围内时,表明所述人员如测试人员一样在现场关注所述目标物,进而可判定所述人员在关注所述目标物。反之,当所述当前人脸姿态角位于所述当前人脸姿态角范围外时,可判定所述人员未关注目标物。In the step S104, when the current face pose angle of the person is within the range of the current face pose angle, it indicates that the person pays attention to the target on the spot like a tester, and then it can be determined The person is focusing on the object. Conversely, when the current face pose angle is outside the range of the current face pose angle, it may be determined that the person is not paying attention to the target.
由此通过上述步骤S101~S104所详细描述的判别技术方案,可提供一种不论目标物中心与相机坐标系原点是否重合都可以进行关注点估计的新方法,即可以基于现场采集的人脸图像,依次提取出现场人员的当前人脸姿态角和当前人脸多维数据,并将所述当前人脸姿态角与根据人脸多维数据与人脸姿态角范围的对应关系确定出的且与所述当前人脸多维数据对应的当前人脸姿态角范围相比较,若所述当前人脸姿态角处于所述当前人脸姿态角范围内,则表明现场人员如用于采集所述人脸多维数据和所述人脸姿态角范围的测试人员一样,在现场关注所述目标物,进而可用较少的计算机资源,来判别人员是否关注目标物,实现远场景下关注点的估计,便于实际应用和推广。Therefore, through the discriminative technical scheme described in detail in steps S101 to S104 above, a new method for estimating points of interest regardless of whether the center of the target object coincides with the origin of the camera coordinate system can be provided, that is, it can be based on face images collected on-site , sequentially extracting the current face attitude angle and the current multi-dimensional data of the face of the personnel on site, and the current face attitude angle and the corresponding relationship determined according to the multi-dimensional data of the face and the range of the face attitude angle and related to the described Compared with the current face attitude angle range corresponding to the current face multidimensional data, if the current face attitude angle is within the current face attitude angle range, it indicates that on-site personnel are used to collect the multidimensional face data and The same as the testers in the range of facial posture angles, pay attention to the target on the spot, and then use less computer resources to judge whether the personnel pay attention to the target, and realize the estimation of the focus point in the far scene, which is convenient for practical application and promotion .
本实施例在前述第一方面的技术方案基础上,还具体提出了一种当图像采集设备为单目镜头相机时提取当前人脸多维数据的可能设计一,即从所述人脸图像中,提取出所述人员的当前人脸多维数据,包括但不限于有如下步骤S211~S212。On the basis of the above-mentioned technical solution of the first aspect, this embodiment also specifically proposes a possible design one for extracting the multi-dimensional data of the current face when the image acquisition device is a monocular lens camera, that is, from the face image, Extracting the current face multi-dimensional data of the person includes but is not limited to the following steps S211-S212.
S211.从所述人脸图像中,提取人脸二维坐标数据。S211. Extract two-dimensional coordinate data of the face from the face image.
在所述步骤S211中,由于所述人脸图像是垂直于所述图像采集设备1的光轴(即相机坐标系统中Z轴),可以直接基于人脸3在所述人脸图像中的坐标位置得到人脸在相机坐标系统中的X轴坐标和Y轴坐标,如图2所示,当将所述图像采集设备的成像平面划分为若干个网格5,每一个网格5即表示在XY平面中的一个具体坐标位置,如此被所述人脸3占据的网格位置即为X轴坐标和Y轴坐标,进而可以将人脸3当前对应的X轴坐标和Y轴坐标作为所述人脸二维坐标数据。In the step S211, since the face image is perpendicular to the optical axis of the image acquisition device 1 (i.e. the Z axis in the camera coordinate system), it can be directly based on the coordinates of the
S212.从所述人脸图像中,提取第一人脸成像尺寸参数值,其中,将所述人脸二维坐标数据和所述第一人脸成像尺寸参数值作为所述当前人脸多维数据。S212. From the face image, extract a first face imaging size parameter value, wherein the face two-dimensional coordinate data and the first face imaging size parameter value are used as the current face multidimensional data .
在所述步骤S212中,所述第一人脸成像尺寸参数值即为人脸3在所述人脸图像中的人脸成像尺寸大小,可以直接基于采集照片的尺寸大小对照得到。考虑单目镜头相机的成像结果是无法测距的,因此可采用所述第一人脸成像尺寸参数值来替代前述第一方面中所述当前人脸多维数据的Z轴坐标,即通过人脸成像尺寸大小来反映人脸3至相机坐标系原点O的远近程度。具体的,所述第一人脸成像尺寸参数值可以但不限于包含有人脸图像标记框的面积值、任意人脸关键区域的面积值和/或任意两个人脸关键点之间的距离值等,其中,所述人脸关键区域和所述人脸关键点均从所述人脸图像中检测得到(基于现有的人脸关键点检测方法)。举例的,所述人脸关键区域可以但不限于为脸部区域、眼睛区域、鼻子区域或嘴巴区域等,所述两个人脸关键点之间的距离参数可以但不限于为瞳距值等。In the step S212, the first face imaging size parameter value is the face imaging size of the
由此通过上述步骤S211~S212所描述的可能设计一,可以在图像采集设备为单目镜头相机时,利用人脸成像尺寸大小来反映人脸至相机坐标系原点的远近程度,从而在无法测距的情况可替代Z轴坐标,确保所述当前人脸多维数据的可提取性,实现远场景下关注点的估计。Therefore, through the
本实施例在前述第一方面的技术方案基础上,还具体提出了另一种当图像采集设备为单目镜头相机时提取当前人脸多维数据的可能设计二,即从所述人脸图像中,提取出所述人员的当前人脸多维数据,包括但不限于有如下步骤S221~S224。On the basis of the above-mentioned technical solution of the first aspect, this embodiment also specifically proposes another possible design two for extracting the multi-dimensional data of the current face when the image acquisition device is a monocular lens camera, that is, from the face image , extracting the current face multi-dimensional data of the person, including but not limited to the following steps S221-S224.
S221.从所述人脸图像中,提取人脸二维坐标数据。S221. Extract two-dimensional coordinate data of the face from the face image.
S222.从所述人脸图像中,提取第一人脸成像尺寸参数值。S222. From the face image, extract a first face imaging size parameter value.
S223.根据所述人脸图像,识别出所述人员的年龄。S223. Identify the age of the person according to the face image.
S224.当所述年龄小于预设年龄时,根据儿童人脸尺寸标准参数与成年人脸尺寸标准参数的比例关系,校正所述第一人脸成像尺寸参数值,得到第四人脸成像尺寸参数值,其中,所述儿童人脸尺寸标准参数与所述年龄对应,将所述人脸二维坐标数据和所述第四人脸成像尺寸参数值作为所述当前人脸多维数据。S224. When the age is less than the preset age, according to the proportional relationship between the child's face size standard parameter and the adult's face size standard parameter, correct the value of the first face imaging size parameter to obtain the fourth face imaging size parameter Value, wherein, the child face size standard parameter corresponds to the age, and the face two-dimensional coordinate data and the fourth face imaging size parameter value are used as the current multi-dimensional face data.
在前述步骤S221~S222中,所述人脸二维坐标数据和所述第一人脸成像尺寸参数值可参见前述可能设计一。在所述步骤223中,识别出所述人员的年龄的方式可以但不限于具体为将所述人脸图像导入已完成深度学习训练的人脸识别模型,得到所述人员的年龄。所述人脸识别模型为通过深度学习训练,能够根据人脸图像进行年龄等识别的现有常规模型,可以基于所述人脸图像识别出所述人员的年龄等。在所述步骤S224中,考虑成年人的且诸如头部、脸部或瞳距等人脸尺寸参数相对差别不大,可以作为基本判别依据,但是针对现场人员与测试人员互为成年人与儿童时,将会给最终的关注判别结果造成误差,因此需要根据儿童人脸尺寸标准参数与成年人脸尺寸标准参数的比例关系,校正所述第一人脸成像尺寸参数值(即当现场人员为成年人且测试人员为儿童时,缩小尺寸参数;而当现场人员为儿童且测试人员为成年人时,放大尺寸参数),得到第四人脸成像尺寸参数值,进而采用所述第四人脸成像尺寸参数值来替代前述可能设计一中所述当前人脸多维数据的第一人脸成像尺寸参数值,可以使所述人员的当前人脸多维数据与测试人员的人脸多维数据保持一致性,避免给后续的关注判别结果造成误差,进一步提升判别准确性。In the aforementioned steps S221-S222, the two-dimensional coordinate data of the human face and the parameter value of the first human face imaging size can refer to the aforementioned possible design one. In the step 223, the method of identifying the age of the person may be, but not limited to, specifically importing the face image into a face recognition model that has completed deep learning training to obtain the age of the person. The face recognition model is an existing conventional model capable of performing age recognition based on face images through deep learning training, and can recognize the age and the like of the person based on the face images. In the step S224, it is considered that the face size parameters of adults and such as head, face or interpupillary distance have relatively little difference, which can be used as a basic basis for discrimination, but for field personnel and test personnel, they are adults and children. , will cause errors to the final attention discrimination result, so it is necessary to correct the first human face imaging size parameter value according to the proportional relationship between the child's face size standard parameter and the adult's face size standard parameter (that is, when the on-site personnel are When the adult and the tester are children, reduce the size parameter; and when the on-site personnel are children and the tester is an adult, enlarge the size parameter) to obtain the fourth face imaging size parameter value, and then use the fourth face The imaging size parameter value is used to replace the first face imaging size parameter value of the current face multi-dimensional data in the aforementioned possible design one, so that the current face multi-dimensional data of the person can be kept consistent with the tester's face multi-dimensional data , to avoid causing errors to the follow-up judgment results of attention, and further improve the judgment accuracy.
由此通过上述步骤S221~S224所描述的可能设计二,可以在图像采集设备为单目镜头相机时,利用经过年龄因素校正的人脸成像尺寸大小来反映人脸至相机坐标系原点的远近程度,从而在无法测距的情况可替代Z轴坐标,确保所述当前人脸多维数据的可提取性和后续关注判别结果的准确性,实现远场景下关注点的估计。此外,还可以基于性别因素来矫正所述第一人脸成像尺寸参数值,即根据所述人脸图像,识别出所述人员的性别,并在矫正时,所述儿童人脸尺寸标准参数与所述年龄和所述性别对应,所述成年人脸尺寸标准参数与所述性别对应。Therefore, through the second possible design described in the above steps S221-S224, when the image acquisition device is a monocular lens camera, the age-corrected face imaging size can be used to reflect the distance between the face and the origin of the camera coordinate system , so that the Z-axis coordinate can be replaced in the case where the distance cannot be measured, ensuring the extractability of the current face multi-dimensional data and the accuracy of the follow-up focus discrimination results, and realizing the estimation of the focus point in the distant scene. In addition, the first human face imaging size parameter value can also be corrected based on gender factors, that is, according to the human face image, the gender of the person is identified, and when correcting, the child's face size standard parameter and The age corresponds to the gender, and the adult face size standard parameters correspond to the gender.
本实施例在前述第一方面的技术方案基础上,还具体提出了另一种当图像采集设备为单目镜头相机时提取当前人脸多维数据的可能设计三,即从所述人脸图像中,提取出所述人员的当前人脸多维数据,包括但不限于有如下步骤S231~S233。On the basis of the technical solution of the aforementioned first aspect, this embodiment also specifically proposes another possible design three for extracting the multi-dimensional data of the current face when the image acquisition device is a monocular lens camera, that is, from the face image , extracting the current face multi-dimensional data of the person, including but not limited to the following steps S231-S233.
S231.从所述人脸图像中,提取人脸二维坐标数据。S231. Extract two-dimensional coordinate data of the face from the face image.
S232.从所述人脸图像中,提取第一人脸成像尺寸参数值。S232. From the face image, extract a first face imaging size parameter value.
S233.根据所述当前人脸姿态角和所述第一人脸成像尺寸参数值,计算得到第二人脸成像尺寸参数值,其中,将所述人脸二维坐标数据和所述第二人脸成像尺寸参数值作为所述当前人脸多维数据,所述第二人脸成像尺寸参数值为所述人员的人脸在人脸坐标位置不变条件下垂直于图像采集设备的光轴时对应的人脸成像尺寸参数值。S233. According to the current face pose angle and the first face imaging size parameter value, calculate the second face imaging size parameter value, wherein the two-dimensional coordinate data of the face and the second person The face imaging size parameter value is used as the multi-dimensional data of the current face, and the second face imaging size parameter value corresponds to when the face of the person is perpendicular to the optical axis of the image acquisition device under the condition that the coordinate position of the face remains unchanged. The face imaging size parameter value of .
在前述步骤S231和S232中,所述人脸二维坐标数据和所述第一人脸成像尺寸参数值可参见前述可能设计一。在所述步骤S233中,考虑所述第一人脸成像尺寸参数值是在图像采集设备的斜视角度下获取的,会给最终的关注判别结果造成误差,因此需要根据所述当前人脸姿态角和所述第一人脸成像尺寸参数值进行几何空间旋转变换,得到主视角度下的第二人脸成像尺寸参数值,进而采用所述第二人脸成像尺寸参数值来替代前述可能设计一中所述当前人脸多维数据的第一人脸成像尺寸参数值,可以避免给后续的关注判别结果造成误差,进一步提升判别准确性。In the aforementioned steps S231 and S232, the two-dimensional coordinate data of the human face and the parameter value of the first human face imaging size can refer to the aforementioned possible design one. In the step S233, it is considered that the first human face imaging size parameter value is acquired under the oblique angle of the image acquisition device, which will cause errors in the final attention discrimination result, so it is necessary to obtain the value according to the current facial posture angle. Perform geometric space rotation transformation with the first human face imaging size parameter value to obtain the second human face imaging size parameter value under the main viewing angle, and then use the second human face imaging size parameter value to replace the aforementioned possible design one The first face imaging size parameter value of the current face multi-dimensional data described in , can avoid causing errors to the subsequent focus judgment results, and further improve the judgment accuracy.
由此通过上述步骤S231~S233所描述的可能设计三,可以在图像采集设备为单目镜头相机时,利用主视角度下的人脸成像尺寸大小来反映人脸至相机坐标系原点的远近程度,从而在无法测距的情况可替代Z轴坐标,确保所述当前人脸多维数据的可提取性和后续关注判别结果的准确性,实现远场景下关注点的估计。Therefore, through the third possible design described in the above steps S231-S233, when the image acquisition device is a monocular lens camera, the face imaging size under the main viewing angle can be used to reflect the distance from the face to the origin of the camera coordinate system , so that the Z-axis coordinate can be replaced in the case where the distance cannot be measured, ensuring the extractability of the current face multi-dimensional data and the accuracy of the follow-up focus discrimination results, and realizing the estimation of the focus point in the distant scene.
本实施例在前述第一方面的技术方案基础上,还具体提出了另一种当图像采集设备为单目镜头相机时提取当前人脸多维数据的可能设计四,即从所述人脸图像中,提取出所述人员的当前人脸多维数据,包括但不限于有如下步骤S241~S245。On the basis of the above-mentioned technical solution of the first aspect, this embodiment also specifically proposes another possible design four for extracting the multi-dimensional data of the current face when the image acquisition device is a monocular lens camera, that is, from the face image , extracting the current face multi-dimensional data of the person, including but not limited to the following steps S241-S245.
S241.从所述人脸图像中,提取人脸二维坐标数据。S241. Extract two-dimensional coordinate data of the face from the face image.
S242.从所述人脸图像中,提取第一人脸成像尺寸参数值。S242. From the face image, extract a first face imaging size parameter value.
S243.根据所述当前人脸姿态角和所述第一人脸成像尺寸参数值,计算得到第二人脸成像尺寸参数值,其中,所述第二人脸成像尺寸参数值为所述人员的人脸在人脸坐标位置不变条件下垂直于图像采集设备的光轴时对应的人脸成像尺寸参数值。S243. Calculate and obtain a second face imaging size parameter value according to the current face pose angle and the first face imaging size parameter value, wherein the second face imaging size parameter value is the person's The corresponding face imaging size parameter value when the face is perpendicular to the optical axis of the image acquisition device under the condition that the face coordinate position remains unchanged.
S244.根据所述人脸图像,识别出所述人员的年龄。S244. Identify the age of the person according to the face image.
S245.当所述年龄小于预设年龄时,根据儿童人脸尺寸标准参数与成年人脸尺寸标准参数的比例关系,校正所述第二人脸成像尺寸参数值,得到第三人脸成像尺寸参数值,其中,所述儿童人脸尺寸标准参数与所述年龄对应,将所述人脸二维坐标数据和所述第三人脸成像尺寸参数值作为所述当前人脸多维数据。S245. When the age is less than the preset age, according to the proportional relationship between the child's face size standard parameter and the adult's face size standard parameter, correct the value of the second face imaging size parameter to obtain a third face imaging size parameter Value, wherein, the child face size standard parameter corresponds to the age, and the face two-dimensional coordinate data and the third face imaging size parameter value are used as the current multi-dimensional face data.
在前述步骤S241~S243中,所述人脸二维坐标数据和所述第一人脸成像尺寸参数值可参见前述可能设计一,所述第二人脸成像尺寸参数值可参见前述可能设计三。在所述步骤S244中,识别出所述人员的年龄的方式可以但不限于具体为将所述人脸图像导入已完成深度学习训练的人脸识别模型,得到所述人员的年龄。所述人脸识别模型为通过深度学习训练,能够根据人脸图像进行年龄等识别的现有常规模型,可以基于所述人脸图像识别出所述人员的年龄等。在所述步骤S245中,考虑成年人的且诸如头部、脸部或瞳距等人脸主视尺寸参数相对差别不大,可以作为基本判别依据,但是针对现场人员与测试人员互为成年人与儿童时,将会给最终的关注判别结果造成误差,因此需要根据儿童人脸尺寸标准参数与成年人脸尺寸标准参数的比例关系,校正所述第二人脸成像尺寸参数值(即当现场人员为成年人且测试人员为儿童时,缩小尺寸参数;而当现场人员为儿童且测试人员为成年人时,放大尺寸参数),得到第三人脸成像尺寸参数值,进而采用所述第三人脸成像尺寸参数值来替代前述可能设计二中所述当前人脸多维数据的第二人脸成像尺寸参数值,可以使所述人员的当前人脸多维数据与测试人员的人脸多维数据保持一致性,避免给后续的关注判别结果造成误差,进一步提升判别准确性。In the foregoing steps S241-S243, the two-dimensional coordinate data of the human face and the first human face imaging size parameter value can refer to the aforementioned possible design one, and the second human face imaging size parameter value can be referred to the aforementioned possible design three . In the step S244, the manner of identifying the age of the person may be, but not limited to, specifically importing the face image into a face recognition model that has completed deep learning training to obtain the age of the person. The face recognition model is an existing conventional model capable of performing age recognition based on face images through deep learning training, and can recognize the age and the like of the person based on the face images. In the step S245, it is considered that there is relatively little difference in the main face size parameters of adults such as the head, face or interpupillary distance, which can be used as the basic basis for discrimination, but for the on-site personnel and the test personnel to be adults. When it is with children, it will cause errors to the final attention discrimination result, so it is necessary to correct the second human face imaging size parameter value according to the proportional relationship between the child's face size standard parameter and the adult face size standard parameter (that is, when the scene When the person is an adult and the tester is a child, reduce the size parameter; and when the on-site person is a child and the tester is an adult, enlarge the size parameter) to obtain the third face imaging size parameter value, and then adopt the third The face imaging size parameter value replaces the second face imaging size parameter value of the current face multi-dimensional data described in the aforementioned possible design two, which can keep the current face multi-dimensional data of the person and the tester's face multi-dimensional data. Consistency, to avoid causing errors to the follow-up judgment results of attention, and further improve the judgment accuracy.
由此通过上述步骤S241~S245所描述的可能设计四,可以在图像采集设备为单目镜头相机时,利用主视角度下的且经过年龄因素校正的人脸成像尺寸大小来反映人脸至相机坐标系原点的远近程度,从而在无法测距的情况可替代Z轴坐标,确保所述当前人脸多维数据的可提取性和后续关注判别结果的准确性,实现远场景下关注点的估计。此外,还可以基于性别因素(例如,成年男性的瞳距值在60毫米~73毫米之间,成年女性的瞳距值在55毫米~68毫米,不同性别的人脸成像尺寸参数值也会存在差异)来矫正所述第二人脸成像尺寸参数值,即根据所述人脸图像,识别出所述人员的性别,并在矫正时,所述儿童人脸尺寸标准参数与所述年龄和所述性别对应,所述成年人脸尺寸标准参数与所述性别对应。Therefore, through the fourth possible design described in the above steps S241-S245, when the image acquisition device is a monocular lens camera, the image size of the face under the main viewing angle and corrected for the age factor can be used to reflect the face to the camera. The distance of the origin of the coordinate system can replace the Z-axis coordinates when the distance cannot be measured, so as to ensure the extractability of the current face multi-dimensional data and the accuracy of subsequent attention discrimination results, and realize the estimation of the attention points in the far scene. In addition, based on gender factors (for example, the interpupillary distance value of an adult male is between 60 mm and 73 mm, and the interpupillary distance value of an adult female is between 55 mm and 68 mm, there will also be face imaging size parameter values of different genders. difference) to correct the second face imaging size parameter value, that is, according to the face image, the gender of the person is identified, and when correcting, the child’s face size standard parameter is consistent with the age and the The gender corresponds, and the adult face size standard parameter corresponds to the gender.
本实施例在前述第一方面的技术方案基础上,还具体提出了另一种当图像采集设备为单目镜头相机时提取当前人脸多维数据的可能设计五,即从所述人脸图像中,提取出所述人员的当前人脸多维数据,包括但不限于有如下步骤S251~S254。On the basis of the above-mentioned technical solution in the first aspect, this embodiment also specifically proposes another possible design five for extracting the multi-dimensional data of the current face when the image acquisition device is a monocular lens camera, that is, from the face image , extracting the current face multi-dimensional data of the person, including but not limited to the following steps S251-S254.
S251.根据所述人脸图像,识别出所述人员的年龄。S251. Identify the age of the person according to the face image.
S252.从所述人脸图像中,提取人脸二维坐标数据。S252. Extract two-dimensional coordinate data of the face from the face image.
S253.从所述人脸图像中,提取第一人脸成像尺寸参数值。S253. From the face image, extract a first face imaging size parameter value.
S254.根据所述当前人脸姿态角和所述第一人脸成像尺寸参数值,计算得到第二人脸成像尺寸参数值,其中,将所述年龄、所述人脸二维坐标数据和所述第二人脸成像尺寸参数值作为所述当前人脸多维数据,所述第二人脸成像尺寸参数值为所述人员的人脸在人脸坐标位置不变条件下垂直于图像采集设备的光轴时对应的人脸成像尺寸参数值。S254. According to the current face pose angle and the first face imaging size parameter value, calculate the second face imaging size parameter value, wherein the age, the face two-dimensional coordinate data and the The second face imaging size parameter value is used as the current face multi-dimensional data, and the second face imaging size parameter value is the face of the person perpendicular to the image acquisition device under the condition that the face coordinate position remains unchanged. The face imaging size parameter value corresponding to the optical axis.
在前述步骤S251~S254中,所述年龄可参见前述可能设计四,所述人脸二维坐标数据和所述第一人脸成像尺寸参数值可参见前述可能设计一,所述第二人脸成像尺寸参数值可参见前述可能设计三。通过在所述当前人脸多维数据中增加一个维度——年龄,可以避免因现场人员与测试人员年龄差距较大而给最终的关注判别结果造成误差的问题,进一步提升判别准确性。In the aforementioned steps S251-S254, the age can be referred to the aforementioned possible design four, the face two-dimensional coordinate data and the first human face imaging size parameter value can be referred to the aforementioned possible design one, the second human face For the value of the imaging size parameter, please refer to the third possible design above. By adding a dimension—age to the current face multi-dimensional data, it is possible to avoid the problem of errors in the final focus judgment result due to the large age gap between the on-site personnel and the test personnel, and further improve the discrimination accuracy.
由此通过上述步骤S251~S254所描述的可能设计五,可以在图像采集设备为单目镜头相机时,利用主视角度下的人脸成像尺寸大小来反映人脸至相机坐标系原点的远近程度,从而在无法测距的情况可替代Z轴坐标,确保所述当前人脸多维数据的可提取性,同时通过在所述当前人脸多维数据中增加一个维度——年龄,可以避免因现场人员与测试人员年龄差距较大而给最终的关注判别结果造成误差的问题,进一步提升判别准确性,实现远场景下关注点的估计。此外,在所述当前人脸多维数据中还可再增加一个维度——性别,即根据所述人脸图像,识别出所述人员的性别,然后将所述年龄、所述性别、所述人脸二维坐标数据和所述第一人脸成像尺寸参数值作为所述当前人脸多维数据。Therefore, through the fifth possible design described in the above steps S251-S254, when the image acquisition device is a monocular lens camera, the image size of the face at the main viewing angle can be used to reflect the distance from the face to the origin of the camera coordinate system , so that the Z-axis coordinates can be replaced in the case of being unable to measure the distance, ensuring the extractability of the current multi-dimensional face data, and at the same time, by adding a dimension—age to the current multi-dimensional data of the face, it can be avoided. The large age gap with the testers will cause errors in the final attention discrimination results, further improve the accuracy of discrimination, and realize the estimation of attention points in the distant scene. In addition, another dimension—gender can be added to the current face multidimensional data, that is, according to the face image, the gender of the person is identified, and then the age, the gender, the person The two-dimensional face coordinate data and the first face imaging size parameter value are used as the current multi-dimensional face data.
出于上述相似目的,还可以将所述年龄、所述人脸二维坐标数据和所述第一人脸成像尺寸参数值作为所述当前人脸多维数据,即:从所述人脸图像中,提取出当前人脸多维数据,包括:根据所述人脸图像,识别出所述人员的年龄;从所述人脸图像中,提取人脸二维坐标数据;从所述人脸图像中,提取第一人脸成像尺寸参数值,其中,将所述年龄、所述人脸二维坐标数据和所述第一人脸成像尺寸参数值作为所述当前人脸多维数据。由此既可以在图像采集设备为单目镜头相机时,利用人脸成像尺寸大小来反映人脸至相机坐标系原点的远近程度,从而在无法测距的情况可替代Z轴坐标,确保所述当前人脸多维数据的可提取性,还可通过在所述当前人脸多维数据中增加一个维度——年龄,来避免因现场人员与测试人员年龄差距较大而给最终的关注判别结果造成误差的问题,进一步提升判别准确性,实现远场景下关注点的估计。For the above-mentioned similar purposes, the age, the two-dimensional coordinate data of the face and the first face imaging size parameter value can also be used as the current multi-dimensional face data, that is: from the face image , extracting the current face multi-dimensional data, including: identifying the age of the person according to the face image; extracting two-dimensional coordinate data of the face from the face image; from the face image, Extracting a first human face imaging size parameter value, wherein the age, the human face two-dimensional coordinate data and the first human face imaging size parameter value are used as the current multidimensional face data. Therefore, when the image acquisition device is a monocular lens camera, the size of the face image can be used to reflect the distance from the face to the origin of the camera coordinate system, so that the Z-axis coordinate can be replaced when the distance cannot be measured, ensuring that the The extractability of the current face multi-dimensional data can also avoid errors in the final attention discrimination result due to the large age gap between the field personnel and the test personnel by adding a dimension to the current face multi-dimensional data - age problems, further improve the accuracy of discrimination, and realize the estimation of points of interest in the distant scene.
本实施例在前述可能设计三至五中任意一种的技术方案基础上,还具体提出了一种如何计算第二人脸成像尺寸参数值的可能设计六,即根据所述当前人脸姿态角和所述第一人脸成像尺寸参数值,计算得到第二人脸成像尺寸参数值,包括但不限于有如下步骤S301~S302。On the basis of any one of the aforementioned possible designs three to five, this embodiment also specifically proposes a possible design six of how to calculate the second face imaging size parameter value, that is, according to the current face pose angle and the first human face imaging size parameter value to calculate the second human face imaging size parameter value, including but not limited to the following steps S301-S302.
S301.将所述当前人脸姿态角导入至用于反映将人脸旋转到平面上的三角函数中,得到旋转变换系数,其中,所述平面与所述图像采集设备的光轴垂直。S301. Import the current face pose angle into a trigonometric function for reflecting the rotation of the face on a plane to obtain a rotation transformation coefficient, wherein the plane is perpendicular to the optical axis of the image acquisition device.
在所述步骤S301中,将人脸旋转到平面即是指将人脸3旋转正对所述图像采集设备1的镜头,所述三角函数可根据常规的几何分析得到。在实际计算过程中,考虑人脸姿态旋转前后的变化幅度不大,可以忽略俯仰角和滚转角对人脸尺寸参数的影响,进而可按照如下公式计算得到所述旋转变换系数:In the step S301 , rotating the human face to a plane means rotating the
η=sec(θyaw)η=sec(θ yaw )
式中,η表示所述旋转变换系数,θyaw表示所述当前人脸姿态角中的偏航角,sec()表示正割函数。In the formula, η represents the rotation transformation coefficient, θ yaw represents the yaw angle in the current face attitude angle, and sec() represents the secant function.
S302.根据所述第一人脸成像尺寸参数值和所述旋转变换系数,计算得到所述第二人脸成像尺寸参数值。S302. Calculate and obtain the second face imaging size parameter value according to the first face imaging size parameter value and the rotation transformation coefficient.
在所述步骤S302中,可具体将所述第一人脸成像尺寸参数值与所述旋转变换系数的相乘结果作为所述第二人脸成像尺寸参数值,例如瞳距值与所述旋转变换系数相乘。In the step S302, the multiplication result of the first face imaging size parameter value and the rotation transformation coefficient can be used as the second face imaging size parameter value, for example, the interpupillary distance value and the rotation Multiply the transform coefficients.
由此通过上述步骤S301~S302所描述的可能设计六,可以得到真实准确的人脸主视尺寸参数,确保后续判别的准确性。Therefore, through the six possible designs described in the above steps S301-S302, the real and accurate face main view size parameters can be obtained to ensure the accuracy of subsequent discrimination.
本实施例在前述第一方面及可能设计一至六任意一项的技术方案基础上,还具体提出了一种如何精确获取当前人脸姿态角范围的可能设计七,即根据人脸多维数据与人脸姿态角范围的对应关系,确定出与所述当前人脸多维数据对应的当前人脸姿态角范围,包括:将所述当前人脸多维数据导入至连续曲线拟合函数中,计算得到与所述当前人脸多维数据对应的当前人脸姿态角范围,其中,所述连续曲线拟合函数根据多组实测的人脸姿态角范围及人脸多维数据拟合得到。On the basis of the aforementioned first aspect and any one of
由此通过上述所描述的可能设计七,可以在获取有限组实测的人脸姿态角范围及人脸多维数据后,通过曲线函数拟合技术,精细化地获取到对应不同变量的当前人脸姿态角范围,进而可在减少实现采集工作的同时,确保后续判别的准确性。Therefore, through the seven possible designs described above, after obtaining a limited set of measured face pose angle ranges and face multi-dimensional data, the current face pose corresponding to different variables can be obtained in a refined manner through curve function fitting technology Angular range, which can reduce the acquisition work while ensuring the accuracy of subsequent discrimination.
如图4所示,本实施例第二方面提供了一种实现第一方面或第一方面中任意一种可能设计的所述判别人员关注目标物的方法的虚拟装置,包括有依次通信连接的图像获取单元、数据提取单元、范围确定单元和关注判别单元;As shown in Figure 4, the second aspect of this embodiment provides a virtual device that implements the method for discriminating the object of human concern in any of the possible designs of the first aspect or the first aspect, including a sequential communication connection an image acquisition unit, a data extraction unit, a range determination unit, and a focus discrimination unit;
所述图像获取单元,用于获取人脸图像,其中,所述人脸图像包含有至少一个人员;The image acquisition unit is configured to acquire a face image, wherein the face image contains at least one person;
所述数据提取单元,用于从所述人脸图像中,提取出所述人员的当前人脸姿态角和当前人脸多维数据;The data extraction unit is used to extract the current facial posture angle of the person and the current multi-dimensional data of the human face from the facial image;
所述范围确定单元,用于根据人脸多维数据与人脸姿态角范围的对应关系,确定出与所述当前人脸多维数据对应的当前人脸姿态角范围,其中,所述人脸姿态角范围是指对应所述人脸多维数据能够关注到目标物的人脸姿态角区间;The range determining unit is configured to determine the current face pose angle range corresponding to the current face multi-dimensional data according to the correspondence between the face multi-dimensional data and the face pose angle range, wherein the face pose angle The range refers to the face attitude angle interval corresponding to the multi-dimensional data of the face that can focus on the target object;
所述关注判别单元,用于当所述当前人脸姿态角位于所述当前人脸姿态角范围内时,判定所述人员在关注所述目标物。The focus judging unit is configured to determine that the person is paying attention to the target when the current face pose angle is within the range of the current face pose angle.
在一个可能的设计中,所述数据提取单元包括有人脸二维坐标提取子单元和第一尺寸参数提取子单元;In a possible design, the data extraction unit includes a human face two-dimensional coordinate extraction subunit and a first size parameter extraction subunit;
所述人脸二维坐标提取子单元,用于从所述人脸图像中,提取人脸二维坐标数据;The human face two-dimensional coordinate extraction subunit is used to extract human face two-dimensional coordinate data from the human face image;
所述第一尺寸参数提取子单元,通信连接所述人脸二维坐标提取子单元,用于从所述人脸图像中,提取第一人脸成像尺寸参数值,其中,将所述人脸二维坐标数据和所述第一人脸成像尺寸参数值作为所述当前人脸多维数据。The first size parameter extraction subunit is communicatively connected to the human face two-dimensional coordinate extraction subunit for extracting a first human face imaging size parameter value from the human face image, wherein the human face The two-dimensional coordinate data and the first face imaging size parameter value are used as the current multi-dimensional face data.
在一个可能的设计中,所述数据提取单元包括有人脸二维坐标提取子单元、第一尺寸参数提取子单元和第二尺寸参数提取子单元;In a possible design, the data extraction unit includes a human face two-dimensional coordinate extraction subunit, a first size parameter extraction subunit and a second size parameter extraction subunit;
所述人脸二维坐标提取子单元,用于从所述人脸图像中,提取人脸二维坐标数据;The human face two-dimensional coordinate extraction subunit is used to extract human face two-dimensional coordinate data from the human face image;
所述第一尺寸参数提取子单元,用于从所述人脸图像中,提取第一人脸成像尺寸参数值;The first size parameter extraction subunit is used to extract a first face imaging size parameter value from the face image;
所述第二尺寸参数提取子单元,分别通信连接所述人脸二维坐标提取子单元和所述第一尺寸参数提取子单元,用于根据所述当前人脸姿态角和所述第一人脸成像尺寸参数值,计算得到第二人脸成像尺寸参数值,其中,将所述人脸二维坐标数据和所述第二人脸成像尺寸参数值作为所述当前人脸多维数据,所述第二人脸成像尺寸参数值为所述人员的人脸在人脸坐标位置不变条件下垂直于图像采集设备的光轴时对应的人脸成像尺寸参数值。The second size parameter extraction subunit is respectively communicatively connected to the human face two-dimensional coordinate extraction subunit and the first size parameter extraction subunit, for The face imaging size parameter value is calculated to obtain the second face imaging size parameter value, wherein the two-dimensional coordinate data of the face and the second face imaging size parameter value are used as the current multi-dimensional data of the face, and the The second face imaging size parameter value is the corresponding face imaging size parameter value when the face of the person is perpendicular to the optical axis of the image acquisition device under the condition that the face coordinate position remains unchanged.
在一个可能的设计中,所述数据提取单元包括有人脸二维坐标提取子单元、第一尺寸参数提取子单元、第二尺寸参数提取子单元、年龄提取子单元和第三尺寸参数提取子单元;In a possible design, the data extraction unit includes a face two-dimensional coordinate extraction subunit, a first size parameter extraction subunit, a second size parameter extraction subunit, an age extraction subunit and a third size parameter extraction subunit ;
所述人脸二维坐标提取子单元,用于从所述人脸图像中,提取人脸二维坐标数据;The human face two-dimensional coordinate extraction subunit is used to extract human face two-dimensional coordinate data from the human face image;
所述第一尺寸参数提取子单元,用于从所述人脸图像中,提取第一人脸成像尺寸参数值;The first size parameter extraction subunit is used to extract a first face imaging size parameter value from the face image;
所述第二尺寸参数提取子单元,通信连接所述第一尺寸参数提取子单元,用于根据所述当前人脸姿态角和所述第一人脸成像尺寸参数值,计算得到第二人脸成像尺寸参数值,其中,所述第二人脸成像尺寸参数值为所述人员的人脸在人脸坐标位置不变条件下垂直于图像采集设备的光轴时对应的人脸成像尺寸参数值;The second size parameter extraction subunit is communicatively connected to the first size parameter extraction subunit, and is used to calculate and obtain a second face according to the current face pose angle and the first face imaging size parameter value Imaging size parameter value, wherein, the second face imaging size parameter value is the corresponding face imaging size parameter value when the face of the person is perpendicular to the optical axis of the image acquisition device under the condition that the coordinate position of the person's face remains unchanged ;
所述年龄提取子单元,用于根据所述人脸图像,识别出所述人员的年龄;The age extraction subunit is used to identify the age of the person according to the face image;
所述第三尺寸参数提取子单元,分别通信连接所述人脸二维坐标提取子单元、所述第二尺寸参数提取子单元和所述年龄提取子单元,用于当所述年龄小于预设年龄时,根据儿童人脸尺寸标准参数与成年人脸尺寸标准参数的比例关系,校正所述第二人脸成像尺寸参数值,得到第三人脸成像尺寸参数值,其中,所述儿童人脸尺寸标准参数与所述年龄对应,将所述人脸二维坐标数据和所述第三人脸成像尺寸参数值作为所述当前人脸多维数据。The third size parameter extraction subunit is respectively communicatively connected to the face two-dimensional coordinate extraction subunit, the second size parameter extraction subunit and the age extraction subunit, for when the age is less than a preset At the time of age, according to the proportional relationship between the child’s face size standard parameter and the adult’s face size standard parameter, the value of the second face imaging size parameter is corrected to obtain the third face imaging size parameter value, wherein the child’s face The size standard parameter corresponds to the age, and the face two-dimensional coordinate data and the third face imaging size parameter value are used as the current face multi-dimensional data.
在一个可能的设计中,所述数据提取单元包括有年龄提取子单元、人脸二维坐标提取子单元、第一尺寸参数提取子单元和第二尺寸参数提取子单元;In a possible design, the data extraction unit includes an age extraction subunit, a face two-dimensional coordinate extraction subunit, a first size parameter extraction subunit and a second size parameter extraction subunit;
所述年龄提取子单元,用于根据所述人脸图像,识别出所述人员的年龄;The age extraction subunit is used to identify the age of the person according to the face image;
所述人脸二维坐标提取子单元,用于从所述人脸图像中,提取人脸二维坐标数据;The human face two-dimensional coordinate extraction subunit is used to extract human face two-dimensional coordinate data from the human face image;
所述第一尺寸参数提取子单元,用于从所述人脸图像中,提取第一人脸成像尺寸参数值;The first size parameter extraction subunit is used to extract a first face imaging size parameter value from the face image;
所述第二尺寸参数提取子单元,分别通信连接所述年龄提取子单元、所述人脸二维坐标提取子单元和所述第一尺寸参数提取子单元,用于根据所述当前人脸姿态角和所述第一人脸成像尺寸参数值,计算得到第二人脸成像尺寸参数值,其中,将所述年龄、所述人脸二维坐标数据和所述第二人脸成像尺寸参数值作为所述当前人脸多维数据,所述第二人脸成像尺寸参数值为所述人员的人脸在人脸坐标位置不变条件下垂直于图像采集设备的光轴时对应的人脸成像尺寸参数值。The second size parameter extraction subunit is respectively communicatively connected to the age extraction subunit, the human face two-dimensional coordinate extraction subunit and the first size parameter extraction subunit, and is used for according to the current facial posture Angle and the first face imaging size parameter value, calculate the second face imaging size parameter value, wherein, the age, the face two-dimensional coordinate data and the second face imaging size parameter value As the current face multi-dimensional data, the second face imaging size parameter value is the corresponding face imaging size when the face of the person is perpendicular to the optical axis of the image acquisition device under the condition that the coordinate position of the person's face remains unchanged. parameter value.
在一个可能的设计中,所述第二尺寸参数提取子单元包括通信相连的系数获取孙单元和尺寸计算孙单元;In a possible design, the second size parameter extraction subunit includes a communication-connected coefficient acquisition grandson unit and a size calculation grandson unit;
所述系数获取孙单元,用于将所述当前人脸姿态角导入至用于反映将人脸旋转到平面上的三角函数中,得到旋转变换系数,其中,所述平面与所述图像采集设备的光轴垂直;The coefficient acquisition grand unit is used to import the current face attitude angle into the trigonometric function used to reflect the rotation of the face on the plane to obtain rotation transformation coefficients, wherein the plane and the image acquisition device The optical axis is vertical;
所述尺寸计算孙单元,用于根据所述第一人脸成像尺寸参数值和所述旋转变换系数,计算得到所述第二人脸成像尺寸参数值。The size calculation grand unit is configured to calculate and obtain the second face imaging size parameter value according to the first face imaging size parameter value and the rotation transformation coefficient.
在一个可能的设计中,所述数据提取单元包括有人脸二维坐标提取子单元、第一尺寸参数提取子单元、年龄提取子单元和第四尺寸参数提取子单元;In a possible design, the data extraction unit includes a human face two-dimensional coordinate extraction subunit, a first size parameter extraction subunit, an age extraction subunit and a fourth size parameter extraction subunit;
所述人脸二维坐标提取子单元,用于从所述人脸图像中,提取人脸二维坐标数据;The human face two-dimensional coordinate extraction subunit is used to extract human face two-dimensional coordinate data from the human face image;
所述第一尺寸参数提取子单元,用于从所述人脸图像中,提取第一人脸成像尺寸参数值;The first size parameter extraction subunit is used to extract a first face imaging size parameter value from the face image;
所述年龄提取子单元,用于根据所述人脸图像,识别出所述人员的年龄;The age extraction subunit is used to identify the age of the person according to the face image;
所述第四尺寸参数提取子单元,分别通信连接所述人脸二维坐标提取子单元、所述第一尺寸参数提取子单元和所述年龄提取子单元,用于当所述年龄小于预设年龄时,根据儿童人脸尺寸标准参数与成年人脸尺寸标准参数的比例关系,校正所述第一人脸成像尺寸参数值,得到第四人脸成像尺寸参数值,其中,所述儿童人脸尺寸标准参数与所述年龄对应,将所述人脸二维坐标数据和所述第四人脸成像尺寸参数值作为所述当前人脸多维数据。The fourth size parameter extraction subunit communicates with the face two-dimensional coordinate extraction subunit, the first size parameter extraction subunit and the age extraction subunit respectively, for when the age is less than a preset At the time of age, according to the proportional relationship between the child’s face size standard parameter and the adult’s face size standard parameter, the value of the first face imaging size parameter is corrected to obtain the fourth face imaging size parameter value, wherein the child’s face The size standard parameter corresponds to the age, and the face two-dimensional coordinate data and the fourth face imaging size parameter value are used as the current multi-dimensional face data.
在一个可能的设计中,所述范围确定单元具体用于将所述当前人脸多维数据导入至连续曲线拟合函数中,计算得到与所述当前人脸多维数据对应的当前人脸姿态角范围,其中,所述连续曲线拟合函数根据多组实测的人脸姿态角范围及人脸多维数据拟合得到。In a possible design, the range determination unit is specifically configured to import the current multi-dimensional face data into a continuous curve fitting function, and calculate the current face pose angle range corresponding to the current multi-dimensional face data , wherein, the continuous curve fitting function is obtained by fitting according to multiple sets of measured face pose angle ranges and face multidimensional data.
本实施例第二方面提供的前述装置的工作过程、工作细节和技术效果,可以参见第一方面或第一方面中任意一种可能设计所述的判别人员关注目标物的方法,于此不再赘述。For the working process, working details and technical effects of the aforementioned device provided in the second aspect of this embodiment, you can refer to the first aspect or any one of the first aspect that may design the method for identifying the target that the person pays attention to, and will not repeat it here. repeat.
如图5所示,本实施例第三方面提供了一种执行第一方面或第一方面中任意一种可能设计的所述判别人员关注目标物的方法的计算机设备,包括通信相连的存储器和处理器,其中,所述存储器用于存储计算机程序,所述处理器用于读取所述计算机程序,执行如第一方面或第一方面中任意一种可能设计所述的判别人员关注目标物的方法。具体举例的,所述存储器可以但不限于包括随机存取存储器(Random-Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、闪存(Flash Memory)、先进先出存储器(First InputFirst Output,FIFO)和/或先进后出存储器(First Input Last Output,FILO)等等;所述处理器可以不限于采用型号采用STM32F105系列的微处理器。此外,所述计算机设备还可以但不限于包括有电源模块、显示屏和其它必要的部件。As shown in FIG. 5 , the third aspect of this embodiment provides a computer device for performing the method for discriminating the object of human concern according to any one of the possible designs in the first aspect or the first aspect, including a communication-connected memory and A processor, wherein the memory is used to store a computer program, and the processor is used to read the computer program, and execute the method of judging the object of human concern as described in the first aspect or any possible design of the first aspect. method. For example, the memory may include, but is not limited to, random access memory (Random-Access Memory, RAM), read-only memory (Read-Only Memory, ROM), flash memory (Flash Memory), first-in first-out memory (First Input First Output, FIFO) and/or first-in-last-out memory (First Input Last Output, FILO) and the like; the processor may not be limited to adopting a microprocessor of the STM32F105 series. In addition, the computer device may also include, but is not limited to, a power supply module, a display screen and other necessary components.
本实施例第三方面提供的前述计算机设备的工作过程、工作细节和技术效果,可以参见第一方面或第一方面中任意一种可能设计所述的判别人员关注目标物的方法,于此不再赘述。For the working process, working details and technical effects of the aforementioned computer equipment provided in the third aspect of this embodiment, you can refer to the first aspect or any one of the first aspect that may design the method for identifying the target that the person pays attention to. Let me repeat.
本实施例第四方面提供了一种存储包含第一方面或第一方面中任意一种可能设计的所述判别人员关注目标物的方法的指令的计算机可读存储介质,即所述计算机可读存储介质上存储有指令,当所述指令在计算机上运行时,执行如第一方面或第一方面中任意一种可能设计所述的判别人员关注目标物的方法。其中,所述计算机可读存储介质是指存储数据的载体,可以但不限于包括软盘、光盘、硬盘、闪存、优盘和/或记忆棒(MemoryStick)等,所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。The fourth aspect of this embodiment provides a computer-readable storage medium that stores instructions for the method for identifying objects of human concern that may be designed in the first aspect or any one of the first aspect, that is, the computer-readable Instructions are stored on the storage medium, and when the instructions are run on the computer, the method for determining the object of human attention according to the first aspect or any possible design of the first aspect is executed. Wherein, the computer-readable storage medium refers to a carrier for storing data, which may include, but is not limited to, a floppy disk, a CD, a hard disk, a flash memory, a USB flash drive, and/or a memory stick (MemoryStick), etc., and the computer may be a general-purpose computer or a special-purpose computer. , computer network, or other programmable devices.
本实施例第四方面提供的前述计算机可读存储介质的工作过程、工作细节和技术效果,可以参见第一方面或第一方面中任意一种可能设计所述的判别人员关注目标物的方法,于此不再赘述。For the working process, working details and technical effects of the aforementioned computer-readable storage medium provided in the fourth aspect of this embodiment, you can refer to the first aspect or any one of the first aspects that may design the method for identifying the target of human attention. No more details here.
本实施例第五方面提供了一种包含指令的计算机程序产品,当所述指令在计算机上运行时,使所述计算机执行如第一方面或第一方面中任意一种可能设计所述的判别人员关注目标物的方法。其中,所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。The fifth aspect of this embodiment provides a computer program product containing instructions. When the instructions are run on a computer, the computer is made to perform the discrimination described in the first aspect or any possible design of the first aspect. The method by which a person focuses on an object. Wherein, the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
以上所描述的实施例仅仅是示意性的,若涉及到作为分离部件说明的单元,其可以是或者也可以不是物理上分开的;若涉及到作为单元显示的部件,其可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The above-described embodiments are only illustrative, and if it involves a unit described as a separate component, it may or may not be physically separated; if it involves a component displayed as a unit, it may or may not be A physical unit can be located in one place, or it can be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without any creative effort.
以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换。而这些修改或者替换,并不使相应技术方案的本质脱离本发明实施例技术方案的精神和范围。The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be described in the foregoing embodiments modify the technical solution, or replace some of the technical features in an equivalent manner. However, these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
最后应说明的是,本发明不局限于上述可选的实施方式,任何人在本发明的启示下都可得出其他各种形式的产品。上述具体实施方式不应理解成对本发明的保护范围的限制,本发明的保护范围应当以权利要求书中界定的为准,并且说明书可以用于解释权利要求书。Finally, it should be noted that the present invention is not limited to the above optional embodiments, and anyone can obtain other various forms of products under the enlightenment of the present invention. The above specific implementation methods should not be construed as limiting the protection scope of the present invention. The protection scope of the present invention should be defined in the claims, and the description can be used to interpret the claims.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010762123.4A CN111898552B (en) | 2020-07-31 | 2020-07-31 | Method and device for distinguishing person attention target object and computer equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010762123.4A CN111898552B (en) | 2020-07-31 | 2020-07-31 | Method and device for distinguishing person attention target object and computer equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111898552A CN111898552A (en) | 2020-11-06 |
| CN111898552B true CN111898552B (en) | 2022-12-27 |
Family
ID=73183070
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010762123.4A Active CN111898552B (en) | 2020-07-31 | 2020-07-31 | Method and device for distinguishing person attention target object and computer equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111898552B (en) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112016482B (en) * | 2020-08-31 | 2022-10-25 | 成都新潮传媒集团有限公司 | Method and device for distinguishing false face and computer equipment |
| CN113128417B (en) * | 2021-04-23 | 2023-04-07 | 南开大学 | Double-region eye movement tracking method based on head posture |
| CN114067417B (en) * | 2021-11-29 | 2026-03-10 | 成都新潮传媒集团有限公司 | Method and device for judging whether personnel pay attention to target object or not and computer main equipment |
Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102156537A (en) * | 2010-02-11 | 2011-08-17 | 三星电子株式会社 | Equipment and method for detecting head posture |
| CN105654048A (en) * | 2015-12-30 | 2016-06-08 | 四川川大智胜软件股份有限公司 | Multi-visual-angle face comparison method |
| CN106355147A (en) * | 2016-08-26 | 2017-01-25 | 张艳 | Acquiring method and detecting method of live face head pose detection regression apparatus |
| CN106503671A (en) * | 2016-11-03 | 2017-03-15 | 厦门中控生物识别信息技术有限公司 | The method and apparatus for determining human face posture |
| CN107122705A (en) * | 2017-03-17 | 2017-09-01 | 中国科学院自动化研究所 | Face critical point detection method based on three-dimensional face model |
| CN108363995A (en) * | 2018-03-19 | 2018-08-03 | 百度在线网络技术(北京)有限公司 | Method and apparatus for generating data |
| CN109961055A (en) * | 2019-03-29 | 2019-07-02 | 广州市百果园信息技术有限公司 | Face critical point detection method, apparatus, equipment and storage medium |
| CN110163087A (en) * | 2019-04-09 | 2019-08-23 | 江西高创保安服务技术有限公司 | A kind of human face posture recognition methods and system |
| WO2019206239A1 (en) * | 2018-04-27 | 2019-10-31 | Shanghai Truthvision Information Technology Co., Ltd. | Systems and methods for detecting a posture of a human object |
| CN111161395A (en) * | 2019-11-19 | 2020-05-15 | 深圳市三维人工智能科技有限公司 | A method, device and electronic device for tracking facial expression |
| CN111259739A (en) * | 2020-01-09 | 2020-06-09 | 浙江工业大学 | A Face Pose Estimation Method Based on 3D Face Keypoints and Geometric Projection |
| CN111353461A (en) * | 2020-03-11 | 2020-06-30 | 京东数字科技控股有限公司 | Method, device and system for detecting attention of advertising screen and storage medium |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109271923A (en) * | 2018-09-14 | 2019-01-25 | 曜科智能科技(上海)有限公司 | Human face posture detection method, system, electric terminal and storage medium |
| CN110309751A (en) * | 2019-06-24 | 2019-10-08 | 火石信科(广州)科技有限公司 | A recognition method for reading and writing postures in reading and writing scenes |
| CN111160178B (en) * | 2019-12-19 | 2024-01-12 | 深圳市商汤科技有限公司 | Image processing method and device, processor, electronic equipment and storage medium |
-
2020
- 2020-07-31 CN CN202010762123.4A patent/CN111898552B/en active Active
Patent Citations (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102156537A (en) * | 2010-02-11 | 2011-08-17 | 三星电子株式会社 | Equipment and method for detecting head posture |
| CN105654048A (en) * | 2015-12-30 | 2016-06-08 | 四川川大智胜软件股份有限公司 | Multi-visual-angle face comparison method |
| CN106355147A (en) * | 2016-08-26 | 2017-01-25 | 张艳 | Acquiring method and detecting method of live face head pose detection regression apparatus |
| CN106503671A (en) * | 2016-11-03 | 2017-03-15 | 厦门中控生物识别信息技术有限公司 | The method and apparatus for determining human face posture |
| CN107122705A (en) * | 2017-03-17 | 2017-09-01 | 中国科学院自动化研究所 | Face critical point detection method based on three-dimensional face model |
| CN108363995A (en) * | 2018-03-19 | 2018-08-03 | 百度在线网络技术(北京)有限公司 | Method and apparatus for generating data |
| WO2019206239A1 (en) * | 2018-04-27 | 2019-10-31 | Shanghai Truthvision Information Technology Co., Ltd. | Systems and methods for detecting a posture of a human object |
| CN109961055A (en) * | 2019-03-29 | 2019-07-02 | 广州市百果园信息技术有限公司 | Face critical point detection method, apparatus, equipment and storage medium |
| CN110163087A (en) * | 2019-04-09 | 2019-08-23 | 江西高创保安服务技术有限公司 | A kind of human face posture recognition methods and system |
| CN111161395A (en) * | 2019-11-19 | 2020-05-15 | 深圳市三维人工智能科技有限公司 | A method, device and electronic device for tracking facial expression |
| CN111259739A (en) * | 2020-01-09 | 2020-06-09 | 浙江工业大学 | A Face Pose Estimation Method Based on 3D Face Keypoints and Geometric Projection |
| CN111353461A (en) * | 2020-03-11 | 2020-06-30 | 京东数字科技控股有限公司 | Method, device and system for detecting attention of advertising screen and storage medium |
Non-Patent Citations (2)
| Title |
|---|
| Research on the TechnologY of Extracting 3D Face Feature Points on Basis of Binocular Vision;zhang Lei 等;《IEEE》;20091030;1-4 * |
| 基于单幅图像Pn P头部姿态估计的学习注意力可视化分析;陈平等;《通信学报》;20180930;147-156 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111898552A (en) | 2020-11-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111414798B (en) | Head posture detection method and system based on RGB-D image | |
| JP6681729B2 (en) | Method for determining 3D pose of object and 3D location of landmark point of object, and system for determining 3D pose of object and 3D location of landmark of object | |
| WO2022121283A1 (en) | Vehicle key point information detection and vehicle control | |
| TWI383325B (en) | Face expressions identification | |
| CN105740780B (en) | Method and device for detecting living human face | |
| CN111445531B (en) | Multi-view camera navigation method, device, equipment and storage medium | |
| CN111898553B (en) | Method and device for distinguishing virtual image personnel and computer equipment | |
| CN118411507A (en) | A method and system for constructing a semantic map of a scene with dynamic targets | |
| CN111898552A (en) | Method and device for distinguishing person attention target object and computer equipment | |
| CN111399634B (en) | Method and device for gesture-guided object recognition | |
| CN104063689B (en) | Face image identification method based on binocular stereoscopic vision | |
| CN113516074A (en) | Online examination system anti-cheating method based on pupil tracking | |
| JP7830521B2 (en) | Method for correcting facial deformation in facial depth images, imaging apparatus, and storage medium | |
| CN110942092A (en) | Graphic image recognition method and recognition system | |
| CN115272417A (en) | Image data processing method, image processing device, and readable storage medium | |
| CN113569594B (en) | A method and device for marking key points of human face | |
| CN112924037A (en) | Infrared body temperature detection system and detection method based on image registration | |
| CN114067417A (en) | Method and device for judging whether person pays attention to target object and computer main equipment | |
| CN116805323B (en) | Background segmentation method and device based on three-dimensional human body rotation scanning of depth camera | |
| CN119007269A (en) | Student fixation point estimation method based on double cameras in classroom scene | |
| Jiménez et al. | Face tracking and pose estimation with automatic three-dimensional model construction | |
| CN117934556A (en) | High-altitude parabolic detection method and device, storage medium and electronic equipment | |
| CN112818866B (en) | Vehicle positioning methods, devices and electronic equipment | |
| KR20230138011A (en) | Annotation of 2D images | |
| CN114663507A (en) | Distance detection method and device, electronic equipment and computer storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |
