WO2020107196A1 - Photographing quality evaluation method and apparatus for photographing apparatus, and terminal device - Google Patents

Photographing quality evaluation method and apparatus for photographing apparatus, and terminal device Download PDF

Info

Publication number
WO2020107196A1
WO2020107196A1 PCT/CN2018/117610 CN2018117610W WO2020107196A1 WO 2020107196 A1 WO2020107196 A1 WO 2020107196A1 CN 2018117610 W CN2018117610 W CN 2018117610W WO 2020107196 A1 WO2020107196 A1 WO 2020107196A1
Authority
WO
WIPO (PCT)
Prior art keywords
evaluation
image data
card
calibration
picture
Prior art date
Application number
PCT/CN2018/117610
Other languages
French (fr)
Chinese (zh)
Inventor
罗如君
普贵翔
孙华东
翁松伟
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2018/117610 priority Critical patent/WO2020107196A1/en
Priority to CN201880065225.1A priority patent/CN111226437A/en
Publication of WO2020107196A1 publication Critical patent/WO2020107196A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/002Diagnosis, testing or measuring for television systems or their details for television cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details

Abstract

A photographing quality evaluation method and apparatus for photographing apparatus, and a terminal device. The method comprises: acquiring image data obtained by a photographing apparatus that photographs an evaluation graphic card comprising at least two evaluation sub-graphic cards; identifying a calibration point in the image data based on a calibration point pattern; and determining at least two regions to be evaluated in the image data based on layout rules of at least two evaluation sub-graphic cards at the identified calibration points in the evaluation card; finally, using evaluation rules corresponding to the at least two regions to be evaluated to evaluate each region to be evaluate separately so as to obtain a photographing quality evaluation result of the photographing apparatus. By using the embodiment of the present invention, multiple evaluation indexes for measuring photographing quality can be evaluated in one go, and regions to be evaluated corresponding to each evaluation index are automatically identified, thereby saving on evaluation time and improving evaluation efficiency.

Description

