CN118898645A - A method and related device for positioning the height reference position of screen pixel layer shooting - Google Patents

A method and related device for positioning the height reference position of screen pixel layer shooting Download PDF

Info

Publication number
CN118898645A
CN118898645A CN202411377329.XA CN202411377329A CN118898645A CN 118898645 A CN118898645 A CN 118898645A CN 202411377329 A CN202411377329 A CN 202411377329A CN 118898645 A CN118898645 A CN 118898645A
Authority
CN
China
Prior art keywords
image
clarity
collection
shooting
shooting height
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.)
Granted
Application number
CN202411377329.XA
Other languages
Chinese (zh)
Other versions
CN118898645B (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.)
Shenzhen Seichitech Technology Co ltd
Original Assignee
Shenzhen Seichitech Technology 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 Shenzhen Seichitech Technology Co ltd filed Critical Shenzhen Seichitech Technology Co ltd
Priority to CN202411377329.XA priority Critical patent/CN118898645B/en
Publication of CN118898645A publication Critical patent/CN118898645A/en
Application granted granted Critical
Publication of CN118898645B publication Critical patent/CN118898645B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/66Analysis of geometric attributes of image moments or centre of gravity
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30121CRT, LCD or plasma display

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Quality & Reliability (AREA)
  • Studio Devices (AREA)

Abstract

The application discloses a method and a related device for positioning a shooting height reference position of a screen pixel layer, which are used for improving the efficiency of positioning interlayer foreign matters of a display screen. The application comprises the following steps: determining display coordinates containing foreign matter features, and moving the flyswatter assembly to an initial shooting height; controlling the fly shooting assembly to shoot the initial image collection and obtaining the definition of all the images; acquiring an intermediate image corresponding to the maximum value of definition in the definition collection and a sequence position of the intermediate image in the initial image collection; obtaining a target image collection set according to a preset rule; establishing an index relation of definition of all images of a shooting height; fitting the index relation to obtain a definition fitting function; calculating a correlation change rate curve of the image definition and the image shooting height and a definition maximum extreme point according to the definition fitting function, and determining a target shooting height according to the maximum extreme point; and calculating the sum of the target shooting height and the initial shooting height to obtain the target height.

Description

一种屏幕像素层拍摄高度基准位置定位的方法及相关装置A method and related device for positioning the height reference position of screen pixel layer shooting

技术领域Technical Field

本申请涉及数据处理领域,尤其涉及一种屏幕像素层拍摄高度基准位置定位的方法及相关装置。The present application relates to the field of data processing, and in particular to a method for locating a height reference position of a screen pixel layer shooting and a related device.

背景技术Background Art

随着时代的不断进步,科技的飞速发展带来了各种电子设备的更新换代,显示屏作为这些设备不可或缺的视觉输出组件,已经被广泛应用于智能手机、智能电视、平板电脑等高端电子产品中。人们对于视觉体验的追求日益增长,使得显示屏技术不断突破,逐渐演变为精密复杂的高科技产品。With the continuous progress of the times, the rapid development of science and technology has brought about the upgrading of various electronic devices. As an indispensable visual output component of these devices, displays have been widely used in high-end electronic products such as smart phones, smart TVs, and tablets. People's pursuit of visual experience is growing, which has led to continuous breakthroughs in display technology and has gradually evolved into sophisticated and complex high-tech products.

在现有技术中,屏幕的显示模组通常由若干层组成,例如OLED显示模组由上往下一般包括CG层(盖板玻璃),OCA层(光学胶),POL层(偏光片),PANEL层(像素层),SF层(支撑膜),TU层(复合胶带)。这些不同的层次结构在组装贴合成形的工艺工程中,有时不可避免地会在其中夹入了异物,即夹层异物缺陷。这种夹层异物缺陷会不同程度上降低显示屏产品的显示质量,会影响消费者的视觉感受和使用体验。因此有效地检出夹层异物并对其进行分层定位至关重要。In the prior art, the display module of the screen is usually composed of several layers. For example, the OLED display module generally includes a CG layer (cover glass), an OCA layer (optical adhesive), a POL layer (polarizer), a PANEL layer (pixel layer), a SF layer (support film), and a TU layer (composite tape) from top to bottom. In the process of assembling, bonding and forming these different hierarchical structures, foreign matter is sometimes inevitably sandwiched in them, that is, interlayer foreign matter defects. This interlayer foreign matter defect will reduce the display quality of the display product to varying degrees, and will affect consumers' visual perception and user experience. Therefore, it is very important to effectively detect interlayer foreign matter and locate it in layers.

而在对夹层异物进行分层定位时,首要的是确认一个拍图基准位置,基准位置的目的是能够直接拍摄到显示模组中间层所处的位置。传统方法通常是通过人工手动调整显微镜头聚焦位置来定位像素层,这种方法存在检测成本高、效率低、主观性强、对检测技术人员的经验和技能要求较高等不足。而现有的自动定位方法,需要在某一设定高度范围内采集一组图片并对每一幅图像进行清晰度分析进而实现像素层的定位。然而,由于需要在不同高度位置拍摄数十张图像,耗费时间较长,实际应用中仍然不满足节拍需求。When locating the interlayer foreign matter in layers, the first thing to do is to confirm a reference position for taking pictures. The purpose of the reference position is to be able to directly capture the position of the middle layer of the display module. The traditional method usually locates the pixel layer by manually adjusting the focus position of the microscope lens. This method has the disadvantages of high detection cost, low efficiency, strong subjectivity, and high requirements for the experience and skills of the detection technicians. The existing automatic positioning method requires collecting a set of pictures within a set height range and performing clarity analysis on each image to locate the pixel layer. However, since dozens of images need to be taken at different heights, it takes a long time and still does not meet the beat requirements in actual applications.

发明内容Summary of the invention

为了解决上述技术问题,本申请提供了一种屏幕像素层拍摄高度基准位置定位的方法及相关装置,用于提升对显示屏夹层异物定位的效率。In order to solve the above technical problems, the present application provides a method and related device for locating a screen pixel layer shooting height reference position, which is used to improve the efficiency of locating foreign objects in the interlayer of a display screen.

下面对本申请中提供的技术方案进行描述:The technical solution provided in this application is described below:

本申请第一方面提供了一种屏幕像素层拍摄高度基准位置定位的方法,包括:In a first aspect, the present application provides a method for locating a reference position of a screen pixel layer shooting height, comprising:

点亮显示器,并确定含有异物特征的显示器坐标,将飞拍组件移动至所述显示器坐标正上方预设的起始拍摄高度;Light up the display, determine the display coordinates containing foreign body features, and move the flying camera assembly to a preset starting shooting height directly above the display coordinates;

根据预设参数控制所述飞拍组件从所述起始拍摄高度向下移动并拍摄初始图像合集;Control the flying camera assembly to move downward from the starting shooting height and shoot an initial image collection according to preset parameters;

获取所述初始图像合集中所有图像的清晰度,得到清晰度合集;Obtaining the clarity of all images in the initial image collection to obtain a clarity collection;

对所述清晰度合集进行高斯平滑处理后,获取所述清晰度合集中清晰度最大值对应的中间图像;After performing Gaussian smoothing on the definition collection, an intermediate image corresponding to the maximum definition value in the definition collection is obtained;

获取所述中间图像在所述初始图像合集中的序列位置,从所述初始图像合集中以所述中间图像为中心向左右分别获取第一预设数量的飞拍图像,得到目标图像合集;Acquire the sequence position of the intermediate image in the initial image collection, and acquire a first preset number of flying images from the initial image collection to the left and right with the intermediate image as the center, to obtain a target image collection;

根据预设规则分别计算所述目标图像合集中所有图像的拍摄高度,从所述清晰度合集中索引所述所有图像的清晰度,并建立所述拍摄高度所述所有图像的清晰度的索引关系;Calculating the shooting heights of all images in the target image collection according to a preset rule, indexing the sharpness of all images from the sharpness collection, and establishing an index relationship between the shooting height and the sharpness of all images;

通过最小二乘法对所述索引关系进行拟合,得到清晰度拟合函数;Fitting the index relationship by the least square method to obtain a clarity fitting function;

根据所述清晰度拟合函数计算图像清晰度与图像拍摄高度的相关性变化速率曲线,根据所述相关性变化速率曲线获取图像清晰度的最大极值点,并根据所述最大极值点确定目标拍摄高度;Calculating a correlation change rate curve between image clarity and image shooting height according to the clarity fitting function, obtaining a maximum extreme value point of image clarity according to the correlation change rate curve, and determining a target shooting height according to the maximum extreme value point;

计算所述目标拍摄高度和所述起始拍摄高度的和,得到目标高度,所述目标高度用于确定所述含有异物特征的显示器屏幕分层的基准位置。The sum of the target shooting height and the starting shooting height is calculated to obtain a target height, and the target height is used to determine a reference position of the display screen layer containing the foreign matter feature.

可选的,所述获取所述初始图像合集中所有图像的清晰度,得到清晰度合集包括:Optionally, obtaining the clarity of all images in the initial image collection to obtain the clarity collection includes:

获取所述初始图像合集中的待处理图像,并对所述待处理图像根据第二预设数量进行图片切割,得到子图像合集;Acquire the image to be processed in the initial image collection, and perform image segmentation on the image to be processed according to a second preset number to obtain a sub-image collection;

分别对所述子图像合集中的所有子图像计算清晰度;Calculating the clarity of all sub-images in the sub-image collection respectively;

对所述所有子图像的清晰度进行求和后计算平均值,得到所述待处理图像的清晰度;The clarity of all sub-images is summed up and an average value is calculated to obtain the clarity of the image to be processed;

分别对所述初始图像合集中所有图像进行清晰度计算,得到所述初始图像合集的清晰度合集。The clarity of all images in the initial image collection is calculated respectively to obtain a clarity collection of the initial image collection.

可选的,所述根据预设规则分别计算所述目标图像合集中所有图像的拍摄高度,从所述清晰度合集中索引所述所有图像的清晰度,并建立所述拍摄高度所述所有图像的清晰度的索引关系包括:Optionally, the calculating the shooting heights of all images in the target image collection according to a preset rule, indexing the sharpness of all images from the sharpness collection, and establishing an index relationship between the shooting height and the sharpness of all images includes:

将所述初始图像合集中的第一张图像的拍摄高度设置为初始值;Setting the shooting height of the first image in the initial image collection to an initial value;

根据所述预设参数中的采图间隔以所述初始值为第一数值计算所述初始图像合集中所有图像的拍摄高度,得到拍摄高度序列;Calculate the shooting heights of all images in the initial image collection according to the image sampling interval in the preset parameters and the initial value as a first value to obtain a shooting height sequence;

根据所述目标图像合集建立所述拍摄高度序列和所述清晰度合集的索引关系。An index relationship between the shooting height sequence and the definition collection is established according to the target image collection.

可选的,所述通过最小二乘法对所述索引关系进行拟合,得到清晰度拟合函数包括:Optionally, fitting the index relationship by the least square method to obtain a clarity fitting function includes:

根据最小二乘法将所述索引关系中的图像拍摄高度设置为自变量,所述图像清晰度设置为因变量,并进行二阶多项式拟合,得到清晰度拟合函数。According to the least square method, the image shooting height in the index relationship is set as an independent variable, the image clarity is set as a dependent variable, and a second-order polynomial fitting is performed to obtain a clarity fitting function.

可选的,所述根据所述清晰度拟合函数计算图像清晰度与图像拍摄高度的相关性变化速率曲线,根据所述相关性变化速率曲线获取图像清晰度的最大极值点,并根据所述最大极值点确定目标拍摄高度包括:Optionally, calculating a correlation change rate curve between image clarity and image shooting height according to the clarity fitting function, obtaining a maximum extreme value point of image clarity according to the correlation change rate curve, and determining a target shooting height according to the maximum extreme value point includes:

计算所述清晰度拟合函数的导数,得到相关性变化速率曲线;Calculating the derivative of the clarity fitting function to obtain a correlation change rate curve;

根据所述相关性变化速率曲线确定图像清晰度的最大值极点,根据所述最大值极点计算所述导数函数对应的拍摄高度,得到目标拍摄高度。The maximum value pole of the image clarity is determined according to the correlation change rate curve, and the shooting height corresponding to the derivative function is calculated according to the maximum value pole to obtain the target shooting height.

可选的,所述根据预设参数控制所述飞拍组件从所述起始拍摄高度向下移动并拍摄初始图像合集包括:Optionally, controlling the flying camera assembly to move downward from the starting shooting height and shooting the initial image collection according to preset parameters includes:

