CN114092383A - ISP adaptive adjustment control method and device based on face image - Google Patents
ISP adaptive adjustment control method and device based on face image Download PDFInfo
- Publication number
- CN114092383A CN114092383A CN202010856033.1A CN202010856033A CN114092383A CN 114092383 A CN114092383 A CN 114092383A CN 202010856033 A CN202010856033 A CN 202010856033A CN 114092383 A CN114092383 A CN 114092383A
- Authority
- CN
- China
- Prior art keywords
- isp
- image
- face
- face image
- adjusted
- 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.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T1/00—General purpose image data processing
- G06T1/20—Processor architectures; Processor configuration, e.g. pipelining
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/30168—Image quality inspection
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Studio Devices (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域technical field
本发明涉及图像处理技术领域,尤其涉及基于人脸图像的ISP自适应调整控制方法以及装置。The present invention relates to the technical field of image processing, and in particular, to a method and device for self-adaptive adjustment and control of ISP based on a face image.
背景技术Background technique
随着科学技术的快速发展,人脸识别技术的发展也越发成熟。基于响应速度快、非接触即可进行身份认证的优点,人脸识别技术的应用面越来越广,例如:人脸解锁、企业考勤、小区门禁和移动支付等。With the rapid development of science and technology, the development of face recognition technology has become more and more mature. Based on the advantages of fast response speed and non-contact identity authentication, face recognition technology has become more and more widely used, such as face unlocking, enterprise attendance, community access control and mobile payment.
实际应用中,所采集到的图像的质量直接影响着人脸识别的精确度,而所采集的图像的质量依赖于摄像头的ISP(Image Signal Processor,图像信号处理器)的调整。目前,ISP的调整主要是通过图像传感器获取的全局信息来进行调整,以适应环境的变化。然而,实践发现,这种ISP的调整方法存在ISP与调用摄像头的应用用途完全隔离开来,调用摄像头的应用只能被动的使用摄像头提供的原始数据,无法指导ISP进行针对性的调整,即当前的ISP调整无法根据实际情况进行动态调整,从而无法获得实时、精准的图像。In practical applications, the quality of the collected image directly affects the accuracy of face recognition, and the quality of the collected image depends on the adjustment of the ISP (Image Signal Processor, image signal processor) of the camera. At present, the adjustment of ISP is mainly carried out through the global information obtained by the image sensor to adapt to changes in the environment. However, practice has found that this ISP adjustment method is completely isolated from the ISP and the application that calls the camera. The application calling the camera can only passively use the raw data provided by the camera, and cannot guide the ISP to make targeted adjustments. The ISP adjustment cannot be dynamically adjusted according to the actual situation, so that the real-time and accurate image cannot be obtained.
发明内容SUMMARY OF THE INVENTION
本发明所要解决的技术问题在于,提供一种基于人脸图像的ISP自适应调整控制方法以及装置,能够根据实际情况动态调整ISP,实现实时、精准的人脸图像的获取。The technical problem to be solved by the present invention is to provide an ISP adaptive adjustment control method and device based on a face image, which can dynamically adjust the ISP according to the actual situation and realize real-time and accurate acquisition of the face image.
为了解决上述技术问题,本发明第一方面公开了一种基于人脸图像的ISP自适应调整控制方法,所述方法包括:In order to solve the above technical problems, the first aspect of the present invention discloses a face image-based ISP adaptive adjustment control method, the method includes:
获取图像采集设备采集到的人脸图像,并将所述人脸图像输入预先确定出的人脸图像质量评估模型中进行分析;acquiring the face image collected by the image acquisition device, and inputting the face image into a predetermined face image quality assessment model for analysis;
获取所述人脸图像质量评估模型的分析结果,作为所述人脸图像的图像分析参数,并根据所述图像分析参数判断所述图像采集设备对应的ISP是否需要调整;Obtain the analysis result of the face image quality assessment model as an image analysis parameter of the face image, and determine whether the ISP corresponding to the image acquisition device needs to be adjusted according to the image analysis parameter;
当判断出所述ISP需要调整时,根据所述图像分析参数调整所述ISP,直至所述ISP的参数满足预设条件,并重新触发执行所述的获取图像采集设备采集到的人脸图像的操作。When it is determined that the ISP needs to be adjusted, the ISP is adjusted according to the image analysis parameters until the parameters of the ISP meet the preset conditions, and the execution of the acquisition of the face image collected by the image collection device is re-triggered. operate.
作为一种可选的实施方式,在本发明第一方面中,所述图像分析参数包括所述人脸图像的曝光参数、所述人脸图像的白平衡参数以及所述人脸图像的聚焦参数中的至少一种;As an optional implementation manner, in the first aspect of the present invention, the image analysis parameters include exposure parameters of the face image, white balance parameters of the face image, and focus parameters of the face image at least one of;
其中,所述根据所述图像分析参数判断所述图像采集设备对应的ISP是否需要调整,包括:Wherein, determining whether the ISP corresponding to the image acquisition device needs to be adjusted according to the image analysis parameter includes:
当所述图像分析参数为所述人脸图像的曝光参数时,基于确定出的人脸关键点对应的标定结果截取所述人脸图像,得到目标人脸区域,其中,所述目标人脸区域的面积小于所述人脸图像的面积;When the image analysis parameter is the exposure parameter of the face image, the face image is intercepted based on the calibration results corresponding to the determined key points of the face to obtain a target face region, wherein the target face region The area of is less than the area of the face image;
获取所述目标人脸区域对应的第一亮度值,并判断所述第一亮度值是否大于等于预设亮度值阈值,当判断出所述第一亮度值大于等于所述预设亮度值阈值时,确定所述图像采集设备对应的ISP需要调整;或者,Obtain the first brightness value corresponding to the target face area, and determine whether the first brightness value is greater than or equal to a preset brightness value threshold, when it is determined that the first brightness value is greater than or equal to the preset brightness value threshold , determine that the ISP corresponding to the image acquisition device needs to be adjusted; or,
当所述图像分析参数为所述人脸图像的白平衡参数时,确定所述目标人脸区域的RGB三个通道中每个所述通道的均值,并根据所有所述均值判断所有所述通道的比例分配是否与预先确定出的比例分配相匹配,当判断出结果为否时,确定所述图像采集设备对应的ISP需要调整;或者,When the image analysis parameter is the white balance parameter of the face image, determine the mean value of each of the three RGB channels of the target face area, and determine all the channels according to all the mean values Whether the proportional distribution of the image capture device matches the pre-determined proportional distribution, when it is determined that the result is no, it is determined that the ISP corresponding to the image capture device needs to be adjusted; or,
当所述图像分析参数为所述人脸图像的聚焦参数时,获取所述目标人脸区域出现在所述图像采集设备的目标位置,并判断所述目标位置是否处于预先确定出的位置范围内,当判断出结果为否时,确定所述图像采集设备对应的ISP需要调整。When the image analysis parameter is the focus parameter of the face image, obtain the target position where the target face region appears on the image acquisition device, and determine whether the target position is within a predetermined position range , when it is determined that the result is no, it is determined that the ISP corresponding to the image acquisition device needs to be adjusted.
作为一种可选的实施方式,在本发明第一方面中,所述方法还包括:As an optional implementation manner, in the first aspect of the present invention, the method further includes:
当判断出所述第一亮度值不大于等于所述预设亮度值阈值时,按照预设扩大方式扩大所述目标人脸区域的有效面积,得到扩大后的目标人脸区域,所述预设扩大方式为基于所述目标人脸区域的中心位置所设置的方式;When it is determined that the first brightness value is not greater than or equal to the preset brightness value threshold, the effective area of the target face region is expanded according to a preset expansion method to obtain an enlarged target face region, the preset The expansion mode is a mode set based on the center position of the target face area;
确定所述扩大后的目标人脸区域对应的背景区域的第二亮度值,并基于所述第一亮度值与所述第二亮度值计算所述人脸图像的逆光度;determining the second brightness value of the background area corresponding to the expanded target face area, and calculating the backlight of the face image based on the first brightness value and the second brightness value;
判断所述逆光度是否小于等于预设逆光度阈值,当判断出所述逆光度小于等于所述预设逆光度阈值时,确定所述图像采集设备对应的ISP需要调整。It is determined whether the backlight intensity is less than or equal to a preset backlight intensity threshold, and when it is determined that the backlight intensity is less than or equal to the preset backlight intensity threshold, it is determined that the ISP corresponding to the image capture device needs to be adjusted.
作为一种可选的实施方式,在本发明第一方面中,所述获取图像采集设备采集到的人脸图像之前,所述方法还包括:As an optional implementation manner, in the first aspect of the present invention, before acquiring the face image collected by the image collection device, the method further includes:
根据所述ISP的当前状态判断所述ISP是否需要调整,当判断出所述ISP需要调整时,触发执行所述的获取图像采集设备采集到的人脸图像的操作;Determine whether the ISP needs to be adjusted according to the current state of the ISP, and when it is determined that the ISP needs to be adjusted, trigger the execution of the operation of acquiring the face image collected by the image capture device;
其中,所述根据所述ISP的当前状态判断所述ISP是否需要调整,包括:Wherein, determining whether the ISP needs to be adjusted according to the current state of the ISP includes:
读取所述ISP对应的图像处理系统当前显示的目标时刻,并获取上一次调整所述ISP对应的完成时刻;Read the target time currently displayed by the image processing system corresponding to the ISP, and obtain the completion time corresponding to the last adjustment of the ISP;
计算所述目标时刻与所述完成时刻之间的间隔时长,并判断所述间隔时长是否小于等于预先确定出的间隔时长阈值,当判断出所述间隔时长小于等于所述间隔时长阈值时,确定所述ISP需要调整。Calculate the interval duration between the target moment and the completion moment, and determine whether the interval duration is less than or equal to a predetermined interval duration threshold, and when it is determined that the interval duration is less than or equal to the interval duration threshold, determine The ISP needs to be adjusted.
作为一种可选的实施方式,在本发明第一方面中,在判断出所述间隔时长小于等于所述间隔时长阈值之后,以及所述确定所述ISP需要调整之前,所述方法还包括:As an optional implementation manner, in the first aspect of the present invention, after it is determined that the interval duration is less than or equal to the interval duration threshold, and before it is determined that the ISP needs to be adjusted, the method further includes:
获取在第一预设时长内所述ISP的总调整次数,并判断所述总调整次数是否小于预设调整次数阈值,当判断出所述总调整次数小于所述预设调整次数阈值时,触发执行所述的确定所述ISP需要调整的操作,其中,所述第一预设时长的截止时刻为上一次调整所述ISP的时刻。Acquire the total adjustment times of the ISP within the first preset duration, and determine whether the total adjustment times is less than the preset adjustment times threshold, and when it is determined that the total adjustment times is less than the preset adjustment times threshold, triggering The operation of determining that the ISP needs to be adjusted is performed, wherein the cut-off time of the first preset duration is the last time the ISP was adjusted.
作为一种可选的实施方式,在本发明第一方面中,所述获取图像采集设备采集到的人脸图像之后,以及所述将所述人脸图像输入预先确定出的人脸图像质量评估模型中进行分析之前,所述方法还包括:As an optional implementation manner, in the first aspect of the present invention, after the acquisition of the face image collected by the image acquisition device, and the input of the face image into the pre-determined face image quality assessment Before performing analysis in the model, the method further includes:
确定所述人脸图像对应的图像参数,所述图像参数包括所述人脸图像的面积、所述人脸图像出现在所述图像采集设备的位置以及所述人脸图像的面部信息中的至少一种,所述人脸图像的面部信息包括所述人脸图像的左虚拟瞳孔的位置、右虚拟瞳孔的位置、虚拟嘴巴的左侧嘴角的位置、虚拟嘴巴的右侧嘴角的位置以及虚拟鼻尖的位置;Determine the image parameters corresponding to the face image, the image parameters include at least the area of the face image, the position where the face image appears on the image acquisition device, and the facial information of the face image. One, the facial information of the face image includes the position of the left virtual pupil of the face image, the position of the right virtual pupil, the position of the left corner of the virtual mouth, the position of the right corner of the virtual mouth and the virtual nose tip s position;
根据所述图像参数判断所述人脸图像是否满足预先确定出的所述ISP的调整条件,当判断出所述人脸图像满足所述ISP的调整条件时,触发执行所述的将所述人脸图像输入预先确定出的人脸图像质量评估模型中进行分析的操作。Determine whether the face image satisfies the pre-determined adjustment conditions of the ISP according to the image parameters, and when it is determined that the face image meets the adjustment conditions of the ISP, trigger the execution of the The face image input is analyzed in the pre-determined face image quality assessment model.
作为一种可选的实施方式,在本发明第一方面中,所述根据所述图像分析参数调整所述ISP,直至所述ISP的当前参数满足预设条件之后,以及所述重新触发执行所述的获取图像采集设备采集到的人脸图像的操作之前,所述方法还包括:As an optional implementation manner, in the first aspect of the present invention, the ISP is adjusted according to the image analysis parameter until the current parameter of the ISP satisfies a preset condition, and the re-triggering execution Before the operation of obtaining the face image collected by the image collection device, the method further includes:
判断所述ISP对应的图像处理系统的实时显示时刻是否到达第二预设时长的截止时刻,当判断出所述实时显示时刻到达所述第二预设时长的截止时刻时,重新触发执行所述的获取图像采集设备采集到的人脸图像的操作,所述第二预设时长的起始时刻为确定出所述ISP需要调整的时刻。Determine whether the real-time display time of the image processing system corresponding to the ISP has reached the cut-off time of the second preset duration, and when it is determined that the real-time display time has reached the cut-off time of the second preset duration, re-trigger the execution of the The operation of acquiring the face image collected by the image collection device, the starting moment of the second preset duration is the moment when it is determined that the ISP needs to be adjusted.
本发明第二方面公开了一种基于人脸图像的ISP自适应调整控制装置,所述装置包括获取模块、分析模块、第一判断模块以及调整模块,其中:A second aspect of the present invention discloses an ISP adaptive adjustment control device based on a face image. The device includes an acquisition module, an analysis module, a first judgment module and an adjustment module, wherein:
所述获取模块,用于获取图像采集设备采集到的人脸图像;The acquisition module is used to acquire the face image collected by the image acquisition device;
所述分析模块,用于将所述人脸图像输入预先确定出的人脸图像质量评估模型中进行分析;The analysis module is used to input the face image into a pre-determined face image quality assessment model for analysis;
所述获取模块,还用于获取所述人脸图像质量评估模型的分析结果,作为所述人脸图像的图像分析参数;The obtaining module is further configured to obtain the analysis result of the face image quality assessment model as an image analysis parameter of the face image;
所述第一判断模块,用于根据所述图像分析参数判断所述图像采集设备对应的ISP是否需要调整;The first judgment module is configured to judge whether the ISP corresponding to the image acquisition device needs to be adjusted according to the image analysis parameter;
所述调整模块,用于当所述第一判断模块判断出所述ISP需要调整时,根据所述图像分析参数调整所述ISP,直至所述ISP的参数满足预设条件,并触发所述获取模块重新执行所述的获取图像采集设备采集到的人脸图像的操作。The adjustment module is configured to adjust the ISP according to the image analysis parameters when the first judgment module determines that the ISP needs to be adjusted, until the parameters of the ISP meet preset conditions, and trigger the acquisition The module re-executes the operation of acquiring the face image acquired by the image acquisition device.
作为一种可选的实施方式,在本发明第二方面中,所述图像分析参数包括所述人脸图像的曝光参数、所述人脸图像的白平衡参数以及所述人脸图像的聚焦参数中的至少一种;As an optional implementation manner, in the second aspect of the present invention, the image analysis parameters include exposure parameters of the face image, white balance parameters of the face image, and focus parameters of the face image at least one of;
其中,所述第一判断模块包括第一判断子模块或第二判断子模块或第三判断子模块,其中,所述第一判断子模块包括截取单元、获取单元、判断单元以及确定单元,其中:Wherein, the first judging module includes a first judging sub-module or a second judging sub-module or a third judging sub-module, wherein the first judging sub-module includes an intercepting unit, an acquiring unit, a judging unit and a determining unit, wherein :
所述截取单元,用于当所述图像分析参数为所述人脸图像的曝光参数时,基于确定出的人脸关键点对应的标定结果截取所述人脸图像,得到目标人脸区域,其中,所述目标人脸区域的面积小于所述人脸图像的面积;The intercepting unit is configured to intercept the face image based on the calibration result corresponding to the determined face key points when the image analysis parameter is the exposure parameter of the face image, to obtain the target face area, wherein , the area of the target face region is smaller than the area of the face image;
所述获取单元,用于获取所述目标人脸区域对应的第一亮度值;the obtaining unit, configured to obtain the first brightness value corresponding to the target face region;
所述判断单元,用于判断所述第一亮度值是否大于等于预设亮度值阈值;the judging unit, configured to judge whether the first brightness value is greater than or equal to a preset brightness value threshold;
所述确定单元,用于当所述判断单元判断出所述第一亮度值大于等于所述预设亮度值阈值时,确定所述图像采集设备对应的ISP需要调整;或者,the determining unit, configured to determine that the ISP corresponding to the image capturing device needs to be adjusted when the determining unit determines that the first brightness value is greater than or equal to the preset brightness value threshold; or,
所述第二判断子模块,用于当所述图像分析参数为所述人脸图像的白平衡参数时,确定所述目标人脸区域的RGB三个通道中每个所述通道的均值,并根据所有所述均值判断所有所述通道的比例分配是否与预先确定出的比例分配相匹配,当判断出结果为否时,确定所述图像采集设备对应的ISP需要调整;或者,The second judgment submodule is configured to determine the mean value of each of the three RGB channels of the target face region when the image analysis parameter is the white balance parameter of the face image, and According to all the mean values, it is determined whether the proportional distribution of all the channels matches the predetermined proportional distribution, and when the judgment result is no, it is determined that the ISP corresponding to the image acquisition device needs to be adjusted; or,
所述第三判断子模块,用于当所述图像分析参数为所述人脸图像的聚焦参数时,获取所述目标人脸区域出现在所述图像采集设备的目标位置,并判断所述目标位置是否处于预先确定出的位置范围内,当判断出结果为否时,确定所述图像采集设备对应的ISP需要调整。The third judging sub-module is configured to obtain the target face region appearing at the target position of the image acquisition device when the image analysis parameter is the focus parameter of the face image, and judge the target Whether the position is within the predetermined position range, when the judgment result is no, it is determined that the ISP corresponding to the image acquisition device needs to be adjusted.
作为一种可选的实施方式,在本发明第二方面中,所述获取单元,还用于当所述判断单元判断出所述第一亮度值不大于等于所述预设亮度值阈值时,按照预设扩大方式扩大所述目标人脸区域的有效面积,得到扩大后的目标人脸区域,所述预设扩大方式为基于所述目标人脸区域的中心位置所设置的方式;As an optional implementation manner, in the second aspect of the present invention, the acquisition unit is further configured to: when the determination unit determines that the first brightness value is not greater than or equal to the preset brightness value threshold, Enlarging the effective area of the target face area according to a preset enlargement method to obtain the enlarged target face area, and the preset enlargement method is a method set based on the center position of the target face area;
所述确定单元,还用于确定所述扩大后的目标人脸区域对应的背景区域的第二亮度值;The determining unit is further configured to determine the second brightness value of the background region corresponding to the expanded target face region;
所述获取单元,还用于基于所述第一亮度值与所述第二亮度值计算所述人脸图像的逆光度;The acquiring unit is further configured to calculate the back lightness of the face image based on the first brightness value and the second brightness value;
所述判断单元,用于判断所述逆光度是否小于等于预设逆光度阈值,当判断出所述逆光度小于等于所述预设逆光度阈值时,触发所述确定单元执行所述的确定所述图像采集设备对应的ISP需要调整的操作。The judging unit is configured to judge whether the backlight intensity is less than or equal to a preset backlight intensity threshold, and when judging that the backlight intensity is less than or equal to the preset backlight intensity threshold, trigger the determining unit to execute the determination process. The ISP corresponding to the image acquisition device needs to be adjusted.
作为一种可选的实施方式,在本发明第二方面中,所述装置还包括第二判断模块,其中:As an optional implementation manner, in the second aspect of the present invention, the device further includes a second judgment module, wherein:
所述第二判断模块,用于在所述获取模块获取图像采集设备采集到的人脸图像之前,根据所述ISP的当前状态判断所述ISP是否需要调整;当判断出所述ISP需要调整时,触发所述获取模块执行所述的获取图像采集设备采集到的人脸图像的操作;The second judgment module is used to judge whether the ISP needs to be adjusted according to the current state of the ISP before the acquisition module obtains the face image collected by the image collection device; when it is judged that the ISP needs to be adjusted , triggering the acquisition module to perform the operation of acquiring the face image collected by the image acquisition device;
其中,所述第二判断模块包括读取子模块、获取子模块、计算子模块以及第四判断子模块,其中:Wherein, the second judgment module includes a reading sub-module, an acquisition sub-module, a calculation sub-module and a fourth judgment sub-module, wherein:
所述读取子模块,用于读取所述ISP对应的图像处理系统当前显示的目标时刻;The reading submodule is used to read the target moment currently displayed by the image processing system corresponding to the ISP;
所述获取子模块,用于获取上一次调整所述ISP对应的完成时刻;The obtaining submodule is used to obtain the completion time corresponding to the last adjustment of the ISP;
所述计算子模块,用于计算所述目标时刻与所述完成时刻之间的间隔时长;The calculation submodule is used to calculate the interval duration between the target moment and the completion moment;
所述第四判断子模块,用于判断所述间隔时长是否小于等于预先确定出的间隔时长阈值;The fourth judgment submodule is used to judge whether the interval duration is less than or equal to a predetermined interval duration threshold;
所述获取子模块,还用于当所述第四判断子模块判断出所述间隔时长小于等于所述间隔时长阈值时,确定所述ISP需要调整。The acquisition submodule is further configured to determine that the ISP needs to be adjusted when the fourth determination submodule determines that the interval duration is less than or equal to the interval duration threshold.
作为一种可选的实施方式,在本发明第二方面中,所述获取子模块,还用于在所述第四判断子模块判断出所述间隔时长小于等于所述间隔时长阈值之后,以及确定所述ISP需要调整之前,获取在第一预设时长内所述ISP的总调整次数,其中,所述第一预设时长的截止时刻为上一次调整所述ISP的时刻;As an optional implementation manner, in the second aspect of the present invention, the acquisition submodule is further configured to, after the fourth determination submodule determines that the interval duration is less than or equal to the interval duration threshold, and Before determining that the ISP needs to be adjusted, obtain the total number of times of adjustment of the ISP within a first preset duration, where the cut-off time of the first preset duration is the last time the ISP was adjusted;
所述第四判断子模块,还用于判断所述总调整次数是否小于预设调整次数阈值,当判断出所述总调整次数小于所述预设调整次数阈值时,触发所述获取子模块执行所述的确定所述ISP需要调整的操作。The fourth judgment sub-module is further configured to judge whether the total adjustment times is less than a preset adjustment times threshold, and when it is judged that the total adjustment times is less than the preset adjustment times threshold, trigger the acquisition sub-module to execute The operation of determining that the ISP needs to be adjusted.
作为一种可选的实施方式,在本发明第二方面中,所述装置还包括确定模块以及第三判断模块,其中:As an optional implementation manner, in the second aspect of the present invention, the device further includes a determination module and a third determination module, wherein:
所述确定模块,用于在所述获取模块获取图像采集设备采集到的人脸图像之后,以及在所述分析模块将所述人脸图像输入预先确定出的人脸图像质量评估模型中进行分析之前,确定所述人脸图像对应的图像参数,所述图像参数包括所述人脸图像的面积、所述人脸图像出现在所述图像采集设备的位置以及所述人脸图像的面部信息中的至少一种,所述人脸图像的面部信息包括所述人脸图像的左虚拟瞳孔的位置、右虚拟瞳孔的位置、虚拟嘴巴的左侧嘴角的位置、虚拟嘴巴的右侧嘴角的位置以及虚拟鼻尖的位置;The determining module is used for analyzing after the acquiring module acquires the facial image collected by the image acquisition device, and after the analyzing module inputs the facial image into a pre-determined facial image quality assessment model for analysis Before, determine the image parameters corresponding to the face image, the image parameters include the area of the face image, the position where the face image appears in the image acquisition device, and the facial information of the face image At least one of, the facial information of the face image includes the position of the left virtual pupil of the face image, the position of the right virtual pupil, the position of the left corner of the virtual mouth, the position of the right corner of the virtual mouth, and the position of the virtual nose tip;
所述第三判断模块,用于根据所述图像参数判断所述人脸图像是否满足预先确定出的所述ISP的调整条件,当判断出所述人脸图像满足所述ISP的调整条件时,触发所述分析模块执行所述的将所述人脸图像输入预先确定出的人脸图像质量评估模型中进行分析的操作。The third judgment module is configured to judge whether the face image satisfies the predetermined adjustment condition of the ISP according to the image parameter, and when it is judged that the face image satisfies the adjustment condition of the ISP, Triggering the analysis module to perform the operation of inputting the face image into a predetermined face image quality assessment model for analysis.
作为一种可选的实施方式,在本发明第二方面中,所述装置还包括第四判断模块,其中:As an optional implementation manner, in the second aspect of the present invention, the device further includes a fourth judgment module, wherein:
所述第四判断模块,用于在所述调整模块根据所述图像分析参数调整所述ISP,直至所述ISP的当前参数满足预设条件之后,以及在触发所述获取模块重新触发执行所述的获取图像采集设备采集到的人脸图像的操作之前,判断所述ISP对应的图像处理系统的实时显示时刻是否到达第二预设时长的截止时刻,当判断出所述实时显示时刻到达所述第二预设时长的截止时刻时,触发所述获取模块重新触发执行所述的获取图像采集设备采集到的人脸图像的操作,所述第二预设时长的起始时刻为确定出所述ISP需要调整的时刻。The fourth judging module is configured to adjust the ISP according to the image analysis parameter until the current parameter of the ISP meets a preset condition, and after triggering the acquisition module to re-trigger the execution of the ISP Before the operation of acquiring the face image collected by the image acquisition device, determine whether the real-time display time of the image processing system corresponding to the ISP has reached the cut-off time of the second preset duration, and when it is determined that the real-time display time has reached the At the end time of the second preset duration, trigger the acquisition module to re-trigger and execute the operation of acquiring the face image collected by the image acquisition device, and the start time of the second preset duration is to determine the Moments when the ISP needs to adjust.
本发明第三方面公开了另一种基于人脸图像的ISP自适应调整控制装置,所述装置包括:A third aspect of the present invention discloses another ISP adaptive adjustment control device based on a face image, the device comprising:
存储有可执行程序代码的存储器;memory in which executable program code is stored;
与所述存储器耦合的处理器;a processor coupled to the memory;
所述处理器调用所述存储器中存储的所述可执行程序代码,执行本发明第一方面公开的基于人脸图像的ISP自适应调整控制方法。The processor invokes the executable program code stored in the memory to execute the face image-based ISP adaptive adjustment control method disclosed in the first aspect of the present invention.
本发明第四方面公开了一种计算机存储介质,所述计算机存储介质存储有计算机指令,所述计算机指令被调用时,用于执行本发明第一方面公开的基于人脸图像的ISP自适应调整控制方法。A fourth aspect of the present invention discloses a computer storage medium, the computer storage medium stores computer instructions, and when the computer instructions are invoked, is used to perform the face image-based ISP adaptive adjustment disclosed in the first aspect of the present invention Control Method.
与现有技术相比,本发明实施例具有以下有益效果:Compared with the prior art, the embodiments of the present invention have the following beneficial effects:
本发明实施例中,公开了一种基于人脸图像的ISP自适应调整控制方法以及装置,该方法包括获取图像采集设备采集到的人脸图像,并将该人脸图像输入预先确定出的人脸图像质量评估模型中进行分析;获取该人脸图像质量评估模型的分析结果,作为人脸图像的图像分析参数,并根据图像分析参数判断图像采集设备对应的ISP是否需要调整;当判断出该ISP需要调整时,根据图像分析参数调整ISP,直至该ISP的参数满足预设条件,并重新触发执行上述的获取图像采集设备采集到的人脸图像的操作。可见,本发明实施例通过将图像采集设备的ISP与承载有人脸图像质量评估模型的人脸相关应用结合起来,将采集到的人脸图像输入人脸图像质量评估模型进行分析,能够根据图像分析参数,即ISP的成像质量,评估ISP的参数设置,当ISP需要调整时,将根据图像分析参数调整ISP,以及重新获取人脸图像执行同样ISP的调整操作,能够实现ISP的动态调整,使ISP一直处于与人脸应用相契合的状态,实现实时、精准的人脸图像的获取,有助于保证人脸应用获取到相对稳定的高质量人脸输入数据,从而提高人脸验证(例如:门禁刷脸认证等)的有效性以及安全性;以及根据人脸成像结果自适应的调整ISP,在不增加成本的前提下,充分利用现有图像采集设备ISP自我调节功能,明显改善了现有图像设备的ISP成像效果。In the embodiment of the present invention, an ISP adaptive adjustment control method and device based on a face image are disclosed. The method includes acquiring a face image collected by an image acquisition device, and inputting the face image into a predetermined person. Perform analysis in the face image quality assessment model; obtain the analysis results of the face image quality assessment model as the image analysis parameters of the face image, and determine whether the ISP corresponding to the image acquisition device needs to be adjusted according to the image analysis parameters; When the ISP needs to be adjusted, adjust the ISP according to the image analysis parameters until the parameters of the ISP meet the preset conditions, and re-trigger to execute the above-mentioned operation of acquiring the face image collected by the image collection device. It can be seen that in the embodiment of the present invention, by combining the ISP of the image acquisition device with the face-related application carrying the face image quality assessment model, the collected face image is input into the face image quality assessment model for analysis, and can be analyzed according to the image analysis. Parameters, namely the image quality of the ISP, evaluate the parameter settings of the ISP. When the ISP needs to be adjusted, the ISP will be adjusted according to the image analysis parameters, and the face image will be re-acquired to perform the same ISP adjustment operation, which can realize the dynamic adjustment of the ISP and make the ISP It has been in a state that is compatible with the face application, and realizes the acquisition of real-time and accurate face images, which helps to ensure that the face application obtains relatively stable and high-quality face input data, thereby improving face verification (for example: access control swipe). face authentication, etc.) effectiveness and security; and adaptive adjustment of ISP according to the results of face imaging, without increasing the cost, make full use of the ISP self-adjustment function of the existing image acquisition equipment, and significantly improve the existing image equipment ISP imaging effect.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1是本发明实施例公开的一种基于人脸图像的ISP自适应调整控制方法的流程示意图;1 is a schematic flowchart of an ISP adaptive adjustment control method based on a face image disclosed in an embodiment of the present invention;
图2是本发明实施例公开的另一种基于人脸图像的ISP自适应调整控制方法的流程示意图;2 is a schematic flowchart of another face image-based ISP adaptive adjustment control method disclosed in an embodiment of the present invention;
图3是本发明实施例公开的一种基于人脸图像的ISP自适应调整控制装置的结构示意图;3 is a schematic structural diagram of an ISP adaptive adjustment control device based on a face image disclosed in an embodiment of the present invention;
图4是本发明实施例公开的另一种基于人脸图像的ISP自适应调整控制装置的结构示意图;4 is a schematic structural diagram of another face image-based ISP adaptive adjustment control device disclosed in an embodiment of the present invention;
图5是本发明实施例公开的又一种基于人脸图像的ISP自适应调整控制装置的结构示意图。FIG. 5 is a schematic structural diagram of another device for self-adaptive adjustment and control of ISP based on a face image disclosed in an embodiment of the present invention.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、装置、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish different objects, rather than to describe a specific order. Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
本发明公开了基于人脸图像的ISP自适应调整控制方法以及装置,能够通过将图像采集设备的ISP与承载有人脸图像质量评估模型的人脸相关应用结合起来,将采集到的人脸图像输入人脸图像质量评估模型进行分析,能够根据图像分析参数,即ISP的成像质量,评估ISP的参数设置,当ISP需要调整时,将根据图像分析参数调整ISP,以及重新获取人脸图像执行同样ISP的调整操作,能够实现ISP的动态调整,使ISP一直处于与人脸应用相契合的状态,实现实时、精准的人脸图像的获取,有助于保证人脸应用获取到相对稳定的高质量人脸输入数据,从而提高人脸验证(例如:门禁刷脸认证等)的有效性以及安全性;以及根据人脸成像结果自适应的调整ISP,在不增加成本的前提下,充分利用现有图像采集设备ISP自我调节功能,明显改善了现有图像设备的ISP成像效果。以下分别进行详细说明。The invention discloses an ISP adaptive adjustment control method and device based on a face image, which can input the collected face image by combining the ISP of an image acquisition device with a face-related application carrying a face image quality evaluation model. The face image quality evaluation model is used for analysis, which can evaluate the parameter settings of the ISP according to the image analysis parameters, that is, the imaging quality of the ISP. When the ISP needs to be adjusted, the ISP will be adjusted according to the image analysis parameters, and the face image will be re-acquired to perform the same ISP. The adjustment operation can realize the dynamic adjustment of the ISP, so that the ISP is always in a state in line with the face application, realize the acquisition of real-time and accurate face images, and help ensure that the face application can obtain relatively stable and high-quality faces. Input data to improve the effectiveness and security of face verification (for example, access control face recognition, etc.); and adaptively adjust ISP according to the results of face imaging, making full use of existing image acquisition without increasing costs The ISP self-adjustment function of the equipment has significantly improved the ISP imaging effect of the existing image equipment. Each of them will be described in detail below.
实施例一Example 1
请参阅图1,图1是本发明实施例公开的一种基于人脸图像的ISP自适应调整控制方法的流程示意图。其中,图1所描述的基于人脸图像的ISP自适应调整控制方法适用于图像处理系统中,其中,该图像处理系统可以用于调整ISP,且该图像处理系统内置于可以采集人脸的终端设备中,其中,该终端设备包括用户终端和/或门禁设备等。如图1所示,该基于人脸图像的ISP自适应调整控制方法可以包括以下操作:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of an ISP adaptive adjustment control method based on a face image disclosed in an embodiment of the present invention. Among them, the ISP adaptive adjustment control method based on the face image described in FIG. 1 is suitable for the image processing system, wherein the image processing system can be used to adjust the ISP, and the image processing system is built in a terminal that can collect faces equipment, wherein the terminal equipment includes user terminals and/or access control equipment, etc. As shown in Figure 1, the ISP adaptive adjustment control method based on the face image may include the following operations:
101、获取图像采集设备采集到的人脸图像。101. Acquire a face image collected by an image collection device.
本发明实施例中,图像采集设备设置有ISP,该人脸图像可以为图像采集设备采集的实时图像,也可以是间隔预设时长(例如:30s)采集的图像。In the embodiment of the present invention, the image acquisition device is provided with an ISP, and the face image may be a real-time image acquired by the image acquisition device, or an image acquired at a preset time interval (eg, 30s).
本发明实施例中,在获取到人脸图像之后,进一步的,对该人脸图像执行预处理操作,此时,步骤102中的人脸图像为预处理后的人脸图像,其中,预处理操作包括滤波操作、图像分割操作等。这样在获取到人脸图像之后,先对人脸图像执行预处理操作,能够获取到高质量的人脸图像,从而有利于提高人脸图像的分析结果,进而有利于提高调整ISP的判断准确性。In this embodiment of the present invention, after the face image is acquired, a preprocessing operation is further performed on the face image. At this time, the face image in
在一个可选的实施例中,在执行步骤101之前,该基于人脸图像的ISP自适应调整控制方法还可以包括以下操作:In an optional embodiment, before
初始化图像处理系统,具体的,初始化图像处理系统的ISP调整信息结构体,其中,该ISP调整信息结构体用于存放该ISP在调整过程中的变量,例如:检测到的最近帧的人脸信息(即人脸出现在图像采集设备包括的传感器的具体位置)、上一次ISP的具体调整时间、图像处理系统在本次运行中ISP的调整次数等;Initialize the image processing system, specifically, initialize the ISP adjustment information structure of the image processing system, where the ISP adjustment information structure is used to store the variables of the ISP in the adjustment process, for example: the detected face information of the latest frame (that is, the face appears at the specific position of the sensor included in the image acquisition device), the specific adjustment time of the last ISP, the adjustment times of the ISP in the current operation of the image processing system, etc.;
在图像处理系统初始化完成之后,可以触发执行步骤101。After the image processing system is initialized, the execution of
可见,该可选的实施例在获取人脸图像之前,先对图像处理系统进行初始化,能够提高图像处理系统的信息处理能力。It can be seen that, in this optional embodiment, the image processing system is initialized before acquiring the face image, which can improve the information processing capability of the image processing system.
102、将上述人脸图像输入预先确定出的人脸图像质量评估模型中进行分析,并获取该人脸图像质量评估模型的分析结果,作为人脸图像的图像分析参数。102. Input the above-mentioned face image into a predetermined face image quality assessment model for analysis, and obtain the analysis result of the face image quality assessment model as an image analysis parameter of the face image.
本发明实施例中,该图像分析参数(即图像采集设备的传感器的成像质量的表征)包括人脸图像的曝光参数、人脸图像的白平衡参数以及人脸图像的聚焦参数中的至少一种,本发明实施例不做限定。进一步的,该图像分析参数还可以包括但不限于色彩矫正矩阵、锐度、曲线属性、饱和度,这样图像分析参数包括的内容越多,越有利于提高ISP是否需要调整的判断准确性。In the embodiment of the present invention, the image analysis parameter (that is, the representation of the imaging quality of the sensor of the image acquisition device) includes at least one of an exposure parameter of the face image, a white balance parameter of the face image, and a focus parameter of the face image , the embodiments of the present invention are not limited. Further, the image analysis parameters may also include, but are not limited to, color correction matrix, sharpness, curve attributes, and saturation. In this way, the more content the image analysis parameters include, the better the accuracy of determining whether the ISP needs to be adjusted.
103、根据上述图像分析参数判断上述图像采集设备对应的ISP是否需要调整;当判断出该ISP需要调整时,触发执行步骤103;当判断出ISP不需要调整时,可以结束本次流程。103. Determine whether the ISP corresponding to the image acquisition device needs to be adjusted according to the image analysis parameters; when it is determined that the ISP needs to be adjusted, trigger the execution of
104、根据图像分析参数调整ISP,直至该ISP的参数满足预设条件,并重新触发步骤101。104. Adjust the ISP according to the image analysis parameters until the parameters of the ISP meet the preset conditions, and trigger
本发明实施例中,作为一种可选的实施方式,根据图像分析参数判断图像采集设备对应的ISP是否需要调整,包括:In the embodiment of the present invention, as an optional implementation manner, determining whether the ISP corresponding to the image acquisition device needs to be adjusted according to the image analysis parameters, including:
当上述图像分析参数为上述人脸图像的曝光参数时,基于确定出的人脸关键点对应的标定结果(例如:106个人脸关键点)截取人脸图像,得到目标人脸区域,其中,该目标人脸区域的面积小于人脸图像的面积;When the above-mentioned image analysis parameter is the exposure parameter of the above-mentioned face image, the face image is intercepted based on the calibration results corresponding to the determined face key points (for example: 106 face key points) to obtain the target face area, wherein the The area of the target face area is smaller than the area of the face image;
获取目标人脸区域对应的第一亮度值,并判断该第一亮度值是否大于等于预设亮度值阈值,当判断出该第一亮度值大于等于该预设亮度值阈值时,确定该图像采集设备对应的ISP需要调整。Obtain the first brightness value corresponding to the target face area, and determine whether the first brightness value is greater than or equal to a preset brightness value threshold, and when it is determined that the first brightness value is greater than or equal to the preset brightness value threshold, determine the image acquisition The ISP corresponding to the device needs to be adjusted.
该可选的实施方式中,可选的,获取目标人脸区域对应的第一亮度值,可以包括:In this optional implementation manner, optionally, acquiring the first brightness value corresponding to the target face region may include:
将目标人脸区域由RGB表现形式转换为YcbCr表现形式,并计算其Y分量的均值,作为目标人脸区域对应的第一亮度值。Convert the target face region from RGB representation to YcbCr representation, and calculate the mean value of its Y component as the first luminance value corresponding to the target face region.
该可选的实施方式中,进一步的,当判断出第一亮度值不大于等于预设亮度值阈值时,确定图像采集设备对应的ISP不需要调整,即图像采集设备曝光正常,结束本次流程。In this optional embodiment, further, when it is determined that the first brightness value is not greater than or equal to the preset brightness value threshold, it is determined that the ISP corresponding to the image capture device does not need to be adjusted, that is, the exposure of the image capture device is normal, and this process ends .
可见,该可选的实施方式通过获取人脸图像的亮度值,并将该亮度值与预设亮度值进行比较,能够实现在图像采集设备曝光过度的情况下ISP需要调整的判断;以及在获取人脸图像的亮度之前,进一步通过人脸关键点对应的标定结果截取人脸图像,能够提高人脸图像的亮度值的确定效率以及准确性,从而有利于提高ISP需要调整与否的判断准确性以及可靠性。It can be seen that this optional embodiment can realize the judgment that the ISP needs to be adjusted when the image acquisition device is overexposed by acquiring the brightness value of the face image and comparing the brightness value with the preset brightness value; Before the brightness of the face image, the face image is further intercepted by the calibration results corresponding to the key points of the face, which can improve the efficiency and accuracy of the determination of the brightness value of the face image, thereby helping to improve the judgment accuracy of whether the ISP needs to be adjusted or not. and reliability.
本发明实施例中,作为另一种可选的实施方式,根据图像分析参数判断图像采集设备对应的ISP是否需要调整,包括:In the embodiment of the present invention, as another optional implementation manner, determining whether the ISP corresponding to the image acquisition device needs to be adjusted according to the image analysis parameter, including:
当上述图像分析参数为上述人脸图像的白平衡参数时,确定该目标人脸区域的RGB三个通道中每个该通道的均值,并根据所有均值判断所有通道的比例分配是否与预先确定出的比例分配相匹配,当判断出结果为否时,确定图像采集设备对应的ISP需要调整。When the above-mentioned image analysis parameter is the white balance parameter of the above-mentioned face image, determine the mean value of each channel in the three RGB channels of the target face area, and judge whether the proportional distribution of all channels matches the predetermined value according to all the mean values. The ratio distribution of the image capture device matches the ratio distribution, and when it is determined that the result is no, it is determined that the ISP corresponding to the image acquisition device needs to be adjusted.
可见,该可选的实施方式通过判断人脸图像的RGB三个通道的分配是否合理,能够实现ISP需要调整的判断。It can be seen that this optional embodiment can realize the judgment that the ISP needs to be adjusted by judging whether the allocation of the three RGB channels of the face image is reasonable.
本发明实施例中,作为又一种可选的实施方式,根据图像分析参数判断图像采集设备对应的ISP是否需要调整,包括:In the embodiment of the present invention, as another optional implementation, determining whether the ISP corresponding to the image acquisition device needs to be adjusted according to the image analysis parameter, including:
当上述图像分析参数为上述人脸图像的聚焦参数时,获取目标人脸区域出现在图像采集设备的目标位置,并判断目标位置是否处于预先确定出的位置范围内,当判断出结果为否时,确定图像采集设备对应的ISP需要调整。When the above-mentioned image analysis parameter is the focus parameter of the above-mentioned face image, obtain the target face region appearing at the target position of the image acquisition device, and judge whether the target position is within the predetermined position range, and when the judgment result is no , to determine that the ISP corresponding to the image capture device needs to be adjusted.
可见,该可选的实施方式通过将获取到人脸图像出现在图像采集设备的位置与预先确定出的位置范围进行比较,能够实现ISP需要调整的判断。It can be seen that, in this optional embodiment, by comparing the position where the acquired face image appears on the image acquisition device with a predetermined position range, it is possible to determine that the ISP needs to be adjusted.
本发明实施例中,当判断出第一亮度值大于等于该预设亮度值阈值和/或当判断出所有通道的比例分配与预先确定出的比例分配不相匹配和/或当判断出目标位置未处于预先确定出的位置范围内时,确定ISP需要调整,不仅能够提高ISP需要调整的判断准确性,还能够提高提供多种ISP需要调整的判断方式,提高了ISP需要调整的判断灵活性。In this embodiment of the present invention, when it is determined that the first brightness value is greater than or equal to the preset brightness value threshold and/or when it is determined that the proportional distribution of all channels does not match the predetermined proportional distribution and/or when it is determined that the target position When it is not within the predetermined location range, it is determined that the ISP needs to be adjusted, which can not only improve the judgment accuracy of the ISP needs to be adjusted, but also can improve the judgment method of providing a variety of ISP needs to adjust, and improve the judgment flexibility of the ISP needs to be adjusted.
本发明实施例中,根据图像分析参数调整ISP,直至该ISP的参数满足预设条件,可以包括:In the embodiment of the present invention, adjusting the ISP according to the image analysis parameters until the parameters of the ISP meet the preset conditions may include:
当判断出第一亮度值大于等于预设亮度值阈值时,获取ISP当前设置的曝光参数,并根据ISP当前设置的曝光参数与人脸图像的曝光参数调整ISP,直至ISP的曝光参数小于等于预设曝光参数;或者,When it is determined that the first brightness value is greater than or equal to the preset brightness value threshold, the exposure parameters currently set by the ISP are obtained, and the ISP is adjusted according to the exposure parameters currently set by the ISP and the exposure parameters of the face image until the exposure parameters of the ISP are less than or equal to the preset brightness value. set exposure parameters; or,
当判断出所有通道的比例分配与预先确定出的比例分配不相匹配,固定目标人脸图像的G通道的均值,并分别基于R/G、G/B的值分别调整R通道的增益和B通道的增益,以使所有通道的比例分配与预先确定出的比例分配相匹配。或者,When it is judged that the ratio distribution of all channels does not match the pre-determined ratio distribution, the average value of the G channel of the target face image is fixed, and the gain and B of the R channel are adjusted based on the values of R/G and G/B respectively. The gain of the channels so that the ratios of all channels match the pre-determined ratios. or,
当判断出目标位置未处于预先确定出的位置范围内时,根据目标位置调整ISP,直至该目标位置处于预先确定出的位置范围内。When it is determined that the target position is not within the predetermined position range, the ISP is adjusted according to the target position until the target position is within the predetermined position range.
可见,该可选的实施方式通过根据不同的参数采取不用的当时调整ISP,以使ISP的各项参数满足图像采集要求,进而提高图像的采集准确性以及效率。It can be seen that in this optional embodiment, the ISP is adjusted according to different parameters, so that various parameters of the ISP meet the requirements of image acquisition, thereby improving the accuracy and efficiency of image acquisition.
在一个可选的实施例中,该基于人脸图像的ISP自适应调整控制方法还可以包括以下操作:In an optional embodiment, the face image-based ISP adaptive adjustment control method may further include the following operations:
当判断出上述第一亮度值不大于等于预设亮度值阈值时,按照预设扩大方式扩大目标人脸区域的有效面积,得到扩大后的目标人脸区域,该预设扩大方式为基于目标人脸区域的中心位置所设置的方式;When it is determined that the above-mentioned first brightness value is not greater than or equal to the preset brightness value threshold, the effective area of the target face region is enlarged according to a preset enlargement method to obtain an enlarged target face area, and the preset enlargement method is based on the target person The way the center position of the face area is set;
确定扩大后的目标人脸区域对应的背景区域的第二亮度值,并基于第一亮度值与第二亮度值计算人脸图像的逆光度;determining the second brightness value of the background area corresponding to the enlarged target face area, and calculating the back lightness of the face image based on the first brightness value and the second brightness value;
判断逆光度是否小于等于预设逆光度阈值,当判断出该逆光度小于等于预设逆光度阈值时,确定图像采集设备对应的ISP需要调整。It is determined whether the backlight intensity is less than or equal to the preset backlight intensity threshold, and when it is determined that the backlight intensity is less than or equal to the preset backlight intensity threshold, it is determined that the ISP corresponding to the image capture device needs to be adjusted.
该可选的实施例中,该预设扩大方式为基于目标人脸区域的中心位置所设置的方式,具体的:预设扩大方式为以目标人脸区域的中心位置为中心,以第一若干倍(例如:1倍)目标人脸区域的短边为第一短边,以第二若干倍(例如:1倍)目标人脸区域的长边为第一长边所形成的矩形图像区域作为扩大后的目标人脸区域。举例说明,当目标人脸区域为短边为10cm、长边为15cm时,则扩大后的目标人脸区域仍旧以目标人脸区域的中心点为中心点、短边变为15cm、长边变为20cm所形成的矩形图像区域。In this optional embodiment, the preset enlargement method is a method set based on the center position of the target face area, specifically: the preset enlargement method is to take the center position of the target face area as the center, and take the first several The short side of the target face area is doubled (for example: 1 times) as the first short side, and the rectangular image area formed by taking the second several times (for example: 1 times) the long side of the target face area as the first long side is used as the first short side. The enlarged target face area. For example, when the target face area is 10cm on the short side and 15cm on the long side, the enlarged target face area still takes the center point of the target face area as the center point, the short side becomes 15cm, and the long side becomes 15cm. Rectangular image area formed by 20cm.
该可选的实施例中,当得到扩大后的目标人脸区域(前景图像)时,通过图像分离法将目标人脸区域从人脸图像去除,得到背景区域,其中,该图像分离法可以包括背景差分法、帧差分法、光流场法以及RPCA法等分离法中的一种或者多种的组合,其中,针对图像分离法去除前景图像的方法为现有的方法,在此不再赘述。背景区域的第二亮度值的计算方法和目标人脸区域的计算方法相同,在此不再赘述。In this optional embodiment, when the enlarged target face region (foreground image) is obtained, the target face region is removed from the face image by an image separation method to obtain a background region, wherein the image separation method may include One or more combinations of the background difference method, the frame difference method, the optical flow field method, and the RPCA method, among which, the method for removing the foreground image for the image separation method is an existing method, which will not be repeated here. . The calculation method of the second luminance value of the background area is the same as the calculation method of the target face area, and details are not repeated here.
该可选的实施例中,人脸图像的逆光度的具体计算公式如下:In this optional embodiment, the specific calculation formula of the backlight degree of the face image is as follows:
式中,R为人脸图像的逆光度;Yf为目标人脸区域对应的第一亮度值;Yb为背景区域的第二亮度值。In the formula, R is the backlight of the face image; Y f is the first brightness value corresponding to the target face area; Y b is the second brightness value of the background area.
该可选的实施例中,进一步的,当判断出该逆光度不小于等于预设逆光度阈值时,确定图像采集设备对应的ISP不需要调整,即图像采集设备的曝光正常,结束本次流程。In this optional embodiment, further, when it is determined that the backlight intensity is not less than or equal to the preset backlight intensity threshold, it is determined that the ISP corresponding to the image capture device does not need to be adjusted, that is, the exposure of the image capture device is normal, and this process ends .
可见,该可选的实施例通过在判断出人脸区域的亮度值较小时,通过计算人脸区域扩大后对应的背景区域的亮度值,并基于这两个亮度值的获取人脸图像的逆光度,以及在确定出人脸图像的逆光度较小时,确定ISP需要调整,从而提高在图像采集设备曝光不足的情况实现ISP需要调整的判断,能够提高ISP需要调整的确定准确性,从而有利于ISP的全方位动态调整,进而有利于后续采集到动态图像的准确性。It can be seen that in this optional embodiment, when it is determined that the brightness value of the face region is small, the brightness value of the background region corresponding to the enlarged face region is calculated, and the backlight of the face image is obtained based on the two brightness values. When it is determined that the backlight degree of the face image is small, it is determined that the ISP needs to be adjusted, so as to improve the judgment that the ISP needs to be adjusted in the case of insufficient exposure of the image acquisition device, which can improve the accuracy of the determination of the ISP needs to be adjusted, which is beneficial to The all-round dynamic adjustment of the ISP is beneficial to the accuracy of the subsequent acquisition of dynamic images.
在又一个可选的实施例中,该基于人脸图像的ISP自适应调整控制方法还可以包括以下操作:In yet another optional embodiment, the face image-based ISP adaptive adjustment control method may further include the following operations:
当判断出上述逆光度不小于等于预设逆光度阈值时,判断第一亮度值是否大于等于某一预设亮度值阈值,该某一预设亮度值阈值小于上述预设亮度值阈值;When it is determined that the above-mentioned backlight is not less than or equal to the preset backlight threshold, it is determined whether the first brightness value is greater than or equal to a certain preset brightness value threshold, and the certain preset brightness value threshold is smaller than the above-mentioned preset brightness value threshold;
当判断出第一亮度值不大于等于某一预设亮度值阈值时,确定图像采集设备对应的ISP需要调整。When it is determined that the first brightness value is not greater than or equal to a certain preset brightness value threshold, it is determined that the ISP corresponding to the image capturing device needs to be adjusted.
该可选的实施例中,当判断出第一亮度值大于等于某一预设亮度值阈值时,确定图像采集设备对应的ISP不需要调整,即图像采集设备的曝光正常。In this optional embodiment, when it is determined that the first brightness value is greater than or equal to a certain preset brightness value threshold, it is determined that the ISP corresponding to the image capture device does not need to be adjusted, that is, the exposure of the image capture device is normal.
可见,该可选的实施例在判断出人脸图像的逆光度较大时,继续判断人脸区域的亮度值是否较大,当判断出较小时,确定ISP需要调整,从而提高图像采集设备曝光不足的确定准确性,即提高ISP需要调整的判断准确性,进而提高全方位的ISP动态调整的准确性。It can be seen that in this optional embodiment, when it is judged that the backlight degree of the face image is large, it continues to judge whether the brightness value of the face region is large, and when it is judged that it is small, it is determined that the ISP needs to be adjusted, thereby improving the exposure of the image acquisition device. Insufficient determination accuracy, that is, to improve the judgment accuracy of the ISP needs to be adjusted, thereby improving the accuracy of the all-round ISP dynamic adjustment.
在又一个可选的实施例中,在执行步骤101之前,该基于人脸图像的ISP自适应调整控制方法还可以包括以下操作:In yet another optional embodiment, before
根据ISP的当前状态判断该ISP是否需要调整,当判断出该ISP需要调整时,触发执行步骤101;Determine whether the ISP needs to be adjusted according to the current state of the ISP, and when it is determined that the ISP needs to be adjusted, trigger the execution of
该可选的实施例中,可选的,根据ISP的当前状态判断ISP是否需要调整,包括:In this optional embodiment, optionally, determining whether the ISP needs to be adjusted according to the current state of the ISP, including:
读取ISP对应的图像处理系统当前显示的目标时刻,并获取上一次调整该ISP对应的完成时刻;Read the target time currently displayed by the image processing system corresponding to the ISP, and obtain the completion time corresponding to the last adjustment of the ISP;
计算目标时刻与完成时刻之间的间隔时长,并判断该间隔时长是否小于等于预先确定出的间隔时长阈值,当判断出该间隔时长小于等于间隔时长阈值时,确定ISP需要调整。Calculate the interval between the target time and the completion time, and determine whether the interval is less than or equal to the predetermined interval threshold. When it is determined that the interval is less than or equal to the interval threshold, it is determined that the ISP needs to be adjusted.
该可选的实施例中,当判断出该间隔时长不小于等于间隔时长阈值时,确定ISP不需要调整,并将图像处理系统在本次运行过程中截止目标时刻为止的ISP的总调整次数置零,这样便于后续当判断出在本次系统运行中ISP需要调整时,减少无效调整次数的计算,进而减少ISP需要调整的错误判断。In this optional embodiment, when it is determined that the interval duration is not less than or equal to the interval duration threshold, it is determined that the ISP does not need to be adjusted, and the total number of ISP adjustments of the image processing system in the current operation process up to the target time is set to 0, so that when it is determined that the ISP needs to be adjusted in the current system operation, the calculation of the number of invalid adjustments is reduced, thereby reducing the erroneous judgment that the ISP needs to be adjusted.
该可选的实施例中,从ISP的调整信息结构体中获取上一次调整该ISP对应的完成时刻。In this optional embodiment, the completion time corresponding to the last adjustment of the ISP is obtained from the adjustment information structure of the ISP.
需要说明的是,该可选的实施例也可以同时和步骤101同时发生,或者发生在步骤101之后,优先选择在发生在步骤101之前。It should be noted that, this optional embodiment may also occur at the same time as
可见,该可选的实施例在获取人脸图像之前,先根据ISP的当前状态判断ISP是否需要调整,若需要调整,方可执行获取人脸图像的操作,能够减少在不需要调整ISP,即图像采集设备的各项指标(例如:白平衡等)与当前环境相匹配的情况下对ISP执行调整操作的情况发生,有利于减少ISP发生错误调整而导致图像采集设备采集到质量较差的人脸图像的情况发生以及减少系统的功耗,提高系统的使用寿命。It can be seen that this optional embodiment determines whether the ISP needs to be adjusted according to the current state of the ISP before acquiring the face image. When the various indicators of the image capture device (for example: white balance, etc.) match the current environment, the ISP is adjusted. The situation of the face image occurs and the power consumption of the system is reduced, and the service life of the system is improved.
在又一个可选的实施例中,在判断出间隔时长小于等于间隔时长阈值之后,以及在确定ISP需要调整之前,该基于人脸图像的ISP自适应调整控制方法还可以包括以下操作:In yet another optional embodiment, after judging that the interval duration is less than or equal to the interval duration threshold, and before determining that the ISP needs to be adjusted, the face image-based ISP adaptive adjustment control method may further include the following operations:
获取在第一预设时长内ISP的总调整次数,并判断总调整次数是否小于预设调整次数阈值,当判断出该总调整次数小于预设调整次数阈值时,触发执行上述的确定ISP需要调整的操作,其中,该第一预设时长的截止时刻为上一次调整ISP的时刻。Obtain the total adjustment times of the ISP within the first preset time period, and determine whether the total adjustment times are less than the preset adjustment times threshold, and when it is determined that the total adjustment times are less than the preset adjustment times threshold, trigger the execution of the above-mentioned determination that the ISP needs to be adjusted operation, wherein the cut-off time of the first preset duration is the time when the ISP was last adjusted.
该可选的实施例中,当判断出该总调整次数不小于预设调整次数阈值时,确定ISP不需要调整,基本本次流程。In this optional embodiment, when it is determined that the total number of adjustments is not less than the preset threshold of the number of adjustments, it is determined that the ISP does not need to be adjusted, and this process is basically the same.
可见,该可选的实施例在判断出距离上一次调整ISP的时间较短时,进一步在判断出图像处理系统在本次运行过程中ISP的总调整次数较小时,才确定ISP需要调整,能够提高ISP需要调整的判断准确性;以及通过限制ISP在系统本次运行过程中的调整总次数,能够满足ISP的性能要求以及适应复杂的环境,从而提升用户的体验。It can be seen that this optional embodiment determines that the ISP needs to be adjusted only when it is judged that the time to adjust the ISP last time is short, and further when it is judged that the total number of times of adjustment of the ISP during the current operation of the image processing system is small. Improve the judgment accuracy of ISP needs to be adjusted; and limit the total number of ISP adjustments in the system operation process, which can meet the performance requirements of ISP and adapt to complex environments, thereby improving user experience.
在又一个可选的实施例中,在根据上述图像分析参数调整ISP,直至该ISP的当前参数满足预设条件之后,以及重新触发执行步骤101之前,该基于人脸图像的ISP自适应调整控制方法还可以包括以下操作:In yet another optional embodiment, after the ISP is adjusted according to the above-mentioned image analysis parameters until the current parameter of the ISP satisfies the preset condition, and before the execution of
判断ISP对应的图像处理系统的实时显示时刻是否到达第二预设时长的截止时刻,当判断出该实时显示时刻到达第二预设时长的截止时刻时,重新触发执行步骤101,该第二预设时长的起始时刻为确定出ISP需要调整的时刻。It is judged whether the real-time display time of the image processing system corresponding to the ISP has reached the cut-off time of the second preset duration. The starting time of the duration is set as the time when the ISP needs to be adjusted.
该可选的实施例中,当判断出实时显示时刻未到达第二预设时长的截止时刻时,触发执行上述的判断ISP对应的图像处理系统的实时显示时刻是否到达第二预设时长的截止时刻的操作。这样通过监测图像处理系统的实时显示时刻,能够提高重新执行获取人脸图像的操作的触发准确性。In this optional embodiment, when it is determined that the real-time display time has not reached the cut-off time of the second preset duration, the execution of the above-mentioned judgment as to whether the real-time display time of the image processing system corresponding to the ISP has reached the cut-off time of the second preset duration is triggered. operation at the moment. In this way, by monitoring the real-time display time of the image processing system, the triggering accuracy of re-executing the operation of acquiring the face image can be improved.
可见,该可选的实施例在ISP调整完成之后,先判断当前时刻是否达到预设时刻,若达到,则重新执行获取人脸图像的操作,能够满足ISP的参数从写入寄存器到生效需要一定时间的要求,从而减少后续直接读取图像可能破坏图像处理系统的稳定性的情况发生,进而保证图像处理系统运行的稳定性。It can be seen that in this optional embodiment, after the ISP adjustment is completed, it is first determined whether the current time has reached the preset time, and if it is reached, the operation of acquiring the face image is re-executed, which can meet the requirements of the ISP parameters from writing to the register to taking effect. Time requirements, thereby reducing the occurrence of subsequent direct reading of images that may damage the stability of the image processing system, thereby ensuring the stability of the image processing system.
可见,实施图1所描述的基于人脸图像的ISP自适应调整控制方法通过将图像采集设备的ISP与承载有人脸图像质量评估模型的人脸相关应用结合起来,将采集到的人脸图像输入人脸图像质量评估模型进行分析,能够根据图像分析参数,即ISP的成像质量,评估ISP的参数设置,当ISP需要调整时,将根据图像分析参数调整ISP,以及重新获取人脸图像执行同样ISP的调整操作,能够实现ISP的动态调整,使ISP一直处于与人脸应用相契合的状态,实现实时、精准的人脸图像的获取,有助于保证人脸应用获取到相对稳定的高质量人脸输入数据,从而提高人脸验证(例如:门禁刷脸认证等)的有效性以及安全性;以及根据人脸成像结果自适应的调整ISP,在不增加成本的前提下,充分利用现有图像采集设备ISP自我调节功能,明显改善了现有图像设备的ISP成像效果。It can be seen that the ISP adaptive adjustment control method based on the face image described in FIG. 1 is implemented by combining the ISP of the image acquisition device with the face-related application carrying the face image quality assessment model, and the collected face image is input. The face image quality evaluation model is used for analysis, which can evaluate the parameter settings of the ISP according to the image analysis parameters, that is, the imaging quality of the ISP. When the ISP needs to be adjusted, the ISP will be adjusted according to the image analysis parameters, and the face image will be re-acquired to perform the same ISP. The adjustment operation can realize the dynamic adjustment of the ISP, so that the ISP is always in a state in line with the face application, realize the acquisition of real-time and accurate face images, and help ensure that the face application can obtain relatively stable and high-quality faces. Input data to improve the effectiveness and security of face verification (for example, access control face recognition, etc.); and adaptively adjust ISP according to the results of face imaging, making full use of existing image acquisition without increasing costs The ISP self-adjustment function of the equipment has significantly improved the ISP imaging effect of the existing image equipment.
实施例二Embodiment 2
请参阅图2,图2是本发明实施例公开的另一种基于人脸图像的ISP自适应调整控制方法的流程示意图。其中,图2所描述的基于人脸图像的ISP自适应调整控制方法适用于图像处理系统中,其中,该图像处理系统可以用于调整ISP,且该图像处理系统内置于可以采集人脸的终端设备中,其中,该终端设备包括用户终端和/或门禁设备等。如图2所示,该基于人脸图像的ISP自适应调整控制方法可以包括以下操作:Please refer to FIG. 2. FIG. 2 is a schematic flowchart of another face image-based ISP adaptive adjustment control method disclosed in an embodiment of the present invention. Among them, the ISP adaptive adjustment control method based on the face image described in FIG. 2 is suitable for the image processing system, wherein the image processing system can be used to adjust the ISP, and the image processing system is built in a terminal that can collect faces equipment, wherein the terminal equipment includes user terminals and/or access control equipment, etc. As shown in FIG. 2, the ISP adaptive adjustment control method based on the face image may include the following operations:
201、获取图像采集设备采集到的人脸图像。201. Acquire a face image collected by an image collection device.
202、确定上述人脸图像对应的图像参数。202. Determine the image parameters corresponding to the above-mentioned face image.
本发明实施例中,该图像参数包括人脸图像的面积、人脸图像出现在图像采集设备的位置以及人脸图像的面部信息中的至少一种,该人脸图像的面部信息包括人脸图像的左虚拟瞳孔的位置、右虚拟瞳孔的位置、虚拟嘴巴的左侧嘴角的位置、虚拟嘴巴的右侧嘴角的位置以及虚拟鼻尖的位置。In the embodiment of the present invention, the image parameter includes at least one of the area of the face image, the position where the face image appears on the image acquisition device, and the face information of the face image, and the face information of the face image includes the face image The position of the left virtual pupil, the position of the right virtual pupil, the position of the left mouth corner of the virtual mouth, the position of the right mouth corner of the virtual mouth, and the position of the virtual nose tip.
203、根据上述图像参数判断上述人脸图像是否满足预先确定出的ISP的调整条件;当判断出该人脸图像满足ISP的调整条件时,触发执行步骤204;当判断出该人脸图像不满足ISP的调整条件时,可以触发执行步骤201,也可以结束本次流程。203. Determine whether the above-mentioned face image satisfies the pre-determined adjustment conditions of the ISP according to the above-mentioned image parameters; when it is judged that the face image meets the adjustment conditions of the ISP, trigger the execution of
可见,本发明实施例在获取到人脸图像之后,进一步判断该人脸图像是否满足ISP的调整条件,并在判断出满足ISP的调整条件时,才执行后续操作,能够减少由于人脸图像不满足ISP的调整条件却使用其调整ISP而导致ISP调整发生错误的情况发生,有利于提高ISP的动态调整的准确性,以及减少图像处理系统的功耗;在判断出不满足ISP的调整条件时,重新触发获取人脸图像的操作,有利于获取到满足ISP的调整条件的图像,进而有利于ISP的动态调整。It can be seen that, in the embodiment of the present invention, after the face image is acquired, it is further judged whether the face image satisfies the adjustment conditions of the ISP, and only when it is judged that the adjustment conditions of the ISP are met, the subsequent operations are performed, which can reduce the problem that the face image is inconsistent. If the ISP adjustment conditions are met but the ISP adjustment conditions are used, the ISP adjustment error occurs, which is conducive to improving the accuracy of the ISP dynamic adjustment and reducing the power consumption of the image processing system; when it is judged that the ISP adjustment conditions are not met , and re-trigger the operation of acquiring the face image, which is conducive to acquiring an image that meets the adjustment conditions of the ISP, which in turn is conducive to the dynamic adjustment of the ISP.
204、将上述人脸图像输入预先确定出的人脸图像质量评估模型中进行分析,并获取该人脸图像质量评估模型的分析结果,作为人脸图像的图像分析参数;204, input the above-mentioned face image into the pre-determined face image quality assessment model for analysis, and obtain the analysis result of the face image quality assessment model, as the image analysis parameter of the face image;
205、根据上述图像分析参数判断上述图像采集设备对应的ISP是否需要调整;当判断出该ISP需要调整时,触发执行步骤206;当判断出ISP不需要调整时,可以结束本次流程。205. Determine whether the ISP corresponding to the image acquisition device needs to be adjusted according to the image analysis parameters; when it is determined that the ISP needs to be adjusted, trigger the execution of
206、根据图像分析参数调整ISP,直至该ISP的参数满足预设条件,并重新触发步骤201。206. Adjust the ISP according to the image analysis parameters until the parameters of the ISP meet the preset conditions, and trigger
本发明实施例中,作为一种可选的实施方式,根据图像参数判断人脸图像是否满足预先确定出的ISP的调整条件,包括:In the embodiment of the present invention, as an optional implementation manner, determining whether the face image satisfies the pre-determined ISP adjustment conditions according to the image parameters includes:
当上述图像参数为上述人脸图像的面积时,判断该人脸图像的面积是否大于等于预先确定出的面积范围,当判断结果为是时,确定该人脸图像满足预先确定出的ISP的调整条件。When the above-mentioned image parameter is the area of the above-mentioned face image, it is judged whether the area of the face image is greater than or equal to the predetermined area range, and when the judgment result is yes, it is determined that the face image satisfies the predetermined adjustment of the ISP condition.
可见,该可选的实施方式通过计算获取到的人脸图像的面积,并将该面积与预设面积范围进行比较,能够实现人脸图像满足ISP的调整条件的判断。It can be seen that in this optional embodiment, by calculating the area of the acquired face image and comparing the area with the preset area range, it is possible to determine that the face image satisfies the adjustment conditions of the ISP.
本发明实施例中,作为另一种可选的实施方式,根据图像参数判断人脸图像是否满足预先确定出的ISP的调整条件,包括:In the embodiment of the present invention, as another optional implementation manner, determining whether the face image satisfies the pre-determined ISP adjustment conditions according to the image parameters includes:
当上述图像参数为上述人脸图像的第一位置时,获取上一次采集到的人脸图像的第二位置,并计算该第一位置与第二位置的位置偏移,以及判断该位置偏移是否小于等于预设位置偏移阈值,当判断结果为是,确定人脸图像满足预先确定出的ISP的调整条件。When the image parameter is the first position of the face image, the second position of the face image collected last time is acquired, the position offset between the first position and the second position is calculated, and the position offset is determined Whether it is less than or equal to the preset position offset threshold, when the judgment result is yes, it is determined that the face image satisfies the pre-determined adjustment condition of the ISP.
该可选的实施方式,可选的,计算第一位置与第二位置的位置偏移,可以包括:This optional implementation, optionally, calculating the position offset between the first position and the second position may include:
计算第一位置与第二位置的交并比,作为第一位置与第二位置的位置偏移。The intersection ratio of the first position and the second position is calculated as the position offset of the first position and the second position.
可见,该可选的实施方式通过计算本次采集到的人脸图像在图像采集设备的位置与上一次采集到的人脸图像在图像采集设备的位置之间的位置偏移,能够实现人脸图像满足ISP的调整条件的判断;以及通过计算两个人脸图像的位置的交并比,能够提高两个人脸图像的位置之间的位置偏移的计算准确性以及效率。It can be seen that, in this optional embodiment, by calculating the position offset between the position of the face image collected this time on the image capture device and the position of the face image collected last time on the image capture device, the face image can be realized. Judging that the image satisfies the adjustment conditions of the ISP; and by calculating the intersection ratio of the positions of the two face images, the calculation accuracy and efficiency of the position offset between the positions of the two face images can be improved.
本发明实施例中,作为又一种可选的实施方式,根据图像参数判断人脸图像是否满足预先确定出的ISP的调整条件,包括:In the embodiment of the present invention, as another optional implementation, determining whether the face image satisfies the pre-determined ISP adjustment conditions according to the image parameters includes:
当上述图像参数为上述人脸图像的面部信息时,计算上述左虚拟瞳孔的位置与上述右虚拟瞳孔的位置之间的瞳孔横坐标均值,并计算上述左侧嘴角的位置与上述右侧嘴角的位置的嘴角横坐标均值;When the above-mentioned image parameter is the facial information of the above-mentioned face image, calculate the mean value of the pupil abscissa between the position of the above-mentioned left virtual pupil and the position of the above-mentioned right virtual pupil, and calculate the position of the above-mentioned left corner of the mouth and the above-mentioned right corner of the mouth. The mean value of the abscissa of the mouth corner of the position;
计算上述瞳孔横坐标均值与上述虚拟鼻尖的位置的横坐标的第一横坐标差值,并计算上述嘴角横坐标均值与上述虚拟鼻尖的位置的横坐标的第二横坐标差值;Calculate the first abscissa difference of the above-mentioned pupil abscissa mean and the abscissa of the position of the above-mentioned virtual nose tip, and calculate the second abscissa difference of the above-mentioned mouth corner abscissa mean and the abscissa of the position of the above-mentioned virtual nose;
计算第一横坐标差值与第二横坐标差值之间的目标横坐标差值,判断该目标横坐标差值是否小于等于处于预设横坐标差值范围,当判断结果为是时,确定上述人脸图像满足预先确定出的上述ISP的调整条件。Calculate the target abscissa difference between the first abscissa difference and the second abscissa difference, determine whether the target abscissa difference is less than or equal to the preset abscissa difference range, and when the judgment result is yes, determine The above-mentioned face image satisfies the predetermined adjustment condition of the above-mentioned ISP.
该可选的实施方式中,从预先确定出的人脸关键点的标定结果集合中确定与人脸图像相匹配的目标标定结果获取该人脸图像的面部信息,其中,该人脸关键点的标定结果集合包括多个标定结果,例如:包含5个关键点的标定结果、包含68个关键点的标定结果、包含106个关键点的标定结果。其中,本发明选择5个关键点的标定结果作为目标标定结果。In this optional implementation manner, the target calibration result that matches the face image is determined from the set of pre-determined calibration results of the face key points, and the face information of the face image is obtained, wherein the face key point's The calibration result set includes a plurality of calibration results, for example: the calibration result including 5 key points, the calibration result including 68 key points, and the calibration result including 106 key points. Among them, the present invention selects the calibration results of five key points as the target calibration results.
可见,该可选的实施方式通过计算人脸图像中左右瞳孔、左右嘴角以及鼻尖的位置,能够实现采集到人脸图像的虚拟五官对称的判断,从而实现人脸图像满足ISP的调整条件的判断以及提高人脸图像满足ISP的调整条件判断准确性。It can be seen that this optional embodiment can realize the symmetrical judgment of the virtual facial features of the collected face image by calculating the positions of the left and right pupils, the left and right corners of the mouth and the tip of the nose in the face image, thereby realizing the judgment that the face image satisfies the adjustment conditions of the ISP And improve the accuracy of the judgment that the face image meets the adjustment conditions of the ISP.
本发明实施例中,需要说明的是,当上述三种人脸图像满足ISP的调整条件的判断方式中的两种及三种的判断结果为是,才确定人脸图像满足ISP的调整条件,能够提高人脸图像满足ISP的调整条件的判断准确性,有利于提高后续ISP的调整准确性;通过提供多种人脸图像满足ISP的调整条件的判断方式,能够提高人脸图像满足ISP的调整条件的判断灵活性以及可能性。In the embodiment of the present invention, it should be noted that when two or three of the above three judgment methods for determining that the face image satisfies the adjustment conditions of the ISP are positive, it is determined that the face image meets the adjustment conditions of the ISP. It can improve the judgment accuracy that the face image meets the adjustment conditions of the ISP, which is beneficial to improve the adjustment accuracy of the subsequent ISP; by providing a variety of judgment methods for the face image to meet the adjustment conditions of the ISP, it can improve the face image to meet the adjustment of the ISP. Judgmental flexibility and possibility of conditions.
在另一个可选的实施例中,该基于人脸图像的ISP自适应调整控制方法还可以包括以下操作:In another optional embodiment, the face image-based ISP adaptive adjustment control method may further include the following operations:
当判断出人脸图像不满足ISP的调整条件时,根据人脸图像的图像参数分析人脸图像不满足ISP的调整条件的因素,并将该因素发送至图像采集设备,以触发图像采集设备根据该因素重新采集人脸图像。其中,该因素包括人脸图像的五官不全、环境的亮度较暗等。When it is judged that the face image does not meet the adjustment conditions of the ISP, analyze the factors that the face image does not meet the adjustment conditions of the ISP according to the image parameters of the face image, and send the factors to the image acquisition device to trigger the image acquisition device according to the This factor recaptures face images. Among them, the factors include incomplete facial features of the face image, low brightness of the environment, and the like.
可见,该可选的实施例在判断出人脸图像不满足ISP的调整条件之后,进一步生成图像获取提示,并将,有利于提高获取到满足ISP的调整条件的人脸图像的准确性,从而提高ISP的动态调整的准确性。It can be seen that this optional embodiment further generates an image acquisition prompt after determining that the face image does not meet the adjustment conditions of the ISP, and will help to improve the accuracy of acquiring the face image that meets the adjustment conditions of the ISP, thereby Improve the accuracy of dynamic adjustment of ISP.
本发明实施例中,针对步骤201、步骤204-步骤206的相关描述请参照实施例一中针对步骤101-步骤104的详细描述,本发明实施例不再赘述。In this embodiment of the present invention, for related descriptions of
可见,实施图2所描述的基于人脸图像的ISP自适应调整控制方法通过将图像采集设备的ISP与承载有人脸图像质量评估模型的人脸相关应用结合起来,将采集到的人脸图像输入人脸图像质量评估模型进行分析,能够根据图像分析参数,即ISP的成像质量,评估ISP的参数设置,当ISP需要调整时,将根据图像分析参数调整ISP,以及重新获取人脸图像执行同样ISP的调整操作,能够实现ISP的动态调整,使ISP一直处于与人脸应用相契合的状态,实现实时、精准的人脸图像的获取,有助于保证人脸应用获取到相对稳定的高质量人脸输入数据,从而提高人脸验证(例如:门禁刷脸认证等)的有效性以及安全性;以及根据人脸成像结果自适应的调整ISP,在不增加成本的前提下,充分利用现有图像采集设备ISP自我调节功能,明显改善了现有图像设备的ISP成像效果。此外,还能够减少由于人脸图像不满足ISP的调整条件却使用其调整ISP而导致ISP调整发生错误的情况发生,有利于提高ISP的动态调整的准确性,以及减少图像处理系统的功耗;还有利于获取到满足ISP的调整条件的图像,进而有利于ISP的动态调整;还能够提供多种人脸图像满足ISP的调整条件的判断方式,提高了人脸图像满足ISP的调整条件的判断准确性以及灵活性,有利于提高后续ISP的调整准确性。It can be seen that the ISP adaptive adjustment control method based on the face image described in FIG. 2 is implemented by combining the ISP of the image acquisition device with the face-related application carrying the face image quality assessment model, and the collected face image is input. The face image quality evaluation model is used for analysis, which can evaluate the parameter settings of the ISP according to the image analysis parameters, that is, the imaging quality of the ISP. When the ISP needs to be adjusted, the ISP will be adjusted according to the image analysis parameters, and the face image will be re-acquired to perform the same ISP. The adjustment operation can realize the dynamic adjustment of the ISP, so that the ISP is always in a state in line with the face application, realize the acquisition of real-time and accurate face images, and help ensure that the face application can obtain relatively stable and high-quality faces. Input data to improve the effectiveness and security of face verification (for example, access control face recognition, etc.); and adaptively adjust ISP according to the results of face imaging, making full use of existing image acquisition without increasing costs The ISP self-adjustment function of the equipment has significantly improved the ISP imaging effect of the existing image equipment. In addition, it can also reduce the occurrence of errors in ISP adjustment due to the fact that the face image does not meet the adjustment conditions of the ISP but uses it to adjust the ISP, which is beneficial to improve the accuracy of the dynamic adjustment of the ISP and reduce the power consumption of the image processing system; It is also beneficial to obtain images that meet the adjustment conditions of the ISP, which is conducive to the dynamic adjustment of the ISP; it can also provide a variety of judgment methods for the face image to meet the adjustment conditions of the ISP, which improves the judgment of the face image meeting the adjustment conditions of the ISP. The accuracy and flexibility are beneficial to improve the adjustment accuracy of the subsequent ISP.
实施例三Embodiment 3
请参阅图3,图3是本发明实施例公开的一种基于人脸图像的ISP自适应调整控制装置的结构示意图。其中,图3所描述的基于人脸图像的ISP自适应调整控制装置适用于图像处理系统中,其中,该图像处理系统可以用于调整ISP,且该图像处理系统内置于可以采集人脸的终端设备中,其中,该终端设备包括用户终端和/或门禁设备等。如图3所示,该基于人脸图像的ISP自适应调整控制装置可以包括获取模块301、分析模块302、第一判断模块303以及调整模块304,其中:Please refer to FIG. 3 . FIG. 3 is a schematic structural diagram of an ISP adaptive adjustment control device based on a face image disclosed in an embodiment of the present invention. The ISP adaptive adjustment and control device based on the face image described in FIG. 3 is suitable for use in an image processing system, wherein the image processing system can be used to adjust the ISP, and the image processing system is built in a terminal that can collect faces equipment, wherein the terminal equipment includes user terminals and/or access control equipment, etc. As shown in FIG. 3 , the ISP adaptive adjustment control device based on the face image may include an
获取模块301,用于获取图像采集设备采集到的人脸图像。The acquiring
分析模块302,用于将上述人脸图像输入预先确定出的人脸图像质量评估模型中进行分析。The
获取模块301,还用于获取上述人脸图像质量评估模型的分析结果,作为上述人脸图像的图像分析参数;The obtaining
第一判断模块303,用于根据上述图像分析参数判断上述图像采集设备对应的ISP是否需要调整。The
调整模块304,用于当第一判断模块303判断出上述ISP需要调整时,根据上述图像分析参数调整该ISP,直至该ISP的参数满足预设条件,并触发获取模块301重新执行上述的获取图像采集设备采集到的人脸图像的操作。The
可见,实施图3所描述的基于人脸图像的ISP自适应调整控制装置通过将图像采集设备的ISP与承载有人脸图像质量评估模型的人脸相关应用结合起来,将采集到的人脸图像输入人脸图像质量评估模型进行分析,能够根据图像分析参数,即ISP的成像质量,评估ISP的参数设置,当ISP需要调整时,将根据图像分析参数调整ISP,以及重新获取人脸图像执行同样ISP的调整操作,能够实现ISP的动态调整,使ISP一直处于与人脸应用相契合的状态,实现实时、精准的人脸图像的获取,有助于保证人脸应用获取到相对稳定的高质量人脸输入数据,从而提高人脸验证(例如:门禁刷脸认证等)的有效性以及安全性;以及根据人脸成像结果自适应的调整ISP,在不增加成本的前提下,充分利用现有图像采集设备ISP自我调节功能,明显改善了现有图像设备的ISP成像效果。It can be seen that the ISP adaptive adjustment control device based on the face image described in FIG. 3 combines the ISP of the image acquisition device with the face-related application carrying the face image quality assessment model, and the collected face image is input. The face image quality evaluation model is used for analysis, which can evaluate the parameter settings of the ISP according to the image analysis parameters, that is, the imaging quality of the ISP. When the ISP needs to be adjusted, the ISP will be adjusted according to the image analysis parameters, and the face image will be re-acquired to perform the same ISP. The adjustment operation can realize the dynamic adjustment of the ISP, so that the ISP is always in a state in line with the face application, realize the acquisition of real-time and accurate face images, and help ensure that the face application can obtain relatively stable and high-quality faces. Input data to improve the effectiveness and security of face verification (for example, access control face recognition, etc.); and adaptively adjust ISP according to the results of face imaging, making full use of existing image acquisition without increasing costs The ISP self-adjustment function of the equipment has significantly improved the ISP imaging effect of the existing image equipment.
在一个可选的实施例中,上述图像分析参数包括人脸图像的曝光参数、人脸图像的白平衡参数以及人脸图像的聚焦参数中的至少一种;In an optional embodiment, the above-mentioned image analysis parameters include at least one of exposure parameters of the face image, white balance parameters of the face image, and focus parameters of the face image;
其中,第一判断模块303可以包括第一判断子模块或第二判断子模块或第三判断子模块,其中,第一判断子模块包括截取单元、获取单元、判断单元以及确定单元,需要说明的是,这些子模块以及单元均未在相应的图中示出,其中:The
截取单元,用于当上述图像分析参数为上述人脸图像的曝光参数时,基于确定出的人脸关键点对应的标定结果截取上述人脸图像,得到目标人脸区域,其中,该目标人脸区域的面积小于人脸图像的面积。An intercepting unit, configured to intercept the above-mentioned face image based on the calibration result corresponding to the determined face key points when the above-mentioned image analysis parameter is the exposure parameter of the above-mentioned face image, to obtain a target face region, wherein the target face The area of the region is smaller than the area of the face image.
获取单元,用于获取上述目标人脸区域对应的第一亮度值。an obtaining unit, configured to obtain the first brightness value corresponding to the target face region.
判断单元,用于判断上述第一亮度值是否大于等于预设亮度值阈值。A determination unit, configured to determine whether the first brightness value is greater than or equal to a preset brightness value threshold.
确定单元,用于当上述判断单元判断出上述第一亮度值大于等于上述预设亮度值阈值时,确定图像采集设备对应的ISP需要调整;或者,a determining unit, configured to determine that the ISP corresponding to the image capturing device needs to be adjusted when the determining unit determines that the first brightness value is greater than or equal to the preset brightness value threshold; or,
第二判断子模块,用于当上述图像分析参数为上述人脸图像的白平衡参数时,确定上述目标人脸区域的RGB三个通道中每个通道的均值,并根据所有均值判断所有通道的比例分配是否与预先确定出的比例分配相匹配,当判断出结果为否时,确定上述图像采集设备对应的ISP需要调整;或者,The second judging submodule is configured to determine the mean value of each channel in the three RGB channels of the target face region when the image analysis parameter is the white balance parameter of the face image, and judge the average value of all channels according to all the mean values. Whether the proportional distribution matches the pre-determined proportional distribution, when it is determined that the result is no, it is determined that the ISP corresponding to the above-mentioned image capture device needs to be adjusted; or,
第三判断子模块,用于当上述图像分析参数为上述人脸图像的聚焦参数时,获取上述目标人脸区域出现在上述图像采集设备的目标位置,并判断该目标位置是否处于预先确定出的位置范围内,当判断出结果为否时,确定上述图像采集设备对应的ISP需要调整。The third judging sub-module is configured to acquire the target position where the target face region appears in the image acquisition device when the image analysis parameter is the focus parameter of the face image, and judge whether the target position is within the predetermined target position. Within the location range, when it is determined that the result is no, it is determined that the ISP corresponding to the above image acquisition device needs to be adjusted.
可见,实施基于人脸图像的ISP自适应调整控制装置还能够通过获取人脸图像的亮度值,并将该亮度值与预设亮度值进行比较,和/或,判断人脸图像的RGB三个通道的分配是否合理,和/或,将获取到人脸图像出现在图像采集设备的位置与预先确定出的位置范围进行比较,能够实现在图像采集设备曝光过度的情况下ISP需要调整的判断;以及通过提供多种ISP需要调整的确定方式,不仅能够提高ISP需要调整的判断准确性以及灵活性;以及在获取人脸图像的亮度之前,进一步通过人脸关键点对应的标定结果截取人脸图像,能够提高人脸图像的亮度值的确定效率以及准确性,从而有利于提高ISP需要调整与否的判断准确性以及可靠性。It can be seen that the implementation of the ISP adaptive adjustment control device based on the face image can also obtain the brightness value of the face image, and compare the brightness value with the preset brightness value, and/or, judge the RGB three of the face image. Whether the allocation of channels is reasonable, and/or, comparing the position where the acquired face image appears on the image capture device with the pre-determined position range can realize the judgment that the ISP needs to adjust when the image capture device is overexposed; And by providing a variety of ways to determine the ISP needs to be adjusted, it can not only improve the judgment accuracy and flexibility of the ISP need to adjust; and before obtaining the brightness of the face image, further intercept the face image through the calibration results corresponding to the key points of the face. , which can improve the efficiency and accuracy of determining the brightness value of the face image, thereby helping to improve the accuracy and reliability of whether the ISP needs to be adjusted.
在另一个可选的实施例中,获取单元,还用于当判断单元判断出上述第一亮度值不大于等于预设亮度值阈值时,按照预设扩大方式扩大上述目标人脸区域的有效面积,得到扩大后的目标人脸区域,该预设扩大方式为基于该目标人脸区域的中心位置所设置的方式。In another optional embodiment, the acquisition unit is further configured to expand the effective area of the target face region according to a preset expansion method when the determination unit determines that the first brightness value is not greater than or equal to a preset brightness value threshold , to obtain an enlarged target face area, and the preset enlargement method is a method set based on the center position of the target face area.
确定单元,还用于确定上述扩大后的目标人脸区域对应的背景区域的第二亮度值。The determining unit is further configured to determine the second brightness value of the background region corresponding to the enlarged target face region.
获取单元,还用于基于上述第一亮度值与上述第二亮度值计算上述人脸图像的逆光度。The acquiring unit is further configured to calculate the backlight intensity of the face image based on the first brightness value and the second brightness value.
判断单元,用于判断逆光度是否小于等于预设逆光度阈值,当判断出逆光度小于等于预设逆光度阈值时,触发确定单元执行上述的确定图像采集设备对应的ISP需要调整的操作。The determining unit is configured to determine whether the backlight intensity is less than or equal to the preset backlight intensity threshold, and when it is determined that the backlight intensity is less than or equal to the preset backlight intensity threshold, trigger the determining unit to perform the above-mentioned operation of determining that the ISP corresponding to the image capture device needs to be adjusted.
可见,实施基于人脸图像的ISP自适应调整控制装置还能够通过当判断出人脸区域的亮度值较小时,通过计算人脸区域扩大后对应的背景区域的亮度值,并基于这两个亮度值的获取人脸图像的逆光度,以及在确定出人脸图像的逆光度较小时,确定ISP需要调整,从而提高在图像采集设备曝光不足的情况实现ISP需要调整的判断,能够提高ISP需要调整的确定准确性,从而有利于ISP的全方位动态调整,进而有利于后续采集到动态图像的准确性。It can be seen that the implementation of the ISP adaptive adjustment control device based on the face image can also calculate the brightness value of the background region corresponding to the enlarged face region when it is determined that the brightness value of the face region is small, and based on the two brightness values. Obtain the backlight of the face image, and when it is determined that the backlight of the face image is small, determine that the ISP needs to be adjusted, so as to improve the judgment that the ISP needs to be adjusted in the case of insufficient exposure of the image acquisition device, which can improve the ISP needs to be adjusted. Therefore, it is beneficial to the all-round dynamic adjustment of the ISP, which is beneficial to the accuracy of the subsequent acquisition of dynamic images.
在又一个可选的实施例中,上述基于人脸图像的ISP自适应调整控制装置还可以包括第二判断模块305,此时,该基于人脸图像的ISP自适应调整控制装置可以如图4所示,图4为另一种基于人脸图像的ISP自适应调整控制装置的结构示意图,其中:In yet another optional embodiment, the above-mentioned ISP adaptive adjustment and control device based on a face image may further include a
第二判断模块305,用于在获取模块301获取图像采集设备采集到的人脸图像之前,根据ISP的当前状态判断该ISP是否需要调整;当判断出该ISP需要调整时,触发获取模块301执行上述的获取图像采集设备采集到的人脸图像的操作。The
该可选的实施例中,可选的,如图4所示,第二判断模块305可以包括读取子模块3051、获取子模块3052、计算子模块3053以及第四判断子模块3054,其中:In this optional embodiment, optionally, as shown in FIG. 4 , the
读取子模块3051,用于读取上述ISP对应的图像处理系统当前显示的目标时刻。The reading sub-module 3051 is used to read the target time currently displayed by the image processing system corresponding to the above ISP.
获取子模块3052,用于获取上一次调整上述ISP对应的完成时刻。The obtaining sub-module 3052 is configured to obtain the completion time corresponding to the last adjustment of the above-mentioned ISP.
计算子模块3053,用于计算上述目标时刻与上述完成时刻之间的间隔时长。The
第四判断子模块3054,用于判断上述间隔时长是否小于等于预先确定出的间隔时长阈值。The fourth judging sub-module 3054 is configured to judge whether the above-mentioned interval duration is less than or equal to a predetermined interval duration threshold.
获取子模块3052,还用于当第四判断子模块3054判断出上述间隔时长小于等于上述间隔时长阈值时,确定上述ISP需要调整。The acquisition submodule 3052 is further configured to determine that the ISP needs to be adjusted when the
可见,实施图4所描述的基于人脸图像的ISP自适应调整控制装置还能够通过在获取人脸图像之前,先根据ISP的当前状态判断ISP是否需要调整,若需要调整,方可执行获取人脸图像的操作,能够减少在不需要调整ISP,即图像采集设备的各项指标(例如:白平衡等)与当前环境相匹配的情况下对ISP执行调整操作的情况发生,有利于减少ISP发生错误调整而导致图像采集设备采集到质量较差的人脸图像的情况发生以及减少系统的功耗,提高系统的使用寿命。It can be seen that the implementation of the ISP adaptive adjustment control device based on the face image described in FIG. 4 can also determine whether the ISP needs to be adjusted according to the current state of the ISP before acquiring the face image. The face image operation can reduce the need to adjust the ISP, that is, when the various indicators (such as: white balance, etc.) of the image acquisition device match the current environment, the ISP adjustment operation can be reduced, which is conducive to reducing the occurrence of ISP. Incorrect adjustment leads to the situation that the image acquisition device collects the face image of poor quality, which reduces the power consumption of the system and improves the service life of the system.
在又一个可选的实施例中,如图4所示,获取子模块3052,还用于在第四判断子模块3054判断出上述间隔时长小于等于上述间隔时长阈值之后,以及确定上述ISP需要调整之前,获取在第一预设时长内上述ISP的总调整次数,其中,该第一预设时长的截止时刻为上一次调整ISP的时刻。In yet another optional embodiment, as shown in FIG. 4 , the obtaining sub-module 3052 is further configured to determine that the ISP needs to be adjusted after the fourth judging sub-module 3054 determines that the interval duration is less than or equal to the interval duration threshold. Before, the total number of times of adjustment of the ISP within a first preset time period is acquired, wherein the cut-off time of the first preset time period is the last time the ISP was adjusted.
第四判断子模块3054,还用于判断上述总调整次数是否小于预设调整次数阈值,当判断出该总调整次数小于预设调整次数阈值时,触发获取子模块3052执行上述的确定ISP需要调整的操作。The fourth judging sub-module 3054 is also used to judge whether the above-mentioned total adjustment times is less than the preset adjustment times threshold. When judging that the total adjustment times is less than the preset adjustment times threshold, trigger the acquisition sub-module 3052 to execute the above-mentioned determination that the ISP needs to be adjusted operation.
可见,实施图4所描述的基于人脸图像的ISP自适应调整控制装置还能够通过在判断出距离上一次调整ISP的时间较短时,进一步在判断出图像处理系统在本次运行过程中ISP的总调整次数较小时,才确定ISP需要调整,能够提高ISP需要调整的判断准确性;以及通过限制ISP在系统本次运行过程中的调整总次数,能够满足ISP的性能要求以及适应复杂的环境,从而提升用户的体验。It can be seen that the implementation of the ISP adaptive adjustment control device based on the face image described in FIG. 4 can further determine that the ISP of the image processing system is in the current running process when it is determined that the time to adjust the ISP last time is short. When the total number of adjustment times of the ISP is small, it is determined that the ISP needs to be adjusted, which can improve the accuracy of the judgment of the ISP needs to be adjusted; and by limiting the total number of adjustments made by the ISP in the system operation process, it can meet the performance requirements of the ISP and adapt to complex environments. , so as to improve the user experience.
在又一个可选的实施例中,如图4所示,上述基于人脸图像的ISP自适应调整控制装置还可以包括确定模块306以及第三判断模块307,其中:In yet another optional embodiment, as shown in FIG. 4 , the above-mentioned ISP adaptive adjustment control device based on a face image may further include a
确定模块306,用于在获取模块301获取图像采集设备采集到的人脸图像之后,以及在分析模块302将该人脸图像输入预先确定出的人脸图像质量评估模型中进行分析之前,确定人脸图像对应的图像参数,该图像参数包括人脸图像的面积、人脸图像出现在上述图像采集设备的位置以及人脸图像的面部信息中的至少一种,该人脸图像的面部信息包括人脸图像的左虚拟瞳孔的位置、右虚拟瞳孔的位置、虚拟嘴巴的左侧嘴角的位置、虚拟嘴巴的右侧嘴角的位置以及虚拟鼻尖的位置。The
第三判断模块307,用于根据上述图像参数判断上述人脸图像是否满足预先确定出的上述ISP的调整条件,当判断出该人脸图像满足该ISP的调整条件时,触发分析模块302执行上述的人脸图像输入预先确定出的人脸图像质量评估模型中进行分析的操作。The
可见,实施图4所描述的基于人脸图像的ISP自适应调整控制装置还能够通过在获取到人脸图像之后,进一步判断该人脸图像是否满足ISP的调整条件,并在判断出满足ISP的调整条件时,才执行后续操作,能够减少由于人脸图像不满足ISP的调整条件却使用其调整ISP而导致ISP调整发生错误的情况发生,有利于提高ISP的动态调整的准确性,以及减少图像处理系统的功耗;在判断出不满足ISP的调整条件时,重新触发获取人脸图像的操作,有利于获取到满足ISP的调整条件的图像,进而有利于ISP的动态调整。It can be seen that the implementation of the ISP adaptive adjustment control device based on the face image described in FIG. 4 can also further determine whether the face image satisfies the adjustment conditions of the ISP after obtaining the face image, and after judging that the face image satisfies the adjustment conditions of the ISP. Follow-up operations are performed only when the conditions are adjusted, which can reduce the occurrence of errors in ISP adjustment due to the fact that the face image does not meet the adjustment conditions of the ISP but use it to adjust the ISP, which is beneficial to improve the accuracy of the dynamic adjustment of the ISP and reduce the number of images The power consumption of the processing system; when it is judged that the adjustment conditions of the ISP are not met, the operation of acquiring the face image is re-triggered, which is conducive to obtaining images that meet the adjustment conditions of the ISP, and is further conducive to the dynamic adjustment of the ISP.
在又一个可选的实施例中,如图4所示,上述基于人脸图像的ISP自适应调整控制装置还可以包括第四判断模块308,其中:In yet another optional embodiment, as shown in FIG. 4 , the above-mentioned ISP adaptive adjustment control device based on a face image may further include a
第四判断模块308,用于在调整模块304根据上述图像分析参数调整上述ISP,直至该ISP的当前参数满足预设条件之后,以及在触发获取模块301重新触发执行上述的获取图像采集设备采集到的人脸图像的操作之前,判断该ISP对应的图像处理系统的实时显示时刻是否到达第二预设时长的截止时刻,当判断出该实时显示时刻到达第二预设时长的截止时刻时,触发获取模块301重新触发执行上述的获取图像采集设备采集到的人脸图像的操作,该第二预设时长的起始时刻为确定出ISP需要调整的时刻。The
可见,实施图4所描述的基于人脸图像的ISP自适应调整控制装置还能够通过在ISP调整完成之后,先判断当前时刻是否达到预设时刻,若达到,则重新执行获取人脸图像的操作,能够满足ISP的参数从写入寄存器到生效需要一定时间的要求,从而减少后续直接读取图像可能破坏图像处理系统的稳定性的情况发生,进而保证图像处理系统运行的稳定性。It can be seen that the implementation of the ISP adaptive adjustment control device based on the face image described in FIG. 4 can also determine whether the current moment reaches the preset moment after the ISP adjustment is completed, and if it does, re-execute the operation of acquiring the face image , which can meet the requirement that the parameters of the ISP take a certain time from being written to the register to take effect, thereby reducing the occurrence of subsequent direct reading of the image that may damage the stability of the image processing system, thereby ensuring the stability of the image processing system.
实施例四Embodiment 4
请参阅图5,图5是本发明实施例公开的又一种基于人脸图像的ISP自适应调整控制装置。其中,图5所描述的装置可以应用于图像处理系统中,其中,该图像处理系统可以用于调整ISP,且该图像处理系统内置于可以采集人脸的终端设备中,其中,该终端设备包括用户终端和/或门禁设备等。如图5所示,该基于人脸图像的ISP自适应调整控制装置可以包括:Please refer to FIG. 5. FIG. 5 is another apparatus for self-adaptive adjustment and control of ISP based on a face image disclosed in an embodiment of the present invention. The apparatus described in FIG. 5 can be applied to an image processing system, wherein the image processing system can be used to adjust the ISP, and the image processing system is built in a terminal device that can collect faces, wherein the terminal device includes User terminals and/or access control devices, etc. As shown in FIG. 5 , the ISP adaptive adjustment control device based on the face image may include:
存储有可执行程序代码的存储器501;a
与存储器501耦合的处理器502;a
进一步的,还可以包括与处理器502耦合的输入接口503和输出接口504;Further, it may also include an
其中,处理器502调用存储器501中存储的可执行程序代码,用于执行实施例一或实施例二所描述的基于人脸图像的ISP自适应调整控制方法的步骤。The
实施例五Embodiment 5
本发明实施例公开了一种计算机读存储介质,其存储用于电子数据交换的计算机程序,其中,该计算机程序使得计算机执行实施例一或实施例二所描述的基于人脸图像的ISP自适应调整控制方法的步骤。An embodiment of the present invention discloses a computer-readable storage medium, which stores a computer program for electronic data exchange, wherein the computer program enables a computer to execute the face image-based ISP adaptation described in the first or second embodiment Steps to adjust the control method.
实施例六Embodiment 6
本发明实施例公开了一种计算机程序产品,该计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,且该计算机程序可操作来使计算机执行实施例一或实施例二所描述的基于人脸图像的ISP自适应调整控制方法的步骤。An embodiment of the present invention discloses a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute the description in the first embodiment or the second embodiment. The steps of ISP adaptive adjustment control method based on face image.
以上所描述的装置实施例仅是示意性的,其中所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, wherein the modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in One place, or it can be distributed over multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.
通过以上的实施例的具体描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(ErasableProgrammable Read Only Memory,EPROM)、一次可编程只读存储器(One-timeProgrammable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(CompactDisc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。From the specific description of the above embodiments, those skilled in the art can clearly understand that each implementation manner can be implemented by means of software plus a necessary general hardware platform, and certainly can also be implemented by means of hardware. Based on such understanding, the above-mentioned technical solutions can be embodied in the form of software products in essence or that make contributions to the prior art. The computer software products can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory. (Read-Only Memory, ROM), Random Access Memory (Random Access Memory, RAM), Programmable Read-only Memory (Programmable Read-only Memory, PROM), Erasable Programmable Read Only Memory (Erasable Programmable Read Only Memory, EPROM) , One-time Programmable Read-Only Memory (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM), CompactDisc Read-Only Memory , CD-ROM) or other optical disk storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
最后应说明的是:本发明实施例公开的基于人脸图像的ISP自适应调整控制方法以及装置所揭露的仅为本发明较佳实施例而已,仅用于说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解;其依然可以对前述各项实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或替换,并不使相应的技术方案的本质脱离本发明各项实施例技术方案的精神和范围。Finally, it should be noted that the method and device for self-adaptive adjustment and control of ISP based on face images disclosed in the embodiments of the present invention are only preferred embodiments of the present invention, and are only used to illustrate the technical solutions of the present invention, not It is limited; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that; it is still possible to modify the technical solutions recorded in the foregoing embodiments, or perform some technical features. Equivalent replacement; and 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.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010856033.1A CN114092383A (en) | 2020-08-24 | 2020-08-24 | ISP adaptive adjustment control method and device based on face image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010856033.1A CN114092383A (en) | 2020-08-24 | 2020-08-24 | ISP adaptive adjustment control method and device based on face image |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114092383A true CN114092383A (en) | 2022-02-25 |
Family
ID=80295408
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010856033.1A Pending CN114092383A (en) | 2020-08-24 | 2020-08-24 | ISP adaptive adjustment control method and device based on face image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114092383A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114897731A (en) * | 2022-05-13 | 2022-08-12 | 济南博观智能科技有限公司 | Image signal processing method, device, equipment and storage medium |
CN118134932A (en) * | 2024-05-08 | 2024-06-04 | 吉林大学 | A method and system for identifying patient injuries based on computer vision |
WO2024202830A1 (en) * | 2023-03-30 | 2024-10-03 | ソニーグループ株式会社 | Information processing device, information processing method, and program |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102013006A (en) * | 2009-09-07 | 2011-04-13 | 泉州市铁通电子设备有限公司 | Method for automatically detecting and identifying face on the basis of backlight environment |
WO2015109693A1 (en) * | 2014-01-22 | 2015-07-30 | 中兴通讯股份有限公司 | Method and system for image color calibration |
WO2017096865A1 (en) * | 2015-12-08 | 2017-06-15 | 乐视控股(北京)有限公司 | Method and device for processing human face-containing image |
CN107465903A (en) * | 2017-09-08 | 2017-12-12 | 广东欧珀移动通信有限公司 | Image white balance method, device and computer-readable storage medium |
CN107592473A (en) * | 2017-10-31 | 2018-01-16 | 广东欧珀移动通信有限公司 | Exposure parameter adjustment method, device, electronic device and readable storage medium |
CN108197546A (en) * | 2017-12-26 | 2018-06-22 | 深圳市友信长丰科技有限公司 | Photo-irradiation treatment method, apparatus, computer equipment and storage medium in recognition of face |
CN108875477A (en) * | 2017-08-14 | 2018-11-23 | 北京旷视科技有限公司 | Exposal control method, device and system and storage medium |
CN109194884A (en) * | 2018-10-29 | 2019-01-11 | 广州华多网络科技有限公司 | Survey light processing method, apparatus, storage medium and equipment |
WO2019061042A1 (en) * | 2017-09-26 | 2019-04-04 | 深圳传音通讯有限公司 | Exposure compensation method, device and computer readable storage medium |
CN111368596A (en) * | 2018-12-26 | 2020-07-03 | 北京眼神智能科技有限公司 | Face recognition backlight compensation method and device, readable storage medium and equipment |
-
2020
- 2020-08-24 CN CN202010856033.1A patent/CN114092383A/en active Pending
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102013006A (en) * | 2009-09-07 | 2011-04-13 | 泉州市铁通电子设备有限公司 | Method for automatically detecting and identifying face on the basis of backlight environment |
WO2015109693A1 (en) * | 2014-01-22 | 2015-07-30 | 中兴通讯股份有限公司 | Method and system for image color calibration |
WO2017096865A1 (en) * | 2015-12-08 | 2017-06-15 | 乐视控股(北京)有限公司 | Method and device for processing human face-containing image |
CN108875477A (en) * | 2017-08-14 | 2018-11-23 | 北京旷视科技有限公司 | Exposal control method, device and system and storage medium |
CN107465903A (en) * | 2017-09-08 | 2017-12-12 | 广东欧珀移动通信有限公司 | Image white balance method, device and computer-readable storage medium |
WO2019061042A1 (en) * | 2017-09-26 | 2019-04-04 | 深圳传音通讯有限公司 | Exposure compensation method, device and computer readable storage medium |
CN107592473A (en) * | 2017-10-31 | 2018-01-16 | 广东欧珀移动通信有限公司 | Exposure parameter adjustment method, device, electronic device and readable storage medium |
CN108197546A (en) * | 2017-12-26 | 2018-06-22 | 深圳市友信长丰科技有限公司 | Photo-irradiation treatment method, apparatus, computer equipment and storage medium in recognition of face |
CN109194884A (en) * | 2018-10-29 | 2019-01-11 | 广州华多网络科技有限公司 | Survey light processing method, apparatus, storage medium and equipment |
CN111368596A (en) * | 2018-12-26 | 2020-07-03 | 北京眼神智能科技有限公司 | Face recognition backlight compensation method and device, readable storage medium and equipment |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114897731A (en) * | 2022-05-13 | 2022-08-12 | 济南博观智能科技有限公司 | Image signal processing method, device, equipment and storage medium |
WO2024202830A1 (en) * | 2023-03-30 | 2024-10-03 | ソニーグループ株式会社 | Information processing device, information processing method, and program |
CN118134932A (en) * | 2024-05-08 | 2024-06-04 | 吉林大学 | A method and system for identifying patient injuries based on computer vision |
CN118134932B (en) * | 2024-05-08 | 2024-08-02 | 吉林大学 | Patient injury identification method and system based on computer vision |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
RU2762142C1 (en) | Method and apparatus for determining the key point of the face, computer apparatus, and data storage | |
US11093773B2 (en) | Liveness detection method, apparatus and computer-readable storage medium | |
US20200160040A1 (en) | Three-dimensional living-body face detection method, face authentication recognition method, and apparatuses | |
WO2018219180A1 (en) | Method and apparatus for determining facial image quality, as well as electronic device and computer storage medium | |
US10268862B2 (en) | Fingerprint collection method, fingerprint collector, and terminal | |
CN114092383A (en) | ISP adaptive adjustment control method and device based on face image | |
WO2019011073A1 (en) | Human face live detection method and related product | |
WO2021169686A1 (en) | Photo capture control method and apparatus and computer readable storage medium | |
CN107945135A (en) | Image processing method, device, storage medium and electronic equipment | |
CN110717452B (en) | Image recognition method, device, terminal and computer readable storage medium | |
WO2021008205A1 (en) | Image processing | |
CN111080571B (en) | Camera shielding state detection method, device, terminal and storage medium | |
CN113780212A (en) | User identity verification method, device, equipment and storage medium | |
CN110705356B (en) | Function control method and related equipment | |
JP2023540273A (en) | Image processing method, device, and storage medium using eye condition detection | |
CN106210522A (en) | A kind of image processing method, device and mobile terminal | |
CN105704395B (en) | Photographic method and camera arrangement | |
CN108198189B (en) | Picture definition obtaining method and device, storage medium and electronic equipment | |
WO2019129041A1 (en) | Brightness adjustment method, apparatus, terminal, and computer readable storage medium | |
CN103873755B (en) | Jump portrait system and method | |
WO2019223066A1 (en) | Global enhancement method, device and equipment for iris image, and storage medium | |
CN111489823A (en) | Hair health condition evaluation method and device, mobile terminal and storage medium | |
CN111669575A (en) | Method, system, electronic device, medium and terminal for testing image processing effect | |
CN110008911A (en) | Image processing method, apparatus, electronic device, and computer-readable storage medium | |
CN110781473B (en) | Method for recognizing and preprocessing face picture |
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 |