一种对拍摄装置的拍摄质量评测方法、装置及终端设备Method, device and terminal equipment for evaluating shooting quality of shooting device 技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种对拍摄装置的拍摄质量评测方法、装置及终端设备。The present invention relates to the field of communication technology, and in particular, to a method, device, and terminal device for evaluating a shooting quality of a shooting device.
背景技术Background technique
一般情况下,在使用拍摄装置进行拍摄之前,需要先调节拍摄装置的配置以使得拍摄装置达到较好的拍摄状态,从而拍摄出较高质量的图片。在对拍摄装置的拍摄状态进行调节之前,需要测试拍摄装置处于当前拍摄状态下的拍摄质量,以判断出如何调整拍摄装置以使其达到最佳的拍摄状态。在拍摄装置的拍摄质量评测中,除了人眼的主观感受外,常使用色彩准确度、色彩饱和度、清晰度以及信噪比等客观的评测指标对拍摄装置的拍摄质量进行定量分析。对拍摄装置的评测指标进行评测需要借助测试图卡。In general, before shooting with the camera, you need to adjust the configuration of the camera to make the camera reach a better shooting state, so as to shoot a higher quality picture. Before adjusting the shooting state of the shooting device, it is necessary to test the shooting quality of the shooting device in the current shooting state to determine how to adjust the shooting device to achieve the best shooting state. In the evaluation of the shooting quality of the shooting device, in addition to the subjective perception of the human eye, objective assessment indicators such as color accuracy, color saturation, sharpness, and signal-to-noise ratio are often used to quantitatively analyze the shooting quality of the shooting device. A test chart is required to evaluate the evaluation index of the shooting device.
通常情况下,通过评测图卡对拍摄装置的拍摄质量进行定量分析的方法步骤是拍摄装置对多张单张测试图卡进行逐一拍摄,人工框选出待检测区域,然后终端设备调用专业分析软件对待检测区域进行逐一检测,测试效率低。此外,拍摄装置在每次测量之前,需要重新调整拍摄装置与测试图卡的相对位置,操作繁杂。Under normal circumstances, the method step of quantitative analysis of the shooting quality of the shooting device through the evaluation chart is that the shooting device shoots multiple single test charts one by one, manually selects the area to be detected, and then the terminal device calls professional analysis software The test area is tested one by one, and the test efficiency is low. In addition, before each measurement of the shooting device, the relative position of the shooting device and the test chart card needs to be readjusted, and the operation is complicated.
综上所述,在对拍摄装置的额拍摄质量评测领域,急需一种高效率的评测方法。To sum up, in the field of evaluation of the front-end shooting quality of the shooting device, an efficient evaluation method is urgently needed.
发明内容Summary of the invention
本发明实施例提供了一种对拍摄装置的拍摄质量评测方法、装置及终端设备,可以提高评测效率。Embodiments of the present invention provide a method, device, and terminal device for evaluating the shooting quality of a shooting device, which can improve the evaluation efficiency.
第一方面,本发明实施例提供了一种对拍摄装置的拍摄质量评测方法,包括:In a first aspect, an embodiment of the present invention provides a method for evaluating shooting quality of a shooting device, including:
获取拍摄装置对评测图卡进行拍摄所得的图像数据,所述评测图卡包括至少两个评测子图卡;Acquiring image data obtained by shooting an evaluation picture card by a shooting device, the evaluation picture card including at least two evaluation sub-picture cards;
基于标定点样式识别所述图像数据中的标定点;Identifying the calibration point in the image data based on the calibration point pattern;
基于识别到的标定点和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域;Determine at least two regions to be evaluated in the image data based on the identified calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card;
利用所述至少两个待评测区域对应的评测规则分别对每个待评测区域进行测评,得到所述拍摄装置的拍摄质量测评结果。The evaluation rules corresponding to the at least two areas to be evaluated are respectively evaluated for each area to be evaluated to obtain a shooting quality evaluation result of the shooting device.
第二方面,本发明实施例提供了一种对拍摄装置的拍摄质量评测装置,包括:In a second aspect, an embodiment of the present invention provides a shooting quality evaluation device for a shooting device, including:
获取单元,用于获取拍摄装置对评测图卡进行拍摄所得的图像数据,所述评测图卡包括至少两个评测子图卡;An obtaining unit, configured to obtain image data obtained by shooting the evaluation picture card by the shooting device, the evaluation picture card including at least two evaluation sub-picture cards;
处理单元,用于基于标定点样式识别所述图像数据中的标定点;A processing unit, configured to identify the calibration point in the image data based on the calibration point pattern;
所述处理单元,还用于基于识别到的标定点和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域;The processing unit is further configured to determine at least two areas to be evaluated in the image data based on the identified calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card;
所述处理单元,还用于利用所述至少两个待评测区域对应的评测规则分别对每个待评测区域进行测评,得到所述拍摄装置的拍摄质量测评结果。The processing unit is further configured to respectively evaluate each area to be evaluated using evaluation rules corresponding to the at least two areas to be evaluated to obtain a shooting quality evaluation result of the shooting device.
第三发明,本发明实施例提供了一种评测图卡,其特征在于,所述评测图卡用于评测拍摄装置的拍摄质量,所述评测图卡包括五个评测子图卡和二十个标定点:A third invention, an embodiment of the present invention provides an evaluation card, characterized in that the evaluation card is used to evaluate the shooting quality of a shooting device, and the evaluation card includes five evaluation sub-cards and twenty Calibration point:
所述五个评测子图卡分别是:用于评测清晰度的解析力斜边图卡、用于评测色彩准确度和饱和度的24色卡、用于评测画面平均亮度的灰卡、用于评测细节损失的枯叶图、以及用于评测信噪比或对比度的灰阶卡;The five evaluation sub-picture cards are respectively: resolution analysis hypotenuse picture card for evaluating sharpness, 24-color card for evaluating color accuracy and saturation, gray card for evaluating average brightness of the screen, and Dead leaf maps for evaluating loss of detail, and grayscale cards for evaluating signal-to-noise ratio or contrast;
所述二十个标定点用于划分所述五个评测子图卡;The twenty calibration points are used to divide the five evaluation sub-picture cards;
所述解析力斜边图卡配置于所述评测图卡的中心位置,所述24色卡配置于所述评测图卡的左下角位置,所述灰卡配置于所述评测图卡的左上角位置,所述枯叶图配置于所述评测图卡的右上角位置,所述灰阶卡配置于所述评测图卡的底部位置。The analytical force hypotenuse card is arranged at the center of the evaluation card, the 24-color card is arranged at the lower left corner of the evaluation card, and the gray card is arranged at the upper left corner of the evaluation card Position, the dead leaf map is arranged at the upper right corner of the evaluation chart card, and the grayscale card is arranged at the bottom position of the evaluation chart card.
第四方面,本发明实施例提供了一种终端设备,包括处理器和存储器,所述处理器和所述存储器相连接,所述存储器存储有计算机程序,计算机程序包括程序指令,处理器调用所述程序指令时用于执行:According to a fourth aspect, an embodiment of the present invention provides a terminal device including a processor and a memory. The processor is connected to the memory. The memory stores a computer program. The computer program includes program instructions. The program instructions are used to execute:
获取拍摄装置对评测图卡进行拍摄所得的图像数据,所述评测图卡包括至 少两个评测子图卡;Acquiring image data obtained by shooting the evaluation card by the shooting device, the evaluation card includes at least two evaluation sub-cards;
基于标定点样式识别所述图像数据中的标定点;Identifying the calibration point in the image data based on the calibration point pattern;
基于识别到的标定点和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域;Determine at least two regions to be evaluated in the image data based on the identified calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card;
利用所述至少两个待评测区域对应的评测规则分别对每个待评测区域进行测评,得到所述拍摄装置的拍摄质量测评结果。The evaluation rules corresponding to the at least two areas to be evaluated are respectively evaluated for each area to be evaluated to obtain a shooting quality evaluation result of the shooting device.
相应的,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序指令,所述计算机程序指令被执行时用于实现上述的第一方面所述的对拍摄装置的拍摄质量评测方法。Correspondingly, an embodiment of the present invention provides a computer-readable storage medium that stores computer program instructions, and when the computer program instructions are executed, they are used to implement the above-mentioned first aspect. Method for evaluating shooting quality of shooting device.
本发明实施例中,获取对评测图卡进行拍摄所得的图像数据,并基于预先设定的标定点样式识别图像数据中包括的标定点,进一步的基于识别到的标定点以及评测图卡的排版规则可自动确定出图像数据中的待评测区域,最后利用待评测区域对应的评测规则对待评测区域进行评测,评测图卡包括至少两个评测子图卡,因此获取到的对评测图卡进行拍摄所得的图像数据中至少包括两个待评测区域,每个待评测区域对应一个类别的评测指标,实现了一次性对多个类别的评测指标进行评测,且自动识别各个评测指标对应的待评测区域,节省评测时间,提高了评测效率。In the embodiment of the present invention, the image data obtained by shooting the evaluation card is acquired, and the calibration points included in the image data are identified based on the preset calibration point pattern, and further based on the identified calibration points and the layout of the evaluation card The rules can automatically determine the area to be evaluated in the image data, and finally use the evaluation rule corresponding to the area to be evaluated to evaluate the evaluation area. The evaluation card includes at least two evaluation sub-picture cards, so the captured evaluation picture is taken The obtained image data includes at least two areas to be evaluated, and each area to be evaluated corresponds to a category of evaluation indicators, which realizes the evaluation of multiple categories of evaluation indicators at one time, and automatically identifies the areas to be evaluated corresponding to each evaluation indicator To save evaluation time and improve evaluation efficiency.
附图说明BRIEF DESCRIPTION
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some of the present invention. For the embodiment, for those of ordinary skill in the art, without paying any creative labor, other drawings may be obtained based on these drawings.
图1为本发明实施例提供的一种使用单张图卡评测拍摄质量的示意图;1 is a schematic diagram of using a single picture card to evaluate shooting quality according to an embodiment of the present invention;
图2为本发明实施例提供的一种使用复合图卡评测拍摄质量的示意图;2 is a schematic diagram of using a composite graphics card to evaluate shooting quality according to an embodiment of the present invention;
图3为本发明实施例提供的一种对拍摄装置的拍摄质量评测方法的流程示意图;3 is a schematic flowchart of a method for evaluating a shooting quality of a shooting device according to an embodiment of the present invention;
图4a为本发明实施提供的一种标定点样式的示意图;4a is a schematic diagram of a calibration point pattern provided by the implementation of the present invention;
图4b为本发明实施例提供的另一种标定点样式的示意图;4b is a schematic diagram of another calibration point style provided by an embodiment of the present invention;
图4c为本发明实施例提供的又一种标定点样式的示意图;4c is a schematic diagram of another calibration point pattern provided by an embodiment of the present invention;
图5为本发明实施例提供的另一种对拍摄装置的拍摄质量评测方法的流程示意图;5 is a schematic flowchart of another method for evaluating the shooting quality of a shooting device according to an embodiment of the present invention;
图6为本发明实施例提供的一种标定点识别的流程示意图;6 is a schematic flowchart of a calibration point recognition provided by an embodiment of the present invention;
图7为本发明实施例提供的一种待评测区域识别的流程示意图;7 is a schematic flowchart of a region to be evaluated identification provided by an embodiment of the present invention;
图8为本发明实施例提供的一种对拍摄装置的拍摄质量评测装置的结构示意图;8 is a schematic structural diagram of a shooting quality evaluation device for a shooting device provided by an embodiment of the present invention;
图9为本发明实施例提供的一种终端设备的结构示意图;9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
图10为本发明实施例提供的一种评测图卡的结构示意图。10 is a schematic structural diagram of an evaluation card provided by an embodiment of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be described clearly and completely in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by a person of ordinary skill in the art without making creative efforts fall within the protection scope of the present invention.
本发明实施例中提出一种对拍摄装置的拍摄质量评测方法,可用于快速检测拍摄装置的拍摄质量,以便于根据拍摄质量拍摄装置的配置或者拍摄参数,以使得所述拍摄装置达到最佳拍摄状态,从而拍摄出较高质量的图像。所述拍摄装置的拍摄质量评测方法可以包括主观评测和客观评测,其中,所述主观评测是指用户通过人眼观察拍摄装置所拍摄的图像质量以判断拍摄装置的拍摄质量,例如人眼通过判断拍摄装置拍摄所得的图像中亮度是否合适、各个拍摄对象在图像中是否清晰等。所述客观评测是指利用各个评测指标对拍摄装置所拍摄的图像数据进行定量分析,以实现对拍摄装置的拍摄质量评测。An embodiment of the present invention proposes a method for evaluating the shooting quality of a shooting device, which can be used to quickly detect the shooting quality of the shooting device, so as to facilitate the shooting of the shooting device according to the configuration or shooting parameters of the shooting quality State, so that a higher quality image is taken. The shooting quality evaluation method of the shooting device may include subjective evaluation and objective evaluation, where the subjective evaluation refers to the user observing the image quality of the shooting device through the human eye to determine the shooting quality of the shooting device, for example, the human eye passes the judgment Whether the brightness of the image captured by the shooting device is appropriate, whether each subject is clear in the image, etc. The objective evaluation refers to the quantitative analysis of the image data captured by the shooting device by using various evaluation indicators, so as to realize the shooting quality evaluation of the shooting device.
本发明实施例所述的对拍摄装置的拍摄质量评测方法主要是通过客观的评测指标对拍摄装置进行定量分析。所述对拍摄装置的拍摄质量评测方法可以应用在终端设备中,所述终端设备可以是手机、平板、笔记本电脑、智能穿戴等设备。The method for evaluating the shooting quality of the shooting device described in the embodiment of the present invention mainly performs quantitative analysis on the shooting device through objective evaluation indexes. The method for evaluating the shooting quality of the shooting device may be applied to a terminal device, and the terminal device may be a device such as a mobile phone, a tablet, a notebook computer, or a smart wearable device.
在一个实施例中,所述用于衡量拍摄装置的拍摄质量的评测指标可包括以下一种或多种:色彩饱和度、色彩准确度、对比度、动态范围、清晰度、细节 损失。其中,色彩饱和度指的是色彩纯度,纯度越高表现越鲜明,纯度较低表现则较黯淡;色彩准确度是指图像中的颜色是否与拍摄对象的颜色存在色差;动态范围表示拍摄装置所拍摄的图片中可以包含的最暗到最亮的范围,动态范围越大,所能表现的层次越丰富,所包含的色彩空间也越广,也即拍摄装置的动态范围越大,其记录的暗部细节和亮部细节越丰富;对比度是指图像中灰度反差的大小,对比度越大表明差异范围越大;清晰度是指图像中各个细部影纹及其边界的清晰程度;细节损失是指图像中一些边缘、边角以及光线相交的地方不清楚或者有损坏。In one embodiment, the evaluation index for measuring the shooting quality of the shooting device may include one or more of the following: color saturation, color accuracy, contrast, dynamic range, sharpness, and loss of detail. Among them, the color saturation refers to the color purity. The higher the purity, the brighter the performance, and the lower the purity, the darker; the color accuracy refers to whether the color in the image is different from the color of the subject; the dynamic range indicates the The darkest to brightest range that can be included in the captured picture. The larger the dynamic range, the richer the gradation that can be expressed, and the wider the color space included. That is, the larger the dynamic range of the camera, the higher the recorded range. The darker and brighter the richer the details; the contrast refers to the contrast of the grayscale in the image, the greater the contrast indicates the greater the range of difference; the sharpness refers to the clarity of each detail in the image and its boundaries; the loss of detail refers Some edges, corners, and intersections of light in the image are unclear or damaged.
在一个实施例中,可以根据各个评测指标的评测类别将上述的评测指标进行分类,评测类别相同的归类为同一类别评测指标,比如色彩饱和度和色彩准确度均属于对色彩的评测,则两者属于同一类别的评测指标,也即两者的评测指标类别相同。类似的,对比度、动态范围以及信噪比属于同一类别的评测指标。In one embodiment, the above-mentioned evaluation indicators can be classified according to the evaluation category of each evaluation indicator. The same evaluation category is classified as the same category of evaluation indicators. For example, color saturation and color accuracy both belong to the evaluation of color, then The two belong to the same category of evaluation indicators, that is, the two categories of evaluation indicators are the same. Similarly, contrast, dynamic range, and signal-to-noise ratio belong to the same category of evaluation indicators.
在一个实施例中,可以使用评测图卡来评测上述各个类别的评测指标,所述评测图卡可包括:24色卡、灰卡、灰阶卡、解析力斜边图卡、枯叶图。其中,所述24色卡用于计算色彩准确度和色彩饱和度,所述灰卡用于图像画面的平均亮度,所述灰阶卡用于计算图像信噪比、动态范围或者对比度,所述解析力斜边图卡用于计算清晰度,所述枯叶图用于计算清晰度。综上所述可知,每个评测指标对应一个评测图卡,也即每个评测图卡用于评测一个评测指标。例如24色卡用来评测色彩准确度,解析力斜边图卡用来评测清晰度。综上所述,每个类别的评测指标对应一个用于评测该类别评测指标的图卡,例如色彩类别的评测指标对应24色卡,清晰度评测指标对应解析力斜边图卡。In one embodiment, an evaluation chart may be used to evaluate the evaluation indicators of the above categories. The evaluation chart may include: a 24-color card, a gray card, a gray-scale card, a analytic power hypotenuse chart card, and a dead leaf chart. Among them, the 24-color card is used to calculate color accuracy and color saturation, the gray card is used to calculate the average brightness of the image screen, and the gray-scale card is used to calculate the image signal-to-noise ratio, dynamic range or contrast, the The analytic force hypotenuse graph card is used to calculate sharpness, and the dead leaf graph is used to calculate sharpness. In summary, it can be seen that each evaluation indicator corresponds to one evaluation card, that is, each evaluation card is used to evaluate one evaluation indicator. For example, the 24-color card is used to evaluate the color accuracy, and the analytical hypotenuse graph card is used to evaluate the clarity. In summary, the evaluation index of each category corresponds to a graphics card used to evaluate the evaluation index of the category. For example, the evaluation index of the color category corresponds to a 24-color card, and the definition evaluation index corresponds to a resolution-beveled edge card.
在一个实施例中,通过评测图卡评测拍摄质量的各类评测指标的步骤通常是:首先选定要评测的评测指标,为了方便描述,以下将该选定的评测指标称为目标评测指标;控制拍摄装置对目标评测指标对应的评测图卡进行拍摄,获取拍摄得到的图像数据;确定出所述图像数据中待评测区域,然后调用评测软件对待评测区域进行评测,即得到对所述拍摄装置的所述目标评测指标的评测结果。例如,假设选定的目标评测指标为色彩准确度,评测步骤可以为:获取拍摄装置对24色卡进行拍摄所得的图像数据,将图像数据中包含24色图卡的图 像区域确定为待评测区域,通过调用软件对图像数据中待评测区域进行分析评测,便可得到对所述拍摄装置的色彩准确度的评测结果。In one embodiment, the steps of evaluating various types of evaluation indicators of the shooting quality through the evaluation card are usually: first select the evaluation indicators to be evaluated, and for convenience of description, the selected evaluation indicators are hereinafter referred to as target evaluation indicators; Control the shooting device to shoot the evaluation chart corresponding to the target evaluation index to obtain the image data obtained from the shooting; determine the area to be evaluated in the image data, and then call evaluation software to evaluate the evaluation area to obtain the shooting device The evaluation result of the target evaluation index. For example, assuming that the selected target evaluation index is color accuracy, the evaluation step may be: acquiring image data obtained by shooting a 24-color card from the shooting device, and determining the image area containing the 24-color graphic card in the image data as the area to be evaluated By calling the software to analyze and evaluate the area to be evaluated in the image data, the evaluation result of the color accuracy of the shooting device can be obtained.
在一个实施例中,通过评测图卡评测拍摄质量的各类评测指标的方法可包括单张图卡评测和复合图卡评测。其中,所述单张图卡评测是指每张图卡只能用来评测一个类别的评测指标,比如24色卡为用来评测色彩类别(色彩准确度和色彩饱和度)的图卡。在单张图卡评测过程中,拍摄装置每次对一个评测图卡进行拍摄,获取到拍摄所得的图像数据后,需要人工框选出图像数据中的待评测区域,然后调用评测软件对所述待评测区域进行评测,例如,参考图1为本发明实施例中提供的一种单张图卡评测的示意图。复合图卡评测是指一张复合图卡上集成了至少两个单张评测图卡(每个单张评测图卡称为一个评测子图卡),也即一张复合图卡可以一次对至少两个类别的评测指标进行评测。在复合图卡评测过程中,拍摄装置对所述复合图卡进行拍摄,获取到拍摄所得的图像数据后,调用待评测区域识别算法自动检测图像数据中的至少两个待评测区域,最后调用评测软件对所述至少两个待评测区域进行评测,例如,参考图2为本发明实施例提供一种复合图卡评测的示意图。In one embodiment, the method for evaluating various types of evaluation indicators of the shooting quality by evaluating the graphic card may include single image card evaluation and composite image card evaluation. The single picture card evaluation refers to that each picture card can only be used to evaluate one category of evaluation indicators, for example, a 24-color card is a picture card used to evaluate a color category (color accuracy and color saturation). In the evaluation process of a single picture card, the shooting device shoots one evaluation picture card at a time, and after acquiring the image data obtained by shooting, it is necessary to manually select the area to be evaluated in the image data, and then call the evaluation software to The area to be evaluated is evaluated. For example, referring to FIG. 1 is a schematic diagram of a single picture card evaluation provided in an embodiment of the present invention. A composite graphic card evaluation means that at least two single evaluation graphic cards are integrated on one composite graphic card (each single evaluation graphic card is called a evaluation sub-graphic card), that is, a composite graphic card can be used for at least one evaluation card at a time. Two types of evaluation indicators are evaluated. In the evaluation process of the composite graphic card, the shooting device photographs the composite graphic card, and after acquiring the image data obtained by the shooting, calls the region to be evaluated identification algorithm to automatically detect at least two regions in the image data to be evaluated, and finally calls the evaluation The software evaluates the at least two areas to be evaluated. For example, referring to FIG. 2, a schematic diagram of a composite graphics card evaluation is provided according to an embodiment of the present invention.
在使用单张图卡评测的情况下,如果想要对多个类别的评测指标进行评测,则需要对多个单张图卡进行逐一拍摄,由于每个单张图卡的尺寸不同,对拍摄环境的要求不同,拍摄装置在对每个单张图卡进行拍摄之前都需要重新布置拍摄环境,重新调整拍摄装置与单张图卡的相对位置。此外,在单张图卡评测过程中,需要人工框选出多张图像数据中待检测区域,综上所述,单张图卡评测消耗较多时间,评测效率低。In the case of using a single picture card for evaluation, if you want to evaluate multiple categories of evaluation indicators, you need to shoot multiple single picture cards one by one. Since the size of each single picture card is different, the shooting The requirements of the environment are different. Before shooting a single picture card, the shooting device needs to rearrange the shooting environment and readjust the relative position of the shooting device and the single picture card. In addition, in the evaluation process of a single picture card, it is necessary to manually select areas to be detected in multiple image data. In summary, the evaluation of a single picture card consumes more time and the evaluation efficiency is low.
在使用复合图卡评测的情况下,实现了一次性对多个类别的评测指标进行评测,且可自动识别图像数据中的各个待评测区域,节省评测时间,提高了评测效率。下面本发明实施中将详细介绍利用复合图卡对拍摄装置的拍摄质量进行评测的方法。In the case of using a composite graphics card for evaluation, it realizes the evaluation of multiple categories of evaluation indicators at one time, and can automatically identify each area to be evaluated in the image data, saving evaluation time and improving evaluation efficiency. In the following, in the implementation of the present invention, a method for evaluating the shooting quality of a shooting device using a composite graphics card will be described in detail.
请参考图3,为本发明实施例提供的一种对拍摄装置的拍摄质量评测方法,图3所述的方法可以由终端设备执行,具体可由所述终端设备的处理器执行,所述终端设备可以是手机、平板、笔记本电脑、智能穿戴等设备,还可以是具有图像评测功能的拍摄装置。Please refer to FIG. 3, which is a method for evaluating the shooting quality of a shooting device according to an embodiment of the present invention. The method described in FIG. 3 may be executed by a terminal device, and specifically may be executed by a processor of the terminal device. It can be a mobile phone, tablet, laptop, smart wearable device, etc., or a shooting device with image evaluation function.
步骤S301、获取拍摄装置对评测图卡进行拍摄所得的图像数据。Step S301: Acquire image data obtained by the shooting device shooting the evaluation card.
在一个实施例中,所述评测图卡为复合图卡,所述评测图卡包括至少两个评测子图卡,所述评测子图卡包括以下任一种:用于评测色彩准确度和饱和度的24色卡、用于评测画面平均亮度的灰卡、用于评测细节损失的枯叶图、用于评测信噪比或对比度的灰阶卡、用于评测清晰度的解析力斜边图卡。In one embodiment, the evaluation picture card is a composite picture card, and the evaluation picture card includes at least two evaluation sub-picture cards, and the evaluation sub-picture card includes any one of the following: used to evaluate color accuracy and saturation 24-color card for degree, gray card for evaluating the average brightness of the picture, dead leaf map for evaluating the loss of detail, gray scale card for evaluating the signal-to-noise ratio or contrast, and the analytical hypotenuse chart for evaluating the clarity card.
在一个实施例中,所述获取拍摄装置对评测图卡进行拍摄所得的图像数据的方式可包括:所述拍摄装置配置于终端设备上,所述终端设备调用所述拍摄装置对评测图卡进行拍摄,便可得到图像数据;或者,所述拍摄装置与所述终端设备是相互独立的设备,当所述拍摄装置检测到拍摄操作时,对所述评测图卡进行拍摄,保存拍摄所得的图像数据;所述终端设备向所述拍摄装置发送图像获取指令;当所述拍摄装置接收到所述图像获取指令时,将保存的所述图像数据发送给所述终端设备。In one embodiment, the method of acquiring image data obtained by the photographing device photographing the evaluation card may include: the photographing device is configured on a terminal device, and the terminal device calls the photographing device to perform evaluation on the evaluation card The image data can be obtained by shooting; or, the shooting device and the terminal device are independent devices, and when the shooting device detects a shooting operation, the evaluation card is shot, and the shot image is saved Data; the terminal device sends an image acquisition instruction to the shooting device; when the shooting device receives the image acquisition instruction, the saved image data is sent to the terminal device.
在一个实施例中,为了保证评测的准确性,在所述拍摄装置对所述评测图卡进行拍摄之前,需要先布置拍摄环境,比如设置拍摄环境中的光线,以及拍摄背景,再如调整拍摄装置与评测图卡的相对位置,保证拍摄装置与评测图卡平行。In one embodiment, in order to ensure the accuracy of the evaluation, before the shooting device shoots the evaluation card, the shooting environment needs to be arranged first, such as setting the light in the shooting environment and the shooting background, and then adjusting the shooting The relative position of the device and the evaluation card ensures that the shooting device is parallel to the evaluation card.
在一个实施例中,所述图像数据中包含至少一个评测图卡的图像,在本发明实施例中用户指示所述拍摄装置对评测图卡进行拍摄时,用户可以格局对拍摄装置的评测需求选择拍摄装置对评测图卡进行拍摄的拍摄区域,控制所述拍摄装置对选定的拍摄区域进行拍摄。所述评测需求是指用户想要评测拍摄装置的哪些评测指标,比如色彩饱和度,清晰度或者对比度等;所述拍摄区域可以是整张评测图卡,也可以是评测图卡中包括某一个或者某几个评测子图卡的部分区域。例如,假设评测图卡中包括24色卡、解析力斜边图卡、灰阶卡以及灰卡四个评测子图卡,拍摄区域可以是包括4个评测子图卡的整张评测图卡,或者拍摄区域也可以是只包括24色卡和灰阶卡两个评测子图卡的部分区域。In one embodiment, the image data includes images of at least one evaluation card. In the embodiment of the present invention, when the user instructs the shooting device to shoot the evaluation card, the user can select the evaluation requirements of the shooting device The shooting device shoots the shooting area of the evaluation picture card, and controls the shooting device to shoot the selected shooting area. The evaluation requirements refer to which evaluation indexes the user wants to evaluate the shooting device, such as color saturation, sharpness, or contrast; the shooting area may be the entire evaluation card, or may include a certain one in the evaluation card Or some areas of some evaluation sub-cards. For example, assuming that the evaluation card includes a 24-color card, a resolution hypotenuse card, a grayscale card, and a gray card, the four evaluation sub-picture cards, and the shooting area may be the entire evaluation card including four evaluation sub-picture cards, Or the shooting area may also be a partial area including only two evaluation sub-picture cards of a 24-color card and a gray-scale card.
综上所述,本发明实施例中用户可以根据实际评测需求,选择拍摄区域,控制拍摄装置对所述拍摄区域进行拍摄,得到图像数据,此时图像数据中包括的所有图像元素均是对评测拍摄装置的拍摄质量有用的,如此一来,在满足用户评测需求的同时,也可以减少终端设备的能耗开销。In summary, in the embodiment of the present invention, the user can select a shooting area according to actual evaluation requirements, and control the shooting device to shoot the shooting area to obtain image data. At this time, all image elements included in the image data are for evaluation The shooting quality of the shooting device is useful. In this way, while satisfying the user's evaluation needs, the energy consumption of the terminal device can also be reduced.
步骤S302、基于标定点样式识别所述图像数据中的标定点。Step S302: Identify the calibration point in the image data based on the calibration point pattern.
在一个实施例中,所述评测图卡除了包括至少两个评测子图卡外,还包括标定点,所述标定点用于对至少两个评测子图卡进行划分,四个标定点确定一个评测子图卡。本发明实施例可以实现一次性对拍摄装置的多个类别的评测指标进行评测,并且可以自动识别出图像数据中的各个待评测区域。所述自动识别图像数据中各个待评测区域的方式可以是识别图像数据中的标定点,根据各个标定点之间的位置关系以及评测图卡的排版规则确定出各个待评测区域。In one embodiment, in addition to at least two evaluation sub-picture cards, the evaluation picture card also includes calibration points, the calibration points are used to divide at least two evaluation sub-picture cards, and one of the four calibration points determines one Evaluation sub-picture card. The embodiment of the present invention can realize the evaluation of multiple categories of evaluation indexes of the shooting device at one time, and can automatically identify each area to be evaluated in the image data. The method of automatically identifying each area to be evaluated in the image data may be identifying the calibration points in the image data, and determining each area to be evaluated according to the positional relationship between the calibration points and the layout rules of the evaluation card.
在一个实施例中,所述识别图像数据中的标定点的方法是根据标定点样式识别图像数据中包括的标定点,所述标定点样式可以包括标定点的形状特征和标定点的结构特征,例如标定点的形状特征可以为正方形,或者标定点的形状特征也可以为圆形和正方形,标定点的结构特征可以为互星90度的黑白块。所述标定点样式可以是在设计所述评测图卡时设计的,在一个实施例中,设计所述标定点样式的规则是避免标定点的样式与所述评测图卡中任何一个评测子图卡的样式相同。In one embodiment, the method of identifying the calibration points in the image data is to identify the calibration points included in the image data according to the calibration point pattern, the calibration point pattern may include the shape characteristics of the calibration points and the structural characteristics of the calibration points, For example, the shape feature of the calibration point may be a square, or the shape feature of the calibration point may also be a circle and a square, and the structural feature of the calibration point may be a black and white block at 90 degrees to each other. The calibration point style may be designed when the evaluation chart is designed. In one embodiment, the rule for designing the calibration point style is to avoid the calibration point style and any evaluation sub-picture in the evaluation chart. The style of the card is the same.
举例来说,参考图4a、图4b以及图4c是本发明实施提供的三种标定点样式。如图4a中所示的标定点样式中,标定点的形状特征为圆形和正方形,且正方形位于圆形内部,图4b所示的标定点样式中,标定点的形状特征为圆形,图4c所示的标定点样式中,标定点的形状特征为正方形,图4a、图4b以及图4c所示的标定点样式中,标定点的结构特征均为互星90度的黑白块。For example, referring to FIG. 4a, FIG. 4b, and FIG. 4c are three calibration point patterns provided by the implementation of the present invention. As shown in the calibration point pattern shown in FIG. 4a, the shape features of the calibration points are circles and squares, and the square is located inside the circle. In the calibration point pattern shown in FIG. 4b, the shape features of the calibration points are circles. In the calibration point pattern shown in 4c, the shape characteristic of the calibration point is a square. In the calibration point patterns shown in FIGS. 4a, 4b, and 4c, the structural characteristics of the calibration point are black and white blocks that are 90 degrees from each other.
在一个实施例中,所述基于标定点样式识别所述图像数据中的标定点,包括:将所述图像数据转换为灰度图像数据;对所述灰度图像数据进行边缘检测处理,得到边缘图像数据;基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点。In one embodiment, the identification of the calibration points in the image data based on the calibration point pattern includes: converting the image data into grayscale image data; performing edge detection processing on the grayscale image data to obtain edges Image data; identify the calibration points in the image data based on the shape characteristics of the calibration points, the structural characteristics of the calibration points, and the edge image data.
在一个实施例中,所述拍摄装置对所述评测图卡进行拍摄所得的图像数据是彩色图像,彩色图像也称作3通道图像,灰度图像为1通道图像,因此将所述图像数据转换为灰度图像数据,也即将3通道图像转换为1通道图像。在一个实施例中,将图像数据转换为灰度图像数据的方法可以是均值法,所述均值法是指将图像数据中同一个像素点的3通道像素值进行求平均运算,所得的运算结果即为该像素点在灰度图像中的像素值。依据此法可计算出图像数据中各个像 素点在灰度图像中的像素值,然后以各个像素点在灰度图像中的像素值进行图像渲染,便可得到灰度图像数据。在其他的实施例中,将图像数据转换为灰度图像数据的方法还可以是加权法和最大值法等,本发明实施例不一一列举。In one embodiment, the image data obtained by the shooting device shooting the evaluation card is a color image, the color image is also referred to as a 3-channel image, and the grayscale image is a 1-channel image, so the image data is converted It is gray-scale image data, that is, converting 3-channel images to 1-channel images. In one embodiment, the method for converting image data into grayscale image data may be an average method. The average method refers to averaging the 3-channel pixel values of the same pixel in the image data to obtain the operation result. That is the pixel value of the pixel in the grayscale image. According to this method, the pixel value of each pixel point in the grayscale image in the image data can be calculated, and then the image rendering is performed with the pixel value of each pixel point in the grayscale image, and the grayscale image data can be obtained. In other embodiments, the method of converting image data into grayscale image data may also be a weighting method and a maximum value method, etc., which are not enumerated in the embodiments of the present invention.
在一个实施例中,在将所述图像数据转换为灰度图像数据之后,终端设备对所述灰度图像数据进行边缘检测处理,得到边缘图像数据,以使得终端设备根据所述边缘图像数据分析标定点的形状特征。边缘是指一幅图像中局部变化最显著的部分,边缘图像能够反映出图像中局部特性的不连续性,比如灰度的突变、纹理结构的突变以及颜色的突变等。边缘图像数据是指对原始图像(在本发明实施例中,原始图像数据是指灰度图像数据)进行边缘提取后得到的图像,所述边缘图像数据有助于分析图像的形状特征。In one embodiment, after converting the image data into grayscale image data, the terminal device performs edge detection processing on the grayscale image data to obtain edge image data, so that the terminal device analyzes the edge image data Shape characteristics of calibration points. The edge refers to the most significant part of the local change in an image. The edge image can reflect the discontinuity of the local characteristics in the image, such as the abrupt change of grayscale, the abrupt change of texture structure, and the abrupt change of color. The edge image data refers to an image obtained by performing edge extraction on the original image (in the embodiment of the present invention, the original image data refers to grayscale image data), and the edge image data is helpful for analyzing the shape characteristics of the image.
在一个实施例中,边缘检测的算法可包括一阶检测算法和二阶检测算法,其中一阶检测算法中常用的算法包括Canny算子,Robert(交叉差分)算子,罗盘算子等,二阶检测算法中常用的包括Marr-Hildreth。在本发明实施例中,优选的使用Canny算子对上述获取到的灰度图像数据进行边缘检测。所述Canny算子的实现步骤可包括降噪处理、寻找梯度、跟踪边缘、调整参数等,对于具体的Canny算子的实现过程本发明实施例中不做具体介绍。In one embodiment, the edge detection algorithm may include a first-order detection algorithm and a second-order detection algorithm, wherein the commonly used algorithms in the first-order detection algorithm include Canny operator, Robert (cross-difference) operator, compass operator, etc. Commonly used in order detection algorithms include Marr-Hildreth. In the embodiment of the present invention, the Canny operator is preferably used to perform edge detection on the grayscale image data obtained above. The implementation steps of the Canny operator may include noise reduction processing, finding gradients, tracking edges, adjusting parameters, etc. The specific implementation process of the Canny operator will not be specifically described in the embodiments of the present invention.
在一个实施例中,在得到边缘图像数据之后,终端设备基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点。具体地,所述终端设备基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点的实施方式可以为:基于所述标定点的形状特征和边缘图像数据查找出图像数据中形状特征与所述标定点的形状特征相同的图像元素,然后基于所述标定点的结构特征,从查找到的图像元素中筛选出结构特征与标定点的结构特征相同的图像元素,将该图像元素确定为识别到的标定点。In one embodiment, after obtaining the edge image data, the terminal device recognizes the calibration point in the image data based on the shape feature of the calibration point, the structural feature of the calibration point, and the edge image data. Specifically, the embodiment in which the terminal device recognizes the calibration point in the image data based on the shape feature of the calibration point, the structural feature of the calibration point, and the edge image data may be: based on the calibration point Shape features and edge image data find image elements in the image data that have the same shape features as the shape features of the calibration points, and then, based on the structural features of the calibration points, filter out structural features and calibration points from the found image elements The image elements with the same structural characteristics are determined as the identified calibration points.
步骤S303、基于识别到的标定点和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域。Step S303: Determine at least two regions to be evaluated in the image data based on the identified calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card.
在一个实施例中,所述终端设备在识别所述图像数据中的待评测区域之前,首先要确定所述评测图卡的排版规则。再一个实施例中,所述确定所述评测图卡的排版规则,包括:终端设备检测到有待识别评测区域的图像数据时, 输出评测图卡排版规则获取请求;用户根据所述终端设备输出的获取请求向所述终端设备提交评测图卡的排版规则。在其他的实施例中,所述确定所述评测图卡的排版规则,包括:终端设备预选存储有至少一个评测图卡及其对应的排版规则;当检测到有待识别评测区域的图像数据时,所述终端设备获取所述图像数据对应的评测图卡标识,也即所述图像数据是通过对哪张拍摄图卡进行拍摄获取到的,根据所述评测图卡标识从存储的至少一个评测图卡中查找到所述评测图卡,进而获取到所述评测图卡对应的排版规则。上述只是本发明实施例列举的两种可行的获取所述评测图卡的排版规则的方法,在其他的实施例中,所述终端设备还可以通过其他方式获取所述评测图卡的排版规则。In one embodiment, before identifying the area to be evaluated in the image data, the terminal device first determines the layout rules of the evaluation card. In still another embodiment, the determining of the layout rules of the evaluation card includes: when the terminal device detects image data of the evaluation area to be identified, the evaluation card layout rule acquisition request is output; the user outputs The acquisition request submits the layout rules of the evaluation graphic card to the terminal device. In other embodiments, the determining the layout rules of the evaluation graphic card includes: the terminal device preselects and stores at least one evaluation graphic card and its corresponding layout rules; when image data of the evaluation area to be identified is detected, The terminal device obtains an evaluation chart ID corresponding to the image data, that is, which image capture card the image data was acquired from, and at least one evaluation map is stored from the stored evaluation map ID The evaluation picture card is found in the card, and then the typesetting rules corresponding to the evaluation picture card are obtained. The above are only two possible methods for obtaining the layout rules of the evaluation card listed in the embodiments of the present invention. In other embodiments, the terminal device may also obtain the layout rules of the evaluation card by other methods.
在一个实施例中,所述基于识别到的标定点和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域的实施方式可以是:获取所述评测图卡的排版规则中标定点的分布规则以及用于划分各个评测子图卡的各个标定点之间的距离确定所述图像数据中至少两个待评测区域。具体地,所述标定点的分布规则可以指各个标定点之间的距离以及各个标定点的位置。In an embodiment, the implementation of determining at least two regions to be evaluated in the image data based on the identified calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card may be Yes: Obtain the distribution rule of the calibration points in the layout rules of the evaluation picture card and the distance between the calibration points used to divide each evaluation sub-picture card to determine at least two regions to be evaluated in the image data. Specifically, the distribution rule of the calibration points may refer to the distance between the calibration points and the positions of the calibration points.
在其他实施例中,所述基于识别到的标定点和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域的实施方式还可以是:确定识别到的各个标定点在所述水平和垂直方向上的位置关系,根据预设规则为识别到的各个标定点添加序号;获取在所述评测图卡的排版规则下评测图卡中各个标定点的序号与评测子图卡之间的对应关系;根据所述识别到的标定点的序号以及获取到的各个标定点的序号与评测子图卡之间的对应关系,确定出所述图像数据中的待评测区域。In other embodiments, the implementation of determining at least two areas to be evaluated in the image data based on the identified calibration points and the typesetting rules of the at least two evaluation sub-picture cards in the evaluation picture card further It may be: determining the positional relationship of each identified calibration point in the horizontal and vertical directions, adding a serial number to each identified calibration point according to a preset rule; obtaining the evaluation card under the layout rules of the evaluation card Correspondence between the serial number of each calibration point and the evaluation sub-picture card; according to the identified serial number of the calibration point and the corresponding relationship between the obtained serial number of each calibration point and the evaluation sub-picture card, determine the Describe the area to be evaluated in the image data.
举例来说,假设在所述评测图卡中设置一个基础点,预设规则为以该基础点为基础,在该基础点水平方向上的标定点,根据其与所述基础点距离的远近,依次从1开始标号,当第一行标定点序号添加结束后,重新从第二行左边开始依次添加序号,比如在基础点所在的水平方向上有5个标定点,可以将与所述基础点距离最近的标定点的序号添加为1,距离所述基础点最远的标定点添加序号为5;第二行包括3个标定点,从左到右的序号依次为6、7、8;假设终端设备预先存储的各个标定点的序号与评测子图卡的对应关系为:序号0,1,6,7对 应评测子图卡为灰卡,则所述终端设备可根据为识别到的各个标定点的序号,确定出序号0,1,6,7,组成的矩形为一个待评测区域。For example, assuming that a base point is set in the evaluation card, the preset rule is to use the base point as the basis, and the calibration point in the horizontal direction of the base point according to its distance from the base point, Labeling starts from 1 in sequence. When the numbering of the first line of the calibration point is completed, the sequence number is added again from the left of the second line. For example, there are 5 calibration points in the horizontal direction where the base point is located. The serial number of the nearest calibration point is added as 1, and the serial number of the calibration point furthest from the base point is added as 5. The second line includes 3 calibration points, and the serial numbers from left to right are 6, 7, 8; The correspondence between the serial number of each calibration point pre-stored by the terminal device and the evaluation sub-picture card is: the serial numbers 0, 1, 6, 7 correspond to the evaluation sub-picture card is a gray card, then the terminal device can be based on The serial number of the fixed point determines the serial number 0,1,6,7, and the rectangle formed is an area to be evaluated.
步骤S304、利用所述至少两个待评测区域对应的评测规则分别对每个待评测区域进行测评,得到所述拍摄装置的拍摄质量测评结果。Step S304: Use the evaluation rules corresponding to the at least two areas to be evaluated to evaluate each area to be evaluated separately to obtain a shooting quality evaluation result of the shooting device.
在一个实施例中,所述终端设备在利用所述至少两个评测区域对应的评测规则分别对每个待评测区域进行评测之前,需要先确定所述至少两个待评测区域对应的评测规则。在一个实施例中,所述确定所述至少两个待评测区域对应的评测规则,包括:根据所述各个评测子图卡的位置确定所述至少两个待评测区域中每个待评测区域所属的评测指标类别;将所述评测指标类别对应的评测规则分别作为所述每个待评区域对应的评测规则。In one embodiment, before using the evaluation rules corresponding to the at least two evaluation areas to evaluate each area to be evaluated, the terminal device needs to determine the evaluation rules corresponding to the at least two areas to be evaluated. In one embodiment, the determining the evaluation rule corresponding to the at least two areas to be evaluated includes: determining, according to the positions of the respective evaluation sub-picture cards, to which each of the at least two areas to be evaluated belongs to the area to be evaluated Categories of evaluation indicators; the evaluation rules corresponding to the categories of evaluation indicators are respectively used as the evaluation rules corresponding to each area to be evaluated.
所述评测指标类别可以包括色彩、清晰度、细节损失、动态范围/信噪比/对比度等任意一种,所述评测规则可以是用于分析各个评测指标的规则,比如用于分析清晰度的规则、用于分析对比度的规则。所述利用所述至少两个待评测区域对应的评测规则分别对每个待评测区域进行测评的实施方式可以为:提取所述至少两个待评测区域中的特征信息;利用各自对应的评测规则对所述各个评测区域的特征信息进行分析,得到的分析结果即为评测结果。The evaluation index category may include any one of color, sharpness, loss of detail, dynamic range/signal-to-noise ratio/contrast ratio, etc. The evaluation rule may be a rule for analyzing each evaluation index, for example, for analyzing clarity Rules, rules for analyzing contrast. The implementation manner of using the evaluation rules corresponding to the at least two areas to be evaluated to separately evaluate each area to be evaluated may be: extracting feature information in the at least two areas to be evaluated; using respective corresponding evaluation rules The characteristic information of each evaluation area is analyzed, and the obtained analysis result is the evaluation result.
本发明实施例中,获取到拍摄装置对包括多个评测子图卡的评测图卡进行拍摄所得的图像数据后,可基于预先设定的标定点样式识别出图像数据中的标定点,进一步的,根据识别到的标定点以及评测图卡中各个评测子图卡的排版规则确定出所述图像数据中各个待评测区域,最后利用各个待评测区域对应的评测规则分别对每个待评测区域进行评测,得到对拍摄装置的拍摄质量测评结果,可以一次性对多个评测指标进行评测,且自动识别各个评测指标对应的待评测区域,节省评测时间,提高了评测效率。In the embodiment of the present invention, after the image data obtained by the shooting device shooting the evaluation picture card including a plurality of evaluation sub-picture cards is acquired, the calibration points in the image data can be identified based on the preset calibration point patterns, further , Determine each area to be evaluated in the image data according to the identified calibration points and the layout rules of each evaluation sub-picture card in the evaluation card, and finally use the evaluation rules corresponding to each evaluation area to carry out each evaluation area Evaluation, to obtain the shooting quality evaluation results of the shooting device, can evaluate multiple evaluation indexes at one time, and automatically identify the areas to be evaluated corresponding to each evaluation index, saving evaluation time and improving evaluation efficiency.
请参考图5,为本发明实施例提供的另一种对拍摄装置的拍摄质量评测方法,如图5所示的方法,可包括:Please refer to FIG. 5, which is another method for evaluating the shooting quality of a shooting device according to an embodiment of the present invention. The method shown in FIG. 5 may include:
步骤S501、获取拍摄装置对评测图卡进行拍摄所得的图像数据。Step S501: Acquire image data obtained by the photographing device photographing the evaluation card.
步骤S502、将所述图像数据转换为灰度图像数据,并对所述灰度图像数据进行边缘检测处理,得到边缘图像数据。Step S502: Convert the image data into grayscale image data, and perform edge detection processing on the grayscale image data to obtain edge image data.
在一个实施例中,所述步骤S501和所述步骤S502中包括的一些可行的实施 方式已经在图3所示的实施例中具体描述,在此不再赘述。In an embodiment, some feasible implementation manners included in the step S501 and the step S502 have been specifically described in the embodiment shown in FIG. 3, and will not be repeated here.
步骤S503、基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点。Step S503: Identify the calibration points in the image data based on the shape features of the calibration points, the structural features of the calibration points, and the edge image data.
在一个实施例中,标定点样式包括的形状特征可能是一个,也可能是多个,当所述标定点样式包括的形状特征为一个时如图4b和图4c所示,所述基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点,包括:基于所述边缘图像数据检测所述图像数据中形状特征与所述标定点形状特征相同的第一图像元素;从检测到的第一图像元素中筛选结构特征与所述标定点的结构特征相同的第一图像元素;将筛选出的第一图像元素确定为识别到的标定点。In an embodiment, the shape feature included in the calibration point pattern may be one or more, and when the shape feature included in the calibration point pattern is one, as shown in FIGS. 4b and 4c, the The shape feature of the calibration point, the structural feature of the calibration point and the edge image data identifying the calibration point in the image data include: detecting the shape feature in the image data and the calibration point based on the edge image data The first image element with the same shape feature; the first image element with the same structural feature as the structural feature of the calibration point from the detected first image element; and the identified first image element is determined as the identified target Fixed point.
在一个实施例中,所述终端设备中可预先存储多个评测图卡,各个评测图卡对应的标定点样式可以相同也可以不同,也可以理解为终端设备中预先存储有多组评测图卡与标定点的对应关系,所述终端设备在检测所述图像数据中的标定点样式之前,首先获取与所述评测图卡对应的标定点样式,然后提取获取到的所述标定点的形状特征和结构特征,假设形状特征为正方形,结构特征为互星90度的黑白块。所述终端设备依据提取到的标定点的形状特征和结构特征对所述边缘图像进行识别,例如检测边缘图像数据中所有正方形特征,将所述边缘图像数据中所有具有正方形特征的图像元素确定为第一图像元素。进一步的,依据所述提取到的标定点的结构特征,从所述第一图像元素中筛选出结构特征为互星90度的黑白块的第一图像元素,并将筛选出的第一图像元素确定为标定点。In one embodiment, the terminal device may pre-store a plurality of evaluation graphic cards, and the calibration point patterns corresponding to the evaluation graphic cards may be the same or different, or it may be understood that multiple sets of evaluation graphic cards are pre-stored in the terminal device Corresponding relationship with the calibration point, before detecting the calibration point pattern in the image data, the terminal device first obtains the calibration point pattern corresponding to the evaluation card, and then extracts the acquired shape characteristic of the calibration point And structural features, assuming that the shape feature is a square, and the structural feature is a black and white block with 90 degrees to each other. The terminal device recognizes the edge image according to the shape and structural characteristics of the extracted calibration point, for example, detects all square features in the edge image data, and determines all image elements with square features in the edge image data as The first image element. Further, according to the extracted structural features of the calibration point, the first image elements whose structural features are black and white blocks with a mutual star of 90 degrees are selected from the first image elements, and the filtered first image elements are selected Determine the calibration point.
再一个实施例中,当所述标定点样式包括的形状特征为多个时如图4a所示,所述基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点的方法,包括:基于所述标定点的结构特征、所述边缘图像数据、所述第一形状特征和所述第二形状特征识别所述图像数据中的标定点。In yet another embodiment, when the calibration point pattern includes multiple shape features, as shown in FIG. 4a, the shape feature based on the calibration point, the structural feature of the calibration point, and the edge image data A method for identifying calibration points in the image data includes: identifying the calibration points in the image data based on the structural features of the calibration points, the edge image data, the first shape feature, and the second shape feature Fixed point.
在一个实施例中,所述基于所述标定点的结构特征、所述边缘图像数据、所述第一形状特征和所述第二形状特征识别所述图像数据中的标定点,包括:基于所述边缘图像数据检测所述图像数据中形状特征与所述第一形状特征相 同的第一图像元素;从检测到的第一图像元素中筛选结构特征与所述标定点的结构特征相同的第一图像元素;通过轮廓识别从筛选出的第一图像元素中确定形状特征与所述第二形状特征相同的第二图像元素;从所述第二图像元素中筛选结构特征与所述标定点的结构特征相同的第二图像元素;将筛选出的第二图像元素确定为识别到的标定点。In one embodiment, the identifying the calibration point in the image data based on the structural feature of the calibration point, the edge image data, the first shape feature, and the second shape feature includes: The edge image data detects a first image element in the image data that has the same shape feature as the first shape feature; and filters the first image elements that have the same structural features as the calibration points from the detected first image elements Image element; identifying the second image element with the same shape feature and the second shape feature from the selected first image element by contour recognition; filtering the structural feature and the structure of the calibration point from the second image element The second image element with the same characteristics; the selected second image element is determined as the identified calibration point.
简单来说,如果标定点样式中包括第一形状特征和第二形状特征,终端设备识别标定点是指所述终端设备从所述图像数据中查找满足以下三个条件的图像元素:既包括第一形状特征,又包括第二形状特征,且结构特征与标定点的结构特征相同的图像元素。所述终端设备将同时满足上述三个条件的图像元素作为识别到的标定点,如果有任何一个条件不满足,终端设备确定识别的图像元素不是标定点。举例来说,假设标定点样式如图4a所示,即包括圆形特征又包括方形特征,结构特征为互星90度的黑白块,首先检测图像数据中所有的圆形特征,再从所有圆形特征中找出结构特征为互相90度黑白块的圆形,进一步的,在找出的圆形中进行正方形特征检测,利用轮廓识别查找出包含有正方形的圆形,最后再从包含有正方形的圆形中筛选出中正方形的结构特征为互星90度的黑白块的圆形,将最后筛选得到的图形作为识别到标定点。In short, if the calibration point pattern includes the first shape feature and the second shape feature, the terminal device identifying the calibration point means that the terminal device searches the image data for image elements that satisfy the following three conditions: including both A shape feature also includes a second shape feature, and an image element whose structural feature is the same as the structural feature of the calibration point. The terminal device uses the image element that satisfies the above three conditions at the same time as the identified calibration point. If any one of the conditions is not met, the terminal device determines that the identified image element is not the calibration point. For example, assuming that the calibration point pattern is shown in Figure 4a, which includes both circular features and square features, and the structural features are black and white blocks of 90 degrees to each other, first detect all circular features in the image data, and then In the shape feature, find the structural feature as a circle of 90 degrees black and white blocks. Further, perform square feature detection in the found circle, use the contour recognition to find the circle that contains the square, and then finally find the circle that contains the square. Among the circles, the shape of the middle square is selected to be a circle of black and white blocks with 90 degrees to each other, and the final screen is used to identify the calibration point.
在一个实施例中,如果所述标定点样式中包括第一形状特征和第二形状特征,在基于所述标定点的结构特征、所述边缘图像数据、所述第一形状特征和所述第二形状特征识别所述图像数据中的标定点(该次识别以下简称为初次识别)之后,所述方法还包括:获取识别到的标定点的数量;若所述标定点的数量小于标定点数量阈值,则基于所述标定点的结构特征、所述边缘图像数据以及所述第一形状特征或所述第二形状特征识别所述图像数据中的标定点。In one embodiment, if the calibration point pattern includes a first shape feature and a second shape feature, the structural features based on the calibration point, the edge image data, the first shape feature, and the first After the two shape features identify the calibration points in the image data (this identification is hereinafter referred to as the initial identification), the method further includes: acquiring the number of identified calibration points; if the number of calibration points is less than the number of calibration points The threshold value is to identify the calibration point in the image data based on the structural feature of the calibration point, the edge image data, and the first shape feature or the second shape feature.
在一个实施例中,所述标定点的数量阈值是用户根据所述拍摄装置所拍摄到的评测图卡中评测子图卡的数量确定的,本发明实施例中规定每4个标定点确定一个评测子图卡,假设评测图卡中包括五个评测子图卡,在利用拍摄装置对所述评测图卡进行拍摄时,用户控制拍摄装置对所有五个评测子图卡进行拍摄,则标定点的数量阈值可以设置为20个;再如假设用户控制拍摄装置只对所述评测图卡中的两个评测子图卡进行拍摄,则标定点的数量阈值可以设置为8。In one embodiment, the threshold value of the number of calibration points is determined by the user according to the number of evaluation sub-picture cards in the evaluation picture cards captured by the shooting device. In the embodiment of the present invention, it is provided that one determination point is determined for every 4 calibration points Evaluation sub-picture card, assuming that the evaluation picture card includes five evaluation sub-picture cards, and when the shooting device is used to shoot the evaluation picture card, the user controls the shooting device to shoot all five evaluation sub-picture cards, then calibrate the points The number threshold of can be set to 20; and assuming that the user controls the shooting device to shoot only two evaluation sub-picture cards in the evaluation card, the threshold of the number of calibration points can be set to 8.
在一个实施例中,若识别到的标定点的数量小于标定点数量阈值,则会导 致所述终端设备识别到的待检测区域不准确,从而导致对拍摄装置的拍摄质量评测结果不准确。在一个实施例中,造成识别到的标定点的数量小于标定点数量阈值的原因可能是由于所述拍摄装置在对评测图卡进行拍摄时受到拍摄环境的影响,使得一部分标定点的轮廓或者形状特征不清晰,为了保证对拍摄装置的拍摄质量评测结果的准确性,在识别到的标定点的数量小于标定点数量阈值的情况下,再次对图像数据中标定点进行识别(以下简称为再次识别),与上述初次识别不同的是,本次采用的识别方法为:基于所述标定点的结构特征、所述边缘图像数据以及所述第一形状特征或所述第二形状特征识别所述图像数据中的标定点。可以理解为,当标定点的数量小于标定点阈值时,所述终端设备降低识别标准再次进行标定点识别。In one embodiment, if the number of identified calibration points is less than the threshold of the calibration points, the area to be detected identified by the terminal device will be inaccurate, resulting in an inaccurate evaluation result of the shooting quality of the shooting device. In one embodiment, the reason that the number of identified calibration points is less than the threshold of the calibration point number may be that the shooting device is affected by the shooting environment when shooting the evaluation card, so that the contour or shape of a part of the calibration points The features are not clear. In order to ensure the accuracy of the shooting quality evaluation results of the shooting device, when the number of identified calibration points is less than the threshold of the calibration points, the calibration points in the image data are identified again (hereinafter referred to as re-identification) , Unlike the above-mentioned initial recognition, the recognition method adopted this time is: recognizing the image data based on the structural feature of the calibration point, the edge image data, and the first shape feature or the second shape feature Calibration point in. It can be understood that when the number of calibration points is less than the calibration point threshold, the terminal device lowers the identification standard and performs calibration point identification again.
在一个实施例中,所述基于所述标定点的结构特征、所述边缘图像数据以及所述第一形状特征或所述第二形状特征识别所述图像数据中的标定点,包括:基于边缘图像数据检测所述图像数据中形状特征与所述第一形状特征或所述第二形状特征相同的第三图像元素;从检测到的第三图像元素中筛选结构特征与所述标定点的结构特征相同的第三图像元素;将筛选出的第三图像元素确定为识别到的标定点。In one embodiment, the identifying the calibration point in the image data based on the structural feature of the calibration point, the edge image data, and the first shape feature or the second shape feature includes: The image data detects a third image element in the image data whose shape feature is the same as the first shape feature or the second shape feature; screening structural features and the structure of the calibration point from the detected third image element The third image element with the same characteristics; the selected third image element is determined as the identified calibration point.
基于上述描述可知,当标定点样式中包括第一形状特征和第二形状特征时,所述终端设备对所述图像数据中的标定点进行初次识别时,所述终端设备从所述图像数据中查找满足以下三个条件的图像元素:既包括第一形状特征,又包括第二形状特征,且结构特征与标定点的结构特征相同的图像元素;当初次识别到的标定点的数量小于标定点数量阈值时,所述终端设备对所述图像数据中的标定点进行再次识别时,所述终端设备从所述图像数据中查找满足以下两个条件的图像元素:包括第一形状特征且结构特征与标定点的结构特征相同,或者包括第二形状特征且结构特征与标定点的结构特征相同。Based on the above description, it can be known that when the calibration point pattern includes the first shape feature and the second shape feature, when the terminal device first recognizes the calibration point in the image data, the terminal device selects from the image data Find image elements that meet the following three conditions: image elements that include both the first shape feature and the second shape feature, and whose structural features are the same as those of the calibration point; when the number of calibration points identified for the first time is less than the calibration point When the number threshold is used, when the terminal device recognizes the calibration point in the image data again, the terminal device searches the image data for image elements that satisfy the following two conditions: including the first shape feature and the structural feature The structural feature is the same as the calibration point, or includes the second shape feature and the structural feature is the same as the structural feature of the calibration point.
在一个实施例中,所述终端设备再次对图像数据中标定点进行识别之前,所述终端设备还可以对初次识别得到的标定点在图像数据中做出标记,该标记用于表示该点已确定为标定点,以避免终端设备重复对识别到的标定点进行识别,保证标定点识别的准确性的同时也节省了终端设备的功耗开销。这样一来,所述对图像数据进行再次识别是指对图像数据中除去第一次识别到的标定点 的其他部分进行标定点识别。In one embodiment, before the terminal device recognizes the calibration point in the image data again, the terminal device may also mark the calibration point obtained in the initial recognition in the image data, the label is used to indicate that the point has been determined In order to calibrate the point, the terminal device is prevented from recognizing the identified calibration point repeatedly, and the accuracy of the calibration point identification is ensured, and the power consumption of the terminal device is also saved. In this way, the re-recognition of the image data means recognizing the calibration points of the other parts of the image data except for the calibration points identified for the first time.
在一个实施例中,所述终端设备初次识别到的标定点与预设的所述标定点样式完全相同,因此可以确定初次识别得到的标定点的准确度等级为第一等级,终端设备再次识别得到的标定点可能与预设的标定点样式不完全相同,因此可以为再次识别得到的标定点标记为准确度等级为第二等级所述第一等级的准确度高于所述第二等级,准确度为第二等级表示准确度有待验证。In one embodiment, the calibration point recognized by the terminal device for the first time is exactly the same as the preset calibration point pattern, so it can be determined that the accuracy level of the calibration point obtained by the initial recognition is the first level, and the terminal device recognizes again The obtained calibration point may not be exactly the same as the preset calibration point style, so the calibration point obtained by re-identification may be marked as the accuracy level is the second level, the accuracy of the first level is higher than the second level, The accuracy is the second level, indicating that the accuracy needs to be verified.
举例来说,参考图6为发明实施例提供的一种标定点识别的流程示意图,图6中假设标定点样式如图4a所示,所述标定点样式所包括的第一形状特征为圆形,第二形状特征为正方形,标定点的结构特征为互星90度的黑白块;假设使用的边缘检测算法为Canny算子;假设评测图卡包括五个评测子图卡,用户控制拍摄装置对所述评测图卡中的五个评测子图卡进行拍摄,标定点数量阈值设置为20个,基于上述假设图6中包括了对图像数据中标定点的初次识别和再次识别。For example, referring to FIG. 6 is a schematic diagram of a calibration point recognition process provided by an embodiment of the invention. In FIG. 6, it is assumed that the calibration point pattern is shown in FIG. 4a, and the first shape feature included in the calibration point pattern is a circle. , The second shape feature is a square, and the structural feature of the calibration point is a black and white block at 90 degrees to each other; it is assumed that the edge detection algorithm used is the Canny operator; it is assumed that the evaluation card includes five evaluation sub-cards, and the user controls the shooting device to The five evaluation sub-picture cards in the evaluation picture card are taken, and the threshold value of the number of calibration points is set to 20. Based on the above assumption, FIG. 6 includes the initial recognition and re-identification of the calibration points in the image data.
步骤S504、基于识别到的标定点和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域。Step S504: Determine at least two regions to be evaluated in the image data based on the identified calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card.
在一个实施例中,所述基于所述标定和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域,包括:确定所述识别到的标定点中各个标定点的像素坐标;根据所述各个标定点的像素坐标确定所述各个标定点之间的位置关系;基于所述各个标定点之间的位置关系以及所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域。In one embodiment, the determining at least two areas to be evaluated in the image data based on the calibration and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card includes: determining the The pixel coordinates of each calibration point in the identified calibration points; determining the positional relationship between the calibration points according to the pixel coordinates of the calibration points; based on the positional relationship between the calibration points and the at least two The layout rules of the evaluation sub-picture cards in the evaluation picture card determine at least two areas to be evaluated in the image data.
在一个实施例中,所述像素坐标是指像素在图像中的位置,所述像素坐标与分辨率有关,假设一幅图像的分辨率为1024x768,表示将该图像包括768行和1024列,那么处于第400行第300列处的像素坐标为400x300。对于同一图像中同一像素来说,如果图像分辨率不变,该像素的像素坐标则不变,但是对同一图像中同一像素来说,在保证分辨率不变的情况下,如果用来显示该图像的显示装置尺寸发生改变,则该像素在显示装置中的位置发生改变。换句话说,如果一幅图像的分辨率保持不变假设为1024x800,无论使用的显示装置尺寸多大比如14寸或21寸,都会将显示装置的屏幕以横向分成800列,纵向分成1024 行来显示该图像,但是对于不同尺寸的显示装置,同一个像素在屏幕中的位置不同。In one embodiment, the pixel coordinate refers to the position of the pixel in the image. The pixel coordinate is related to the resolution. Assuming that the resolution of an image is 1024x768, it means that the image includes 768 rows and 1024 columns. The pixel coordinates at row 400 and column 300 are 400x300. For the same pixel in the same image, if the image resolution does not change, the pixel coordinates of the pixel will not change, but for the same pixel in the same image, if the resolution is not changed, if it is used to display the When the size of the image display device changes, the position of the pixel in the display device changes. In other words, if the resolution of an image is assumed to be 1024x800, regardless of the size of the display device used, such as 14 inches or 21 inches, the screen of the display device will be divided into 800 columns in the horizontal direction and 1024 lines in the vertical direction. This image, but for display devices of different sizes, the same pixel has a different position on the screen.
因此,确定了识别到的各个标定点的像素坐标并不能准确的确定在所述终端设备相关的显示装置的屏幕中各个标定点之间的位置关系,也即不能确定各个标定点之间在显示屏幕上是以怎样的垂直关系和水平关系显示的,所以终端设备需要根据各个标定点之间的像素坐标来确定所述识别到的各个标定点之间的位置关系,以便于所述终端设备后续根据各个标定点之间的位置关系确定待评测区域。Therefore, determining the pixel coordinates of the identified calibration points cannot accurately determine the positional relationship between the calibration points on the screen of the display device related to the terminal device, that is, it is impossible to determine the display between the calibration points The vertical relationship and horizontal relationship are displayed on the screen, so the terminal device needs to determine the positional relationship between the identified calibration points according to the pixel coordinates between the calibration points, so that the terminal device can follow up The area to be evaluated is determined according to the positional relationship between the various calibration points.
在一个实施例中,所述终端设备根据识别到的各个标定点的像素坐标确定所述各个标定点之间的位置关系的实现方式可参见图7所示,图7为本发明实施提供的一种待评测区域识别的流程示意图。在图7中,所述终端设备首先在各个标定点中找到像素坐标与原点距离最近的标定点1,以标定点1作为坐标原点识别第1组水平方向上的各个标定点假设水平方向上有6个标定点,按照距离原点的距离大小依次标号,然后再以标定点1为坐标原点识别第1组垂直方向上的标定点,进一步的,以标定点6为坐标原点识别出第2组垂直方向上的标定点,以此类推可以识别到全部20个标定点之间在水平方向和垂直方向上的位置关系。In an embodiment, the implementation manner of the terminal device determining the positional relationship between each calibration point according to the identified pixel coordinates of each calibration point can be seen in FIG. 7, which is a Schematic diagram of the process of identifying the area to be evaluated. In FIG. 7, the terminal device first finds the calibration point 1 whose pixel coordinate is closest to the origin in each calibration point, and uses the calibration point 1 as the coordinate origin to identify each calibration point in the first group in the horizontal direction. Assume that there is a horizontal direction The 6 calibration points are labeled in sequence according to the distance from the origin, and then the calibration point 1 is used as the coordinate origin to identify the first group of vertical points. Further, the calibration point 6 is used as the coordinate origin to identify the second group of vertical The calibration points in the direction, and so on, can identify the positional relationship between all 20 calibration points in the horizontal direction and the vertical direction.
所述终端设备在识别到各个标定点之间的位置关系之后,可以根据各个标定点之间的位置关系以及所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域。在一个实施例中,所述至少两个评测子图卡在所述评测图卡中的排版规则包括所述至少两个评测子图卡的位置和所述至少两个评测子图卡的尺寸,所述基于所述各个标定点之间的位置关系以及所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据至少两个待评测区域,包括:根据所述至少两个评测子图卡的尺寸、所述至少两个评测子图卡的位置以及所述各个标定点之间的位置关系,确定所述图像数据中包括的矩形区域;After identifying the positional relationship between each calibration point, the terminal device may determine the positional relationship between each calibration point and the typesetting rules of the at least two evaluation sub-picture cards in the evaluation picture card At least two areas to be evaluated in the image data. In an embodiment, the typesetting rules of the at least two evaluation sub-picture cards in the evaluation picture card include positions of the at least two evaluation sub-picture cards and sizes of the at least two evaluation sub-picture cards, The determining at least two areas to be evaluated of the image data based on the positional relationship between the respective calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card includes: Determining the rectangular area included in the image data by the size of at least two evaluation sub-picture cards, the positions of the at least two evaluation sub-picture cards, and the positional relationship between the respective calibration points;
在一个实施例中,假设各个评测图卡都是以一个矩形区域排布在评测图卡上的,所述至少两个评测子图卡的尺寸可以指每个评测子图卡对应的矩形区域的长度和宽度,所述长度和宽度可以是以像素为单位的,也可以是以厘米或其 他长度单位为单位的。根据所述各个标定点的位置关系和至少两个评测子图卡在评测图卡中的位置可以确定出各个标定点之间的距离,以及哪几个标定点可以组成一个矩形区域,比如假设评测图卡中包括一个24色卡,已知24色卡所在矩形区域的尺寸,并且知道所述24色卡所在位置为评测图卡的左下角,则所述终端设备在所述图像数据的左下角位置,根据各个标定点之间的位置关系确定出左下角部分水平方向上的标定点以及垂直方向上的标定点,然后将获取左下角部分各个标定点组成的矩形区域,以及各个矩形区域的尺寸,将所述尺寸等于所述24色卡的矩形区域确定为待评测区域。In one embodiment, it is assumed that each evaluation card is arranged on the evaluation card in a rectangular area, and the size of the at least two evaluation sub-picture cards may refer to the rectangular area corresponding to each evaluation sub-picture card Length and width, the length and width may be in units of pixels, or may be in units of centimeters or other length units. The distance between each calibration point can be determined according to the positional relationship of each calibration point and the position of at least two evaluation sub-picture cards in the evaluation picture card, and which calibration points can form a rectangular area, for example, assuming evaluation The graphic card includes a 24-color card, the size of the rectangular area where the 24-color card is located is known, and the location of the 24-color card is known as the lower left corner of the evaluation graphic card, then the terminal device is in the lower left corner of the image data Position, according to the positional relationship between the various calibration points, determine the horizontal calibration point and vertical calibration point in the lower left corner, and then obtain the rectangular area composed of the calibration points in the lower left corner and the size of each rectangular area , Determine the rectangular area whose size is equal to the 24-color card as the area to be evaluated.
步骤S505、根据所述评测图卡中各个评测子图卡的位置确定所述至少两个待评测区域中每个待评测区域所属的评测指标类别。Step S505: Determine, according to the position of each evaluation sub-picture card in the evaluation picture card, the evaluation indicator category to which each of the at least two areas to be evaluated belongs.
步骤S506、将所述评测指标类别对应的评测规则分别作为所述每个待评区域对应的评测规则。Step S506: Use the evaluation rules corresponding to the evaluation indicator categories as the evaluation rules corresponding to each area to be evaluated.
步骤507、利用所述至少两个待评测区域对应的评测规则分别对每个待评测区域进行测评,得到所述拍摄装置的拍摄质量测评结果。Step 507: Use the evaluation rules corresponding to the at least two areas to be evaluated to evaluate each area to be evaluated separately to obtain a shooting quality evaluation result of the shooting device.
在一个实施例中,所述步骤S505-S507中包括的一些可行的实施方式在图3所示的实施例中已详细描述,在此不再赘述。In an embodiment, some feasible implementation manners included in the steps S505-S507 have been described in detail in the embodiment shown in FIG. 3, and will not be repeated here.
本发明实施例中,获取到拍摄装置对包括多个评测子图卡的评测图卡进行拍摄所得的图像数据后,可基于预先设定的标定点样式识别出图像数据中的标定点,进一步的,根据识别到的标定点以及评测图卡中各个评测子图卡的排版规则确定出所述图像数据中各个待评测区域,最后利用各个待评测区域对应的评测规则分别对每个待评测区域进行评测,得到对拍摄装置的拍摄质量测评结果,可以一次性对多个评测指标进行评测,且自动识别各个评测指标对应的待评测区域,节省评测时间,提高了评测效率。In the embodiment of the present invention, after the image data obtained by the shooting device shooting the evaluation picture card including a plurality of evaluation sub-picture cards is acquired, the calibration points in the image data can be identified based on the preset calibration point patterns, further , Determine each area to be evaluated in the image data according to the identified calibration points and the layout rules of each evaluation sub-picture card in the evaluation card, and finally use the evaluation rules corresponding to each evaluation area to carry out each evaluation area Evaluation, to obtain the shooting quality evaluation results of the shooting device, can evaluate multiple evaluation indexes at one time, and automatically identify the areas to be evaluated corresponding to each evaluation index, saving evaluation time and improving evaluation efficiency.
请参考图8,为本发明实施例提供的一种对拍摄装置的拍摄质量评测装置的结构示意图,如图8所示的对拍摄装置的拍摄质量评测装置包括获取单元801和处理单元802:Please refer to FIG. 8, which is a schematic structural diagram of a shooting quality evaluation device for a shooting device according to an embodiment of the present invention. As shown in FIG. 8, the shooting quality evaluation device for a shooting device includes an acquisition unit 801 and a processing unit 802:
所述获取单元801,用于获取拍摄装置对评测图卡进行拍摄所得的图像数据,所述评测图卡包括至少两个评测子图卡;The acquiring unit 801 is configured to acquire image data obtained by shooting an evaluation picture card by a shooting device, the evaluation picture card including at least two evaluation sub-picture cards;
所述处理单元802,用于基于标定点样式识别所述图像数据中的标定点;The processing unit 802 is configured to identify the calibration point in the image data based on the calibration point pattern;
所述处理单元802,还用于基于识别到的标定点和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域;The processing unit 802 is further configured to determine at least two areas to be evaluated in the image data based on the identified calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card;
所述处理单元802,还用于利用所述至少两个待评测区域对应的评测规则分别对每个待评测区域进行测评,得到所述拍摄装置的拍摄质量测评结果。The processing unit 802 is further configured to respectively evaluate each area to be evaluated using evaluation rules corresponding to the at least two areas to be evaluated to obtain a shooting quality evaluation result of the shooting device.
在一个实施例中,所述处理单元802用于基于标定点样式识别所述图像数据中的标定点的实施方式为:将所述图像数据转换为灰度图像数据;对所述灰度图像数据进行边缘检测处理,得到边缘图像数据;基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点。In one embodiment, the implementation of the processing unit 802 for identifying the calibration point in the image data based on the calibration point pattern is: converting the image data into grayscale image data; Perform edge detection processing to obtain edge image data; identify the calibration points in the image data based on the shape characteristics of the calibration points, the structural characteristics of the calibration points, and the edge image data.
在一个实施例中,所述处理单元802用于基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点的实施方式为:基于所述边缘图像数据检测所述图像数据中形状特征与所述标定点的形状特征相同的第一图像元素;从检测到的第一图像元素中筛选结构特征与所述标定点的结构特征相同的第一图像元素;将筛选出的第一图像元素确定为识别到的标定点。In an embodiment, the processing unit 802 is configured to identify the calibration points in the image data based on the shape characteristics of the calibration points, the structural characteristics of the calibration points, and the edge image data: The edge image data detects a first image element in the image data whose shape feature is the same as the shape feature of the calibration point; from the detected first image element, a structural feature that is the same as the structural feature of the calibration point is selected The first image element; the selected first image element is determined as the identified calibration point.
在一个实施例中,所述标定点的形状特征包括第一形状特征和第二形状特征,所述处理单元802用于基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点的实施方式为:基于所述标定点的结构特征、所述边缘图像数据、所述第一形状特征和所述第二形状特征识别所述图像数据中的标定点。In an embodiment, the shape features of the calibration point include a first shape feature and a second shape feature, and the processing unit 802 is configured to be based on the shape feature of the calibration point, the structural feature of the calibration point, and the The embodiment of the edge image data identifying the calibration points in the image data is: identifying the image data based on the structural features of the calibration points, the edge image data, the first shape feature and the second shape feature Calibration point in.
在一个实施例中,所述处理单元802用于基于所述标定点的结构特征、所述边缘图像数据、所述第一形状特征和所述第二形状特征识别所述图像数据中的标定点的实施方式为:基于所述边缘图像数据检测所述图像数据中形状特征与所述第一形状特征相同的第一图像元素;从检测到的第一图像元素中筛选结构特征与所述标定点的结构特征相同的第一图像元素;通过轮廓识别从筛选出的第一图像元素中确定形状特征与所述第二形状特征相同的第二图像元素;从所述第二图像元素中筛选结构特征与所述标定点的结构特征相同的第二图像元素;将筛选出的第二图像元素确定为识别到的标定点。In one embodiment, the processing unit 802 is used to identify the calibration point in the image data based on the structural feature of the calibration point, the edge image data, the first shape feature and the second shape feature The implementation method is: detecting a first image element in the image data having the same shape feature as the first shape feature based on the edge image data; filtering structural features and the calibration points from the detected first image element The first image element with the same structural feature; the second image element whose shape feature is determined to be the same as the second shape feature from the selected first image element by contour recognition; and the structural feature is selected from the second image element A second image element having the same structural characteristics as the calibration point; the filtered second image element is determined as the identified calibration point.
在一个实施例中,所述获取单元801还用于获取识别到的标定点的数量; 所述处理单元802还用于若所述标定点的数量小于标定点数量阈值,则基于所述标定点的结构特征、所述边缘图像数据以及所述第一形状特征或所述第二形状特征识别所述图像数据中的标定点。In one embodiment, the obtaining unit 801 is further used to obtain the number of identified calibration points; the processing unit 802 is also used to determine the number of calibration points based on the calibration points if the number of calibration points is less than the threshold of the number of calibration points Structural features of the image, the edge image data, and the first shape feature or the second shape feature identify calibration points in the image data.
在一个实施例中,所述处理单元802用于基于所述标定点的结构特征、所述边缘图像数据以及所述第一形状特征或所述第二形状特征识别所述图像数据中的标定点的实施方式为:基于边缘图像数据检测所述图像数据中形状特征与所述第一形状特征或所述第二形状特征相同的第三图像元素;从检测到的第三图像元素中筛选结构特征与所述标定点的结构特征相同的第三图像元素;将筛选出的第三图像元素确定为识别到的标定点。In one embodiment, the processing unit 802 is used to identify the calibration point in the image data based on the structural feature of the calibration point, the edge image data, and the first shape feature or the second shape feature Is implemented by: detecting a third image element in the image data whose shape features are the same as the first shape feature or the second shape feature based on edge image data; filtering structural features from the detected third image element The third image element having the same structural characteristics as the calibration point; the filtered third image element is determined as the identified calibration point.
在一个实施例中,所述处理单元802还用于为基于所述标定点的结构特征、所述边缘图像数据以及所述第一形状特征或所述第二形状特征识别到的标定点添加标记,所述标记用于指示所述标定点的准确度有待验证。In one embodiment, the processing unit 802 is further configured to add marks to the calibration points identified based on the structural features of the calibration points, the edge image data, and the first shape feature or the second shape feature , The mark is used to indicate that the accuracy of the calibration point needs to be verified.
在一个实施例中,所述处理单元802用于基于识别到的标定点和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域的实施方式为:确定所述识别到的标定点中各个标定点的像素坐标;根据所述各个标定点的像素坐标确定所述各个标定点之间的位置关系;基于所述各个标定点之间的位置关系以及所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域。In one embodiment, the processing unit 802 is configured to determine at least two of the image data to be evaluated based on the identified calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card The embodiment of the area is: determining the pixel coordinates of each of the identified calibration points; determining the positional relationship between the calibration points according to the pixel coordinates of the calibration points; based on the calibration points The positional relationship between them and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card determine at least two areas to be evaluated in the image data.
在一个实施例中,所述至少两个评测子图卡在所述评测图卡中的排版规则包括所述至少两个评测子图卡的位置和所述至少两个评测子图卡的尺寸;所述处理单元802用于基于所述各个标定点之间的位置关系以及所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据至少两个待评测区域的实施方式为:根据所述至少两个评测子图卡的尺寸、所述至少两个评测子图卡的位置以及所述各个标定点之间的位置关系,确定所述图像数据中包括的矩形区域;将所述矩形区域确定为待评测区域。In one embodiment, the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card include the positions of the at least two evaluation sub-picture cards and the sizes of the at least two evaluation sub-picture cards; The processing unit 802 is configured to determine the at least two areas of the image data to be evaluated based on the positional relationship between the respective calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card An implementation manner is: determining a rectangular area included in the image data according to the sizes of the at least two evaluation sub-picture cards, the positions of the at least two evaluation sub-picture cards, and the positional relationship between the respective calibration points ; Determine the rectangular area as the area to be evaluated.
在一个实施例中,所述处理单元802还用于:根据所述各个评测子图卡的位置确定所述至少两个待评测区域中每个待评测区域所属的评测指标类别;将所述评测指标类别对应的评测规则分别作为所述每个待评区域对应的评测规则。In an embodiment, the processing unit 802 is further configured to: determine the evaluation indicator category to which each of the at least two areas to be evaluated belongs to according to the positions of the respective evaluation sub-picture cards; The evaluation rules corresponding to the index categories are respectively used as the evaluation rules corresponding to each area to be evaluated.
在一个实施例中,所述评测子图卡包括以下的任一种:用于评测色彩准确度和饱和度的24色卡、用于评测画面平均亮度的灰卡、用于评测细节损失的枯叶图、用于评测信噪比或对比度的灰阶卡、用于评测清晰度的解析力斜边图卡。In one embodiment, the evaluation sub-picture card includes any one of the following: a 24-color card for evaluating color accuracy and saturation, a gray card for evaluating average brightness of the picture, and a dry card for evaluating loss of detail Leaf maps, grayscale cards for evaluating signal-to-noise ratio or contrast, and analytical beveled edge cards for evaluating clarity.
本发明实施例中,获取单元801获取到拍摄装置对包括多个评测子图卡的评测图卡进行拍摄所得的图像数据后,处理单元802基于预先设定的标定点样式识别出图像数据中的标定点,进一步的,处理单元802根据识别到的标定点以及评测图卡中各个评测子图卡的排版规则确定出图像数据中各个待评测区域,最后处理单元802利用各个待评测区域对应的评测规则分别对每个待拼车区域进行拼车,得到对拍摄装置的拍摄质量评测结果,可以一次性对多个类别的评测指标进行评测,且自动识别各个评测指标对应的待评测区域,节省评测时间,提高了评测效率。In the embodiment of the present invention, after the acquiring unit 801 acquires the image data obtained by shooting the evaluation card including a plurality of evaluation sub-picture cards, the processing unit 802 recognizes the image data based on the preset calibration point pattern. Calibration point, further, the processing unit 802 determines each area to be evaluated in the image data according to the identified calibration point and the layout rules of each evaluation sub-picture card in the evaluation card, and finally the processing unit 802 uses the evaluation corresponding to each evaluation area The rules for carpooling each carpool area separately to obtain the shooting quality evaluation results of the shooting device, you can evaluate multiple categories of evaluation indicators at one time, and automatically identify the areas to be evaluated corresponding to each evaluation indicator to save evaluation time, Improve the evaluation efficiency.
请参见图9,为本发明实施例提供的一种终端设备的结构示意图,如图9所示的终端设备包括处理器901和存储器902,所述存储器902和所述处理器901通过总线903连接,所述存储器902用于存储程序指令。Please refer to FIG. 9, which is a schematic structural diagram of a terminal device according to an embodiment of the present invention. The terminal device shown in FIG. 9 includes a processor 901 and a memory 902, and the memory 902 and the processor 901 are connected through a bus 903 The memory 902 is used to store program instructions.
所述存储器902可以包括易失性存储器(volatile memory),如随机存取存储器(random-access memory,RAM);存储器902也可以包括非易失性存储器(non-volatile memory),如快闪存储器(flash memory),固态硬盘(solid-state drive,SSD)等;存储器902还可以包括上述种类的存储器的组合。The memory 902 may include volatile memory (volatile memory), such as random-access memory (RAM); the memory 902 may also include non-volatile memory (non-volatile memory), such as flash memory (flash memory), solid-state drive (SSD), etc.; the memory 902 may also include a combination of the aforementioned types of memory.
所述处理器901可以是中央处理器(Central Processing Unit,CPU)。所述处理器901还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)等。该PLD可以是现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)等。所述处理器901也可以为上述结构的组合。The processor 901 may be a central processing unit (Central Processing Unit, CPU). The processor 901 may further include a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (programmable logic device, PLD), or the like. The PLD may be a field-programmable gate array (field-programmable gate array, FPGA), general-purpose array logic (generic array logic, GAL), or the like. The processor 901 may also be a combination of the above structures.
本发明实施例中,所述存储器902用于存储计算机程序,所述计算机程序包括程序指令,处理器901用于执行存储器902存储的程序指令,用来实现上述图3所示的实施例中的相应方法的步骤。In the embodiment of the present invention, the memory 902 is used to store a computer program, and the computer program includes program instructions, and the processor 901 is used to execute the program instructions stored in the memory 902 to implement the above-described embodiment shown in FIG. 3 Steps of the corresponding method.
在一个实施例中,所述处理器901用于执行存储器902存储的程序指令,所 述处理器901被配置用于调用所述程序指令时执行:获取拍摄装置对评测图卡进行拍摄所得的图像数据,所述评测图卡包括至少两个评测子图卡;基于标定点样式识别所述图像数据中的标定点;基于识别到的标定点和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域;利用所述至少两个待评测区域对应的评测规则分别对每个待评测区域进行测评,得到所述拍摄装置的拍摄质量测评结果。In one embodiment, the processor 901 is used to execute the program instructions stored in the memory 902, and the processor 901 is configured to execute when the program instructions are called: acquiring an image obtained by the shooting device shooting the evaluation card Data, the evaluation chart includes at least two evaluation sub-picture cards; identifying calibration points in the image data based on calibration point patterns; based on the identified calibration points and the at least two evaluation sub-picture cards in the evaluation The typesetting rules in the graphics card determine at least two areas to be evaluated in the image data; each evaluation area is evaluated using evaluation rules corresponding to the at least two areas to be evaluated to obtain the shooting quality of the shooting device Evaluation results.
在一个实施例中,所述处理器901在基于标定点样式识别所述图像数据中的标定点时,执行如下操作:将所述图像数据转换为灰度图像数据;对所述灰度图像数据进行边缘检测处理,得到边缘图像数据;基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点。In one embodiment, the processor 901 performs the following operations when recognizing the calibration point in the image data based on the calibration point pattern: converting the image data into gray-scale image data; Perform edge detection processing to obtain edge image data; identify the calibration points in the image data based on the shape characteristics of the calibration points, the structural characteristics of the calibration points, and the edge image data.
在一个实施例中,所述处理器901在基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点时,执行如下操作:基于所述边缘图像数据检测所述图像数据中形状特征与所述标定点的形状特征相同的第一图像元素;从检测到的第一图像元素中筛选结构特征与所述标定点的结构特征相同的第一图像元素;将筛选出的第一图像元素确定为识别到的标定点。In one embodiment, the processor 901 performs the following operations when identifying the calibration points in the image data based on the shape characteristics of the calibration points, the structural characteristics of the calibration points, and the edge image data: The edge image data detects a first image element in the image data whose shape feature is the same as the shape feature of the calibration point; from the detected first image element, a structural feature that is the same as that of the calibration point The first image element; the selected first image element is determined as the identified calibration point.
在一个实施例中,所述标定点的形状特征包括第一形状特征和第二形状特征,所述处理器901在基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点时,执行如下操作:基于所述标定点的结构特征、所述边缘图像数据、所述第一形状特征和所述第二形状特征识别所述图像数据中的标定点。In one embodiment, the shape feature of the calibration point includes a first shape feature and a second shape feature, the processor 901 is based on the shape feature of the calibration point, the structural feature of the calibration point, and the edge When the image data identifies the calibration point in the image data, the following operation is performed: identifying the image data based on the structural feature of the calibration point, the edge image data, the first shape feature, and the second shape feature Calibration point in.
在一个实施例中,所述处理器901在基于所述标定点的结构特征、所述边缘图像数据、所述第一形状特征和所述第二形状特征识别所述图像数据中的标定点时,执行如下操作:基于所述边缘图像数据检测所述图像数据中形状特征与所述第一形状特征相同的第一图像元素;从检测到的第一图像元素中筛选结构特征与所述标定点的结构特征相同的第一图像元素;通过轮廓识别从筛选出的第一图像元素中确定形状特征与所述第二形状特征相同的第二图像元素;从所述第二图像元素中筛选结构特征与所述标定点的结构特征相同的第二图像 元素;将筛选出的第二图像元素确定为识别到的标定点。In one embodiment, the processor 901 recognizes the calibration point in the image data based on the structural feature of the calibration point, the edge image data, the first shape feature, and the second shape feature , Performing the following operations: detecting a first image element in the image data having the same shape feature as the first shape feature based on the edge image data; filtering structural features and the calibration points from the detected first image element The first image element with the same structural feature; the second image element whose shape feature is determined to be the same as the second shape feature from the selected first image element by contour recognition; A second image element having the same structural characteristics as the calibration point; the filtered second image element is determined as the identified calibration point.
在一个实施例中,所述处理器901被配置用于调用所述程序指令时还执行:获取识别到的标定点的数量;若所述标定点的数量小于标定点数量阈值,则基于所述标定点的结构特征、所述边缘图像数据以及所述第一形状特征或所述第二形状特征识别所述图像数据中的标定点。In one embodiment, the processor 901 is configured to execute when the program instruction is invoked: acquiring the number of identified calibration points; if the number of calibration points is less than the threshold of the number of calibration points, based on the The structural feature of the calibration point, the edge image data, and the first shape feature or the second shape feature identify the calibration point in the image data.
在一个实施例中,所述处理器901在基于所述标定点的结构特征、所述边缘图像数据以及所述第一形状特征或所述第二形状特征识别所述图像数据中的标定点时,执行如下操作:基于边缘图像数据检测所述图像数据中形状特征与所述第一形状特征或所述第二形状特征相同的第三图像元素;从检测到的第三图像元素中筛选结构特征与所述标定点的结构特征相同的第三图像元素;将筛选出的第三图像元素确定为识别到的标定点。In one embodiment, the processor 901 recognizes the calibration point in the image data based on the structural feature of the calibration point, the edge image data, and the first shape feature or the second shape feature , Performing the following operations: detecting a third image element with the same shape feature in the image data as the first shape feature or the second shape feature based on the edge image data; filtering structural features from the detected third image element The third image element having the same structural characteristics as the calibration point; the filtered third image element is determined as the identified calibration point.
在一个实施例中,所述处理器901被配置用于调用所述程序指令时还执行:为基于所述标定点的结构特征、所述边缘图像数据以及所述第一形状特征或所述第二形状特征识别到的标定点添加标记,所述标记用于指示所述标定点的准确度有待验证。In one embodiment, the processor 901 is configured to execute when the program instruction is invoked: based on the structural feature of the calibration point, the edge image data, and the first shape feature or the first Marks are added to the calibration points identified by the two shape features, and the marks are used to indicate that the accuracy of the calibration points needs to be verified.
在一个实施例中,所述处理器901在基于识别到的标定点和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域时,执行如下操作:确定所述识别到的标定点中各个标定点的像素坐标;根据所述各个标定点的像素坐标确定所述各个标定点之间的位置关系;基于所述各个标定点之间的位置关系以及所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域。In one embodiment, the processor 901 determines at least two areas to be evaluated in the image data based on the identified calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card , Perform the following operations: determine the pixel coordinates of each of the identified calibration points; determine the positional relationship between the individual calibration points according to the pixel coordinates of the individual calibration points; based on the The positional relationship between them and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card determine at least two areas to be evaluated in the image data.
在一个实施例中,所述至少两个评测子图卡在所述评测图卡中的排版规则包括所述至少两个评测子图卡的位置和所述至少两个评测子图卡的尺寸;所述处理器901在基于所述各个标定点之间的位置关系以及所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据至少两个待评测区域时,执行如下操作:根据所述至少两个评测子图卡的尺寸、所述至少两个评测子图卡的位置以及所述各个标定点之间的位置关系,确定所述图像数据中包括的矩形区域;将所述矩形区域确定为待评测区域。In one embodiment, the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card include the positions of the at least two evaluation sub-picture cards and the sizes of the at least two evaluation sub-picture cards; When the processor 901 determines at least two areas to be evaluated of the image data based on the positional relationship between the respective calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card, Perform the following operations: determine the rectangular area included in the image data according to the sizes of the at least two evaluation sub-picture cards, the positions of the at least two evaluation sub-picture cards, and the positional relationship between the respective calibration points ; Determine the rectangular area as the area to be evaluated.
在一个实施例中,所述处理器901被配置用于调用所述程序指令时还执行: 根据所述各个评测子图卡的位置确定所述至少两个待评测区域中每个待评测区域所属的评测指标类别;将所述评测指标类别对应的评测规则分别作为所述每个待评区域对应的评测规则。In an embodiment, the processor 901 is configured to execute when the program instruction is invoked: determine, according to the position of each evaluation sub-picture card, each of the at least two areas to be evaluated belongs to the area to be evaluated Categories of evaluation indicators; the evaluation rules corresponding to the categories of evaluation indicators are respectively used as the evaluation rules corresponding to each area to be evaluated.
在一个实施例中,所述评测子图卡包括以下的任一种:用于评测色彩准确度和饱和度的24色卡、用于评测画面平均亮度的灰卡、用于评测细节损失的枯叶图、用于评测信噪比或对比度的灰阶卡、用于评测清晰度的解析力斜边图卡。In one embodiment, the evaluation sub-picture card includes any one of the following: a 24-color card for evaluating color accuracy and saturation, a gray card for evaluating average brightness of the picture, and a dry card for evaluating loss of detail Leaf maps, grayscale cards for evaluating signal-to-noise ratio or contrast, and analytical beveled edge cards for evaluating clarity.
参考图10,为本发明实施例提供的一种评测图卡,所述评测图卡用于评测拍摄装置的拍摄质量,所述评测图卡可以应用在上述图3所示的方法实施例中。所述评测图卡包括五个评测子图卡和二十个标定点;所述五个评测子图卡分别是:用于评测清晰度的解析力斜边图卡1001、用于评测色彩准确度和饱和度的24色卡1002、用于评测画面平均亮度的灰卡1003、用于评测细节损失的枯叶图1004、以及用于评测信噪比或对比度的灰阶卡1005;所述二十个标定点1006用于划分所述五个评测子图卡。Referring to FIG. 10, it is an evaluation card provided by an embodiment of the present invention. The evaluation card is used to evaluate the shooting quality of a shooting device. The evaluation card may be used in the method embodiment shown in FIG. The evaluation picture card includes five evaluation sub-picture cards and twenty calibration points; the five evaluation sub-picture cards are respectively: the analytical power hypotenuse picture card 1001 for evaluating the sharpness, and the color accuracy for evaluating the color accuracy And saturation 24 color card 1002, gray card 1003 for evaluating the average brightness of the picture, dead leaf map 1004 for evaluating the loss of detail, and gray scale card 1005 for evaluating the signal-to-noise ratio or contrast; One calibration point 1006 is used to divide the five evaluation sub-picture cards.
所述解析力斜边图卡1001配置于所述评测图卡的中心位置,所述24色卡1002配置于所述评测图卡的左下角位置,所述灰卡1003配置于所述评测图卡的左上角位置,所述枯叶图1004配置于所述评测图卡的右上角位置,所述灰阶卡1005配置于所述评测图卡的底部位置。The resolving power hypotenuse card 1001 is arranged at the center of the evaluation card, the 24-color card 1002 is arranged at the lower left corner of the evaluation card, and the gray card 1003 is arranged at the evaluation card In the upper left corner of the image, the dead leaf map 1004 is configured at the upper right corner of the evaluation card, and the grayscale card 1005 is configured at the bottom of the evaluation card.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。A person of ordinary skill in the art may understand that all or part of the processes in the method of the foregoing embodiments may be completed by instructing relevant hardware through a computer program, and the program may be stored in a computer-readable storage medium. During execution, the process of the above method embodiments may be included. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), etc.
以上所揭露的仅为本发明部分实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosure is only part of the embodiments of the present invention, and of course it cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (27)

  1. 一种对拍摄装置的拍摄质量评测方法,其特征在于,包括:A method for evaluating the shooting quality of a shooting device, characterized in that it includes:
    获取拍摄装置对评测图卡进行拍摄所得的图像数据,所述评测图卡包括至少两个评测子图卡;Acquiring image data obtained by shooting an evaluation picture card by a shooting device, the evaluation picture card including at least two evaluation sub-picture cards;
    基于标定点样式识别所述图像数据中的标定点;Identifying the calibration point in the image data based on the calibration point pattern;
    基于识别到的标定点和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域;Determine at least two regions to be evaluated in the image data based on the identified calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card;
    利用所述至少两个待评测区域对应的评测规则分别对每个待评测区域进行测评,得到所述拍摄装置的拍摄质量测评结果。The evaluation rules corresponding to the at least two areas to be evaluated are respectively evaluated for each area to be evaluated to obtain a shooting quality evaluation result of the shooting device.
  2. 如权利要求1所述的方法,其特征在于,所述基于标定点样式识别所述图像数据中的标定点,包括:The method of claim 1, wherein the identifying the calibration point in the image data based on the calibration point pattern includes:
    将所述图像数据转换为灰度图像数据;Convert the image data into grayscale image data;
    对所述灰度图像数据进行边缘检测处理,得到边缘图像数据;Performing edge detection processing on the grayscale image data to obtain edge image data;
    基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点。The calibration points in the image data are identified based on the shape characteristics of the calibration points, the structural characteristics of the calibration points, and the edge image data.
  3. 如权利要求2所述的方法,其特征在于,所述基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点,包括:The method according to claim 2, wherein the identifying the calibration points in the image data based on the shape features of the calibration points, the structural features of the calibration points, and the edge image data includes:
    基于所述边缘图像数据检测所述图像数据中形状特征与所述标定点的形状特征相同的第一图像元素;Detecting, based on the edge image data, a first image element in the image data that has the same shape feature as that of the calibration point;
    从检测到的第一图像元素中筛选结构特征与所述标定点的结构特征相同的第一图像元素;Selecting first image elements with the same structural characteristics as the structural characteristics of the calibration point from the detected first image elements;
    将筛选出的第一图像元素确定为识别到的标定点。The filtered first image element is determined as the identified calibration point.
  4. 如权利要求2所述的方法,其特征在于,所述标定点的形状特征包括第一形状特征和第二形状特征,所述基于所述标定点的形状特征、所述标定点的 结构特征以及所述边缘图像数据识别所述图像数据中的标定点,包括:The method according to claim 2, wherein the shape features of the calibration point include a first shape feature and a second shape feature, the shape feature based on the calibration point, the structural feature of the calibration point and The edge image data identifying the calibration points in the image data includes:
    基于所述标定点的结构特征、所述边缘图像数据、所述第一形状特征和所述第二形状特征识别所述图像数据中的标定点。The calibration points in the image data are identified based on the structural features of the calibration points, the edge image data, the first shape features, and the second shape features.
  5. 如权利要求4所述的方法,其特征在于,所述基于所述标定点的结构特征、所述边缘图像数据、所述第一形状特征和所述第二形状特征识别所述图像数据中的标定点,包括:The method according to claim 4, wherein the identification of the image data based on the structural features of the calibration point, the edge image data, the first shape feature, and the second shape feature Calibration points, including:
    基于所述边缘图像数据检测所述图像数据中形状特征与所述第一形状特征相同的第一图像元素;Detecting, based on the edge image data, a first image element in the image data that has the same shape feature as the first shape feature;
    从检测到的第一图像元素中筛选结构特征与所述标定点的结构特征相同的第一图像元素;Selecting first image elements with the same structural characteristics as the structural characteristics of the calibration point from the detected first image elements;
    通过轮廓识别从筛选出的第一图像元素中确定形状特征与所述第二形状特征相同的第二图像元素;Identifying the second image element with the same shape feature as the second shape feature from the filtered first image elements through contour recognition;
    从所述第二图像元素中筛选结构特征与所述标定点的结构特征相同的第二图像元素;Selecting second image elements with the same structural characteristics as the structural characteristics of the calibration point from the second image elements;
    将筛选出的第二图像元素确定为识别到的标定点。The filtered second image element is determined as the identified calibration point.
  6. 如权利要求4所述的方法,其特征在于,所述方法还包括:The method of claim 4, wherein the method further comprises:
    获取识别到的标定点的数量;Obtain the number of identified calibration points;
    若所述标定点的数量小于标定点数量阈值,则基于所述标定点的结构特征、所述边缘图像数据以及所述第一形状特征或所述第二形状特征识别所述图像数据中的标定点。If the number of calibration points is less than the threshold of calibration points, the calibration in the image data is identified based on the structural features of the calibration points, the edge image data, and the first shape feature or the second shape feature Fixed point.
  7. 如权利要求6所述的方法,其特征在于,所述基于所述标定点的结构特征、所述边缘图像数据以及所述第一形状特征或所述第二形状特征识别所述图像数据中的标定点,包括:The method according to claim 6, wherein the identification of the image data based on the structural feature of the calibration point, the edge image data, and the first shape feature or the second shape feature Calibration points, including:
    基于边缘图像数据检测所述图像数据中形状特征与所述第一形状特征或所述第二形状特征相同的第三图像元素;Detecting a third image element with the same shape feature in the image data as the first shape feature or the second shape feature based on the edge image data;
    从检测到的第三图像元素中筛选结构特征与所述标定点的结构特征相同 的第三图像元素;Selecting third image elements with the same structural characteristics as the structural characteristics of the calibration point from the detected third image elements;
    将筛选出的第三图像元素确定为识别到的标定点。The filtered third image element is determined as the identified calibration point.
  8. 如权利要求6或7所述的方法,其特征在于,所述方法还包括:The method according to claim 6 or 7, wherein the method further comprises:
    为基于所述标定点的结构特征、所述边缘图像数据以及所述第一形状特征或所述第二形状特征识别到的标定点添加标记,所述标记用于指示所述标定点的准确度有待验证。Adding marks to the calibration points identified based on the structural features of the calibration point, the edge image data, and the first shape feature or the second shape feature, the markers are used to indicate the accuracy of the calibration points To be verified.
  9. 如权利要求1所述的方法,其特征在于,所述基于识别到的标定点和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域,包括:The method according to claim 1, wherein the determination of at least two of the image data based on the identified calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card Areas to be evaluated, including:
    确定所述识别到的标定点中各个标定点的像素坐标;Determine the pixel coordinates of each of the identified calibration points;
    根据所述各个标定点的像素坐标确定所述各个标定点之间的位置关系;Determining the positional relationship between the calibration points according to the pixel coordinates of the calibration points;
    基于所述各个标定点之间的位置关系以及所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域。At least two regions to be evaluated in the image data are determined based on the positional relationship between the respective calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card.
  10. 如权利要求9所述的方法,其特征在于,所述至少两个评测子图卡在所述评测图卡中的排版规则包括所述至少两个评测子图卡的位置和所述至少两个评测子图卡的尺寸;The method according to claim 9, wherein the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card include the positions of the at least two evaluation sub-picture cards and the at least two Evaluate the size of the sub-picture card;
    所述基于所述各个标定点之间的位置关系以及所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据至少两个待评测区域,包括:The determining at least two areas to be evaluated of the image data based on the positional relationship between the respective calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card includes:
    根据所述至少两个评测子图卡的尺寸、所述至少两个评测子图卡的位置以及所述各个标定点之间的位置关系,确定所述图像数据中包括的矩形区域;Determine the rectangular area included in the image data according to the size of the at least two evaluation sub-picture cards, the positions of the at least two evaluation sub-picture cards, and the positional relationship between the respective calibration points;
    将所述矩形区域确定为待评测区域。The rectangular area is determined as the area to be evaluated.
  11. 如权利要求10所述的方法,其特征在于,所述利用所述至少两个待评测区域对应的评测规则分别对每个待评测区域进行测评之前,所述方法还包括:The method according to claim 10, characterized in that, before each of the regions to be evaluated is evaluated using the evaluation rules corresponding to the at least two regions to be evaluated, the method further comprises:
    根据所述各个评测子图卡的位置确定所述至少两个待评测区域中每个待 评测区域所属的评测指标类别;Determine the evaluation indicator category to which each area to be evaluated in the at least two areas to be evaluated belongs to the position of each evaluation sub-picture card;
    将所述评测指标类别对应的评测规则分别作为所述每个待评区域对应的评测规则。The evaluation rules corresponding to the evaluation indicator categories are respectively used as the evaluation rules corresponding to each area to be evaluated.
  12. 如权利要求1所述的方法,其特征在于,所述评测子图卡包括以下的任一种:用于评测色彩准确度和饱和度的24色卡、用于评测画面平均亮度的灰卡、用于评测细节损失的枯叶图、用于评测信噪比或对比度的灰阶卡、用于评测清晰度的解析力斜边图卡。The method according to claim 1, wherein the evaluation sub-picture card includes any one of the following: a 24-color card for evaluating color accuracy and saturation, a gray card for evaluating the average brightness of the picture, A dead-leaf graph for evaluating loss of detail, a grayscale card for evaluating signal-to-noise ratio or contrast, and a resolution beveled edge card for evaluating sharpness.
  13. 一种对拍摄装置的拍摄质量评测装置,其特征在于,包括:A shooting quality evaluation device for a shooting device, characterized in that it includes:
    获取单元,用于获取拍摄装置对评测图卡进行拍摄所得的图像数据,所述评测图卡包括至少两个评测子图卡;An obtaining unit, configured to obtain image data obtained by shooting the evaluation picture card by the shooting device, the evaluation picture card including at least two evaluation sub-picture cards;
    处理单元,用于基于标定点样式识别所述图像数据中的标定点;A processing unit, configured to identify the calibration point in the image data based on the calibration point pattern;
    所述处理单元,还用于基于识别到的标定点和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域;The processing unit is further configured to determine at least two areas to be evaluated in the image data based on the identified calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card;
    所述处理单元,还用于利用所述至少两个待评测区域对应的评测规则分别对每个待评测区域进行测评,得到所述拍摄装置的拍摄质量测评结果;The processing unit is further configured to separately evaluate each area to be evaluated using evaluation rules corresponding to the at least two areas to be evaluated to obtain a shooting quality evaluation result of the shooting device;
    所述处理单元,还用于执行如权利要求2-12任一项所述的拍摄质量评测方法。The processing unit is further configured to execute the shooting quality evaluation method according to any one of claims 2-12.
  14. 一种评测图卡,其特征在于,所述评测图卡用于评测拍摄装置的拍摄质量,所述评测图卡包括五个评测子图卡和二十个标定点;An evaluation card, characterized in that the evaluation card is used to evaluate the shooting quality of a shooting device, and the evaluation card includes five evaluation sub-cards and twenty calibration points;
    所述五个评测子图卡分别是:用于评测清晰度的解析力斜边图卡、用于评测色彩准确度和饱和度的24色卡、用于评测画面平均亮度的灰卡、用于评测细节损失的枯叶图、以及用于评测信噪比或对比度的灰阶卡;The five evaluation sub-picture cards are respectively: resolution analysis hypotenuse picture card for evaluating sharpness, 24-color card for evaluating color accuracy and saturation, gray card for evaluating average brightness of the screen, and Dead leaf maps for evaluating loss of detail, and grayscale cards for evaluating signal-to-noise ratio or contrast;
    所述二十个标定点用于划分所述五个评测子图卡;The twenty calibration points are used to divide the five evaluation sub-picture cards;
    所述解析力斜边图卡配置于所述评测图卡的中心位置,所述24色卡配置于所述评测图卡的左下角位置,所述灰卡配置于所述评测图卡的左上角位置,所述枯叶图配置于所述评测图卡的右上角位置,所述灰阶卡配置于所述评测图卡 的底部位置。The analytical force hypotenuse card is arranged at the center of the evaluation card, the 24-color card is arranged at the lower left corner of the evaluation card, and the gray card is arranged at the upper left corner of the evaluation card Position, the dead leaf map is arranged at the upper right corner of the evaluation chart card, and the grayscale card is arranged at the bottom position of the evaluation chart card.
  15. 一种终端设备,其特征在于,包括处理器和存储器:A terminal device is characterized by comprising a processor and a memory:
    所述存储器,用于存储有计算机程序,所述计算机程序包括程序指令;The memory is used to store a computer program, and the computer program includes program instructions;
    所述处理器调用所述程序指令时用于执行:When the processor invokes the program instruction, it is used to execute:
    获取拍摄装置对评测图卡进行拍摄所得的图像数据,所述评测图卡包括至少两个评测子图卡;Acquiring image data obtained by shooting an evaluation picture card by a shooting device, the evaluation picture card including at least two evaluation sub-picture cards;
    基于标定点样式识别所述图像数据中的标定点;Identifying the calibration point in the image data based on the calibration point pattern;
    基于识别到的标定点和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域;Determine at least two regions to be evaluated in the image data based on the identified calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card;
    利用所述至少两个待评测区域对应的评测规则分别对每个待评测区域进行测评,得到所述拍摄装置的拍摄质量测评结果。The evaluation rules corresponding to the at least two areas to be evaluated are respectively evaluated for each area to be evaluated to obtain a shooting quality evaluation result of the shooting device.
  16. 如权利要求15所述的终端设备,其特征在于,所述处理器在基于标定点样式识别所述图像数据中的标定点时,执行如下操作:The terminal device according to claim 15, wherein the processor performs the following operations when identifying the calibration point in the image data based on the calibration point pattern:
    将所述图像数据转换为灰度图像数据;Convert the image data into grayscale image data;
    对所述灰度图像数据进行边缘检测处理,得到边缘图像数据;Performing edge detection processing on the grayscale image data to obtain edge image data;
    基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点。The calibration points in the image data are identified based on the shape characteristics of the calibration points, the structural characteristics of the calibration points, and the edge image data.
  17. 如权利要求16所述的终端设备,其特征在于,所述处理器在基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点时,执行如下操作:The terminal device according to claim 16, wherein the processor recognizes the calibration point in the image data based on the shape feature of the calibration point, the structural feature of the calibration point, and the edge image data When, do the following:
    基于所述边缘图像数据检测所述图像数据中形状特征与所述标定点的形状特征相同的第一图像元素;Detecting, based on the edge image data, a first image element in the image data that has the same shape feature as that of the calibration point;
    从检测到的第一图像元素中筛选结构特征与所述标定点的结构特征相同的第一图像元素;Selecting first image elements with the same structural characteristics as the structural characteristics of the calibration point from the detected first image elements;
    将筛选出的第一图像元素确定为识别到的标定点。The filtered first image element is determined as the identified calibration point.
  18. 如权利要求16所述终端设备,其特征在于,所述标定点的形状特征包括第一形状特征和第二形状特征,所述处理器在基于所述标定点的形状特征、所述标定点的结构特征以及所述边缘图像数据识别所述图像数据中的标定点时,执行如下操作:The terminal device according to claim 16, wherein the shape feature of the calibration point includes a first shape feature and a second shape feature, and the processor is based on the shape feature of the calibration point, the calibration point When the structural features and the edge image data identify the calibration points in the image data, the following operations are performed:
    基于所述标定点的结构特征、所述边缘图像数据、所述第一形状特征和所述第二形状特征识别所述图像数据中的标定点。The calibration points in the image data are identified based on the structural features of the calibration points, the edge image data, the first shape features, and the second shape features.
  19. 如权利要求18所述的终端设备,其特征在于,所述处理器在基于所述标定点的结构特征、所述边缘图像数据、所述第一形状特征和所述第二形状特征识别所述图像数据中的标定点时,执行如下操作:The terminal device according to claim 18, wherein the processor recognizes the terminal based on the structural feature of the calibration point, the edge image data, the first shape feature, and the second shape feature When calibrating points in image data, perform the following operations:
    基于所述边缘图像数据检测所述图像数据中形状特征与所述第一形状特征相同的第一图像元素;Detecting, based on the edge image data, a first image element in the image data that has the same shape feature as the first shape feature;
    从检测到的第一图像元素中筛选结构特征与所述标定点的结构特征相同的第一图像元素;Selecting first image elements with the same structural characteristics as the structural characteristics of the calibration point from the detected first image elements;
    通过轮廓识别从筛选出的第一图像元素中确定形状特征与所述第二形状特征相同的第二图像元素;Identifying the second image element with the same shape feature as the second shape feature from the filtered first image elements through contour recognition;
    从所述第二图像元素中筛选结构特征与所述标定点的结构特征相同的第二图像元素;Selecting second image elements with the same structural characteristics as the structural characteristics of the calibration point from the second image elements;
    将筛选出的第二图像元素确定为识别到的标定点。The filtered second image element is determined as the identified calibration point.
  20. 如权利要求18所述的终端设备,其特征在于,所述处理器调用所述程序指令时还执行:The terminal device according to claim 18, characterized in that, when the processor calls the program instruction, it also executes:
    获取识别到的标定点的数量;Obtain the number of identified calibration points;
    若所述标定点的数量小于标定点数量阈值,则基于所述标定点的结构特征、所述边缘图像数据以及所述第一形状特征或所述第二形状特征识别所述图像数据中的标定点。If the number of calibration points is less than the threshold of calibration points, the calibration in the image data is identified based on the structural features of the calibration points, the edge image data, and the first shape feature or the second shape feature Fixed point.
  21. 如权利要求20所述的终端设备,其特征在于,所述处理器在基于所述标定点的结构特征、所述边缘图像数据以及所述第一形状特征或所述第二形状 特征识别所述图像数据中的标定点时,执行如下操作:The terminal device according to claim 20, wherein the processor recognizes the terminal based on the structural feature of the calibration point, the edge image data, and the first shape feature or the second shape feature When calibrating points in image data, perform the following operations:
    基于边缘图像数据检测所述图像数据中形状特征与所述第一形状特征或所述第二形状特征相同的第三图像元素;Detecting a third image element with the same shape feature in the image data as the first shape feature or the second shape feature based on the edge image data;
    从检测到的第三图像元素中筛选结构特征与所述标定点的结构特征相同的第三图像元素;Selecting third image elements with the same structural characteristics as the structural characteristics of the calibration point from the detected third image elements;
    将筛选出的第三图像元素确定为识别到的标定点。The filtered third image element is determined as the identified calibration point.
  22. 如权利要求20或21所述的终端设备,其特征在于,所述处理器调用所述程序指令时还执行:The terminal device according to claim 20 or 21, wherein when the processor calls the program instruction, it also executes:
    为基于所述标定点的结构特征、所述边缘图像数据以及所述第一形状特征或所述第二形状特征识别到的标定点添加标记,所述标记用于指示所述标定点的准确度有待验证。Adding marks to the calibration points identified based on the structural features of the calibration point, the edge image data, and the first shape feature or the second shape feature, the markers are used to indicate the accuracy of the calibration points To be verified.
  23. 如权利要求15所述的终端设备,其特征在于,所述处理器在基于识别到的标定点和所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域时,执行如下操作:The terminal device according to claim 15, wherein the processor determines the image data based on the identified calibration point and the typesetting rules of the at least two evaluation sub-picture cards in the evaluation picture card When there are at least two areas to be evaluated, perform the following operations:
    确定所述识别到的标定点中各个标定点的像素坐标;Determine the pixel coordinates of each of the identified calibration points;
    根据所述各个标定点的像素坐标确定所述各个标定点之间的位置关系;Determining the positional relationship between the calibration points according to the pixel coordinates of the calibration points;
    基于所述各个标定点之间的位置关系以及所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据中至少两个待评测区域。At least two regions to be evaluated in the image data are determined based on the positional relationship between the respective calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card.
  24. 如权利要求23所述的终端设备,其特征在于,所述至少两个评测子图卡在所述评测图卡中的排版规则包括所述至少两个评测子图卡的位置和所述至少两个评测子图卡的尺寸;The terminal device according to claim 23, wherein the typesetting rules of the at least two evaluation sub-picture cards in the evaluation picture card include positions of the at least two evaluation sub-picture cards and the at least two The size of the evaluation sub-card;
    所述处理器在基于所述各个标定点之间的位置关系以及所述至少两个评测子图卡在所述评测图卡中的排版规则确定所述图像数据至少两个待评测区域时,执行如下操作:The processor executes when determining at least two areas of the image data to be evaluated based on the positional relationship between the respective calibration points and the layout rules of the at least two evaluation sub-picture cards in the evaluation picture card Operate as follows:
    根据所述至少两个评测子图卡的尺寸、所述至少两个评测子图卡的位置以及所述各个标定点之间的位置关系,确定所述图像数据中包括的矩形区域;Determine the rectangular area included in the image data according to the size of the at least two evaluation sub-picture cards, the positions of the at least two evaluation sub-picture cards, and the positional relationship between the respective calibration points;
    将所述矩形区域确定为待评测区域。The rectangular area is determined as the area to be evaluated.
  25. 如权利要求24所述的终端设备,其特征在于,所述处理器调用所述程序指令时还执行:The terminal device according to claim 24, wherein when the processor invokes the program instruction, it also executes:
    根据所述各个评测子图卡的位置确定所述至少两个待评测区域中每个待评测区域所属的评测指标类别;Determine, according to the position of each evaluation sub-picture card, the evaluation indicator category to which each of the at least two areas to be evaluated belongs to the area to be evaluated;
    将所述评测指标类别对应的评测规则分别作为所述每个待评区域对应的评测规则。The evaluation rules corresponding to the evaluation indicator categories are respectively used as the evaluation rules corresponding to each area to be evaluated.
  26. 如权利要求15所述的终端设备,其特征在于,所述评测子图卡包括以下的任一种:用于评测色彩准确度和饱和度的24色卡、用于评测画面平均亮度的灰卡、用于评测细节损失的枯叶图、用于评测信噪比或对比度的灰阶卡、用于评测清晰度的解析力斜边图卡。The terminal device according to claim 15, wherein the evaluation sub-picture card includes any one of the following: a 24-color card for evaluating color accuracy and saturation, and a gray card for evaluating average brightness of the picture , A dead leaf graph for evaluating loss of detail, a grayscale card for evaluating signal-to-noise ratio or contrast, and a analytic force hypotenuse graph card for evaluating sharpness.
  27. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行如权利要求1-12任一项所述的对拍摄装置的拍摄质量评测方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and the computer program includes program instructions, which when executed by a processor causes the processor to execute as rights The method for evaluating the shooting quality of the shooting device according to any one of claims 1-12 is required.