获取预设参数,所述预设参数包括所述飞拍组件的飞拍行程、移动速度、曝光时间和采图间隔;Acquire preset parameters, wherein the preset parameters include the flying stroke, moving speed, exposure time and image acquisition interval of the flying camera assembly;

根据所述起始拍摄高度设置所述飞拍组件;Setting the flying shooting component according to the starting shooting height;

控制所述飞拍组件依照所述移动速度垂直向下移动至移动距离达到所述飞拍行程,在移动过程中根据所述采图间隔和所述曝光时间进行图像采集,得到初始图像合集。The flying camera component is controlled to move vertically downward at the moving speed until the moving distance reaches the flying camera stroke, and during the movement, image acquisition is performed according to the image acquisition interval and the exposure time to obtain an initial image collection.

可选的,所述获取所述中间图像在所述初始图像合集中的序列位置之后,所述方法还包括:Optionally, after obtaining the sequence position of the intermediate image in the initial image collection, the method further includes:

判断所述中间图像的序列位置是否在预设区间内;Determining whether the sequence position of the intermediate image is within a preset interval;

若所述序列位置大于所述预设区间的最大值,则向下调整所述飞拍组件;If the sequence position is greater than the maximum value of the preset interval, the flying shot component is adjusted downward;

若所述序列位置小于所述预设区间的最小值,则向上调整所述飞拍组件。If the sequence position is less than the minimum value of the preset interval, the flying shot component is adjusted upward.

本申请第二方面提供了一种屏幕像素层拍摄高度基准位置定位的系统,包括:A second aspect of the present application provides a system for positioning a screen pixel layer shooting height reference position, comprising:

第一确定单元,用于点亮显示器,并确定含有异物特征的显示器坐标,将飞拍组件移动至所述显示器坐标正上方预设的起始拍摄高度;The first determination unit is used to light up the display, determine the coordinates of the display containing the foreign body characteristics, and move the flying shooting component to a preset starting shooting height just above the coordinates of the display;

拍摄单元,用于根据预设参数控制所述飞拍组件从所述起始拍摄高度向下移动并拍摄初始图像合集;A shooting unit, used for controlling the flying shooting assembly to move downward from the starting shooting height and shooting an initial image collection according to preset parameters;

第一获取单元,用于获取所述初始图像合集中所有图像的清晰度,得到清晰度合集;A first acquisition unit is used to acquire the clarity of all images in the initial image collection to obtain a clarity collection;

第二获取单元,用于对所述清晰度合集进行高斯平滑处理后,获取所述清晰度合集中清晰度最大值对应的中间图像;A second acquisition unit is used to obtain an intermediate image corresponding to a maximum value of the clarity in the clarity collection after performing Gaussian smoothing on the clarity collection;

第三获取单元,用于获取所述中间图像在所述初始图像合集中的序列位置,从所述初始图像合集中以所述中间图像为中心向左右分别获取第一预设数量的飞拍图像,得到目标图像合集;A third acquisition unit is used to acquire the sequence position of the intermediate image in the initial image collection, and acquire a first preset number of flying images from the initial image collection to the left and right with the intermediate image as the center, so as to obtain a target image collection;

数据处理单元,用于根据预设规则分别计算所述目标图像合集中所有图像的拍摄高度,从所述清晰度合集中索引所述所有图像的清晰度,并建立所述拍摄高度所述所有图像的清晰度的索引关系;A data processing unit, configured to calculate the shooting heights of all images in the target image collection according to a preset rule, index the sharpness of all images from the sharpness collection, and establish an index relationship between the shooting heights and the sharpness of all images;

拟合单元,用于通过最小二乘法对所述索引关系进行拟合,得到清晰度拟合函数;A fitting unit, used for fitting the index relationship by a least square method to obtain a clarity fitting function;

第一计算单元,用于根据所述清晰度拟合函数计算图像清晰度与图像拍摄高度的相关性变化速率曲线,根据所述相关性变化速率曲线获取图像清晰度的最大极值点,并根据所述最大极值点确定目标拍摄高度;a first calculation unit, configured to calculate a correlation change rate curve between image clarity and image shooting height according to the clarity fitting function, obtain a maximum extreme value point of image clarity according to the correlation change rate curve, and determine a target shooting height according to the maximum extreme value point;

第二计算单元,用于计算所述目标拍摄高度和所述起始拍摄高度的和,得到目标高度,所述目标高度用于确定所述含有异物特征的显示器屏幕分层的基准位置。The second calculation unit is used to calculate the sum of the target shooting height and the starting shooting height to obtain the target height, and the target height is used to determine the reference position of the display screen layer containing the foreign body feature.

可选的,所述第一获取单元具体用于:Optionally, the first acquiring unit is specifically used for:

获取所述初始图像合集中的待处理图像,并对所述待处理图像根据第二预设数量进行图片切割,得到子图像合集;Acquire the image to be processed in the initial image collection, and perform image segmentation on the image to be processed according to a second preset number to obtain a sub-image collection;

分别对所述子图像合集中的所有子图像计算清晰度;Calculating the clarity of all sub-images in the sub-image collection respectively;

对所述所有子图像的清晰度进行求和后计算平均值,得到所述待处理图像的清晰度;The clarity of all sub-images is summed up and an average value is calculated to obtain the clarity of the image to be processed;

分别对所述初始图像合集中所有图像进行清晰度计算,得到所述初始图像合集的清晰度合集。The clarity of all images in the initial image collection is calculated respectively to obtain a clarity collection of the initial image collection.

可选的,所述数据处理单元主要用于:Optionally, the data processing unit is mainly used for:

将所述初始图像合集中的第一张图像的拍摄高度设置为初始值;Setting the shooting height of the first image in the initial image collection to an initial value;

根据所述预设参数中的采图间隔以所述初始值为第一数值计算所述初始图像合集中所有图像的拍摄高度,得到拍摄高度序列;Calculate the shooting heights of all images in the initial image collection according to the image sampling interval in the preset parameters and taking the initial value as a first value to obtain a shooting height sequence;

根据所述目标图像合集建立所述拍摄高度序列和所述清晰度合集的索引关系。An index relationship between the shooting height sequence and the definition collection is established according to the target image collection.

可选的,所述拟合单元主要用于:Optionally, the fitting unit is mainly used for:

根据最小二乘法将所述索引关系中的图像拍摄高度设置为自变量,所述图像清晰度设置为因变量,并进行二阶多项式拟合,得到清晰度拟合函数。According to the least square method, the image shooting height in the index relationship is set as an independent variable, the image clarity is set as a dependent variable, and a second-order polynomial fitting is performed to obtain a clarity fitting function.

可选的,所述第一计算单元主要用于:Optionally, the first computing unit is mainly used for:

计算所述清晰度拟合函数的导数,得到相关性变化速率曲线;Calculating the derivative of the clarity fitting function to obtain a correlation change rate curve;

根据所述相关性变化速率曲线确定图像清晰度的最大值极点,根据所述最大值极点计算所述导数函数对应的拍摄高度,得到目标拍摄高度。The maximum value pole of the image clarity is determined according to the correlation change rate curve, and the shooting height corresponding to the derivative function is calculated according to the maximum value pole to obtain the target shooting height.

可选的,所述拍摄单元主要用于:Optionally, the shooting unit is mainly used for:

获取预设参数,所述预设参数包括所述飞拍组件的飞拍行程、移动速度、曝光时间和采图间隔;Acquire preset parameters, wherein the preset parameters include the flying stroke, moving speed, exposure time and image acquisition interval of the flying camera assembly;

根据所述起始拍摄高度设置所述飞拍组件;Setting the flying shooting component according to the starting shooting height;

控制所述飞拍组件依照所述移动速度垂直向下移动至移动距离达到所述飞拍行程,在移动过程中根据所述采图间隔和所述曝光时间进行图像采集,得到初始图像合集。The flying camera component is controlled to move vertically downward at the moving speed until the moving distance reaches the flying camera stroke, and during the movement, image acquisition is performed according to the image acquisition interval and the exposure time to obtain an initial image collection.

可选的,所述系统还包括:Optionally, the system further includes:

判断单元,用于判断所述中间图像的序列位置是否在预设区间内;A judging unit, used to judge whether the sequence position of the intermediate image is within a preset interval;

第一调整单元,用于当所述判断单元的判断结果为所述序列位置大于所述预设区间的最大值,则向下调整所述飞拍组件;A first adjustment unit, configured to adjust the flying camera assembly downward when the judgment result of the judgment unit is that the sequence position is greater than the maximum value of the preset interval;

第二调整单元,用于当所述判断单元的判断结果为所述序列位置小于所述预设区间的最小值,则向上调整所述飞拍组件。The second adjustment unit is used to adjust the flying camera component upward when the judgment result of the judgment unit is that the sequence position is less than the minimum value of the preset interval.

本申请第三方面提供了一种屏幕像素层拍摄高度基准位置定位的装置,所述装置包括:A third aspect of the present application provides a device for positioning a screen pixel layer shooting height reference position, the device comprising:

处理器、存储器、输入输出单元以及总线;Processor, memory, input-output unit, and bus;

所述处理器与所述存储器、所述输入输出单元以及所述总线相连;The processor is connected to the memory, the input and output unit, and the bus;

所述存储器保存有程序,所述处理器调用所述程序以执行第一方面以及第一方面中任一项可选的所述方法。The memory stores a program, and the processor calls the program to execute the first aspect and any optional method in the first aspect.

本申请第四方面提供了一种计算机可读存储介质,所述计算机可读存储介质上保存有程序,所述程序在计算机上执行时执行第一方面以及第一方面中任一项可选的所述方法。A fourth aspect of the present application provides a computer-readable storage medium, on which a program is stored. When the program is executed on a computer, the program executes the first aspect and any optional method in the first aspect.

从以上技术方案可以看出,本申请具有以下优点:It can be seen from the above technical solutions that this application has the following advantages:

本申请通过使用飞拍组件向下移动对异物特征进行高频拍摄得到初始图像合集,通过对初始图像合集中包含的图像的清晰度进行获取,进而获取到以通过飞拍组件获取到的最清晰的图像为中间图像的目标清晰度合集,通过对目标清晰度合集中的图像及对应的拍摄高度进行分析计算,进而得到拍摄异物特征最清晰状态的拍摄高度,该拍摄高度为基准位置。The present application obtains an initial image collection by moving the flying camera component downward to perform high-frequency photography of foreign body features, obtains the clarity of the images contained in the initial image collection, and then obtains a target clarity collection with the clearest image obtained by the flying camera component as the intermediate image, and analyzes and calculates the images in the target clarity collection and the corresponding shooting heights, and then obtains the shooting height for capturing the foreign body features in the clearest state, and the shooting height is the reference position.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本申请中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solution in the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

图1为本申请中用于显示屏异物分层的飞拍定位的方法的一个实施例流程示意图;FIG1 is a schematic flow chart of an embodiment of a method for flying position location of foreign matter delamination on a display screen in the present application;

图2a为本申请中用于显示屏异物分层的飞拍定位的方法的第一阶段的另一实施例流程示意图;FIG2a is a schematic flow chart of another embodiment of the first stage of the method for flying location of foreign matter delamination on a display screen in the present application;

图2b为本申请中用于显示屏异物分层的飞拍定位的方法的第二阶段的另一实施例流程示意图;FIG2 b is a schematic flow chart of another embodiment of the second stage of the method for flying location of foreign matter delamination on a display screen in the present application;

图2c为本申请中用于显示屏异物分层的飞拍定位的方法的第三阶段的另一实施例流程示意图;FIG2c is a schematic flow chart of another embodiment of the third stage of the method for flying location of foreign matter delamination on a display screen in the present application;

图3为本申请中用于显示屏异物分层的飞拍定位的系统的一个实施例结构示意图;FIG3 is a schematic structural diagram of an embodiment of a system for flying positioning of foreign matter delamination on a display screen in the present application;

图4为本申请中用于显示屏异物分层的飞拍定位的系统的另一实施例结构示意图;FIG4 is a schematic structural diagram of another embodiment of a system for flying positioning of foreign matter delamination on a display screen in the present application;

图5为本申请中用于显示屏异物分层的飞拍定位的装置的另一实施例结构示意图。FIG. 5 is a schematic structural diagram of another embodiment of the device for flying positioning of foreign matter layered on a display screen in the present application.

具体实施方式DETAILED DESCRIPTION

