[go: up one dir, main page]

CN117714663B - Purple fringing measurement and analysis system and method, storage medium, and electronic device - Google Patents

Purple fringing measurement and analysis system and method, storage medium, and electronic device Download PDF

Info

Publication number
CN117714663B
CN117714663B CN202310687179.1A CN202310687179A CN117714663B CN 117714663 B CN117714663 B CN 117714663B CN 202310687179 A CN202310687179 A CN 202310687179A CN 117714663 B CN117714663 B CN 117714663B
Authority
CN
China
Prior art keywords
purple
under test
light source
device under
camera
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310687179.1A
Other languages
Chinese (zh)
Other versions
CN117714663A (en
Inventor
李钱
周天一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202310687179.1A priority Critical patent/CN117714663B/en
Publication of CN117714663A publication Critical patent/CN117714663A/en
Application granted granted Critical
Publication of CN117714663B publication Critical patent/CN117714663B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

本发明涉及图像处理领域,公开了一种紫边测量分析系统和方法、存储介质、电子设备。系统包括光源部、测量控制部和控制系统;光源部用于为被测试设备拍摄紫边图像提供光谱;测量控制部用于调节被测试设备与光源平行,用于调节被测试设备的位置;控制系统,用于拍摄紫边图像,并对紫边图像进行量化分析。基于上述系统,能够为被测试设备拍摄紫边图像提供稳定的拍摄光源,能够控制被测试设备与光源的相对位置,获取不同的紫边图像。并对不同被测试设备拍摄到的紫边图像进行分析,从而可以改善不同被测试设备的拍摄功能。

The present invention relates to the field of image processing, and discloses a purple fringing measurement and analysis system and method, a storage medium, and an electronic device. The system includes a light source unit, a measurement control unit, and a control system; the light source unit is used to provide a spectrum for the tested device to shoot a purple fringed image; the measurement control unit is used to adjust the tested device to be parallel to the light source, and is used to adjust the position of the tested device; the control system is used to shoot the purple fringed image and perform quantitative analysis on the purple fringed image. Based on the above system, a stable shooting light source can be provided for the tested device to shoot a purple fringed image, and the relative position of the tested device and the light source can be controlled to obtain different purple fringed images. The purple fringed images shot by different tested devices are analyzed, so that the shooting function of different tested devices can be improved.

Description

一种紫边测量分析系统和方法、存储介质、电子设备Purple fringing measurement and analysis system and method, storage medium, and electronic device

技术领域Technical Field

本申请涉及图像处理领域,尤其涉及一种紫边测量分析系统和方法、存储介质、电子设备。The present application relates to the field of image processing, and in particular to a purple fringing measurement and analysis system and method, a storage medium, and an electronic device.

背景技术Background Art

图像紫边存在于数码相机、监控摄像头等数字成像电子设备中,一般出现在图像中被摄物反差较大时高光与低光的交界处,物体出现不属于物体的颜色,通常表现为紫色。摄像头的视场角越大紫边出现的概率越高,紫边现象也会越明显。紫边有两个形成的原因,一方面是由于不同波长的光线通过镜头的光程差不同,光线偏折的程度不一样,汇聚成光轴上不同的点或者聚焦在平面上不同的位置;另一方面,当拍摄场景存在亮暗分明的区域,场景的曝光测量主要依据区域的平均亮度,这使得亮区域积累过多光子数,出现泄露到周围像元的现象,也就是光晕效应。Image purple fringing exists in digital imaging electronic devices such as digital cameras and surveillance cameras. It usually appears at the junction of high light and low light when the contrast of the subject in the image is large. The object appears in a color that does not belong to the object, usually purple. The larger the field of view of the camera, the higher the probability of purple fringing, and the more obvious the purple fringing phenomenon will be. There are two reasons for the formation of purple fringing. On the one hand, due to the different optical path differences of light of different wavelengths passing through the lens, the degree of light deflection is different, and it converges to different points on the optical axis or focuses on different positions on the plane; on the other hand, when there are distinct bright and dark areas in the shooting scene, the exposure measurement of the scene is mainly based on the average brightness of the area, which causes the bright area to accumulate too many photons and leak to the surrounding pixels, which is the halo effect.

现有的技术都是从图像算法的角度检测并消除图像中的紫边,或者从电子设备的摄像头的光学设计的角度减轻或消除图像中的紫边现象。可以理解,若能对各电子设备的紫边现象进行量化研究,则可以基于量化研究结果对电子设备的拍摄功能进行评判或者进一步通过软硬件设计等方式改善电子设备的拍摄功能,但是目前现有技术缺乏对紫边现象进行量化研究的方案。Existing technologies all detect and eliminate purple fringing in images from the perspective of image algorithms, or reduce or eliminate the purple fringing phenomenon in images from the perspective of the optical design of the camera of the electronic device. It is understandable that if the purple fringing phenomenon of each electronic device can be quantitatively studied, the shooting function of the electronic device can be judged based on the quantitative research results or the shooting function of the electronic device can be further improved through software and hardware design, etc. However, the existing technology currently lacks a solution for quantitative research on the purple fringing phenomenon.

发明内容Summary of the invention

为了解决上述紫边图像中,缺乏对紫边现象进行量化研究的方案问题,本申请提供了一种紫边测量分析系统和方法、存储介质、电子设备。In order to solve the problem of lack of a solution for quantitative research on the purple fringing phenomenon in the above-mentioned purple fringing images, the present application provides a purple fringing measurement and analysis system and method, a storage medium, and an electronic device.

第一方面,本申请提供一种紫边测量分析系统,包括光源部、测量控制部和控制系统;光源部用于提供被测试设备拍摄紫边图像所需的光谱;测量控制部用于调节被测试设备为第一角度和第一位置;控制系统,用于获取被测试设备在第一角度和第一位置拍摄的紫边图像,并基于紫边图像获取对应的紫边信息。In a first aspect, the present application provides a purple fringing measurement and analysis system, including a light source unit, a measurement control unit and a control system; the light source unit is used to provide the spectrum required for the tested device to capture a purple fringing image; the measurement control unit is used to adjust the tested device to a first angle and a first position; the control system is used to obtain a purple fringing image captured by the tested device at the first angle and the first position, and obtain corresponding purple fringing information based on the purple fringing image.

基于上述方案,能够为不同的具有拍摄功能的电子设备提供相对稳定的紫边拍摄环境,从而对不同电子设备拍摄到存在紫边现象的图像进行量化研究,进而可以基于量化研究结果对于不同电子设备摄像头的数字成像功能进行改善。Based on the above scheme, a relatively stable purple-fringing shooting environment can be provided for different electronic devices with shooting functions, so as to conduct a quantitative study on images with purple-fringing phenomenon captured by different electronic devices, and then improve the digital imaging function of cameras of different electronic devices based on the quantitative research results.

在上述第一方面的一种可能实现中,第一角度为被测试设备的摄像头的拍摄面与光源部的光源面板保持相对平行;第一位置为被测试设备与光源部保持预设距离的位置,预设距离为被测试设备的摄像头的35mm等效焦距的预设倍数。In a possible implementation of the first aspect above, the first angle is that a shooting plane of the camera of the device under test is relatively parallel to the light source panel of the light source part; the first position is a position where the device under test maintains a preset distance from the light source part, and the preset distance is a preset multiple of the 35mm equivalent focal length of the camera of the device under test.

本申请中,第一位置可以为被测试设备与光源部保持摄像头35mm等效焦距的40倍的位置。In the present application, the first position may be a position where the device under test and the light source unit maintain a focal length that is 40 times the equivalent focal length of the camera of 35 mm.

在上述第一方面的一种可能实现中,光源部包括至少一个子光源和光源调节系统;光源调节系统,用于通过调节多个子光源的光照参数,提供被测试设备拍摄紫边图像所需的光谱,光照参数包括色温和/或亮度。In a possible implementation of the first aspect above, the light source unit includes at least one sub-light source and a light source adjustment system; the light source adjustment system is used to provide a spectrum required for the tested device to capture a purple-fringed image by adjusting illumination parameters of the multiple sub-light sources, and the illumination parameters include color temperature and/or brightness.

本申请中,子光源可以为LED灯,可以通过光源调节系统调节这些LED灯的色温、亮度等参数,模拟容易出现紫边现象的场景的光谱。或者,通过脉冲宽度调制(Pulse WidthModulation,PWM)调光技术混合冷光和暖光两种色温的LED灯,分别调节冷光LED灯和暖光LED灯的亮度,以实现对光源色温的调节。In the present application, the sub-light source may be an LED lamp, and the color temperature, brightness and other parameters of these LED lamps may be adjusted by the light source adjustment system to simulate the spectrum of a scene where the purple fringing phenomenon is prone to occur. Alternatively, the cold light and warm light color temperature LED lamps may be mixed by pulse width modulation (PWM) dimming technology, and the brightness of the cold light LED lamp and the warm light LED lamp may be adjusted respectively to achieve the adjustment of the color temperature of the light source.

在上述第一方面的一种可能实现中,测量控制部包括夹持装置和运动轨道;夹持装置用于夹持被测试设备;运动轨道用于为被测试设备提供移动的路径,实现调节被测试设备至第一角度和第一位置。In a possible implementation of the first aspect above, the measurement control unit includes a clamping device and a motion track; the clamping device is used to clamp the device under test; the motion track is used to provide a moving path for the device under test to adjust the device under test to a first angle and a first position.

本申请中,运动轨道包括X、Y、Z轴运动轨道。测量控制部还包括控制单元,用于控制夹持装置的开关,和用于控制夹持装置夹持被测试设备在运动轨道上移动至预设位置,实现自动化测量,减少人力成本。In the present application, the motion track includes X, Y, and Z axis motion tracks. The measurement control unit also includes a control unit for controlling the switch of the clamping device and for controlling the clamping device to clamp the device under test to a preset position on the motion track to achieve automated measurement and reduce labor costs.

在上述第一方面的一种可能实现中,控制系统,用于获取被测试设备在第一角度和第一位置,在预设拍摄模式下拍摄的紫边图像。In a possible implementation of the first aspect above, the control system is used to obtain a purple-fringed image of the device under test captured at a first angle and a first position in a preset capture mode.

在上述第一方面的一种可能实现中,预设拍摄模式包括主摄拍摄镜头、广角拍摄镜头、长焦拍摄镜头、各预设曝光时间、各预设视场下的任意一种或多种模式的组合。In a possible implementation of the first aspect above, the preset shooting mode includes a combination of any one or more modes of a main camera lens, a wide-angle camera lens, a telephoto camera lens, various preset exposure times, and various preset fields of view.

本申请中,预设拍摄模式为:切换不同的摄像头,例如可以切换主摄、广角、长焦多个镜头,设置不同的曝光时间,例如可以设置曝光时间为1/60秒、1/125秒、1/250秒等;设置不同的视场,例如可以设置视场为30度、60度、90度等。可以根据任意一种或多种预设模式的组合,获取紫边图像。In this application, the preset shooting modes are: switching different cameras, for example, you can switch between main camera, wide angle, telephoto and multiple lenses, set different exposure times, for example, you can set the exposure time to 1/60 second, 1/125 second, 1/250 second, etc.; set different fields of view, for example, you can set the field of view to 30 degrees, 60 degrees, 90 degrees, etc. You can obtain a purple-fringed image according to any combination of one or more preset modes.

在上述第一方面的一种可能实现中,控制系统,用于:基于紫边图像的色域,获取第一色彩偏移量、第二色彩偏移量和紫边阈值;基于第一色彩偏移量与第二色彩偏移量的交集部分与紫边阈值的差值,获取紫边区域;对紫边区域积分,获取紫边的量化信息。In a possible implementation of the first aspect above, the control system is used to: obtain a first color offset, a second color offset, and a purple fringing threshold based on a color gamut of the purple-fringed image; obtain a purple-fringing area based on a difference between an intersection of the first color offset and the second color offset and the purple-fringing threshold; and integrate the purple-fringing area to obtain quantitative information of the purple fringing.

本申请中,紫边阈值是一种经验值,可以根据肉眼判断获取。In this application, the purple fringing threshold is an empirical value that can be obtained by visual judgment.

在上述第一方面的一种可能实现中,第一色彩偏移量为红色通道相较于绿色通道随像素的偏移量;第二色彩偏移量为蓝色通道相较于绿色通道随像素的偏移量。In a possible implementation of the first aspect, the first color offset is an offset of a red channel with respect to a green channel with respect to a pixel; and the second color offset is an offset of a blue channel with respect to a green channel with respect to a pixel.

在上述第一方面的一种可能实现中,第一色彩偏移量基于特定像素位置的红色通道的灰度值与绿色通道的灰度值的差值,以及被测试设备的摄像头的色域的比特位数确定;第二色彩偏移量基于特定像素位置的蓝色通道的灰度值与绿色通道的灰度值的差值,以及被测试设备的摄像头的色域的比特位数确定。In a possible implementation of the first aspect above, the first color offset is determined based on the difference between the grayscale value of the red channel and the grayscale value of the green channel at a specific pixel position, and the number of bits of the color gamut of the camera of the device under test; the second color offset is determined based on the difference between the grayscale value of the blue channel and the grayscale value of the green channel at the specific pixel position, and the number of bits of the color gamut of the camera of the device under test.

本申请中,第一色彩偏移量基于特定像素位置的红色通道的灰度值与绿色通道的灰度值的差值,除以被测试设备的摄像头的色域的比特位数确定;第二色彩偏移量基于特定像素位置的蓝色通道的灰度值与绿色通道的灰度值的差值,除以被测试设备的摄像头的色域的比特位数确定。In the present application, the first color offset is determined based on the difference between the grayscale value of the red channel and the grayscale value of the green channel at a specific pixel position, divided by the number of bits of the color gamut of the camera of the tested device; the second color offset is determined based on the difference between the grayscale value of the blue channel and the grayscale value of the green channel at a specific pixel position, divided by the number of bits of the color gamut of the camera of the tested device.

在上述第一方面的一种可能实现中,紫边测量分析系统还包括标卡,标卡用于验证被测试设备的摄像头的拍摄面与光源部的面板是否保持相对平行。In a possible implementation of the first aspect, the purple fringing measurement and analysis system further includes a marker card, which is used to verify whether a shooting surface of a camera of the device under test remains relatively parallel to a panel of the light source unit.

本申请中,标卡的样式可以设置为与标靶等大的长方形,并且在标卡的正中间设置一个十字划线。In the present application, the style of the mark card can be set to be a rectangle of the same size as the target, and a cross mark is set in the middle of the mark card.

在上述第一方面的一种可能实现中,基于标卡验证被测试设备的摄像头的拍摄面与光源部的面板是否保持相对平行的方式包括:当确定被测试设备的摄像画面中的标卡的标记,与被测试设备的摄像画面中的默认的标记重合,确定被测试设备的摄像头的拍摄面与光源部的面板保持相对平行。In a possible implementation of the first aspect above, a method for verifying whether the shooting surface of the camera of the device under test and the panel of the light source part remain relatively parallel based on a mark card includes: when it is determined that the mark of the mark card in the camera picture of the device under test coincides with the default mark in the camera picture of the device under test, it is determined that the shooting surface of the camera of the device under test and the panel of the light source part remain relatively parallel.

本申请中,当确定被测试设备的摄像画面中的十字划线,与被测试设备默认相机中的十字划线重合,则可以确定被测试设备的摄像头的拍摄面与光源部的面板保持相对平行。In the present application, when it is determined that the crosshairs in the camera image of the device under test coincide with the crosshairs in the default camera of the device under test, it can be determined that the shooting surface of the camera of the device under test remains relatively parallel to the panel of the light source part.

在上述第一方面的一种可能实现中,调节被测试设备为第一角度的方式包括:在运动轨道上移动被测试设备;将被测试设备与光源部设置为多个预设距离时,使得被测试设备的摄像画面中的标卡的标记与被测试设备的默认相机的标记均重合的角度作为第一角度。In a possible implementation of the first aspect above, the method of adjusting the device under test to the first angle includes: moving the device under test on a motion track; when the device under test and the light source part are set to multiple preset distances, the angle at which the mark of the label card in the camera picture of the device under test and the mark of the default camera of the device under test both coincide with each other is taken as the first angle.

本申请中,多个预设距离可以为预设远距离和预设近距离。例如预设远距离可以为50cm,预设近距离为20cm。In the present application, the plurality of preset distances may be a preset long distance and a preset short distance. For example, the preset long distance may be 50 cm, and the preset short distance may be 20 cm.

第二方面,本申请提供一种紫边测量分析方法,应用于上述第一方面和上述第一方面的任意一种可能实现的紫边测量分析系统,方法包括:基于测量控制部调节被测试设备为第一角度和第一位置;基于光源部提供被测试设备拍摄紫边图像所需的光谱;基于控制系统获取被测试设备在第一角度和第一位置拍摄的紫边图像,并基于紫边图像获取对应的紫边信息。In a second aspect, the present application provides a purple fringing measurement and analysis method, which is applied to the first aspect and any possible implementation of the purple fringing measurement and analysis system of the first aspect, the method comprising: adjusting the device under test to a first angle and a first position based on a measurement control unit; providing a spectrum required for the device under test to capture a purple fringing image based on a light source unit; acquiring a purple fringing image captured by the device under test at the first angle and the first position based on a control system, and acquiring corresponding purple fringing information based on the purple fringing image.

第三方面,本申请提供一种计算机可读存储介质,可读存储介质上存储有指令,指令在电子设备上执行时,使电子设备实现上述第二方面中的紫边测量分析方法。In a third aspect, the present application provides a computer-readable storage medium, on which instructions are stored. When the instructions are executed on an electronic device, the electronic device implements the purple fringing measurement and analysis method in the second aspect.

第四方面,本申请提供一种电子设备,包括:存储器,用于存储由电子设备的一个或多个处理器执行的指令;以及处理器,是电子设备的处理器之一,用于执行存储器中存储的指令以实现第二方面中的紫边测量分析方法。In a fourth aspect, the present application provides an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device; and a processor, which is one of the processors of the electronic device, for executing the instructions stored in the memory to implement the purple fringing measurement and analysis method in the second aspect.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

图1是根据本申请的一些实施例,示出了一种紫边测量分析系统的场景示意图;FIG1 is a schematic diagram showing a scenario of a purple fringing measurement and analysis system according to some embodiments of the present application;

图2是根据本申请的一些实施例,示出了四种容易出现紫边现象的光源光谱的对比示意图;FIG2 is a schematic diagram showing a comparison of spectra of four light sources that are prone to purple fringing according to some embodiments of the present application;

图3是根据本申请的一些实施例,示出了一种十字标卡的示意图;FIG3 is a schematic diagram showing a cross mark card according to some embodiments of the present application;

图4是根据本申请的一些实施例,示出了一种确保手机摄像头的拍摄面和光源面板相对平行的方法的流程示意图;FIG4 is a schematic flow chart showing a method for ensuring that a shooting surface of a mobile phone camera and a light source panel are relatively parallel according to some embodiments of the present application;

图5是根据本申请的一些实施例,示出了一种测量和分析紫边数据的流程示意图;FIG5 is a schematic diagram showing a process of measuring and analyzing purple fringing data according to some embodiments of the present application;

图6是根据本申请的一些实施例,示出了一种紫边图像的示意图。FIG. 6 is a schematic diagram showing a purple-fringed image according to some embodiments of the present application.

具体实施方式DETAILED DESCRIPTION

本申请的说明性实施例包括但不限于一种紫边测量分析系统和方法、存储介质、电子设备。The illustrative embodiments of the present application include, but are not limited to, a purple fringing measurement and analysis system and method, a storage medium, and an electronic device.

下面结合附图对本申请的技术方案进行介绍。The technical solution of the present application is introduced below in conjunction with the accompanying drawings.

如前所述,现有的技术都是从图像算法的角度或者摄像头光学设计的角度来检测并消除图像中的紫边现象,但不存在技术手段能够对电子设备的摄像头拍摄的图像的紫边现象建立评判标准,对紫边现象进行量化研究。为此,本申请提供了一种紫边测量分析系统,该系统能够为不同的具有拍摄功能的电子设备提供相对稳定的紫边拍摄环境,从而对不同电子设备拍摄到存在紫边现象的图像进行量化研究,进而可以基于量化研究结果对于不同电子设备摄像头的数字成像功能进行改善。As mentioned above, existing technologies all detect and eliminate the purple fringing phenomenon in images from the perspective of image algorithms or camera optical design, but there is no technical means to establish a criterion for judging the purple fringing phenomenon of images captured by cameras of electronic devices and to conduct a quantitative study on the purple fringing phenomenon. To this end, the present application provides a purple fringing measurement and analysis system, which can provide a relatively stable purple fringing shooting environment for different electronic devices with shooting functions, thereby conducting a quantitative study on images with purple fringing captured by different electronic devices, and then improving the digital imaging function of cameras of different electronic devices based on the quantitative research results.

可以理解,本申请实施例涉及的进行紫边测量分析的电子设备可以是具有拍照功能的电子设备,包括但不限于手机、平板、PC、大屏、穿戴设备、车机等,为了便于描述,下面以电子设备为手机为例介绍本申请的技术方案。It can be understood that the electronic device for performing purple fringing measurement and analysis involved in the embodiments of the present application can be an electronic device with a camera function, including but not limited to mobile phones, tablets, PCs, large screens, wearable devices, car computers, etc. For the sake of ease of description, the technical solution of the present application is introduced below using the electronic device as a mobile phone as an example.

具体地,例如,在一些实施例中,紫边测量分析系统可以包括光源部和测量控制部,其中,光源部用于为测量环境提供容易出现紫边现象的多种光谱;测量控制部用于调节手机摄像头与光源间的角度与位置,并用于拍摄紫边图像。Specifically, for example, in some embodiments, the purple fringing measurement and analysis system may include a light source unit and a measurement control unit, wherein the light source unit is used to provide a plurality of spectra that are prone to purple fringing phenomenon for the measurement environment; the measurement control unit is used to adjust the angle and position between the mobile phone camera and the light source, and is used to capture purple fringing images.

例如,图1示出了一种紫边测量分析系统的场景示意图。在该场景中,光源部包括光源和标靶,标靶可以贴在光源上,用于在测量过程中,校准被测试设备的摄像头的位置,以使得被测试设备的摄像头与光源平行。光源用于提供不同场景下容易出现紫边现象的光谱。在实际测量中,通过改变光源色温、亮度等参数,可以为被测试设备提供拍摄时容易出现紫边现象的多种光谱。测量控制部包括被测试设备的夹持装置和运动轨道,在控制被测试设备拍摄紫边图像前,可以通过控制夹持装置在运动轨道移动,调节被测试设备的摄像头与光源的距离和角度,对被测试设备拍摄的紫边图像的大小及角度进行校准。For example, FIG1 shows a schematic diagram of a scenario of a purple fringing measurement and analysis system. In this scenario, the light source unit includes a light source and a target. The target can be attached to the light source and is used to calibrate the position of the camera of the device under test during the measurement process so that the camera of the device under test is parallel to the light source. The light source is used to provide a spectrum in which the purple fringing phenomenon is prone to occur in different scenarios. In actual measurements, by changing parameters such as the color temperature and brightness of the light source, a variety of spectra in which the purple fringing phenomenon is prone to occur during shooting can be provided for the device under test. The measurement control unit includes a clamping device and a motion track of the device under test. Before controlling the device under test to shoot a purple fringed image, the distance and angle between the camera of the device under test and the light source can be adjusted by controlling the clamping device to move on the motion track, and the size and angle of the purple fringed image shot by the device under test can be calibrated.

可以理解,在本申请一些实施例中,为了排除被测试设备拍摄紫边图像时受到除光源以外的其他光源的干涉,整个测量过程需要在暗室中进行。本申请实施例提及的暗室环境,包括无光的环境,以及除光源以外没有其他干扰光源的任何环境。It is understood that in some embodiments of the present application, in order to eliminate the interference of other light sources other than the light source when the tested device captures the purple-fringed image, the entire measurement process needs to be performed in a dark room. The dark room environment mentioned in the embodiments of the present application includes a lightless environment and any environment without other interfering light sources other than the light source.

可以理解,在本申请一些实施例中,测量控制部还可以包括控制单元,用于控制夹持装置的开关,和用于控制夹持装置夹持被测试设备在运动轨道上移动至预设位置,实现自动化测量,减轻人力成本。It can be understood that in some embodiments of the present application, the measurement control unit may also include a control unit for controlling the switch of the clamping device, and for controlling the clamping device to clamp the tested device and move it to a preset position on the motion track, thereby realizing automated measurement and reducing labor costs.

可以理解,在本申请一些实施例中,光源中可以设置有多个LED灯(子光源),LED灯的数量可以根据实际需要设定。光源部还可以包括光源调节系统,可以通过光源调节系统调节这些LED灯的色温、亮度等参数,可以模拟容易出现紫边现象的场景的光谱。例如,容易出现紫边现象的场景的光谱包括室内灯牌光谱、室内照明灯光谱、窗边光谱和室外太阳光谱。It can be understood that in some embodiments of the present application, a plurality of LED lamps (sub-light sources) may be provided in the light source, and the number of LED lamps may be set according to actual needs. The light source unit may also include a light source adjustment system, and the color temperature, brightness and other parameters of these LED lamps may be adjusted by the light source adjustment system, so as to simulate the spectrum of scenes prone to purple fringing. For example, the spectrum of scenes prone to purple fringing includes indoor signboard spectrum, indoor lighting spectrum, window spectrum and outdoor sunlight spectrum.

具体地,图2示出了被测试设备在实际拍摄时容易出现紫边现象的多种光谱对比图。如图2所示,纵坐标表示四种光源光谱的吸光度(Absorbance Unit,a.u.),横坐标表示四种光源光谱的波长。参考图2,窗边光谱和室内照明灯光谱的吸光度随着波长的增加而增加,当波长为450nm时,吸光度达到峰值为1.0a.u.,随后吸光度随着波长的增加而减小;当波长为480nm时,吸光度达到谷值为0.25a.u.,随后,吸光度随着波长的增加而增加;当波长为590nm时,吸光度达到另一个峰值为1.0a.u.,随后吸光度随着波长的增加而减小。室外太阳光谱的吸光度随着波长的增加而增加,当波长为460nm时,吸光度达到峰值为0.82a.u.,随后吸光度随着波长的增加波动下降。室内灯牌光谱的吸光度随着波长的增加而增加,当波长为450nm时,吸光度达到峰值为0.9a.u.,随后吸光度随着波长的增加而减小;当波长为480nm时,吸光度达到谷值为0.25a.u.,随后,吸光度随着波长的增加而增加;当波长为530nm时,吸光度达到另一个峰值为0.6a.u.,随后吸光度随着波长的增加而波动减小。Specifically, FIG2 shows a comparison of various spectra of the tested device that are prone to purple fringing during actual shooting. As shown in FIG2, the ordinate represents the absorbance (Absorbance Unit, a.u.) of the four light source spectra, and the abscissa represents the wavelength of the four light source spectra. Referring to FIG2, the absorbance of the window side spectrum and the indoor lighting spectrum increases with the increase of wavelength. When the wavelength is 450nm, the absorbance reaches a peak value of 1.0 a.u., and then the absorbance decreases with the increase of wavelength; when the wavelength is 480nm, the absorbance reaches a valley value of 0.25 a.u., and then the absorbance increases with the increase of wavelength; when the wavelength is 590nm, the absorbance reaches another peak value of 1.0 a.u., and then the absorbance decreases with the increase of wavelength. The absorbance of the outdoor solar spectrum increases with the increase of wavelength. When the wavelength is 460nm, the absorbance reaches a peak value of 0.82 a.u., and then the absorbance fluctuates and decreases with the increase of wavelength. The absorbance of the indoor light sign spectrum increases with the increase of wavelength. When the wavelength is 450nm, the absorbance reaches a peak of 0.9a.u., and then the absorbance decreases with the increase of wavelength; when the wavelength is 480nm, the absorbance reaches a valley of 0.25a.u., and then the absorbance increases with the increase of wavelength; when the wavelength is 530nm, the absorbance reaches another peak of 0.6a.u., and then the absorbance fluctuates and decreases with the increase of wavelength.

例如,在一些实施例中,可以通过PWM调光、可控硅调光等技术,模拟出容易出现紫边现象的场景的光谱。以PWM调光为例,可以通过调节光源中PWM信号的占空比,以改变光源中LED灯的平均电流,实现对光源亮度的调节。或者,PWM调光技术通过混合冷光和暖光两种色温的LED灯,分别调节冷光LED灯和暖光LED灯的亮度,以实现对光源色温的调节。通过调节光源中LED灯的色温、亮度等参数,可以模拟容易出现紫边现象的场景的多种光谱。For example, in some embodiments, the spectrum of scenes prone to purple fringing can be simulated through PWM dimming, thyristor dimming and other technologies. Taking PWM dimming as an example, the duty cycle of the PWM signal in the light source can be adjusted to change the average current of the LED lamp in the light source to adjust the brightness of the light source. Alternatively, PWM dimming technology adjusts the brightness of the cold light LED lamp and the warm light LED lamp by mixing two color temperatures of cold light and warm light, respectively, to adjust the color temperature of the light source. By adjusting the color temperature, brightness and other parameters of the LED lamp in the light source, multiple spectrums of scenes prone to purple fringing can be simulated.

此外,可以理解,测量控制部的夹持装置可以采用气吸式末端夹持的结构,借助吸盘内的负压形成的吸力来夹持被测试设备。主要用于夹持外形较大、厚度适中的被测试设备。测量控制部的夹持装置也可以采用磁吸式末端夹持的结构,通过接通电磁吸盘的线圈中的电流,产生磁力的方法来吸住铁磁性被测试设备。本申请中测量控制部的夹持装置的具体结构可以根据需要设置,在此不做限制。In addition, it can be understood that the clamping device of the measurement and control part can adopt an air suction end clamping structure, and use the suction force formed by the negative pressure in the suction cup to clamp the device under test. It is mainly used to clamp the device under test with a large shape and moderate thickness. The clamping device of the measurement and control part can also adopt a magnetic suction end clamping structure, which can attract the ferromagnetic device under test by connecting the current in the coil of the electromagnetic suction cup to generate magnetic force. The specific structure of the clamping device of the measurement and control part in this application can be set as needed and is not limited here.

此外,可以理解,测量控制部的运动轨道可以包括X、Y、Z轴运动轨道,各轴的联轴器可以连接伺服电机,通过调节伺服电机的数据,以实现被测试设备的夹持装置在运动轨道上的自动移动;或者,X、Y、Z轴运动轨道中各轴的联轴器也可以和旋转圆盘连接,通过手动调节旋转圆盘,以实现被测试设备的夹持装置在运动轨道上的手动移动。本申请中测量控制部的运动轨道的具体结构和运动方式可以根据需要设置,在此不做限制。In addition, it can be understood that the motion track of the measurement control unit can include X, Y, and Z axis motion tracks, and the couplings of each axis can be connected to a servo motor, and the data of the servo motor can be adjusted to realize the automatic movement of the clamping device of the tested device on the motion track; or, the couplings of each axis in the X, Y, and Z axis motion tracks can also be connected to a rotating disk, and the rotating disk can be manually adjusted to realize the manual movement of the clamping device of the tested device on the motion track. The specific structure and motion mode of the motion track of the measurement control unit in this application can be set as needed, and are not limited here.

此外,可以理解,在被测试设备拍摄紫边图像后,可以对紫边图像进行量化分析,例如,可以通过在色域中量化红色通道和蓝色通道相较于绿色通道的像素偏移程度,计算并获取紫边区域,以实现对不同被测试设备的拍摄功能进行研究。In addition, it can be understood that after the tested device captures a purple-fringed image, the purple-fringed image can be quantitatively analyzed. For example, the purple-fringed area can be calculated and obtained by quantifying the degree of pixel offset of the red channel and the blue channel compared to the green channel in the color domain, so as to study the shooting functions of different tested devices.

此外,为了排除不同电子设备或者同一电子设备在不同次拍摄时,摄像头与光源的角度差异对拍摄的紫边图像的影响,保持拍摄环境的统一,在一些实施例中,在采用待测试设备拍摄紫光图像时,需要调节被测试设备的摄像头的拍摄面与光源面板的相对平行。例如,还是以手机为例,可以在光源前的卡槽上放置一个和标靶等大的十字标卡,如图3所示,标卡的正中间有一个十字划线,并可以通过调节手机及器夹持装置,保证手机摄像画面中的十字划线与手机相机的十字划线重合,以实现被测试设备的摄像头的拍摄面与光源面板的相对平行。In addition, in order to eliminate the influence of the angle difference between the camera and the light source on the captured purple-edge image when different electronic devices or the same electronic device are photographed at different times, and to maintain the uniformity of the shooting environment, in some embodiments, when the device to be tested is used to shoot the purple light image, it is necessary to adjust the relative parallelism between the shooting surface of the camera of the device to be tested and the light source panel. For example, still taking the mobile phone as an example, a cross mark card as large as the target can be placed on the card slot in front of the light source, as shown in Figure 3, there is a cross mark in the middle of the mark card, and the cross mark in the mobile phone camera image can be adjusted by adjusting the mobile phone and the clamping device to ensure that the cross mark on the mobile phone camera coincides with the cross mark of the mobile phone camera, so as to achieve the relative parallelism between the shooting surface of the camera of the device to be tested and the light source panel.

例如,图4示出了一种以手机为例,调节被测试设备摄像头的拍摄面与光源面板相对平行的流程示意图。如图4所示,方法包括:For example, FIG4 shows a schematic diagram of a process of adjusting the shooting surface of the camera of the device under test to be relatively parallel to the light source panel, taking a mobile phone as an example. As shown in FIG4 , the method includes:

S101:夹持装置夹持手机,粗调节手机摄像头与光源平行。S101: The clamping device clamps the mobile phone and roughly adjusts the camera of the mobile phone to be parallel to the light source.

在一些实施例中,可以将夹持装置夹持手机在X、Y、Z轴运动轨道上移动,根据人眼观察的结果,粗调节手机摄像头与光源平行。In some embodiments, the clamping device can hold the mobile phone and move it on the X, Y, and Z axis motion tracks, and based on the results of human eye observation, the mobile phone camera can be roughly adjusted to be parallel to the light source.

S102:在光源的卡槽前放置十字标卡。S102: Place a cross mark card in front of the card slot of the light source.

在一些实施例中,在光源的卡槽前放置的十字标卡的大小可以与标靶的大小一致,如图3所示,可以在十字标卡的正中心设置一个十字划线。In some embodiments, the size of the cross mark card placed in front of the card slot of the light source can be consistent with the size of the target. As shown in FIG. 3 , a cross mark can be set in the center of the cross mark card.

本申请实施例对于标卡的样式不做限制,例如可以将与标靶等大的标卡划分成9个大小相等的区域,形成九宫格标卡;或者也可以在标靶的正中心,设置一个圆形的标卡,并在圆心处设置一个圆心点等。The embodiments of the present application do not limit the style of the label card. For example, a label card as large as the target can be divided into 9 areas of equal size to form a nine-square grid label card; or a circular label card can be set in the center of the target, and a center point can be set at the center of the circle, etc.

S103:移动夹持装置的位置,使手机距光源第一预设距离的位置。S103: Move the clamping device so that the mobile phone is at a first preset distance from the light source.

在一些实施例中,在X、Y、Z轴运动轨道上移动手机及夹持装置的位置,使得手机及夹持装置与光源为第一预设距离,例如为预设远距离,预设远距离可以为50cm,也可以根据实际需求设置为其他数值。In some embodiments, the position of the mobile phone and the clamping device is moved on the X, Y, and Z axis motion tracks so that the mobile phone and the clamping device are at a first preset distance from the light source, such as a preset long distance. The preset long distance can be 50 cm, or it can be set to other values according to actual needs.

S104:调节手机上下左右的位置,保证摄像画面中十字划线与相机默认的十字重合。S104: Adjust the position of the mobile phone up, down, left, and right to ensure that the crosshairs in the camera image coincide with the default crosshairs of the camera.

在一些实施例中,在X、Y、Z轴运动轨道上移动夹持装置及手机,并打开手机相机中默认的十字划线,使得手机摄像画面中的十字划线(十字标卡中的十字)与手机相机中默认的十字重合。In some embodiments, the clamping device and the mobile phone are moved on the X, Y, and Z axis motion tracks, and the default crosshairs in the mobile phone camera are turned on, so that the crosshairs in the mobile phone camera screen (the cross in the crosshair card) coincide with the default cross in the mobile phone camera.

在一些实施例中,当标卡设置成九宫格样式时,可以打开手机相机的九宫格构图,使得摄像画面中的九宫格划线与手机相机中默认的九宫格构图重合。In some embodiments, when the label card is set to a nine-square grid style, the nine-square grid composition of the mobile phone camera can be turned on so that the nine-square grid lines in the camera image coincide with the default nine-square grid composition in the mobile phone camera.

在一些实施例中,当标卡设置成圆形时,可以打开手机相机中默认的十字划线,使得摄像画面中的圆心点与手机相机中默认的十字交点重合。In some embodiments, when the label card is set to a circle, the default crosshairs in the mobile phone camera can be turned on so that the center point of the circle in the camera image coincides with the default cross intersection point in the mobile phone camera.

S105:向前移动手机至距光源第二预设距离位置,判断摄像画面中的十字划线与相机默认的十字是否重合。S105: Move the mobile phone forward to a position at a second preset distance from the light source, and determine whether the crosshairs in the camera image coincide with the default crosshairs of the camera.

在一些实施例中,在X轴运动轨道上移动夹持装置及手机,缩小夹持装置及手机与光源的距离,使得夹持装置及手机与光源为第二预设距离,例如为预设近距离,预设近距离可以为20cm,也可以根据实际需求设置为其他数值。判断手机摄像画面中的十字(十字标卡中的十字)与手机相机中默认的十字是否重合,若重合,则表明手机摄像头的拍摄面与光源面板相对平行,结束流程;若不重合,则表明手机摄像头的拍摄面与光源面板没有相对平行,转到步骤S106。In some embodiments, the clamping device and the mobile phone are moved on the X-axis motion track to reduce the distance between the clamping device and the mobile phone and the light source, so that the clamping device and the mobile phone and the light source are at a second preset distance, for example, a preset close distance, which can be 20 cm, or can be set to other values according to actual needs. It is determined whether the cross in the mobile phone camera image (the cross in the cross mark card) coincides with the default cross in the mobile phone camera. If they coincide, it indicates that the shooting surface of the mobile phone camera is relatively parallel to the light source panel, and the process ends; if they do not coincide, it indicates that the shooting surface of the mobile phone camera is not relatively parallel to the light source panel, and go to step S106.

S106:调节手机的倾斜和旋转角度,保证摄像画面中十字划线与相机默认的十字重合。S106: Adjust the tilt and rotation angle of the mobile phone to ensure that the crosshairs in the camera image coincide with the default crosshairs of the camera.

调节手机的倾斜和旋转角度,例如可以调节手机的仰角和俯角,或者顺时针调节手机,使得手机摄像画面中的十字划线与手机相机默认的十字重合。Adjust the tilt and rotation angle of the phone, for example, you can adjust the elevation and depression angles of the phone, or adjust the phone clockwise so that the crosshairs in the phone camera screen coincide with the default crosshairs of the phone camera.

在一些实施例中,为了减小测量误差,需要同时保证手机与光源为第一预设距离和第二预设距离时,手机摄像画面中的十字划线与默认相机的十字均重合,才能认为校准完成,手机摄像头的拍摄面与光源面板保持相对平行。In some embodiments, in order to reduce measurement errors, it is necessary to ensure that when the mobile phone is at a first preset distance and a second preset distance from the light source, the crosshairs in the mobile phone camera image coincide with the cross of the default camera. Only then can the calibration be considered complete and the shooting surface of the mobile phone camera remain relatively parallel to the light source panel.

在一些实施例中,在确定摄像画面中十字划线与相机默认的十字重合后可以转到步骤S103,即手机距光源第一预设距离的位置,重新进行手机摄像头的拍摄面和光源面板相对平行的调整In some embodiments, after determining that the crosshairs in the camera image coincide with the default crosshairs of the camera, the process may proceed to step S103, that is, the position of the mobile phone at a first preset distance from the light source, and the shooting surface of the mobile phone camera and the light source panel may be adjusted to be relatively parallel.

通过上述调节方法,可以确保手机摄像头的拍摄面和光源面板的相对平行,避免了手机摄像头的拍摄面与光源面板的角度差异对拍摄的紫边图像的影响。Through the above adjustment method, the relative parallelism between the shooting surface of the mobile phone camera and the light source panel can be ensured, thereby avoiding the influence of the angle difference between the shooting surface of the mobile phone camera and the light source panel on the captured purple-edge image.

下面结合图5,分析不同摄像头拍摄到的紫边数据,从而分析不同电子设备的拍摄功能。图5示出了一种紫边测量分析的流程示意图,包括:In conjunction with Figure 5, the purple fringing data captured by different cameras is analyzed to analyze the shooting functions of different electronic devices. Figure 5 shows a schematic diagram of a purple fringing measurement and analysis process, including:

S201:校准摄像头位置。S201: Calibrate the camera position.

校准手机摄像头的拍摄面与光源面板保持相对平行,可以参考步骤S101至步骤S106,在此不再赘述。校准完成后,将光源前的卡槽上放置的十字标卡换成全透射式的测试图卡。Calibrate the shooting surface of the mobile phone camera to keep it relatively parallel to the light source panel, which can be referred to step S101 to step S106, and will not be repeated here. After the calibration is completed, replace the cross mark card placed on the card slot in front of the light source with a fully transparent test chart.

S202:设置光源参数(光谱、色温、亮度)。S202: Setting light source parameters (spectrum, color temperature, brightness).

在排除干扰光源影响的环境下,例如在暗室中,可以如前所述通过控制系统设置光源中LED灯的光谱、色温、亮度等参数,可以获取如图2所示的手机在拍摄时容易出现紫边现象的光源光谱。In an environment where the influence of interfering light sources is eliminated, such as in a dark room, the spectrum, color temperature, brightness and other parameters of the LED lamp in the light source can be set through the control system as described above, and the light source spectrum that is prone to purple fringing when shooting with a mobile phone as shown in Figure 2 can be obtained.

在一些实施例中,也可以通过PWM调光、可控硅调光等技术,模拟出容易出现紫边现象的场景的光谱。例如,可以通过调节光源中PWM信号的占空比,调节光源亮度;或者分别调节冷光LED灯和暖光LED灯的亮度,以实现对光源色温的调节。In some embodiments, the spectrum of scenes prone to purple fringing can also be simulated through PWM dimming, thyristor dimming and other technologies. For example, the brightness of the light source can be adjusted by adjusting the duty cycle of the PWM signal in the light source; or the brightness of the cold light LED lamp and the warm light LED lamp can be adjusted separately to achieve the adjustment of the color temperature of the light source.

S203:设置手机夹持在X、Y、Z轴自动化运动轨道上,距标靶预设倍数等效焦距处。S203: Setting the mobile phone to be clamped on the X, Y, and Z axis automated motion tracks, at a preset multiple equivalent focal length from the target.

在一些实施例中,为了避免切换的不同摄像头的拍摄画面中的测试图卡的大小对分析紫边数据造成影响,在X、Y、Z轴运动轨道上移动手机及其夹持装置,使得手机与标靶的距离为手机的摄像头的35mm等效焦距的预设倍数,在一些实施例中,可以设置手机与标靶的距离为手机的摄像头的35mm等效焦距的40倍。如此,可以保证不同摄像头拍摄的测试图卡的成像大小相等,并且后续紫边数据分析是基于相同大小的成像出现的紫边。In some embodiments, in order to avoid the influence of the size of the test chart in the shooting pictures of different cameras on the analysis of purple fringing data, the mobile phone and its clamping device are moved on the X, Y, and Z axis motion tracks so that the distance between the mobile phone and the target is a preset multiple of the 35mm equivalent focal length of the mobile phone's camera. In some embodiments, the distance between the mobile phone and the target can be set to 40 times the 35mm equivalent focal length of the mobile phone's camera. In this way, it can be ensured that the imaging sizes of the test charts taken by different cameras are equal, and the subsequent purple fringing data analysis is based on the purple fringing that appears in the imaging of the same size.

S204:分别测试专业模式下主摄、广角、长焦多个镜头,不同曝光时间、不同视场的紫边情况。S204: Test the purple fringing of the main camera, wide-angle camera, and telephoto camera in professional mode with different exposure times and fields of view.

在一些实施例中,可以在预设拍摄模式下拍摄紫边图像,例如预设模式为:切换不同的摄像头,可以切换主摄、广角、长焦多个镜头,设置不同的曝光时间,例如可以设置曝光时间为1/60秒、1/125秒、1/250秒等;设置不同的视场,例如可以设置视场为30度、60度、90度等。可以根据任意一种或多种预设模式的组合,由全自动的拍摄方式,获取紫边图像。In some embodiments, a purple-fringed image can be captured in a preset shooting mode, for example, the preset mode is: switching different cameras, the main camera, wide-angle, telephoto lens can be switched, different exposure times can be set, for example, the exposure time can be set to 1/60 second, 1/125 second, 1/250 second, etc.; different fields of view can be set, for example, the field of view can be set to 30 degrees, 60 degrees, 90 degrees, etc. According to any combination of one or more preset modes, a purple-fringed image can be obtained by a fully automatic shooting method.

本申请实施例提及的从不同角度获取紫边情况仅是示例性的,在一些实施例中,也可以测试不同摄像头的其他性能,例如选择摄像头不同的光圈、分辨率、帧率等参数,获取不同的紫边图像。The purple-fringing conditions obtained from different angles mentioned in the embodiments of the present application are merely exemplary. In some embodiments, other performances of different cameras may also be tested, such as selecting different aperture, resolution, frame rate and other parameters of the camera to obtain different purple-fringed images.

由于光源前的卡槽上放置的测试图卡是全透式的,光源可以透过标靶内边框射出,在不同摄像头拍摄的图像中,标靶内边框在水平和竖直方向上(测试图卡的四个斜边)会有不同程度的紫边现象,分别获取水平和竖直方向上四条斜边的紫边图像。例如,参考图6(a)、6(c)、6(e)、6(g)所示。Since the test chart placed on the card slot in front of the light source is fully transparent, the light source can be emitted through the inner frame of the target. In the images captured by different cameras, the inner frame of the target will have purple fringes in different degrees in the horizontal and vertical directions (the four oblique edges of the test chart), and purple fringed images of the four oblique edges in the horizontal and vertical directions are obtained respectively. For example, refer to Figures 6(a), 6(c), 6(e), and 6(g).

图6(a)为测试图卡在水平方向斜边1的色彩通道灰度值(紫边图像),横坐标表示像素位置,纵坐标表示灰度值。如图6(a)所示,当像素位置为0至120时,红色通道的灰度值呈波动式上升,并且红色通道的灰度值大于绿色通道和蓝色通道的灰度值,绿色通道和蓝色通道的灰度值大小相当,并且呈波动上升的趋势。从像素位置为120开始,红色通道、蓝色通道、绿色通道的灰度值相同,大小为55%。当像素位置为120至125时,红色通道、蓝色通道、绿色通道的灰度值呈直线上升,并且当像素位置为125时,红色通道、蓝色通道、绿色通道的灰度值达到100%。Figure 6(a) shows the grayscale value of the color channel of the test image card at the horizontal hypotenuse 1 (purple-edge image), the horizontal axis represents the pixel position, and the vertical axis represents the grayscale value. As shown in Figure 6(a), when the pixel position is 0 to 120, the grayscale value of the red channel rises in a fluctuating manner, and the grayscale value of the red channel is greater than the grayscale values of the green channel and the blue channel. The grayscale values of the green channel and the blue channel are of similar size and show a fluctuating upward trend. Starting from the pixel position of 120, the grayscale values of the red channel, the blue channel, and the green channel are the same, with a size of 55%. When the pixel position is 120 to 125, the grayscale values of the red channel, the blue channel, and the green channel rise in a straight line, and when the pixel position is 125, the grayscale values of the red channel, the blue channel, and the green channel reach 100%.

图6(c)为测试图卡在水平方向斜边2的色彩通道灰度值(紫边图像),横坐标表示像素位置,纵坐标表示灰度值。如图6(c)所示,当像素位置为0至65时,红色通道、蓝色通道、绿色通道的灰度值相同,并且在像素位置为0至60时,红色通道、蓝色通道、绿色通道的灰度值为100%,在像素位置为60至65时,红色通道、蓝色通道、绿色通道的灰度值呈直线下降,并在像素位置为65时,红色通道、蓝色通道、绿色通道的灰度值为55%。当像素位置为65至190时,红色通道、蓝色通道、绿色通道的灰度值呈现波动式下降的趋势。FIG6(c) is the grayscale value of the color channel of the test image card at the horizontal bevel 2 (purple-edge image), the horizontal axis represents the pixel position, and the vertical axis represents the grayscale value. As shown in FIG6(c), when the pixel position is 0 to 65, the grayscale values of the red channel, the blue channel, and the green channel are the same, and when the pixel position is 0 to 60, the grayscale values of the red channel, the blue channel, and the green channel are 100%, and when the pixel position is 60 to 65, the grayscale values of the red channel, the blue channel, and the green channel decrease linearly, and when the pixel position is 65, the grayscale values of the red channel, the blue channel, and the green channel are 55%. When the pixel position is 65 to 190, the grayscale values of the red channel, the blue channel, and the green channel show a fluctuating downward trend.

图6(e)为测试图卡在竖直方向斜边3的色彩通道灰度值(紫边图像),横坐标表示像素位置,纵坐标表示灰度值。如图6(e)所示,当像素位置为0至90时,红色通道的灰度值呈现波动上升的趋势,当像素位置从90开始,红色通道的灰度值呈直线上升,并当像素位置为95至190时,红色通道的灰度值达到100%。当像素位置为25至85时,绿色通道和蓝色通道的灰度值大小相当,并呈现波动上升的趋势。Figure 6(e) shows the grayscale values of the color channels of the test image at the vertical hypotenuse 3 (purple-edge image), with the horizontal axis representing the pixel position and the vertical axis representing the grayscale value. As shown in Figure 6(e), when the pixel position is 0 to 90, the grayscale value of the red channel shows a fluctuating upward trend. When the pixel position starts from 90, the grayscale value of the red channel rises linearly, and when the pixel position is 95 to 190, the grayscale value of the red channel reaches 100%. When the pixel position is 25 to 85, the grayscale values of the green channel and the blue channel are comparable and show a fluctuating upward trend.

图6(g)为测试图卡在竖直方向斜边4的色彩通道灰度值(紫边图像),横坐标表示像素位置,纵坐标表示灰度值。如图6(g)所示,当像素位置为0至70时,红色通道和绿色通道的灰度值相同,大小为100%。当像素位置为70至75时,红色通道的灰度值呈直线下降,并在像素位置为75时,红色通道的灰度值达到50%。当像素位置为75至190时,红色通道、绿色通道、蓝色通道的灰度值呈现波动下降的趋势。Figure 6(g) shows the grayscale value of the color channel of the test image stuck at the vertical hypotenuse 4 (purple-edge image), the horizontal axis represents the pixel position, and the vertical axis represents the grayscale value. As shown in Figure 6(g), when the pixel position is 0 to 70, the grayscale values of the red channel and the green channel are the same, and the size is 100%. When the pixel position is 70 to 75, the grayscale value of the red channel decreases linearly, and when the pixel position is 75, the grayscale value of the red channel reaches 50%. When the pixel position is 75 to 190, the grayscale values of the red channel, green channel, and blue channel show a fluctuating downward trend.

S205:计算并分析不同曝光时间和不同视场的镜头的紫边数据。S205: Calculate and analyze purple fringing data of lenses with different exposure times and different fields of view.

本申请实施例中,可以基于不同曝光时间、不同视场的紫边情况,例如获取的紫边图像计算并分析不同曝光时间和不同视场的镜头的紫边数据。In the embodiment of the present application, based on the purple fringing conditions of different exposure times and different fields of view, for example, the acquired purple fringing image can be used to calculate and analyze the purple fringing data of lenses with different exposure times and different fields of view.

在一些实施例中,根据不同摄像头拍摄的水平和竖直方向上四条斜边的紫边图像,并结合公式(1),计算色域中红色通道和蓝色通道相较于绿色通道随像素的色彩偏移程度。In some embodiments, based on the purple-fringed images of four oblique edges in the horizontal and vertical directions captured by different cameras and combined with formula (1), the color shift degree of the red channel and the blue channel in the color gamut relative to the green channel with the pixel is calculated.

可以理解,色彩偏移程度可以用于反映色边的严重程度。It can be understood that the degree of color shift can be used to reflect the severity of color fringing.

其中,F(x)表示色域中红色通道R(x)和蓝色通道B(x)某一像素位置的灰度值,G(x)表示色域中绿色通道某一位置的灰度值,f(x)表示色域中红色通道和蓝色通道相较于绿色通道随像素的色彩偏移程度,其中,红色通道相较于绿色通道随像素的偏移量为第一色彩偏移量,蓝色通道相较于所述绿色通道随像素的偏移量为第二色彩偏移量。2bit中bit表示被测摄像头的色域的比特位数。Wherein, F(x) represents the grayscale value of a certain pixel position of the red channel R(x) and the blue channel B(x) in the color gamut, G(x) represents the grayscale value of a certain position of the green channel in the color gamut, and f(x) represents the color shift degree of the red channel and the blue channel compared with the green channel with the pixel in the color gamut, wherein the shift amount of the red channel compared with the green channel with the pixel is the first color shift amount, and the shift amount of the blue channel compared with the green channel with the pixel is the second color shift amount. In 2 bit, bit represents the number of bits of the color gamut of the camera under test.

在一些实施例中,可以设定一个肉眼能察觉到的紫边阈值α,紫边阈值α也可以根据经验设定,色域中红色通道和蓝色通道相较于绿色通道随像素的偏移量的交集部分与α的差值即紫边区域,参考公式(2),再对该紫边区域取积分就可以获得紫边的量化结果。In some embodiments, a purple fringing threshold α that can be perceived by the naked eye can be set. The purple fringing threshold α can also be set based on experience. The difference between the intersection of the offset of the red channel and the blue channel with the pixel in the color gamut and α is the purple fringing area. Refer to formula (2), and then integrate the purple fringing area to obtain the quantization result of the purple fringing.

公式(2)中,fblue(x)表示色域中蓝色通道相较于绿色通道随像素的偏移量;fred(x)表示色域中红色通道相较于绿色通道随像素的偏移量;min(fblue(x),fred(x))表示色域中红色通道和蓝色通道相较于绿色通道随像素的偏移量的交集部分;α为紫边阈值;(min(fblue(x),fred(x))-α)表示紫边区域,A表示紫边的量化结果。In formula (2), f blue (x) represents the offset of the blue channel with respect to the green channel in the color domain; f red (x) represents the offset of the red channel with respect to the green channel in the color domain; min(f blue (x), f red (x)) represents the intersection of the offsets of the red channel and the blue channel with respect to the green channel in the color domain; α is the purple fringing threshold; (min(f blue (x), f red (x))-α) represents the purple fringing area, and A represents the quantization result of the purple fringing.

例如,表一示出了四条斜边的色边情况,下文将结合附图分析,在此不再赘述。For example, Table 1 shows the color edge conditions of four oblique edges, which will be analyzed below in conjunction with the accompanying drawings and will not be described in detail here.

表1Table 1

例如,可以参考图6(b)、6(d)、6(f)、6(h),计算并分析紫边数据。For example, referring to FIGS. 6( b ), 6 ( d ), 6 ( f ), and 6 ( h ), the purple fringing data may be calculated and analyzed.

图6(b)为测试图卡在水平方向斜边1在色域中红色通道和蓝色通道相较于绿色通道随像素的色彩偏移程度,横坐标表示像素位置,纵坐标表示灰度值。如图6(b)所示,当像素位置为0至100时,红色通道的灰度值波动上升,当像素位置为100时,红色通道的灰度值达到7%。当像素位置为100至110时,红色通道的灰度值直线上升,当像素位置为110时,红色通道的灰度值达到峰值38%。当像素位置为110至120时,红色通道的灰度值直线下降,当像素位置为120,红色通道的灰度值达到最低值0%。当像素位置为120至190时,红色通道的灰度值趋于0%。其中,像素的色彩偏移程度,也表示了色边的严重程度。例如,根据公式(1),并参考表1,测试图卡在水平方向的斜边1中,蓝色的色边为4.42(0.34),红色的色边为13.25(1.03)。FIG6(b) shows the color shift degree of the red channel and the blue channel compared with the green channel in the color gamut of the test image card at the horizontal bevel 1. The horizontal axis represents the pixel position and the vertical axis represents the grayscale value. As shown in FIG6(b), when the pixel position is 0 to 100, the grayscale value of the red channel fluctuates and rises. When the pixel position is 100, the grayscale value of the red channel reaches 7%. When the pixel position is 100 to 110, the grayscale value of the red channel rises linearly. When the pixel position is 110, the grayscale value of the red channel reaches a peak value of 38%. When the pixel position is 110 to 120, the grayscale value of the red channel drops linearly. When the pixel position is 120, the grayscale value of the red channel reaches the lowest value of 0%. When the pixel position is 120 to 190, the grayscale value of the red channel tends to 0%. Among them, the color shift degree of the pixel also indicates the severity of the color edge. For example, according to formula (1) and referring to Table 1, when the test chart is stuck in the horizontal oblique edge 1, the blue color edge is 4.42 (0.34) and the red color edge is 13.25 (1.03).

如图6(b)所示,当像素位置为0至100时,蓝色通道的灰度值波动下降,当像素位置为100时,蓝色通道的灰度值达到最小值-5%。当像素位置为100至120时,蓝色通道的灰度值直线上升,当像素位置为120时,蓝色通道的灰度值达到最大值28%。As shown in Figure 6(b), when the pixel position is 0 to 100, the grayscale value of the blue channel fluctuates downward, and when the pixel position is 100, the grayscale value of the blue channel reaches a minimum value of -5%. When the pixel position is 100 to 120, the grayscale value of the blue channel rises linearly, and when the pixel position is 120, the grayscale value of the blue channel reaches a maximum value of 28%.

如图6(b)所示,设置紫边阈值α为阴影部分(A部分和B部分),A部分为色域中红色通道和蓝色通道相较于绿色通道随像素的偏移量的交集部分,紫边阈值α与A部分的差值即紫边区域(B部分)。根据公式(2),对紫边区域(B部分)取积分就可以获得紫边的量化结果。例如,参考表1,测试图卡在水平方向的斜边1中,紫色的色边为4.42(0.34)。As shown in Figure 6(b), the purple fringing threshold α is set to the shadow part (part A and part B), and part A is the intersection of the offset of the red channel and the blue channel with the pixel compared to the green channel in the color gamut. The difference between the purple fringing threshold α and part A is the purple fringing area (part B). According to formula (2), the purple fringing area (part B) can be integrated to obtain the quantization result of the purple fringing. For example, referring to Table 1, the test image is stuck in the horizontal oblique edge 1, and the purple color fringing is 4.42 (0.34).

图6(d)为测试图卡在水平方向斜边2在色域中红色通道和蓝色通道相较于绿色通道随像素的色彩偏移程度,横坐标表示像素位置,纵坐标表示灰度值。如图6(d)所示,当像素位置为0至50时,红色通道的灰度值趋于1%,当像素位置为50至70时,红色通道的灰度值直线下降,当像素位置为70时,红色通道的灰度值达到最小值-20%。当像素位置为70至100时,红色通道的灰度值逐渐升高,当像素位置为100时,红色通道的灰度值达到最大值为4%。当像素位置为100至120时,红色通道的灰度值逐渐减小,当像素位置为120至135时,红色通道的灰度值逐渐增大,当像素位置为135至190时,红色通道的灰度值逐渐减小至0%。随像素的色彩偏移程度,也表示了色边的严重程度。例如,根据公式(1),并参考表1,测试图卡在水平方向的斜边2中,蓝色的色边为9.82(0.76),红色的色边为8.64(0.67)。FIG6(d) shows the color shift degree of the red channel and the blue channel compared with the green channel in the color gamut of the test image card at the horizontal oblique edge 2. The horizontal axis represents the pixel position and the vertical axis represents the gray value. As shown in FIG6(d), when the pixel position is 0 to 50, the gray value of the red channel tends to 1%, when the pixel position is 50 to 70, the gray value of the red channel decreases linearly, and when the pixel position is 70, the gray value of the red channel reaches the minimum value of -20%. When the pixel position is 70 to 100, the gray value of the red channel gradually increases, and when the pixel position is 100, the gray value of the red channel reaches the maximum value of 4%. When the pixel position is 100 to 120, the gray value of the red channel gradually decreases, when the pixel position is 120 to 135, the gray value of the red channel gradually increases, and when the pixel position is 135 to 190, the gray value of the red channel gradually decreases to 0%. The color shift degree of the pixel also indicates the severity of the color edge. For example, according to formula (1) and referring to Table 1, when the test image is stuck in the horizontal oblique edge 2, the blue color edge is 9.82 (0.76) and the red color edge is 8.64 (0.67).

如图6(d)所示,当像素位置为50至70时,蓝色通道的灰度值逐渐增加,当像素位置为70时,蓝色通道的灰度值达到最大值5%,当像素位置为70至85时,蓝色通道的灰度值逐渐减小,当像素位置为85至100时,蓝色通道的灰度值逐渐增加,当像素位置为100至150时,蓝色通道的灰度值在2%与-2%间波动。As shown in Figure 6(d), when the pixel position is 50 to 70, the grayscale value of the blue channel gradually increases, when the pixel position is 70, the grayscale value of the blue channel reaches a maximum value of 5%, when the pixel position is 70 to 85, the grayscale value of the blue channel gradually decreases, when the pixel position is 85 to 100, the grayscale value of the blue channel gradually increases, and when the pixel position is 100 to 150, the grayscale value of the blue channel fluctuates between 2% and -2%.

如图6(d)所示,设置紫边阈值α,色域中红色通道和蓝色通道相较于绿色通道随像素的偏移量的交集部分,紫边阈值α与交集部分的差值即紫边区域。对紫边区域取积分就可以获得紫边的量化结果。例如,根据公式(2),并参考表1,测试图卡在水平方向斜边2中,紫色的色边为4.59(0.36)。As shown in Figure 6(d), the purple fringing threshold α is set, and the difference between the purple fringing threshold α and the intersection of the offset of the red channel and the blue channel with the green channel in the color domain is the purple fringing area. The quantization result of the purple fringing can be obtained by integrating the purple fringing area. For example, according to formula (2) and referring to Table 1, the test image is stuck in the horizontal oblique edge 2, and the purple color fringing is 4.59 (0.36).

图6(f)为测试图卡在竖直方向斜边3在色域中红色通道和蓝色通道相较于绿色通道随像素的色彩偏移程度,横坐标表示像素位置,纵坐标表示灰度值。如图6(f)所示,当像素位置为0至70时,红色通道的灰度值呈现波动式上升,当像素位置为70时,红色通道的灰度值为4.5%。当像素位置为70至75时,红色通道的灰度值下降,当像素位置为75时,红色通道的灰度值为2%。当像素位置为75至80时,红色通道的灰度值直线上升,当像素位置为80时,红色通道的灰度值达到最大值5.5%。当像素位置为80至90时,红色通道的灰度值直线下降,当像素位置为90时,红色通道的灰度值为0.5%,当像素位置为90至190时,红色通道的灰度值趋于0.5%。随像素的色彩偏移程度,也表示了色边的严重程度。例如,根据公式(1),并参考表1,测试图卡在竖直方向斜边3中,蓝色的色边为8.08(0.63),红色的色边为0.00(0.00)。FIG6(f) shows the color shift degree of the red channel and the blue channel compared with the green channel in the color gamut of the test chart card at the vertical hypotenuse 3. The horizontal axis represents the pixel position and the vertical axis represents the gray value. As shown in FIG6(f), when the pixel position is 0 to 70, the gray value of the red channel rises in a fluctuating manner. When the pixel position is 70, the gray value of the red channel is 4.5%. When the pixel position is 70 to 75, the gray value of the red channel decreases. When the pixel position is 75, the gray value of the red channel is 2%. When the pixel position is 75 to 80, the gray value of the red channel rises linearly. When the pixel position is 80, the gray value of the red channel reaches a maximum value of 5.5%. When the pixel position is 80 to 90, the gray value of the red channel decreases linearly. When the pixel position is 90, the gray value of the red channel is 0.5%. When the pixel position is 90 to 190, the gray value of the red channel tends to 0.5%. The degree of color shift of the pixel also indicates the severity of the color fringing. For example, according to formula (1) and referring to Table 1, when the test image is stuck in the vertical oblique edge 3, the blue color fringing is 8.08 (0.63) and the red color fringing is 0.00 (0.00).

如图6(f)所示,当像素位置为30至70时,蓝色通道的灰度值呈波动上升,当像素位置为70时,蓝色通道的灰度值为1.5%。当像素位置为70至80时,蓝色通道的灰度值直线下降,当像素位置为80时,蓝色通道的灰度值为-2.5%。当像素位置为80至85时,蓝色通道的灰度值直线上升,当像素位置为85时,蓝色通道的灰度值达到最大值为5%。As shown in Figure 6(f), when the pixel position is 30 to 70, the grayscale value of the blue channel rises in a fluctuating manner, and when the pixel position is 70, the grayscale value of the blue channel is 1.5%. When the pixel position is 70 to 80, the grayscale value of the blue channel drops linearly, and when the pixel position is 80, the grayscale value of the blue channel is -2.5%. When the pixel position is 80 to 85, the grayscale value of the blue channel rises linearly, and when the pixel position is 85, the grayscale value of the blue channel reaches a maximum value of 5%.

如图6(f)所示,C部分为紫边区域,对紫边区域取积分就可以获得紫边的量化结果。例如,根据公式(2),并参考表1,测试图卡在竖直方向斜边3中,紫色的色边为0.00(0.00)。As shown in Figure 6(f), part C is the purple edge area, and the quantization result of the purple edge can be obtained by integrating the purple edge area. For example, according to formula (2) and referring to Table 1, the test image is stuck in the vertical oblique edge 3, and the purple color edge is 0.00 (0.00).

图6(h)为测试图卡在竖直方向斜边4在色域中红色通道和蓝色通道相较于绿色通道随像素的色彩偏移程度,横坐标表示像素位置,纵坐标表示灰度值。如图6(h)所示,当像素位置为0至65时,红色通道的灰度值为0.5%,当像素位置为65至75时,红色通道的灰度值直线上升,当像素位置为75时,红色通道的灰度值达到最大值为12.5%。当像素位置为75至190时,红色通道的灰度值呈波动式下降,最终趋于1%。随像素的色彩偏移程度,也表示了色边的严重程度。例如,根据公式(1),并参考表1,测试图卡在竖直方向斜边4中,蓝色的色边为6.00(0.47),红色的色边为9.98(0.77)。FIG6(h) shows the color shift degree of the red channel and the blue channel compared with the green channel in the color gamut of the test image card in the vertical direction bevel 4. The horizontal axis represents the pixel position and the vertical axis represents the grayscale value. As shown in FIG6(h), when the pixel position is 0 to 65, the grayscale value of the red channel is 0.5%. When the pixel position is 65 to 75, the grayscale value of the red channel rises linearly. When the pixel position is 75, the grayscale value of the red channel reaches a maximum value of 12.5%. When the pixel position is 75 to 190, the grayscale value of the red channel decreases in a fluctuating manner and eventually tends to 1%. The degree of color shift of the pixel also indicates the severity of the color edge. For example, according to formula (1) and referring to Table 1, when the test image is stuck in the vertical direction bevel 4, the blue color edge is 6.00 (0.47) and the red color edge is 9.98 (0.77).

如图6(h)所示,当像素位置为75至100时,蓝色通道的灰度值从8%下降至-1%,当像素位置为100至190时,蓝色通道的灰度值逐渐上升,至趋于0.5%。As shown in FIG6(h), when the pixel position is 75 to 100, the gray value of the blue channel decreases from 8% to -1%, and when the pixel position is 100 to 190, the gray value of the blue channel gradually increases to approach 0.5%.

如图6(h)所示,设置紫边阈值α为阴影部分(D部分和E部分),E部分为色域中红色通道和蓝色通道相较于绿色通道随像素的偏移量的交集部分,紫边阈值α与E部分的差值即紫边区域(D部分)。对紫边区域(D部分)取积分就可以获得紫边的量化结果。例如,根据公式(2),并参考表1,测试图卡在竖直方向斜边4中,紫色的色边为6.00(0.47)。As shown in Figure 6(h), the purple fringing threshold α is set to the shadow part (part D and part E), and part E is the intersection of the offset of the red channel and the blue channel with the pixel compared to the green channel in the color gamut. The difference between the purple fringing threshold α and part E is the purple fringing area (part D). The quantization result of the purple fringing can be obtained by integrating the purple fringing area (part D). For example, according to formula (2) and referring to Table 1, the test image is stuck in the vertical oblique edge 4, and the purple color edge is 6.00 (0.47).

例如,表2示出了测试图卡的四条斜边的平均色彩边缘情况。For example, Table 2 shows the average color edge conditions of the four oblique edges of the test chart.

表2Table 2

如表2所示,在获取的紫边图像中,测试图卡的四条斜边中蓝色的平均色边数值为7.1(0.55),红色的平均色边数值为8.0(0.62),紫色的平均色边数值为3.8(0.29)。As shown in Table 2, in the acquired purple-fringed image, the average color fringing value of the blue color among the four oblique edges of the test chart is 7.1 (0.55), the average color fringing value of the red color is 8.0 (0.62), and the average color fringing value of the purple color is 3.8 (0.29).

表3Table 3

例如,表3示出了测试图卡的四条斜边的最大色彩边缘情况。如表3所示,在获取的紫边图像中,测试图卡的四条斜边中蓝色的最大色边数值为9.28(0.76),红色的最大色边数值为13.25(1.03),紫色的最大色边数值为6.00(0.47)。For example, Table 3 shows the maximum color edge conditions of the four oblique edges of the test chart. As shown in Table 3, in the acquired purple-edge image, the maximum color edge value of the blue color among the four oblique edges of the test chart is 9.28 (0.76), the maximum color edge value of the red color is 13.25 (1.03), and the maximum color edge value of the purple color is 6.00 (0.47).

通过上述紫边测量分析系统,为不同的具有拍摄功能的电子设备提供相对稳定的紫边拍摄环境,从而对不同电子设备的拍摄到存在紫边现象的图像的拍摄功能进行量化研究。紫边测量分析系统采用光源和标靶固定,手机及夹持装置移动的方式,在手机摄像头与光源为大角度进行紫边的测量时,能够减小对光源面板和标靶的尺寸要求。同时,系统采用全自动的拍摄方法,能最大程度地减轻人力成本。以及,采用光源的光谱可调,可以实现生活场景的光源光谱的实验室实现,全面还原实际可能产生紫边的场景。The above-mentioned purple fringing measurement and analysis system provides a relatively stable purple fringing shooting environment for different electronic devices with shooting functions, so as to quantitatively study the shooting functions of different electronic devices in capturing images with purple fringing. The purple fringing measurement and analysis system adopts a method in which the light source and target are fixed, and the mobile phone and the clamping device are moved. When the purple fringing is measured at a large angle between the mobile phone camera and the light source, the size requirements for the light source panel and the target can be reduced. At the same time, the system adopts a fully automatic shooting method, which can reduce labor costs to the greatest extent. In addition, the light source spectrum is adjustable, which can realize the laboratory realization of the light source spectrum of life scenes, and fully restore the scenes that may actually produce purple fringing.

在附图中,可以以特定布置和/或顺序示出一些结构或方法特征。然而,应该理解,可能不需要这样的特定布置和/或排序。而是,在一些实施例中,这些特征可以以不同于说明性附图中所示的方式和/或顺序来布置。另外,在特定图中包括结构或方法特征并不意味着暗示在所有实施例中都需要这样的特征,并且在一些实施例中,可以不包括这些特征或者可以与其他特征组合。In the accompanying drawings, some structural or method features may be shown in a specific arrangement and/or order. However, it should be understood that such a specific arrangement and/or order may not be required. Instead, in some embodiments, these features may be arranged in a manner and/or order different from that shown in the illustrative drawings. In addition, the inclusion of structural or method features in a particular figure does not mean that such features are required in all embodiments, and in some embodiments, these features may not be included or may be combined with other features.

需要说明的是,本发明各设备实施例中提到的各单元/模块都是逻辑单元/模块,在物理上,一个逻辑单元/模块可以是一个物理单元/模块,也可以是一个物理单元/模块的一部分,还可以以多个物理单元/模块的组合实现,这些逻辑单元/模块本身的物理实现方式并不是最重要的,这些逻辑单元/模块所实现的功能的组合才是解决本发明所提出的技术问题的关键。此外,为了突出本发明的创新部分,本发明上述各设备实施例并没有将与解决本发明所提出的技术问题关系不太密切的单元/模块引入,这并不表明上述设备实施例并不存在其它的单元/模块。It should be noted that the units/modules mentioned in the various device embodiments of the present invention are all logical units/modules. Physically, a logical unit/module can be a physical unit/module, or a part of a physical unit/module, or can be implemented as a combination of multiple physical units/modules. The physical implementation of these logical units/modules themselves is not the most important. The combination of functions implemented by these logical units/modules is the key to solving the technical problems proposed by the present invention. In addition, in order to highlight the innovative part of the present invention, the above-mentioned device embodiments of the present invention do not introduce units/modules that are not closely related to solving the technical problems proposed by the present invention, which does not mean that there are no other units/modules in the above-mentioned device embodiments.

需要说明的是,在本专利的示例和说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "including one" do not exclude the existence of other identical elements in the process, method, article or device including the elements.

虽然通过参照本发明的某些优选实施例,已经对本发明进行了图示和描述,但本领域的普通技术人员应该明白,可以在形式上和细节上对其作各种改变,而不偏离本发明的范围。While the present invention has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the scope of the invention.

Claims (13)

1.一种紫边测量分析系统,其特征在于,包括光源部、测量控制部和控制系统;1. A purple fringing measurement and analysis system, characterized in that it comprises a light source unit, a measurement control unit and a control system; 所述光源部用于提供被测试设备拍摄紫边图像所需的光谱;The light source unit is used to provide the spectrum required by the device under test to capture a purple-fringed image; 所述测量控制部用于调节所述被测试设备为第一角度和第一位置;The measurement control unit is used to adjust the device under test to a first angle and a first position; 所述控制系统,用于获取所述被测试设备在所述第一角度和所述第一位置拍摄的紫边图像,并基于所述紫边图像获取对应的紫边信息;The control system is used to obtain a purple-fringed image of the device under test taken at the first angle and the first position, and obtain corresponding purple-fringed information based on the purple-fringed image; 所述控制系统,用于:The control system is used for: 基于所述紫边图像的色域,获取第一色彩偏移量、第二色彩偏移量和紫边阈值,其中,所述第一色彩偏移量为红色通道相较于绿色通道随像素的偏移量,所述第二色彩偏移量为蓝色通道相较于所述绿色通道随像素的偏移量;Based on the color gamut of the purple-fringed image, a first color offset, a second color offset and a purple-fringed threshold are obtained, wherein the first color offset is an offset of a red channel with respect to a green channel with respect to a pixel, and the second color offset is an offset of a blue channel with respect to a green channel with respect to a pixel; 基于所述第一色彩偏移量与所述第二色彩偏移量的交集部分与所述紫边阈值的差值,获取紫边区域,其中,所述交集部分为所述第一色彩偏移量和所述第二色彩偏移量中的最小值;Obtaining a purple-fringed area based on a difference between an intersection of the first color offset and the second color offset and the purple-fringed threshold, wherein the intersection is a minimum value between the first color offset and the second color offset; 对所述紫边区域积分,获取紫边的量化信息。The purple-fringe region is integrated to obtain quantified information of the purple-fringe. 2.根据权利要求1所述的系统,其特征在于,2. The system according to claim 1, characterized in that 所述第一角度为所述被测试设备的摄像头的拍摄面与所述光源部的光源面板保持相对平行;The first angle is such that a shooting plane of the camera of the device under test and a light source panel of the light source unit remain relatively parallel; 所述第一位置为所述被测试设备与所述光源部保持预设距离的位置,所述预设距离为所述被测试设备的摄像头的35mm等效焦距的预设倍数。The first position is a position where the device under test maintains a preset distance from the light source portion, and the preset distance is a preset multiple of the 35 mm equivalent focal length of the camera of the device under test. 3.根据权利要求1或2所述的系统,其特征在于,所述光源部包括至少一个子光源和光源调节系统;3. The system according to claim 1 or 2, characterized in that the light source unit comprises at least one sub-light source and a light source adjustment system; 所述光源调节系统,用于通过调节多个所述子光源的光照参数,提供所述被测试设备拍摄所述紫边图像所需的光谱,所述光照参数包括色温和/或亮度。The light source adjustment system is used to provide the spectrum required by the tested device to capture the purple-fringed image by adjusting the illumination parameters of the plurality of sub-light sources, wherein the illumination parameters include color temperature and/or brightness. 4.根据权利要求1或2所述的系统,其特征在于,所述测量控制部包括夹持装置和运动轨道;4. The system according to claim 1 or 2, characterized in that the measurement control unit includes a clamping device and a motion track; 所述夹持装置用于夹持所述被测试设备;The clamping device is used to clamp the device under test; 所述运动轨道用于为所述被测试设备提供移动的路径,实现调节所述被测试设备至所述第一角度和所述第一位置。The motion track is used to provide a moving path for the device under test, so as to adjust the device under test to the first angle and the first position. 5.根据权利要求1或2所述的系统,其特征在于,所述控制系统,用于获取所述被测试设备在所述第一角度和所述第一位置,在预设拍摄模式下拍摄的所述紫边图像。5. The system according to claim 1 or 2, characterized in that the control system is used to obtain the purple-fringed image captured by the device under test at the first angle and the first position in a preset shooting mode. 6.根据权利要求5所述的系统,其特征在于,所述预设拍摄模式包括主摄拍摄镜头、广角拍摄镜头、长焦拍摄镜头、各预设曝光时间、各预设视场下的任意一种或多种模式的组合。6. The system according to claim 5, characterized in that the preset shooting modes include a combination of any one or more modes under a main camera lens, a wide-angle camera lens, a telephoto camera lens, various preset exposure times, and various preset fields of view. 7.根据权利要求1所述的系统,其特征在于,7. The system according to claim 1, characterized in that 所述第一色彩偏移量基于特定像素位置的所述红色通道的灰度值与所述绿色通道的灰度值的差值,以及所述被测试设备的摄像头的所述色域的比特位数确定;The first color offset is determined based on a difference between a grayscale value of the red channel and a grayscale value of the green channel at a specific pixel position, and a number of bits of the color gamut of the camera of the device under test; 所述第二色彩偏移量基于所述特定像素位置的所述蓝色通道的灰度值与所述绿色通道的灰度值的差值,以及所述被测试设备的摄像头的所述色域的比特位数确定。The second color offset is determined based on a difference between a grayscale value of the blue channel and a grayscale value of the green channel at the specific pixel position, and a number of bits of the color gamut of the camera of the device under test. 8.根据权利要求1所述的系统,其特征在于,所述紫边测量分析系统还包括标卡,8. The system according to claim 1, characterized in that the purple fringing measurement and analysis system further comprises a label card, 所述标卡用于验证所述被测试设备的摄像头的拍摄面与所述光源部的面板是否保持相对平行。The mark card is used to verify whether the shooting surface of the camera of the tested device and the panel of the light source unit remain relatively parallel. 9.根据权利要求8所述的系统,其特征在于,基于所述标卡验证所述被测试设备的摄像头的拍摄面与所述光源部的面板是否保持相对平行的方式包括:9. The system according to claim 8, characterized in that the method of verifying whether the shooting surface of the camera of the device under test and the panel of the light source unit remain relatively parallel based on the mark card comprises: 当确定所述被测试设备的摄像画面中的所述标卡的标记,与所述被测试设备的摄像画面中的默认的标记重合,确定所述被测试设备的摄像头的拍摄面与所述光源部的面板保持相对平行。When it is determined that the mark of the label card in the camera image of the device under test coincides with the default mark in the camera image of the device under test, it is determined that the shooting surface of the camera of the device under test remains relatively parallel to the panel of the light source unit. 10.根据权利要求1或2所述的系统,其特征在于,调节所述被测试设备为第一角度的方式包括:10. The system according to claim 1 or 2, wherein the method of adjusting the device under test to the first angle comprises: 在运动轨道上移动所述被测试设备;Moving the device under test on a motion track; 将所述被测试设备与所述光源部设置为多个预设距离时,使得所述被测试设备的摄像画面中的标卡的标记与所述被测试设备的默认相机的标记均重合的角度作为所述第一角度。When the device under test and the light source unit are set to a plurality of preset distances, an angle at which the mark of the label card in the camera image of the device under test and the mark of the default camera of the device under test both overlap is used as the first angle. 11.一种紫边测量分析方法,其特征在于,应用于权利要求1-10任一项所述的紫边测量分析系统,所述方法包括:11. A purple fringing measurement and analysis method, characterized in that it is applied to the purple fringing measurement and analysis system according to any one of claims 1 to 10, and the method comprises: 基于测量控制部调节所述被测试设备为所述第一角度和所述第一位置;adjusting the device under test to the first angle and the first position based on a measurement control unit; 基于光源部提供被测试设备拍摄所述紫边图像所需的光谱;Providing a spectrum required by the device under test to capture the purple-fringed image based on the light source unit; 基于控制系统获取所述被测试设备在所述第一角度和所述第一位置拍摄的所述紫边图像,并基于所述紫边图像获取对应的紫边信息;Acquire, based on a control system, the purple-fringed image captured by the device under test at the first angle and the first position, and acquire corresponding purple-fringed information based on the purple-fringed image; 其中,所述基于所述紫边图像获取对应的紫边信息,包括:Wherein, the obtaining corresponding purple fringing information based on the purple fringing image includes: 基于所述紫边图像的色域,获取第一色彩偏移量、第二色彩偏移量和紫边阈值,其中,所述第一色彩偏移量为红色通道相较于绿色通道随像素的偏移量,所述第二色彩偏移量为蓝色通道相较于所述绿色通道随像素的偏移量;Based on the color gamut of the purple-fringed image, a first color offset, a second color offset and a purple-fringed threshold are obtained, wherein the first color offset is an offset of a red channel with respect to a green channel with respect to a pixel, and the second color offset is an offset of a blue channel with respect to a green channel with respect to a pixel; 基于所述第一色彩偏移量与所述第二色彩偏移量的交集部分与所述紫边阈值的差值,获取紫边区域,其中,所述交集部分为所述第一色彩偏移量和所述第二色彩偏移量中的最小值;Obtaining a purple-fringed area based on a difference between an intersection of the first color offset and the second color offset and the purple-fringed threshold, wherein the intersection is a minimum value between the first color offset and the second color offset; 对所述紫边区域积分,获取紫边的量化信息。The purple-fringe region is integrated to obtain quantified information of the purple-fringe. 12.一种计算机可读存储介质,其特征在于,所述可读存储介质上存储有指令,所述指令在电子设备上执行时,使所述电子设备实现权利要求11中所述的紫边测量分析方法。12. A computer-readable storage medium, characterized in that instructions are stored on the computer-readable storage medium, and when the instructions are executed on an electronic device, the electronic device implements the purple fringing measurement and analysis method described in claim 11. 13.一种电子设备,其特征在于,包括:13. An electronic device, comprising: 存储器,用于存储由电子设备的一个或多个处理器执行的指令;a memory for storing instructions to be executed by one or more processors of the electronic device; 以及处理器,是所述电子设备的处理器之一,用于执行所述存储器中存储的指令以实现权利要求11中所述的紫边测量分析方法。and a processor, which is one of the processors of the electronic device, configured to execute instructions stored in the memory to implement the purple fringing measurement and analysis method described in claim 11.
CN202310687179.1A 2023-06-09 2023-06-09 Purple fringing measurement and analysis system and method, storage medium, and electronic device Active CN117714663B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310687179.1A CN117714663B (en) 2023-06-09 2023-06-09 Purple fringing measurement and analysis system and method, storage medium, and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310687179.1A CN117714663B (en) 2023-06-09 2023-06-09 Purple fringing measurement and analysis system and method, storage medium, and electronic device

Publications (2)

Publication Number Publication Date
CN117714663A CN117714663A (en) 2024-03-15
CN117714663B true CN117714663B (en) 2024-10-18

Family

ID=90146746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310687179.1A Active CN117714663B (en) 2023-06-09 2023-06-09 Purple fringing measurement and analysis system and method, storage medium, and electronic device

Country Status (1)

Country Link
CN (1) CN117714663B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006121138A (en) * 2004-10-19 2006-05-11 Sony Corp Image processor, image processing method and computer program
CN113115027A (en) * 2020-01-10 2021-07-13 Aptiv技术有限公司 Method and system for calibrating camera
CN218162582U (en) * 2022-07-14 2022-12-27 上海研鼎信息技术有限公司 Camera testing device

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002095020A (en) * 2000-09-14 2002-03-29 Sony Corp Image adjusting system, imaging device and image- adjusting method
US6809873B2 (en) * 2002-09-09 2004-10-26 Eastman Kodak Company Color illumination system for spatial light modulators using multiple double telecentric relays
AU2007100872A4 (en) * 2007-09-11 2007-12-13 Nane Capeski Taste bud gum
JP5464982B2 (en) * 2009-11-20 2014-04-09 キヤノン株式会社 Imaging apparatus and image processing method
CN103679716A (en) * 2013-12-05 2014-03-26 河海大学 Salient region layered extracting method based on HLS color space
JP6498552B2 (en) * 2015-07-15 2019-04-10 株式会社日立製作所 Oil leak detection system
CN107563987A (en) * 2016-07-01 2018-01-09 北京疯景科技有限公司 Demarcate the method and device of imaging difference
CN106657946B (en) * 2017-01-12 2019-03-01 深圳岚锋创视网络科技有限公司 System and method are eliminated in image purple boundary
CN107371007A (en) * 2017-07-25 2017-11-21 广东欧珀移动通信有限公司 White balance processing method, device and terminal
CN109005364B (en) * 2018-08-13 2020-03-06 Oppo广东移动通信有限公司 Imaging control method, imaging control device, electronic device, and computer-readable storage medium
CN111199524B (en) * 2019-12-26 2023-03-17 浙江大学 Purple edge correction method for image of adjustable aperture optical system
CN111340734B (en) * 2020-03-02 2022-03-29 浙江大学 Image purple boundary correction method using convolutional neural network model
CN112218070B (en) * 2020-10-10 2023-06-02 Oppo(重庆)智能科技有限公司 Stray light detection method and device, storage medium and electronic equipment
CN115988196A (en) * 2021-10-15 2023-04-18 浙江宇视科技有限公司 Method for measuring optical axis offset, electronic equipment, system and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006121138A (en) * 2004-10-19 2006-05-11 Sony Corp Image processor, image processing method and computer program
CN113115027A (en) * 2020-01-10 2021-07-13 Aptiv技术有限公司 Method and system for calibrating camera
CN218162582U (en) * 2022-07-14 2022-12-27 上海研鼎信息技术有限公司 Camera testing device

Also Published As

Publication number Publication date
CN117714663A (en) 2024-03-15

Similar Documents

Publication Publication Date Title
US7259784B2 (en) System and method for camera color calibration and image stitching
US8201951B2 (en) Catadioptric projectors
JP2014044345A (en) Imaging apparatus
KR102123488B1 (en) Display panel inspection apparatus and Display panel inspection method
US8368783B2 (en) Method for adjusting shooting parameters of digital camera
JP2005078089A (en) Systems and methods using light emitting diodes for image capture devices
CN108616689B (en) Portrait-based high dynamic range image acquisition method, device and equipment
CN108198220B (en) Accurate calibration method for image curved surface of optical camera
CN103118270B (en) Camera testing device and camera testing method
WO2019019904A1 (en) White balance processing method and apparatus, and terminal
CN105827988A (en) Light control method and device for mobile terminal shooting
US20240241686A1 (en) Controlling characteristics of light output from led walls
CN104853097A (en) Panoramic mode shooting method and shooting device
JP2006025005A (en) Photographing system
TWI704797B (en) Measuring rotational position of lenticular lens sheet
CN102523379B (en) Image shooting method under stroboscopic scene and method for processing stroboscopic images obtained by using image shooting method
US10656406B2 (en) Image processing device, imaging device, microscope system, image processing method, and computer-readable recording medium
CN103986881A (en) Full-automatic photographing method and device
CN117714663B (en) Purple fringing measurement and analysis system and method, storage medium, and electronic device
WO2022087819A1 (en) Method and apparatus for adjusting white balance of spliced screen, electronic device and medium
CN102004370B (en) Method for detecting focal length by flashlight in auxiliary manner
TW202119355A (en) Method for improving the sharpness of an image
US20160309067A1 (en) Camera led flash with variable lens gain
JP2012085093A (en) Imaging device and acquisition method
CN108337448A (en) High-dynamic-range image acquisition method, device, terminal device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Terminal Co.,Ltd.

Country or region after: China

Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong

Patentee before: Honor Device Co.,Ltd.

Country or region before: China