PCT/CN2018/117610 2018-11-27 2018-11-27 Photographing quality evaluation method and apparatus for photographing apparatus, and terminal device WO2020107196A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/117610 WO2020107196A1 (en) 2018-11-27 2018-11-27 Photographing quality evaluation method and apparatus for photographing apparatus, and terminal device
CN201880065225.1A CN111226437A (en) 2018-11-27 2018-11-27 Method and device for evaluating shooting quality of shooting device and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/117610 WO2020107196A1 (en) 2018-11-27 2018-11-27 Photographing quality evaluation method and apparatus for photographing apparatus, and terminal device

Publications (1)

Publication Number Publication Date
WO2020107196A1 true WO2020107196A1 (en) 2020-06-04

Family

ID=70826387

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/117610 WO2020107196A1 (en) 2018-11-27 2018-11-27 Photographing quality evaluation method and apparatus for photographing apparatus, and terminal device

Country Status (2)

Country Link
CN (1) CN111226437A (en)
WO (1) WO2020107196A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113096072B (en) * 2021-03-18 2022-08-30 武汉纺织大学 Method for constructing color system of yarn dyed yarns

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673397A (en) * 2009-09-30 2010-03-17 青岛大学 Digital camera nonlinear calibration method based on LCDs
CN102378037A (en) * 2010-08-04 2012-03-14 致伸科技股份有限公司 Image test method of image acquisition device and image test device using same
WO2013015699A1 (en) * 2011-07-25 2013-01-31 Universidade De Coimbra Method and apparatus for automatic camera calibration using one or more images of a checkerboard pattern
CN103546740A (en) * 2013-09-03 2014-01-29 小米科技有限责任公司 Method and device for detecting camera and terminal equipment
CN103731665A (en) * 2013-12-25 2014-04-16 广州计量检测技术研究院 Digital camera image quality comprehensive detection device and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101442106B1 (en) * 2013-02-15 2014-09-18 삼성전기주식회사 Apparatus and method for testing camera module
CN206413117U (en) * 2016-10-18 2017-08-15 深圳月牙科技有限公司 Image measurement colour table
CN106657988B (en) * 2016-12-30 2018-11-30 歌尔科技有限公司 It is automatically positioned Camera Test method and apparatus, the computer equipment of test pattern

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673397A (en) * 2009-09-30 2010-03-17 青岛大学 Digital camera nonlinear calibration method based on LCDs
CN102378037A (en) * 2010-08-04 2012-03-14 致伸科技股份有限公司 Image test method of image acquisition device and image test device using same
WO2013015699A1 (en) * 2011-07-25 2013-01-31 Universidade De Coimbra Method and apparatus for automatic camera calibration using one or more images of a checkerboard pattern
CN103546740A (en) * 2013-09-03 2014-01-29 小米科技有限责任公司 Method and device for detecting camera and terminal equipment
CN103731665A (en) * 2013-12-25 2014-04-16 广州计量检测技术研究院 Digital camera image quality comprehensive detection device and method