需要说明的是,本申请提供的用于显示屏异物分层的飞拍定位的方法,可以应用于终端也可以应用于系统,还可以应用于服务器上,例如终端可以是智能手机或电脑、平板电脑、智能电视、智能手表、便携计算机终端也可以是台式计算机等固定终端。为方便阐述,本申请中以终端为执行主体进行举例说明。It should be noted that the method for flying location of foreign matter delamination on a display screen provided by the present application can be applied to a terminal, a system, or a server. For example, the terminal can be a smart phone or a computer, a tablet computer, a smart TV, a smart watch, a portable computer terminal, or a fixed terminal such as a desktop computer. For the convenience of explanation, the present application uses the terminal as an example for illustration.

下面将结合本申请实施例中的附图,对本申请中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

请参阅图1,本申请首先提供了用于显示屏异物分层的飞拍定位的方法的一种实施例,该实施例包括:Referring to FIG. 1 , the present application first provides an embodiment of a method for flying position location of foreign matter layering on a display screen, the embodiment comprising:

S101、点亮显示器,并确定含有异物特征的显示器坐标,将飞拍组件移动至显示器坐标正上方预设的起始拍摄高度;S101, lighting up the display, determining the coordinates of the display containing foreign body features, and moving the flying camera assembly to a preset starting shooting height directly above the coordinates of the display;

在显示屏出厂时的Inline检测阶段会对待检测产品进行检测,实际操作为通过压接点亮显示屏,确定含有缺陷的显示屏位置,当得到显示屏坐标后,终端会控制移动平台运动,使小视野分层相机达到显示屏的正上方,在实际情况中,小视野分层相机与待测试的显示屏的高度距离通过Z轴控制,在对显示屏进行拍摄时,小视野分层相机的初始位置是通过预设的示教位置确定的一个固定高度,即起始拍摄高度,基于该示教位置对待测试的显示屏进行拍摄能够确定拍摄到的图像合集中包含小视野分层相机聚焦值对应的清晰度最高的图像,一般情况下,清晰度最高的图像对应显示器的像素层。During the Inline inspection phase when the display screen leaves the factory, the product to be inspected will be inspected. The actual operation is to light up the display screen by crimping and determine the position of the defective display screen. After obtaining the coordinates of the display screen, the terminal will control the movement of the mobile platform to make the small field of view layered camera reach directly above the display screen. In actual situations, the height distance between the small field of view layered camera and the display screen to be tested is controlled by the Z axis. When shooting the display screen, the initial position of the small field of view layered camera is a fixed height determined by a preset teaching position, that is, the starting shooting height. Based on the teaching position, shooting the display screen to be tested can determine that the captured image collection contains the image with the highest clarity corresponding to the focus value of the small field of view layered camera. Generally, the image with the highest clarity corresponds to the pixel layer of the display.

具体的,屏幕的显示模组通常由若干层组成,例如OLED显示模组由上往下一般包括CG层(盖板玻璃),OCA层(光学胶),POL层(偏光片),PANEL层(像素层),SF层(支撑膜),TU层(复合胶带),此时可知像素层为中间层,即对屏幕异物所在的屏幕层级进行定位的基准位置。Specifically, the display module of the screen is usually composed of several layers. For example, the OLED display module generally includes CG layer (cover glass), OCA layer (optical adhesive), POL layer (polarizer), PANEL layer (pixel layer), SF layer (support film), and TU layer (composite tape) from top to bottom. At this time, it can be seen that the pixel layer is the middle layer, which is the reference position for locating the screen level where foreign objects are located.

S102、根据预设参数控制飞拍组件从起始拍摄高度向下移动并拍摄初始图像合集;S102, controlling the flying camera assembly to move downward from a starting shooting height and shooting an initial image collection according to preset parameters;

小视野分层相机为本申请中飞拍组件的主体,为满足飞拍需求小视野分层相机需要调整为具备短曝光时间、高帧率的相机,运动控制卡需调整为具有硬件比较输出或精准输出功能,从而实现高速精准触发控制。The small field of view layered camera is the main body of the flying photography component in this application. In order to meet the needs of flying photography, the small field of view layered camera needs to be adjusted to a camera with short exposure time and high frame rate, and the motion control card needs to be adjusted to have hardware comparison output or precise output function, so as to achieve high-speed and precise trigger control.

预设参数包括:相机曝光时间t,飞拍z轴起始位置Zs、飞拍行程L、触发相机拍照的物理间隔距离space以及飞拍时z轴移动速度v,实际使用到的参数数值根据实际屏幕本体厚度和定位精度等实际参数进行确定,具体的实际参数及预设参数的设置值此处不作限定。The preset parameters include: camera exposure time t, flying z-axis starting position Zs, flying stroke L, physical interval space for triggering the camera to take pictures, and z-axis moving speed v during flying. The actual parameter values used are determined according to actual parameters such as the actual screen body thickness and positioning accuracy. The specific actual parameters and preset parameter setting values are not limited here.

在终端根据预设参数对飞拍组件进行设置后,飞拍组件会从起始拍摄高度Zs根据z轴移动速度v向下移动直到移动距离达到飞拍行程L,向下移动期间,飞拍组件会根据预设参数中的物理间隔距离space触发持续时长为曝光时间t的曝光,从而获取到初始图像合集。After the terminal sets the flying camera component according to the preset parameters, the flying camera component will move downward from the starting shooting height Zs according to the z-axis moving speed v until the moving distance reaches the flying camera stroke L. During the downward movement, the flying camera component will trigger exposure for a duration of exposure time t according to the physical spacing distance space in the preset parameters, thereby obtaining the initial image collection.

例如,当t=1ms,飞拍行程L=4mm,间隔space=0.1mm,v=4mm/s时,飞拍组件总共会采集到41张图像,记为{ In|n=0, 1, 2, 3, ... , 39, 40}。For example, when t=1ms, the flying stroke L=4mm, the interval space=0.1mm, and v=4mm/s, the flying component will collect a total of 41 images, recorded as {In|n=0, 1, 2, 3, ... , 39, 40}.

S103、获取初始图像合集中所有图像的清晰度,得到清晰度合集;S103, obtaining the clarity of all images in the initial image collection to obtain a clarity collection;

获取初始图像合集中所有图像清晰度的目的是为了对获取其中最佳清晰度的图像提供数据依据,获取初始图像合集中所有图像的清晰度的方式包括但不限于通过边缘检测、对比度分析等。图像的清晰度记为FV,对应初始图像合集的清晰度合集记为{FVn| n=0,1, 2, 3, ... , 39, 40}。The purpose of obtaining the clarity of all images in the initial image collection is to provide a data basis for obtaining the image with the best clarity. The method of obtaining the clarity of all images in the initial image collection includes but is not limited to edge detection, contrast analysis, etc. The clarity of the image is recorded as FV, and the clarity collection corresponding to the initial image collection is recorded as {FVn| n=0,1, 2, 3, ... , 39, 40}.

S104、对清晰度合集进行高斯平滑处理后,获取清晰度合集中清晰度最大值对应的中间图像;S104, after performing Gaussian smoothing on the definition collection, an intermediate image corresponding to the maximum definition value in the definition collection is obtained;

高斯平滑处理用于减少数据中的随机噪声,同时保留图像中的数据的主要特征,在对图像进行高斯平滑后,图像的噪声会减少,同时边缘和细节会变得更加平滑,具体的,将清晰度合集进行高斯平滑处理后,记为{FV’n| n=0, 1, 2, 3, ... , 39, 40}。Gaussian smoothing is used to reduce random noise in the data while retaining the main features of the data in the image. After Gaussian smoothing of the image, the noise of the image will be reduced, and the edges and details will become smoother. Specifically, the clarity collection is Gaussian smoothed and recorded as {FV’n| n=0, 1, 2, 3, ... , 39, 40}.

其次,为防止飞拍较多张图像时,一些距离实际像素层较远图像FV值对后续数据拟合产生干扰,这里取{FV’n| n=0, 1, 2, 3, ... , 39, 40}清晰度的最大值对应的图像索引,该清晰度最大值的图像为中间图像,记为Mx。Secondly, in order to prevent the FV values of some images far away from the actual pixel layer from interfering with the subsequent data fitting when taking a large number of images, the image index corresponding to the maximum value of the clarity {FV’n| n=0, 1, 2, 3, ... , 39, 40} is taken here. The image with the maximum clarity is the intermediate image, denoted by Mx.

S105、获取中间图像在初始图像合集中的序列位置,从初始图像合集中以中间图像为中心向左右分别获取第一预设数量的飞拍图像,得到目标图像合集;S105, obtaining the sequence position of the intermediate image in the initial image collection, and obtaining a first preset number of flying images from the initial image collection to the left and right with the intermediate image as the center, to obtain a target image collection;

中间图像为在初始图像合集中清晰度最高的图像,通过该中间图像在初始图像合集中实际排序的位置往左右两边各选取s个数据,其中s为第一预设数量,第一预设数量取值一般取值为小于2/n的单数,取单数的目的为使得中间图像为目标图像序列中唯一的中间值。The intermediate image is the image with the highest clarity in the initial image collection. S data are selected on both sides of the actual sorting position of the intermediate image in the initial image collection, where s is a first preset number. The value of the first preset number is generally an odd number less than 2/n. The purpose of taking an odd number is to make the intermediate image the only intermediate value in the target image sequence.

通过第一预设数量对初始图像合集中的数据进行筛选,得到的数据即为目标图像合集,目标图像合集记为{FVsn| sn=Mx-s, Mx-s+1, Mx-s+2, ... , Mx+s-1, Mx+s}。The data in the initial image collection is screened by a first preset number, and the obtained data is the target image collection, which is recorded as {FVsn| sn=Mx-s, Mx-s+1, Mx-s+2, ... , Mx+s-1, Mx+s}.

其中当Mx-s<0时,从初始图像合集的第一张图像进行取图,即 sn = 0, 1, 2,... , Mx+s-1, Mx+s;When Mx-s<0, the image is taken from the first image in the initial image collection, that is, sn = 0, 1, 2,... , Mx+s-1, Mx+s;

当Mx+s>40时,取图取到初始图像合集的最后一张图,即sn = Mx-s, Mx-s+1, Mx-s+2, ... 39, 40。When Mx+s>40, take the last image of the initial image collection, that is, sn = Mx-s, Mx-s+1, Mx-s+2, ... 39, 40.

S106、根据预设规则分别计算目标图像合集中所有图像的拍摄高度,从清晰度合集中索引所有图像的清晰度,并建立拍摄高度所有图像的清晰度的索引关系;S106, respectively calculating the shooting heights of all images in the target image collection according to a preset rule, indexing the sharpness of all images from the sharpness collection, and establishing an index relationship of the sharpness of all images at the shooting heights;

为方便对目标图像合集中的数据进行处理,在获取到目标图像合集后,将初始图像合集的飞拍起始位置设置为0,并根据物理间隔距离space对初始目标图像合集的图像进行拍摄高度的对应计算,如这里取space=0.1mm,那么初始图像合集的拍摄高度被记为{Zn|Zn=0, 0.1, 0.2, 0.3, ... , 3.8, 3.9, 4.0},确定初始图像合集的拍摄高度后,根据拍摄高度数据对目标图像合集对应的拍摄高度进行索引,确定的索引关系记为{Zsn| sn=Mx-s, Mx-s+1, Mx-s+2, ... , Mx+s-1, Mx+s}。To facilitate the processing of data in the target image collection, after the target image collection is obtained, the flying start position of the initial image collection is set to 0, and the corresponding shooting height of the image of the initial target image collection is calculated according to the physical spacing distance space. For example, space=0.1mm is taken here, then the shooting height of the initial image collection is recorded as {Zn|Zn=0, 0.1, 0.2, 0.3, ... , 3.8, 3.9, 4.0}. After determining the shooting height of the initial image collection, the shooting height corresponding to the target image collection is indexed according to the shooting height data, and the determined index relationship is recorded as {Zsn| sn=Mx-s, Mx-s+1, Mx-s+2, ... , Mx+s-1, Mx+s}.

具体的,初始图像合集的飞拍起始位置设置为0后,此时Z轴零点位置位于Z轴最上方。基于此对于初始图像合集中FVmx对应的图像的拍摄高度为:Specifically, after the flying start position of the initial image collection is set to 0, the Z-axis zero point position is located at the top of the Z axis. Based on this, the shooting height of the image corresponding to FVmx in the initial image collection is:

初始拍摄高度Zs+(物理间隔距离space * FVmx在初始图像合集中的序列n);Initial shooting height Zs + (physical spacing distance space * FVmx sequence n in the initial image collection);

对于目标图像合集中FVmx对应的图像的拍摄高度通过{Zsn| sn=Mx-s, Mx-s+1,Mx-s+2, ... , Mx+s-1, Mx+s}中Mx对应的数值进行直接取值。The shooting height of the image corresponding to FVmx in the target image collection is directly obtained by the value corresponding to Mx in {Zsn| sn=Mx-s, Mx-s+1,Mx-s+2, ... , Mx+s-1, Mx+s}.

即,当初始拍摄高度为100mm,物理间隔距离space为0.1mm,FVmx在初始图像中的序列为15时,对于初始图像合集,FVmx的拍摄高度为101.5;对于目标图像合集FVmx的拍摄高度Zn为1.5。That is, when the initial shooting height is 100 mm, the physical spacing distance space is 0.1 mm, and the sequence of FVmx in the initial image is 15, for the initial image collection, the shooting height of FVmx is 101.5; for the target image collection, the shooting height Zn of FVmx is 1.5.

S107、通过最小二乘法对索引关系进行拟合,得到清晰度拟合函数;S107, fitting the index relationship by the least square method to obtain a clarity fitting function;

使用最小二乘法对步骤S106得到的目标图像合集的中图像的拍摄清晰度和拍摄高度的索引关系进行二阶多项式拟合,得到清晰度拟合函数,清晰度拟合函数记为f(Z,FV)。The least square method is used to perform a second-order polynomial fitting on the index relationship between the shooting clarity and shooting height of the image in the target image collection obtained in step S106 to obtain a clarity fitting function, which is recorded as f(Z, FV).

S108、根据清晰度拟合函数计算图像清晰度与图像拍摄高度的相关性变化速率曲线,根据相关性变化速率曲线获取图像清晰度的最大极值点,并根据最大极值点确定目标拍摄高度;S108, calculating a correlation change rate curve between image clarity and image shooting height according to a clarity fitting function, obtaining a maximum extreme value point of image clarity according to the correlation change rate curve, and determining a target shooting height according to the maximum extreme value point;

相关性变化速率曲线通过求导获得,即对f(Z, FV),进行求导得到导数函数f’,设置f’为0,当导数为0时能够求出对于拟合函数f(Z, FV)清晰度最大值的极值点,从而获取到获取该极值点对应的拍摄高度,清晰度极值点的拍摄高度记为Zr。The correlation change rate curve is obtained by differentiation, that is, f(Z, FV) is differentiated to obtain the derivative function f', and f' is set to 0. When the derivative is 0, the extreme point of the maximum clarity of the fitting function f(Z, FV) can be found, so as to obtain the shooting height corresponding to the extreme point. The shooting height of the extreme point of clarity is recorded as Zr.

S109、计算目标拍摄高度和起始拍摄高度的和,得到目标高度,目标高度用于确定含有异物特征的显示器屏幕分层的基准位置。S109, calculating the sum of the target shooting height and the starting shooting height to obtain the target height, and the target height is used to determine the reference position of the display screen layer containing the foreign matter feature.

因为清晰度拟合函数的计算使用的拍摄高度为重设后的拍摄高度,对于初始拍摄高度Zs而言,Zr是一个针对初始拍摄高度的修正值,通过Zr对Zs进行修正后得到的目标高度记为Zp,使得飞拍组件处于目标高度Zp时所拍摄图像为最清晰的状态,即飞拍组件拍摄到显示器像素层的高度。具体的修正方式为Zp = Zs + Zr。Because the shooting height used in the calculation of the clarity fitting function is the reset shooting height, for the initial shooting height Zs, Zr is a correction value for the initial shooting height. The target height obtained by correcting Zs by Zr is recorded as Zp, so that the image captured by the flying camera component at the target height Zp is the clearest, that is, the height of the display pixel layer captured by the flying camera component. The specific correction method is Zp = Zs + Zr.

请参阅图2a、图2b和图2c,本申请实施例提供了用于显示屏异物分层的飞拍定位的方法的另一实施例,该实施例包括:Referring to FIG. 2a, FIG. 2b and FIG. 2c, the present application provides another embodiment of a method for flying positioning of foreign matter delamination on a display screen, the embodiment comprising:

S201、点亮显示器,并确定含有异物特征的显示器坐标,将飞拍组件移动至显示器坐标正上方预设的起始拍摄高度;S201, lighting up the display, determining the coordinates of the display containing foreign body features, and moving the flying camera assembly to a preset starting shooting height directly above the coordinates of the display;

本实施例中的步骤S201与前述实施例中步骤S101类似,具体此处不再赘述。Step S201 in this embodiment is similar to step S101 in the aforementioned embodiment, and will not be described in detail here.

S202、获取预设参数,预设参数包括飞拍组件的飞拍行程、移动速度、曝光时间和采图间隔;S202, obtaining preset parameters, the preset parameters including the flying stroke, moving speed, exposure time and image collection interval of the flying component;

预设参数包括:相机曝光时间t,飞拍z轴起始位置Zs、飞拍行程L、触发相机拍照的物理间隔距离space以及飞拍时z轴移动速度v。The preset parameters include: camera exposure time t, flying z-axis starting position Zs, flying stroke L, physical interval distance space that triggers the camera to take pictures, and z-axis moving speed v during flying.

预设参数是inline检测阶段之前储存在终端内的,根据这一批次的待测显示屏进行适应性设置的初始值。The preset parameters are initial values stored in the terminal before the inline detection phase and are adaptively set according to the batch of display screens to be tested.

具体的,预设参数中的相机曝光时间t决定了飞拍组件所拍摄图像的亮度,在满足亮度的条件下缩短曝光时间能冻结快速运动,达到减少运动模糊的目的;飞拍Z轴起始位置Zs为飞拍组件移动起点的高度;飞拍行程L为飞拍组件从Zs向下移动的距离,一般情况下L的值略大于待测显示屏的实际厚度,以使得在飞拍组件对待测显示屏进行拍摄时能够聚焦到待测显示屏每一层上,但提供亮度的屏幕层为像素层(PANEL层),因此根据对点亮状态下的屏幕通过飞拍进行显示屏图像获取,得到的最高清晰度的图像为像素层的图像;触发相机拍照的物理间隔space的单位一般为长度单位,即飞拍组件向下移动的距离,当飞拍组件向下移动距离space则触发一次拍照动作,飞拍时z轴移动速度v为飞拍组件以z轴为运动轴向下垂直移动的速度,移动速度v一般情况下根据飞拍组件的性能进行设置。Specifically, the camera exposure time t in the preset parameters determines the brightness of the image taken by the flying camera component. Shortening the exposure time under the condition of meeting the brightness can freeze fast motion and achieve the purpose of reducing motion blur; the flying camera Z-axis starting position Zs is the height of the starting point of the flying camera component; the flying camera stroke L is the distance that the flying camera component moves downward from Zs. Generally, the value of L is slightly larger than the actual thickness of the display screen to be tested, so that when the flying camera component shoots the display screen to be tested, it can focus on each layer of the display screen to be tested, but the screen layer that provides brightness is the pixel layer (PANEL layer). Therefore, based on the display screen image acquisition through flying camera on the screen in the lit state, the highest definition image obtained is the image of the pixel layer; the unit of the physical interval space that triggers the camera to take pictures is generally a length unit, that is, the distance that the flying camera component moves downward. When the flying camera component moves downward by a distance space, a photo action is triggered. The z-axis moving speed v during flying shooting is the speed at which the flying camera component moves vertically downward with the z-axis as the motion axis. The moving speed v is generally set according to the performance of the flying camera component.

S203、根据起始拍摄高度设置飞拍组件;S203, setting the flying shooting component according to the starting shooting height;

具体的,起始拍摄高度即对应步骤S202中飞拍z轴起始位置Zs,即飞拍组件采图前的初始高度,飞拍组件的起始高度是一个能够让飞拍组件向下移动采图时必然能够聚焦到待测显示屏像素层的高度,根据起始拍摄高度设置飞拍组件使得后续获取到的初始图像合集中必然包含基于像素层的最高清晰度图像。Specifically, the starting shooting height corresponds to the flying camera z-axis starting position Zs in step S202, that is, the initial height of the flying camera component before taking pictures. The starting height of the flying camera component is a height that enables the flying camera component to focus on the pixel layer of the display screen to be tested when moving downward to take pictures. The flying camera component is set according to the starting shooting height so that the initial image collection subsequently acquired will inevitably contain the highest definition image based on the pixel layer.

S204、控制飞拍组件依照移动速度垂直向下移动至移动距离达到飞拍行程,在移动过程中根据采图间隔和曝光时间进行图像采集,得到初始图像合集;S204, controlling the flying camera component to move vertically downward at a moving speed until the moving distance reaches the flying camera stroke, and collecting images according to the image collection interval and exposure time during the movement to obtain an initial image collection;

在步骤S203中,飞拍组件已经被设置至起始拍摄高度Zs,根据预设参数,控制飞拍组件以预设的z轴移动速度v开始垂直向下移动,向下移动期间,终端对飞拍组件的移动距离进行监控,以使得当飞拍组件移动行程达到飞拍行程L时停止移动。在飞拍组件向下移动的过程中,根据预设的采图间隔space和曝光时间t,设置触发机制以采集图像。每当飞拍组件向下移动space距离时,触发相机进行一次曝光和拍摄。使用预设的曝光时间t来控制每次拍摄的光线曝光量,确保图像亮度适宜且能冻结快速运动,减少模糊。飞拍组件在移动至达到飞拍行程L的过程中,连续采集图像,形成一系列图像,这些图像组成初始图像合集,终端控制图像采集与飞拍组件的移动同步,确保每张图像都能按照拍摄顺序对应拍摄时z轴高度位置。将采集到的每张图像按照拍摄顺序进行存储,当飞拍组件完成从Zs高度向下移动L距离的全过程,并且按照采图间隔space触发拍摄后,得到完整的初始图像合集,记为{In | n=0, 1, 2, 3, ... , 39, 40}。初始图像合集将用于后续的清晰度分析、高斯平滑处理、数据筛选和拟合等步骤,以确定异物特征的显示器屏幕分层的基准位置。In step S203, the flying camera component has been set to the starting shooting height Zs. According to the preset parameters, the flying camera component is controlled to start moving vertically downward at a preset z-axis moving speed v. During the downward movement, the terminal monitors the moving distance of the flying camera component so that the flying camera component stops moving when the moving stroke reaches the flying stroke L. In the process of the flying camera component moving downward, a trigger mechanism is set to collect images according to the preset image collection interval space and exposure time t. Whenever the flying camera component moves downward by a distance of space, the camera is triggered to expose and shoot once. The preset exposure time t is used to control the light exposure amount of each shooting to ensure that the image brightness is appropriate and that fast motion can be frozen to reduce blur. In the process of moving to the flying stroke L, the flying camera component continuously collects images to form a series of images, which constitute the initial image collection. The terminal controls the synchronization of image acquisition and the movement of the flying camera component to ensure that each image can correspond to the z-axis height position when shooting in the shooting order. Each image collected is stored in the order of shooting. When the flying camera component completes the whole process of moving down from the height Zs to the distance L and triggers shooting according to the image collection interval space, a complete initial image collection is obtained, which is recorded as {In | n=0, 1, 2, 3, ..., 39, 40}. The initial image collection will be used for subsequent clarity analysis, Gaussian smoothing, data screening and fitting steps to determine the reference position of the display screen layer of the foreign body feature.

S205、获取初始图像合集中的待处理图像,并对待处理图像根据第二预设数量进行图片切割,得到子图像合集;S205, obtaining an image to be processed from the initial image collection, and performing image segmentation on the image to be processed according to a second preset number to obtain a sub-image collection;

对待处理图像进行清晰度计算的过程在获取到对应图像时启动,即当飞拍组件拍摄到第一张图片时就会对获取到的图片进行清晰度分析。The process of calculating the clarity of the image to be processed is started when the corresponding image is acquired, that is, when the flying camera component takes the first picture, the clarity analysis of the acquired picture will be performed.

待处理图像为飞拍组件拍摄到的图像,当获取到待处理图像后,终端会根据第二预设数量对待处理图像进行切割,第二预设数量的数量选择包括但不限于:设置为1(不进行图像切割)、4(对图像以2*2的方式进行切割)、9(对图像以3*3的方式进行切割)等,切割数量可根据实际需求设置,具体此处不作限定。具体例如,当切割数量(第二预设数量)设置为4时,待处理图像会被切割为4张子图像,这4张子图像对应一个子图像合集。The image to be processed is the image captured by the flying camera component. After the image to be processed is obtained, the terminal will cut the image to be processed according to the second preset number. The second preset number selection includes but is not limited to: set to 1 (no image cutting), 4 (cut the image in 2*2), 9 (cut the image in 3*3), etc. The cutting number can be set according to actual needs and is not limited here. For example, when the cutting number (the second preset number) is set to 4, the image to be processed will be cut into 4 sub-images, and these 4 sub-images correspond to a sub-image collection.