Also Published As

Publication number Publication date
CN111226437A (en) 2020-06-02

Similar Documents

Publication Publication Date Title
CN111028213B (en) Image defect detection method, device, electronic equipment and storage medium
WO2021000524A1 (en) Hole protection cap detection method and apparatus, computer device and storage medium
CA2867365C (en) Method, system and computer storage medium for face detection
JP2020536457A (en) Image processing methods and devices, electronic devices, and computer-readable storage media
JP5843000B2 (en) Color chart detection apparatus, color chart detection method, and computer program for color chart detection
US20130129209A1 (en) Detecting Skin Tone in Images
US9064178B2 (en) Edge detection apparatus, program and method for edge detection
WO2015070723A1 (en) Eye image processing method and apparatus
JP2010045613A (en) Image identifying method and imaging device
CN108074237B (en) Image definition detection method and device, storage medium and electronic equipment
WO2022105276A1 (en) Method and apparatus for determining projection area, projection device, and readable storage medium
CN110866932A (en) Multi-channel tongue edge detection device and method and storage medium
CN114066857A (en) Infrared image quality evaluation method and device, electronic equipment and readable storage medium
US20130287254A1 (en) Method and Device for Detecting an Object in an Image
CN115063342A (en) Lens dead pixel detection method and device, electronic equipment and storage medium
RU2636681C2 (en) Extended analysis for image-based evaluation of v-ribbed belt wear
CN106558044A (en) The resolution measuring method of image module
US8913829B2 (en) Automatic processing scale estimation for use in an image process
CN114066823A (en) Method for detecting color block and related product thereof
WO2020107196A1 (en) Photographing quality evaluation method and apparatus for photographing apparatus, and terminal device
WO2021195873A1 (en) Method and device for identifying region of interest in sfr test chart image, and medium
JP2014016710A (en) Object detection device and program
JP2010271921A (en) Skin area extraction method, skin area extraction device, and skin area extracting program
Gandomkar et al. Determining image processing features describing the appearance of challenging mitotic figures and miscounted nonmitotic objects
CN113508395B (en) Method and device for detecting objects in an image composed of pixels

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18941695

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18941695

Country of ref document: EP

Kind code of ref document: A1