具体的,对每个待处理图像应用切割算法,根据第二预设数量将图像均匀切割成多个子图像。切割方式可以是水平和垂直方向的等分,确保每个子图像具有相同的尺寸,将每个待处理图像切割得到的子图像收集起来,形成子图像合集。每个子图像合集对应一个原始的待处理图像,并保持待处理图像的切割前的顺序。获取到的子图像合计用于对后续待处理图像清晰度分析计算。Specifically, a cutting algorithm is applied to each image to be processed, and the image is evenly cut into a plurality of sub-images according to a second preset number. The cutting method can be equal division in the horizontal and vertical directions to ensure that each sub-image has the same size, and the sub-images obtained by cutting each image to be processed are collected to form a sub-image collection. Each sub-image collection corresponds to an original image to be processed, and the order of the images to be processed before cutting is maintained. The total of the sub-images obtained is used for subsequent analysis and calculation of the clarity of the image to be processed.

S206、分别对子图像合集中的所有子图像计算清晰度;S206, respectively calculating the clarity of all sub-images in the sub-image collection;

运用无参考图像清晰度评价方法,分别对每一张子图像进行清晰度评价计算,得到每张子图像对应的清晰度值;其中,无参考图像清晰度评价方法可以采用基于梯度函数的评价方法、基于图像变换域的方法、熵函数法、二次模糊的清晰度算法以及结构相似度度量的方法等,具体此处不作限定。Using a no-reference image clarity evaluation method, clarity evaluation calculations are performed on each sub-image to obtain a clarity value corresponding to each sub-image; wherein, the no-reference image clarity evaluation method may adopt an evaluation method based on a gradient function, a method based on an image transform domain, an entropy function method, a quadratic blur clarity algorithm, and a structural similarity measurement method, etc., which are not specifically limited here.

具体的,在获取到子图像合集后,终端确定一种或多种无参考图像清晰度评价方法,无参考图像清晰度评价方法原始图像作为参考,直接从子图像本身提取特征进行清晰度评价,对每个子图像提取与清晰度相关的特征,特征包括但不限于图像的梯度、频率域成分、局部对比度、边缘信息等,用于表现图像聚焦状态的数据,将无参考图像清晰度评价方法应用于每个子图像的特征上,计算每个子图像的清晰度得分,在使用多种无参考图像清晰度评价方法对图像清晰度进行计算的情况下,需要将每个无参考图像清晰度评价方法得到的清晰度得分标准化,使得不同的无参考图像清晰度评价方法计算出来的清晰度拥有可比较性,综合分析通过无参考图像清晰度评价方法得到的子图像清晰度评价,记录每个子图像的清晰度值将用于后续分析。Specifically, after obtaining the sub-image collection, the terminal determines one or more no-reference image clarity evaluation methods. The no-reference image clarity evaluation method uses the original image as a reference, directly extracts features from the sub-image itself for clarity evaluation, extracts features related to clarity for each sub-image, and the features include but are not limited to image gradients, frequency domain components, local contrast, edge information, etc., which are used to represent data on the focusing state of the image. The no-reference image clarity evaluation method is applied to the features of each sub-image, and a clarity score for each sub-image is calculated. When multiple no-reference image clarity evaluation methods are used to calculate image clarity, it is necessary to standardize the clarity scores obtained by each no-reference image clarity evaluation method so that the clarity calculated by different no-reference image clarity evaluation methods is comparable. The sub-image clarity evaluations obtained by the no-reference image clarity evaluation method are comprehensively analyzed, and the clarity value of each sub-image is recorded for subsequent analysis.

S207、对所有子图像的清晰度进行求和后计算平均值,得到待处理图像的清晰度;S207, summing up the sharpness of all sub-images and calculating an average value to obtain the sharpness of the image to be processed;

当获取到针对待处理图像的子图像合集中所有子图像的清晰度值后,终端会将子图像合集中所有子图像的清晰度进行求和后计算平均值,得到的结果为子图像合集对应的待处理图片的实际清晰度。After obtaining the clarity values of all sub-images in the sub-image collection for the image to be processed, the terminal will sum the clarity of all sub-images in the sub-image collection and calculate the average value. The result obtained is the actual clarity of the image to be processed corresponding to the sub-image collection.

具体的,以第二预设数量为4对待处理图片进行切割的情况为例,终端会根据切割结果生成子图像合集,子图像合集中包含4张对应待处理图像的子图像元素,通过步骤S206的方式计算子图像合集中所有子图像的清晰度值,得到的结果记为{f1,f2,f3,f4},根据{f1,f2,f3,f4}计算待处理图像的清晰度过程为FV=(f1+f2+f3+f4)/4,其中,该等式中除数为步骤S205中第二预设数量的值。Specifically, taking the case where the second preset number is 4 and the image to be processed is cut as an example, the terminal will generate a sub-image collection according to the cutting result, and the sub-image collection contains 4 sub-image elements corresponding to the image to be processed. The clarity values of all sub-images in the sub-image collection are calculated by the method of step S206, and the obtained result is recorded as {f1, f2, f3, f4}. The process of calculating the clarity of the image to be processed according to {f1, f2, f3, f4} is FV= (f1+f2+f3+f4)/4, wherein the divisor in the equation is the value of the second preset number in step S205.

其中,计算结果FV即为待处理图像的清晰度值。The calculation result FV is the clarity value of the image to be processed.

S208、分别对初始图像合集中所有图像进行清晰度计算,得到初始图像合集的清晰度合集;S208, respectively calculating the clarity of all images in the initial image collection to obtain a clarity collection of the initial image collection;

根据步骤S207的方式对初始图像合集中获取的所有待处理图像进行清晰度分析计算,并将计算得到的清晰度对初始图像合集进行索引,并将索引得到的关联关系结果记为{FVn| n=0, 1, 2, 3, ... , 39, 40},即对应初始图像合集中第n张图像的清晰度。According to the method of step S207, clarity analysis and calculation are performed on all the images to be processed obtained in the initial image collection, and the calculated clarity is used to index the initial image collection, and the association result obtained by the index is recorded as {FVn| n=0, 1, 2, 3, ... , 39, 40}, which corresponds to the clarity of the nth image in the initial image collection.

S209、对清晰度合集进行高斯平滑处理后,获取清晰度合集中清晰度最大值对应的中间图像;S209, after performing Gaussian smoothing on the definition collection, an intermediate image corresponding to the maximum definition value in the definition collection is obtained;

S210、获取中间图像在初始图像合集中的序列位置;S210, obtaining the sequence position of the intermediate image in the initial image collection;

本实施例中的步骤S209至S210与前述实施例中步骤S104至S105类似,具体此处不再赘述。Steps S209 to S210 in this embodiment are similar to steps S104 to S105 in the aforementioned embodiment, and will not be described in detail here.

S211、判断中间图像的序列位置是否在预设区间内;S211, determining whether the sequence position of the intermediate image is within a preset interval;

中间图像是初始图像合集中通过飞拍组件拍摄到的清晰度最高的图像,根据前述步骤S10的说明内容可知像素层为待测分层显示屏的中间层,即对义务异物所在层级进行定位的基准层,相对的此时飞拍组件的设置高度即为用于拍摄待测屏幕基准层的基准位置。The intermediate image is the image with the highest definition in the initial image collection captured by the flying camera component. According to the description of the aforementioned step S10, it can be known that the pixel layer is the intermediate layer of the layered display screen to be tested, that is, the reference layer for locating the layer where the foreign object is located. Relatively speaking, the setting height of the flying camera component at this time is the reference position for photographing the reference layer of the screen to be tested.

基准作用对于确定屏幕异物的具体作用为:在实际确定异物所处的屏幕层的过程中,需要通过确定像素层的基准位置,使得通过基准位置对待测屏幕的异物缺陷进行图像采样,通过分析异物缺陷的清晰度首先确定异物缺陷处于待测屏幕的屏幕上或处于屏幕内,当异物处于屏幕内时,终端会以像素层清晰度(基准位置图像的清晰度)作为预设值,对异物图像的清晰度进行相关性分数 的分析,通过相关性分数分析的结果确定异物所处于待测屏幕的具体分层。The specific role of the benchmark in determining screen foreign matter is as follows: in the actual process of determining the screen layer where the foreign matter is located, it is necessary to determine the benchmark position of the pixel layer, so that the image of the foreign matter defect on the screen to be tested can be sampled through the benchmark position, and the clarity of the foreign matter defect can be analyzed to first determine whether the foreign matter defect is on the screen of the screen to be tested or inside the screen. When the foreign matter is inside the screen, the terminal will use the pixel layer clarity (the clarity of the benchmark position image) as the preset value, and perform a correlation score analysis on the clarity of the foreign matter image. The specific layer of the screen to be tested where the foreign matter is located can be determined based on the results of the correlation score analysis.

因此中间图像的拍摄高度是最靠近基准位置的高度,但在实际情况中,中间图像在初始图像合集中的序列位置过大或过小,会对后续通过中间图像确定具体的飞拍组件基准位置的相关数据的获取产生影响,因此在获取到中间图像时终端会对中间图像处于初始图像合集中的具体序列位置进行判断,具体的判断条件是中间图像的序列位置是否在预设区间内,预设区间的最小值不能为0,最大值不能大于飞拍组件获取的初始图像合集的数量,本申请实施例提供如下例子:当预设区间为[3,37],当中间图像的序列位置大于37,则执行步骤S212,当中间图像的序列位置小于3,则执行步骤213。Therefore, the shooting height of the intermediate image is the height closest to the reference position, but in actual conditions, the sequence position of the intermediate image in the initial image collection is too large or too small, which will affect the subsequent acquisition of relevant data for determining the specific reference position of the flying camera component through the intermediate image. Therefore, when the intermediate image is acquired, the terminal will judge the specific sequence position of the intermediate image in the initial image collection. The specific judgment condition is whether the sequence position of the intermediate image is within the preset interval. The minimum value of the preset interval cannot be 0, and the maximum value cannot be greater than the number of initial image collections acquired by the flying camera component. The embodiment of the present application provides the following example: When the preset interval is [3,37], when the sequence position of the intermediate image is greater than 37, step S212 is executed, and when the sequence position of the intermediate image is less than 3, step 213 is executed.

S212、若序列位置大于预设区间的最大值,则向下调整飞拍组件;S212, if the sequence position is greater than the maximum value of the preset interval, the flying shot component is adjusted downward;

根据步骤S211的描述,当中间图像的序列位置大于37,则说明当前飞拍组件获取到的初始图像数据过度集中于像素层下方的位置,应当上调飞拍组件的起始高度重新获取初始图像合集进行清晰度分析。According to the description of step S211, when the sequence position of the intermediate image is greater than 37, it means that the initial image data acquired by the current flying camera component is overly concentrated in the position below the pixel layer, and the starting height of the flying camera component should be adjusted to re-acquire the initial image collection for clarity analysis.

S213、若序列位置小于预设区间的最小值,则向上调整飞拍组件。S213: If the sequence position is less than the minimum value of the preset interval, the flying shot component is adjusted upward.

根据步骤S211的描述,当中间图像的序列位置小于3,则说明当前飞拍组件获取到的初始图像数据过度集中于像素层上方的位置,应当下调飞拍组件的起始高度重新获取初始图像合集进行清晰度分析。According to the description of step S211, when the sequence position of the intermediate image is less than 3, it means that the initial image data acquired by the current flying camera component is overly concentrated in the position above the pixel layer, and the starting height of the flying camera component should be lowered to re-acquire the initial image collection for clarity analysis.

S214、从初始图像合集中以中间图像为中心向左右分别获取第一预设数量的飞拍图像,得到目标图像合集;S214, acquiring a first preset number of flying images from the initial image collection to the left and right with the middle image as the center, to obtain a target image collection;

本实施例中的步骤S214与前述实施例中步骤S105类似,具体此处不再赘述。Step S214 in this embodiment is similar to step S105 in the aforementioned embodiment, and will not be described in detail here.

S215、将初始图像合集中的第一张图像的拍摄高度设置为初始值;S215, setting the shooting height of the first image in the initial image collection as an initial value;

在实际情况中,飞拍组件的拍摄高度因为通过不断地对屏幕进行适应性的调整进行变动导致实际记录的高度数据并非一个易于计算的整数,为方便计算,在终端获得目标图像合集后会对初始图像合集中图像序列的拍摄高度进行重设为更方便计算的初始值,即,当初始值设置为0时,即将FVn中编号为0的图像对应的拍摄高度设置为0。In actual situations, the shooting height of the flying camera component changes due to the continuous adaptive adjustment of the screen, resulting in the actual recorded height data not being an integer that is easy to calculate. For the convenience of calculation, after the terminal obtains the target image collection, the shooting height of the image sequence in the initial image collection will be reset to an initial value that is more convenient to calculate. That is, when the initial value is set to 0, the shooting height corresponding to the image numbered 0 in FVn is set to 0.

S216、根据预设参数中的采图间隔以初始值为第一数值计算初始图像合集中所有图像的拍摄高度,得到拍摄高度序列;S216, calculating the shooting heights of all images in the initial image collection according to the image sampling interval in the preset parameters and taking the initial value as a first value to obtain a shooting height sequence;

当第一张图像的拍摄高度得到确定,初始图像合集的序列中后续图像的拍摄高度都能通过以下方式进行计算,计算结果记为Zn,即:Zn=space*n,从而得到重设初始值后初始图像合集的拍摄高度,即拍摄高度序列,拍摄高度序列记为{Zn| Zn=0, 0.1, 0.2, 0.3,... , 3.8, 3.9, 4.0}。When the shooting height of the first image is determined, the shooting heights of subsequent images in the sequence of the initial image collection can be calculated in the following way. The calculation result is recorded as Zn, that is: Zn=space*n, so as to obtain the shooting height of the initial image collection after resetting the initial value, that is, the shooting height sequence. The shooting height sequence is recorded as {Zn| Zn=0, 0.1, 0.2, 0.3,... , 3.8, 3.9, 4.0}.

S217、根据目标图像合集建立拍摄高度序列和清晰度合集的索引关系。S217: Establish an index relationship between the shooting height sequence and the definition collection according to the target image collection.

根据前述步骤S105可知,目标图像合集的表达方式为{FVsn| sn=Mx-s, Mx-s+1,Mx-s+2, ... , Mx+s-1, Mx+s},sn即为目标图像合集的图像在初始图像合集中的序列,将sn作为拍摄高度序列的索引,对应获取目标图像合集中序列为sn的图像处于拍摄高度序列中的拍摄高度值,得到索引关系,该索引关系记为:{Zsn| sn=Mx-s, Mx-s+1, Mx-s+2, ..., Mx+s-1, Mx+s}。According to the aforementioned step S105, the target image collection is expressed as {FVsn| sn=Mx-s, Mx-s+1,Mx-s+2, ... , Mx+s-1, Mx+s}, where sn is the sequence of the images of the target image collection in the initial image collection, and sn is used as the index of the shooting height sequence. The shooting height value of the image with the sequence sn in the target image collection in the shooting height sequence is obtained to obtain an index relationship, which is recorded as: {Zsn| sn=Mx-s, Mx-s+1, Mx-s+2, ..., Mx+s-1, Mx+s}.

S218、根据最小二乘法将索引关系中的图像拍摄高度设置为自变量,图像清晰度设置为因变量,并进行二阶多项式拟合,得到清晰度拟合函数。S218. According to the least square method, the image shooting height in the index relationship is set as the independent variable, the image clarity is set as the dependent variable, and a second-order polynomial fitting is performed to obtain a clarity fitting function.

步骤S217确定的索引关系中包含目标图像合集中每张图像的拍摄高度Zsn和对应的清晰度值FVsn,以二阶多项式模型作为拟合模型,根据二阶多项式模型设置对索引关系中的所有对应关系逐一生成对应的线性方程,通过最小二乘法分别计算线性方程的系数,通过将所有的对应关系代入线性方程进行计算得到一组线性方程的系数,将获取到的线性方程系数构建为一个正规方程组(Normal Equation),通过矩阵运算对正规方程组求解,得到线性方程系数的具体数值。将系数代入二阶多项式模型,得到清晰度拟合函数f(Z, FV)。The index relationship determined in step S217 includes the shooting height Zsn and the corresponding definition value FVsn of each image in the target image collection. The second-order polynomial model is used as the fitting model. The corresponding linear equations are generated one by one for all the corresponding relationships in the index relationship according to the second-order polynomial model setting. The coefficients of the linear equations are calculated respectively by the least square method. A set of linear equation coefficients is obtained by substituting all the corresponding relationships into the linear equations for calculation. The obtained linear equation coefficients are constructed into a normal equation group (Normal Equation). The normal equation group is solved by matrix operation to obtain the specific values of the linear equation coefficients. The coefficients are substituted into the second-order polynomial model to obtain the definition fitting function f(Z, FV).

S219、计算清晰度拟合函数的导数,得到相关性变化速率曲线;S219, calculating the derivative of the clarity fitting function to obtain a correlation change rate curve;

由步骤S218可知,清晰度拟合函数f(Z, FV)是一个二阶多项式,对于二阶多项式其导数为一个一阶多项式,根据清晰度拟合函数进行求导后得到的一阶多项式进行图形绘制能够得到一个清晰度FV随拍摄高度Z变化的曲线,该曲线通常称为相关性变化速率曲线或清晰度梯度曲线。It can be seen from step S218 that the clarity fitting function f(Z, FV) is a second-order polynomial, and its derivative is a first-order polynomial. By plotting the first-order polynomial obtained after deriving the clarity fitting function, a curve showing the change of clarity FV with the shooting height Z can be obtained. This curve is usually called a correlation change rate curve or a clarity gradient curve.

具体的,终端对清晰度拟合函数f(Z, FV)求导结果记为:f’(Z, FV),其中,通过f’(Z, FV)所绘制的图像为图像清晰度与图像拍摄高度相关性变化速率曲线。Specifically, the terminal derivates the definition fitting function f(Z, FV) and records the result as: f'(Z, FV), wherein the image drawn by f'(Z, FV) is a curve of the rate of change of the correlation between the image definition and the image shooting height.

S220、根据相关性变化速率曲线确定图像清晰度的最大值极点,根据最大值极点计算导数函数对应的拍摄高度,得到目标拍摄高度。S220 , determining the maximum value point of the image clarity according to the correlation change rate curve, and calculating the shooting height corresponding to the derivative function according to the maximum value point to obtain the target shooting height.

在确定f’后,令f’= 0表示清晰度的极限状态,进而通过计算f’=0得到清晰度值最大时对应的拍摄高度,该拍摄高度为目标拍摄高度记为Zr。After determining f’, let f’= 0 to represent the limit state of clarity, and then calculate f’=0 to obtain the shooting height corresponding to the maximum clarity value. This shooting height is the target shooting height and is recorded as Zr.

具体的,对f(Z, FV)求导的过程即为对f(Z, FV)=aZ2+bZ+c进行求导,其中a、b、c为步骤S218计算得到的系数,得到的导数f’(Z, FV)=2aZ+b,因此f’= 0实际是对2aZ+b=0进行计算,得到的结果为Z=-b/2a,即Zr=-b/2a,说明Zr可以为负值。Specifically, the process of deriving f(Z, FV) is to derive f(Z, FV)=aZ 2 +bZ+c, where a, b, c are the coefficients calculated in step S218, and the obtained derivative f'(Z, FV)=2aZ+b, so f'= 0 is actually calculated for 2aZ+b=0, and the result is Z=-b/2a, that is, Zr=-b/2a, which means that Zr can be a negative value.

在步骤S215中,获取目标图像合集后,终端对初始图像合集的拍摄高度进行了重设,因此目标拍摄高度Zr是基于初始拍摄高度为Zn进行计算得到的结果,对于初始拍摄高度Zs而言,此时计算出来的Zr为一个可以为正值也可以为负值的修正量,因此在对目标高度Zp进行计算时,计算过程为Zp=Zs+Zr,即目标高度Zp为在起始拍摄高度Zs通过对像素层拍摄清晰度最大值的拍摄高度Zr进行修正后得到的一个能够直接拍摄到像素层的飞拍组件z轴高度。In step S215, after obtaining the target image collection, the terminal resets the shooting height of the initial image collection. Therefore, the target shooting height Zr is calculated based on the initial shooting height Zn. For the initial shooting height Zs, the Zr calculated at this time is a correction value that can be a positive value or a negative value. Therefore, when calculating the target height Zp, the calculation process is Zp=Zs+Zr, that is, the target height Zp is the z-axis height of the flying camera component that can directly shoot the pixel layer after correcting the shooting height Zr of the maximum pixel layer shooting clarity at the starting shooting height Zs.

S221、计算目标拍摄高度和起始拍摄高度的和,得到目标高度,目标高度用于确定含有异物所在层级的显示器屏幕分层的基准位置。S221. Calculate the sum of the target shooting height and the starting shooting height to obtain the target height, which is used to determine the reference position of the display screen layer containing the layer where the foreign matter is located.

本实施例中的步骤S221与前述实施例中步骤S109类似,具体此处不再赘述。Step S221 in this embodiment is similar to step S109 in the aforementioned embodiment, and will not be described in detail here.

以上对本申请实施例中用于显示屏异物分层的飞拍定位的方法进行了详细描述说明,下面将会对用于显示屏异物分层的飞拍定位的系统及装置进行详细描述说明。The above is a detailed description of the method for on-the-fly positioning of foreign matter layering on a display screen in an embodiment of the present application. The following is a detailed description of the system and device for on-the-fly positioning of foreign matter layering on a display screen.

请参阅图3,本申请实施例提供了用于显示屏异物分层的飞拍定位的系统的一种实施例,该实施例包括:Please refer to FIG. 3 , an embodiment of the present application provides an embodiment of a system for flying positioning of foreign matter layering on a display screen, the embodiment comprising:

第一确定单元301,用于点亮显示器,并确定含有异物特征的显示器坐标,将飞拍组件移动至显示器坐标正上方预设的起始拍摄高度;The first determination unit 301 is used to light up the display, determine the display coordinates containing foreign body features, and move the flying shooting component to a preset starting shooting height just above the display coordinates;

拍摄单元302,用于根据预设参数控制飞拍组件从起始拍摄高度向下移动并拍摄初始图像合集;The shooting unit 302 is used to control the flying shooting component to move downward from the starting shooting height and shoot an initial image collection according to preset parameters;

第一获取单元303,用于获取初始图像合集中所有图像的清晰度,得到清晰度合集;The first acquisition unit 303 is used to acquire the clarity of all images in the initial image collection to obtain a clarity collection;

第二获取单元304,用于对清晰度合集进行高斯平滑处理后,获取清晰度合集中清晰度最大值对应的中间图像;The second acquisition unit 304 is used to perform Gaussian smoothing on the definition collection and obtain an intermediate image corresponding to the maximum definition value in the definition collection;

第三获取单元305,用于获取中间图像在初始图像合集中的序列位置,从初始图像合集中以中间图像为中心向左右分别获取第一预设数量的飞拍图像,得到目标图像合集;The third acquisition unit 305 is used to acquire the sequence position of the intermediate image in the initial image collection, and acquire a first preset number of flying images from the initial image collection to the left and right with the intermediate image as the center, to obtain a target image collection;

数据处理单元306,用于根据预设规则分别计算目标图像合集中所有图像的拍摄高度,从清晰度合集中索引所有图像的清晰度,并建立拍摄高度所有图像的清晰度的索引关系;The data processing unit 306 is used to calculate the shooting heights of all images in the target image collection according to a preset rule, index the sharpness of all images from the sharpness collection, and establish an index relationship between the sharpness of all images at the shooting heights;

拟合单元307,用于通过最小二乘法对索引关系进行拟合,得到清晰度拟合函数;A fitting unit 307, used for fitting the index relationship by a least square method to obtain a sharpness fitting function;

第一计算单元308,用于根据清晰度拟合函数计算图像清晰度与图像拍摄高度的相关性变化速率曲线,根据相关性变化速率曲线获取图像清晰度的最大极值点,并根据最大极值点确定目标拍摄高度;A first calculation unit 308 is used to calculate a correlation change rate curve between image clarity and image shooting height according to a clarity fitting function, obtain a maximum extreme value point of image clarity according to the correlation change rate curve, and determine a target shooting height according to the maximum extreme value point;

第二计算单元309,用于计算目标拍摄高度和起始拍摄高度的和,得到目标高度,目标高度用于确定异物所在层级的显示器屏幕分层的基准位置。The second calculation unit 309 is used to calculate the sum of the target shooting height and the starting shooting height to obtain the target height, and the target height is used to determine the reference position of the display screen layer at the level where the foreign matter is located.

本实施例中,各单元的功能与前述图1所示实施例中的步骤对应,此处不再赘述。In this embodiment, the functions of each unit correspond to the steps in the embodiment shown in FIG. 1 above, and will not be described in detail here.

请参阅图4,本申请实施例提供了用于显示屏异物分层的飞拍定位的系统的另一实施例,该实施例包括:Please refer to FIG. 4 , an embodiment of the present application provides another embodiment of a system for flying positioning of foreign matter layering on a display screen, the embodiment comprising:

第一确定单元401,用于点亮显示器,并确定含有异物特征的显示器坐标,将飞拍组件移动至显示器坐标正上方预设的起始拍摄高度;The first determination unit 401 is used to light up the display, determine the display coordinates containing foreign body features, and move the flying shooting component to a preset starting shooting height just above the display coordinates;

拍摄单元402,用于根据预设参数控制飞拍组件从起始拍摄高度向下移动并拍摄初始图像合集;The shooting unit 402 is used to control the flying shooting component to move downward from the starting shooting height and shoot an initial image collection according to preset parameters;

第一获取单元403,用于获取初始图像合集中所有图像的清晰度,得到清晰度合集;The first acquisition unit 403 is used to acquire the clarity of all images in the initial image collection to obtain a clarity collection;

第二获取单元404,用于对清晰度合集进行高斯平滑处理后,获取清晰度合集中清晰度最大值对应的中间图像;The second acquisition unit 404 is used to perform Gaussian smoothing on the definition collection and obtain an intermediate image corresponding to the maximum definition value in the definition collection;

判断单元405,用于判断中间图像的序列位置是否在预设区间内;A judging unit 405 is used to judge whether the sequence position of the intermediate image is within a preset interval;

第一调整单元406,用于当判断单元405的判断结果为序列位置大于预设区间的最大值,则向下调整飞拍组件;A first adjustment unit 406, configured to adjust the flying component downward when the judgment result of the judgment unit 405 is that the sequence position is greater than the maximum value of the preset interval;

第二调整单元407,用于当判断单元405的判断结果为序列位置小于预设区间的最小值,则向上调整飞拍组件。The second adjustment unit 407 is used to adjust the flying shot component upward when the judgment result of the judgment unit 405 is that the sequence position is less than the minimum value of the preset interval.

第三获取单元408,用于获取中间图像在初始图像合集中的序列位置,从初始图像合集中以中间图像为中心向左右分别获取第一预设数量的飞拍图像,得到目标图像合集;The third acquisition unit 408 is used to acquire the sequence position of the intermediate image in the initial image collection, and acquire a first preset number of flying images from the initial image collection to the left and right with the intermediate image as the center, to obtain a target image collection;

数据处理单元409,用于根据预设规则分别计算目标图像合集中所有图像的拍摄高度,从清晰度合集中索引所有图像的清晰度,并建立拍摄高度所有图像的清晰度的索引关系;The data processing unit 409 is used to calculate the shooting heights of all images in the target image collection according to a preset rule, index the sharpness of all images from the sharpness collection, and establish an index relationship between the sharpness of all images at the shooting heights;

拟合单元410,用于通过最小二乘法对索引关系进行拟合,得到清晰度拟合函数;A fitting unit 410, configured to fit the index relationship by a least square method to obtain a clarity fitting function;

第一计算单元411,用于根据清晰度拟合函数计算图像清晰度与图像拍摄高度的相关性变化速率曲线,根据相关性变化速率曲线获取图像清晰度的最大极值点,并根据最大极值点确定目标拍摄高度;The first calculation unit 411 is used to calculate the correlation change rate curve between the image clarity and the image shooting height according to the clarity fitting function, obtain the maximum extreme value point of the image clarity according to the correlation change rate curve, and determine the target shooting height according to the maximum extreme value point;

第二计算单元412,用于计算目标拍摄高度和起始拍摄高度的和,得到目标高度,目标高度用于确定含有异物特征的显示器屏幕分层的基准位置。The second calculation unit 412 is used to calculate the sum of the target shooting height and the starting shooting height to obtain the target height, and the target height is used to determine the reference position of the display screen layer containing the foreign matter feature.

在本申请中,第一获取单元403主要用于:In this application, the first acquisition unit 403 is mainly used for:

获取初始图像合集中的待处理图像,并对待处理图像根据第二预设数量进行图片切割,得到子图像合集;Obtaining an image to be processed from the initial image collection, and performing image segmentation on the image to be processed according to a second preset number to obtain a sub-image collection;

分别对子图像合集中的所有子图像计算清晰度;Calculate the clarity of all sub-images in the sub-image collection respectively;

对所有子图像的清晰度进行求和后计算平均值,得到待处理图像的清晰度;The clarity of all sub-images is summed up and the average value is calculated to obtain the clarity of the image to be processed;

分别对初始图像合集中所有图像进行清晰度计算,得到初始图像合集的清晰度合集。The clarity of all images in the initial image collection is calculated respectively to obtain a clarity collection of the initial image collection.

在本申请中,数据处理单元409主要用于:In this application, the data processing unit 409 is mainly used for:

将初始图像合集中的第一张图像的拍摄高度设置为初始值;Set the shooting height of the first image in the initial image collection to the initial value;

根据预设参数中的采图间隔以初始值为第一数值计算初始图像合集中所有图像的拍摄高度,得到拍摄高度序列;Calculate the shooting heights of all images in the initial image collection according to the image sampling interval in the preset parameters and the initial value as the first value to obtain a shooting height sequence;

根据目标图像合集建立拍摄高度序列和清晰度合集的索引关系。An index relationship between the shooting height sequence and the clarity collection is established according to the target image collection.

在本申请中,拟合单元410主要用于:In this application, the fitting unit 410 is mainly used for:

根据最小二乘法将索引关系中的图像拍摄高度设置为自变量,图像清晰度设置为因变量,并进行二阶多项式拟合,得到清晰度拟合函数。According to the least square method, the image shooting height in the index relationship is set as the independent variable, the image clarity is set as the dependent variable, and a second-order polynomial fitting is performed to obtain the clarity fitting function.

在本申请中,第一计算单元411主要用于:In this application, the first computing unit 411 is mainly used for:

计算清晰度拟合函数的导数,得到相关性变化速率曲线;Calculate the derivative of the clarity fitting function to obtain the correlation change rate curve;

根据相关性变化速率曲线确定图像清晰度的最大值极点,根据最大值极点计算导数函数对应的拍摄高度,得到目标拍摄高度。The maximum value pole of the image clarity is determined according to the correlation change rate curve, and the shooting height corresponding to the derivative function is calculated according to the maximum value pole to obtain the target shooting height.

在本申请中,拍摄单元402主要用于:In this application, the shooting unit 402 is mainly used for:

获取预设参数,预设参数包括飞拍组件的飞拍行程、移动速度、曝光时间和采图间隔;Obtaining preset parameters, including the flight travel, moving speed, exposure time, and image acquisition interval of the flight camera component;

根据起始拍摄高度设置飞拍组件;Set the flying shooting component according to the starting shooting height;

控制飞拍组件依照移动速度垂直向下移动至移动距离达到飞拍行程,在移动过程中根据采图间隔和曝光时间进行图像采集,得到初始图像合集。The flying camera component is controlled to move vertically downward at a moving speed until the moving distance reaches the flying camera stroke. During the movement, images are collected according to the image collection interval and exposure time to obtain an initial image collection.

本实施例中,各单元的功能与前述图2a、图2b和图2c所示实施例中的步骤对应,此处不再赘述。In this embodiment, the functions of each unit correspond to the steps in the embodiments shown in the aforementioned FIG. 2a, FIG. 2b and FIG. 2c, and will not be described in detail here.

请参阅图5,本申请实施例提供了用于显示屏异物分层的飞拍定位的装置的另一实施例,包括:Please refer to FIG. 5 , the present application provides another embodiment of a device for flying positioning of foreign matter layering on a display screen, including:

处理器501、存储器502、输入输出单元503、总线504;Processor 501, memory 502, input and output unit 503, bus 504;

处理器501与存储器502、输入输出单元503以及总线504相连;The processor 501 is connected to the memory 502, the input and output unit 503 and the bus 504;

处理器501具体执行图1、图2a、图2b与图2c的方法中的步骤对应的操作,具体此处不再赘述。The processor 501 specifically executes operations corresponding to the steps in the methods of FIG. 1 , FIG. 2 a , FIG. 2 b and FIG. 2 c , and the details are not repeated here.

本申请还涉及一种计算机可读存储介质,计算机可读存储介质上保存有程序,其特征在于,当程序在计算机上运行时,使得计算机执行如上任一方法。The present application also relates to a computer-readable storage medium on which a program is stored, wherein when the program is run on a computer, the computer is caused to execute any of the above methods.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,read-only memory)、随机存取存储器(RAM,random access memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, read-only memory), random access memory (RAM, random access memory), disk or optical disk, etc. Various media that can store program codes.

Claims (10)

1.一种屏幕像素层拍摄高度基准位置定位的方法,其特征在于,所述方法包括:1. A method for positioning a screen pixel layer shooting height reference position, characterized in that the method comprises: 点亮显示器,并确定含有异物特征的显示器坐标,将飞拍组件移动至所述显示器坐标正上方预设的起始拍摄高度;Light up the display, determine the display coordinates containing foreign body features, and move the flying camera assembly to a preset starting shooting height directly above the display coordinates; 根据预设参数控制所述飞拍组件从所述起始拍摄高度向下移动并拍摄初始图像合集;Control the flying camera assembly to move downward from the starting shooting height and shoot an initial image collection according to preset parameters; 获取所述初始图像合集中所有图像的清晰度,得到清晰度合集;Obtaining the clarity of all images in the initial image collection to obtain a clarity collection; 对所述清晰度合集进行高斯平滑处理后,获取所述清晰度合集中清晰度最大值对应的中间图像;After performing Gaussian smoothing on the definition collection, an intermediate image corresponding to the maximum definition value in the definition collection is obtained; 获取所述中间图像在所述初始图像合集中的序列位置,从所述初始图像合集中以所述中间图像为中心向左右分别获取第一预设数量的飞拍图像,得到目标图像合集;Obtaining the sequence position of the intermediate image in the initial image collection, and obtaining a first preset number of flying images from the initial image collection to the left and right with the intermediate image as the center, to obtain a target image collection; 根据预设规则分别计算所述目标图像合集中所有图像的拍摄高度,从所述清晰度合集中索引所述所有图像的清晰度,并建立所述拍摄高度所述所有图像的清晰度的索引关系;Calculating the shooting heights of all images in the target image collection according to a preset rule, indexing the sharpness of all images from the sharpness collection, and establishing an index relationship between the shooting height and the sharpness of all images; 通过最小二乘法对所述索引关系进行拟合,得到清晰度拟合函数;Fitting the index relationship by the least square method to obtain a clarity fitting function; 根据所述清晰度拟合函数计算图像清晰度与图像拍摄高度的相关性变化速率曲线,根据所述相关性变化速率曲线获取图像清晰度的最大极值点,并根据所述最大极值点确定目标拍摄高度;Calculating a correlation change rate curve between image clarity and image shooting height according to the clarity fitting function, obtaining a maximum extreme value point of image clarity according to the correlation change rate curve, and determining a target shooting height according to the maximum extreme value point; 计算所述目标拍摄高度和所述起始拍摄高度的和,得到目标高度,所述目标高度用于确定所述含有异物特征的显示器屏幕分层的基准位置。The sum of the target shooting height and the starting shooting height is calculated to obtain a target height, and the target height is used to determine a reference position of the display screen layer containing the foreign matter feature. 2.根据权利要求1所述的方法,其特征在于,所述获取所述初始图像合集中所有图像的清晰度,得到清晰度合集包括:2. The method according to claim 1, characterized in that the obtaining of the clarity of all images in the initial image collection to obtain the clarity collection comprises: 获取所述初始图像合集中的待处理图像,并对所述待处理图像根据第二预设数量进行图片切割,得到子图像合集;Acquire the image to be processed in the initial image collection, and perform image segmentation on the image to be processed according to a second preset number to obtain a sub-image collection; 分别对所述子图像合集中的所有子图像计算清晰度;Calculating the clarity of all sub-images in the sub-image collection respectively; 对所述所有子图像的清晰度进行求和后计算平均值,得到所述待处理图像的清晰度;The clarity of all sub-images is summed up and an average value is calculated to obtain the clarity of the image to be processed; 分别对所述初始图像合集中所有图像进行清晰度计算,得到所述初始图像合集的清晰度合集。The clarity of all images in the initial image collection is calculated respectively to obtain a clarity collection of the initial image collection. 3.根据权利要求1所述的方法,其特征在于,所述根据预设规则分别计算所述目标图像合集中所有图像的拍摄高度,从所述清晰度合集中索引所述所有图像的清晰度,并建立所述拍摄高度所述所有图像的清晰度的索引关系包括:3. The method according to claim 1, characterized in that the step of calculating the shooting heights of all images in the target image collection according to a preset rule, indexing the clarity of all images from the clarity collection, and establishing an index relationship between the shooting height and the clarity of all images comprises: 将所述初始图像合集中的第一张图像的拍摄高度设置为初始值;Setting the shooting height of the first image in the initial image collection to an initial value; 根据所述预设参数中的采图间隔以所述初始值为第一数值计算所述初始图像合集中所有图像的拍摄高度,得到拍摄高度序列;Calculate the shooting heights of all images in the initial image collection according to the image sampling interval in the preset parameters and the initial value as a first value to obtain a shooting height sequence; 根据所述目标图像合集建立所述拍摄高度序列和所述清晰度合集的索引关系。An index relationship between the shooting height sequence and the definition collection is established according to the target image collection. 4.根据权利要求1所述的方法,其特征在于,所述通过最小二乘法对所述索引关系进行拟合,得到清晰度拟合函数包括:4. The method according to claim 1, characterized in that the step of fitting the index relationship by the least square method to obtain a clarity fitting function comprises: 根据最小二乘法将所述索引关系中的图像拍摄高度设置为自变量,所述图像清晰度设置为因变量,并进行二阶多项式拟合,得到清晰度拟合函数。According to the least square method, the image shooting height in the index relationship is set as an independent variable, the image clarity is set as a dependent variable, and a second-order polynomial fitting is performed to obtain a clarity fitting function. 5.根据权利要求4所述的方法,其特征在于,所述根据所述清晰度拟合函数计算图像清晰度与图像拍摄高度的相关性变化速率曲线,根据所述相关性变化速率曲线获取图像清晰度的最大极值点,并根据所述最大极值点确定目标拍摄高度包括:5. The method according to claim 4, characterized in that the calculating the correlation change rate curve between the image clarity and the image shooting height according to the clarity fitting function, obtaining the maximum extreme value point of the image clarity according to the correlation change rate curve, and determining the target shooting height according to the maximum extreme value point comprises: 计算所述清晰度拟合函数的导数,得到相关性变化速率曲线;Calculating the derivative of the clarity fitting function to obtain a correlation change rate curve; 根据所述相关性变化速率曲线确定图像清晰度的最大值极点,根据所述最大值极点计算所述导数函数对应的拍摄高度,得到目标拍摄高度。The maximum value pole of the image clarity is determined according to the correlation change rate curve, and the shooting height corresponding to the derivative function is calculated according to the maximum value pole to obtain the target shooting height. 6.根据权利要求1至5中任一项所述的方法,其特征在于,所述根据预设参数控制所述飞拍组件从所述起始拍摄高度向下移动并拍摄初始图像合集包括:6. The method according to any one of claims 1 to 5, characterized in that the step of controlling the flying camera assembly to move downward from the starting shooting height and shooting the initial image collection according to preset parameters comprises: 获取预设参数,所述预设参数包括所述飞拍组件的飞拍行程、移动速度、曝光时间和采图间隔;Acquire preset parameters, wherein the preset parameters include the flying stroke, moving speed, exposure time and image acquisition interval of the flying camera assembly; 根据所述起始拍摄高度设置所述飞拍组件;Setting the flying shooting component according to the starting shooting height; 控制所述飞拍组件依照所述移动速度垂直向下移动至移动距离达到所述飞拍行程,在移动过程中根据所述采图间隔和所述曝光时间进行图像采集,得到初始图像合集。The flying camera component is controlled to move vertically downward at the moving speed until the moving distance reaches the flying camera stroke, and during the movement, image acquisition is performed according to the image acquisition interval and the exposure time to obtain an initial image collection. 7.根据权利要求1至5中任一项所述的方法,其特征在于,所述获取所述中间图像在所述初始图像合集中的序列位置之后,所述方法还包括:7. The method according to any one of claims 1 to 5, characterized in that after acquiring the sequence position of the intermediate image in the initial image collection, the method further comprises: 判断所述中间图像的序列位置是否在预设区间内;Determining whether the sequence position of the intermediate image is within a preset interval; 若所述序列位置大于所述预设区间的最大值,则向下调整所述飞拍组件;If the sequence position is greater than the maximum value of the preset interval, the flying shot component is adjusted downward; 若所述序列位置小于所述预设区间的最小值,则向上调整所述飞拍组件。If the sequence position is less than the minimum value of the preset interval, the flying shot component is adjusted upward. 8.一种屏幕像素层拍摄高度基准位置定位的系统,其特征在于,所述系统包括:8. A system for positioning a screen pixel layer shooting height reference position, characterized in that the system comprises: 第一确定单元,用于点亮显示器,并确定含有异物特征的显示器坐标,将飞拍组件移动至所述显示器坐标正上方预设的起始拍摄高度;The first determination unit is used to light up the display, determine the coordinates of the display containing the foreign body characteristics, and move the flying shooting component to a preset starting shooting height just above the coordinates of the display; 拍摄单元,用于根据预设参数控制所述飞拍组件从所述起始拍摄高度向下移动并拍摄初始图像合集;A shooting unit, used for controlling the flying shooting assembly to move downward from the starting shooting height and shooting an initial image collection according to preset parameters; 第一获取单元,用于获取所述初始图像合集中所有图像的清晰度,得到清晰度合集;A first acquisition unit is used to acquire the clarity of all images in the initial image collection to obtain a clarity collection; 第二获取单元,用于对所述清晰度合集进行高斯平滑处理后,获取所述清晰度合集中清晰度最大值对应的中间图像;A second acquisition unit is used to obtain an intermediate image corresponding to a maximum value of the clarity in the clarity collection after performing Gaussian smoothing on the clarity collection; 第三获取单元,用于获取所述中间图像在所述初始图像合集中的序列位置,从所述初始图像合集中以所述中间图像为中心向左右分别获取第一预设数量的飞拍图像,得到目标图像合集;A third acquisition unit is used to acquire the sequence position of the intermediate image in the initial image collection, and acquire a first preset number of flying images from the initial image collection to the left and right with the intermediate image as the center, so as to obtain a target image collection; 数据处理单元,用于根据预设规则分别计算所述目标图像合集中所有图像的拍摄高度,从所述清晰度合集中索引所述所有图像的清晰度,并建立所述拍摄高度所述所有图像的清晰度的索引关系;A data processing unit, configured to calculate the shooting heights of all images in the target image collection according to a preset rule, index the sharpness of all images from the sharpness collection, and establish an index relationship between the shooting heights and the sharpness of all images; 拟合单元,用于通过最小二乘法对所述索引关系进行拟合,得到清晰度拟合函数;A fitting unit, used for fitting the index relationship by a least square method to obtain a clarity fitting function; 第一计算单元,用于根据所述清晰度拟合函数计算图像清晰度与图像拍摄高度的相关性变化速率曲线,根据所述相关性变化速率曲线获取图像清晰度的最大极值点,并根据所述最大极值点确定目标拍摄高度;a first calculation unit, configured to calculate a correlation change rate curve between image clarity and image shooting height according to the clarity fitting function, obtain a maximum extreme value point of image clarity according to the correlation change rate curve, and determine a target shooting height according to the maximum extreme value point; 第二计算单元,用于计算所述目标拍摄高度和所述起始拍摄高度的和,得到目标高度。The second calculation unit is used to calculate the sum of the target shooting height and the starting shooting height to obtain the target height. 9.一种屏幕像素层拍摄高度基准位置定位的装置,其特征在于,所述装置包括:9. A device for positioning a reference position of a screen pixel layer shooting height, characterized in that the device comprises: 处理器、存储器、输入输出单元以及总线;Processor, memory, input-output unit, and bus; 所述处理器与所述存储器、所述输入输出单元以及所述总线相连;The processor is connected to the memory, the input and output unit, and the bus; 所述存储器保存有程序,所述处理器调用所述程序以执行如权利要求1至7任一项所述方法。The memory stores a program, and the processor calls the program to execute the method according to any one of claims 1 to 7. 10.一种计算机可读存储介质,所述计算机可读存储介质上保存有程序,所述程序在计算机上执行时执行如权利要求1至7中任一项所述方法。10. A computer-readable storage medium having a program stored thereon, wherein the program, when executed on a computer, performs the method according to any one of claims 1 to 7.
CN202411377329.XA 2024-09-30 2024-09-30 Method and related device for positioning shooting height reference position of screen pixel layer Active CN118898645B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411377329.XA CN118898645B (en) 2024-09-30 2024-09-30 Method and related device for positioning shooting height reference position of screen pixel layer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411377329.XA CN118898645B (en) 2024-09-30 2024-09-30 Method and related device for positioning shooting height reference position of screen pixel layer

Publications (2)

Publication Number Publication Date
CN118898645A true CN118898645A (en) 2024-11-05
CN118898645B CN118898645B (en) 2024-12-10

Family

ID=93268147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411377329.XA Active CN118898645B (en) 2024-09-30 2024-09-30 Method and related device for positioning shooting height reference position of screen pixel layer

Country Status (1)

Country Link
CN (1) CN118898645B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115222728A (en) * 2022-08-19 2022-10-21 苏州华兴源创科技股份有限公司 Screen detection method and device based on visual technology and computer equipment
CN116912475A (en) * 2023-09-11 2023-10-20 深圳精智达技术股份有限公司 Display screen foreign matter detection method and device, electronic equipment and storage medium
WO2024178984A1 (en) * 2023-03-02 2024-09-06 常州微亿智造科技有限公司 Flying trigger control method and system
CN118691618A (en) * 2024-08-27 2024-09-24 深圳精智达技术股份有限公司 A positioning method, system and device for detecting delamination of foreign matter on a display screen

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115222728A (en) * 2022-08-19 2022-10-21 苏州华兴源创科技股份有限公司 Screen detection method and device based on visual technology and computer equipment
WO2024178984A1 (en) * 2023-03-02 2024-09-06 常州微亿智造科技有限公司 Flying trigger control method and system
CN116912475A (en) * 2023-09-11 2023-10-20 深圳精智达技术股份有限公司 Display screen foreign matter detection method and device, electronic equipment and storage medium
CN118691618A (en) * 2024-08-27 2024-09-24 深圳精智达技术股份有限公司 A positioning method, system and device for detecting delamination of foreign matter on a display screen

Also Published As

Publication number Publication date
CN118898645B (en) 2024-12-10

Similar Documents

Publication Publication Date Title
CN110691193B (en) Camera switching method and device, storage medium and electronic equipment
CN113992861B (en) Image processing method and image processing device
JP5871862B2 (en) Image blur based on 3D depth information
US8320672B2 (en) Image processing apparatus, image processing method, and computer program
CN103595917B (en) Mobile terminal and focus adjustment method thereof
CN105635565A (en) Shooting method and equipment
CN111007661A (en) Microscopic image automatic focusing method and device based on deep learning
CN108668086A (en) Automatic focusing method and device, storage medium and terminal
CN116912475B (en) Display screen foreign matter detection method and device, electronic equipment and storage medium
CN108289176B (en) Photographing question searching method, question searching device and terminal equipment
CN114815207A (en) Image depth-of-field fusion method for microscopic imaging automatic focusing and related equipment
US20090021595A1 (en) Low Memory Auto-Focus and Exposure System for Large Multi-Frame Image Acquisition
CN105812672A (en) Method and device for photographing processing
CN115631171B (en) Picture definition evaluation method, system and storage medium
CN118691618B (en) Positioning method, system and device for layering detection of foreign matters on display screen
CN118898645A (en) A method and related device for positioning the height reference position of screen pixel layer shooting
WO2025044439A1 (en) Image processing method and apparatus, and electronic device and storage medium
CN108769538A (en) Atomatic focusing method, device, storage medium and terminal
KR20150032764A (en) Method and image capturing device for generating artificially defocused blurred image
WO2021217427A1 (en) Image processing method and apparatus, photographing device, movable platform, and storage medium
CN111147693B (en) Noise reduction method and device for full-size photographed image
WO2020227898A1 (en) Image fusion method, image acquisition device and movable platform
JP7695102B2 (en) IMAGING APPARATUS, CONTROL METHOD FOR IMAGING APPARATUS, PROGRAM, AND RECORDING MEDIUM
CN113794816B (en) Image enhancement method, device, equipment and storage medium in dim light environment
CN112822404B (en) Image processing method and 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