CN114842072A - Image processing method, device and system - Google Patents
Image processing method, device and system Download PDFInfo
- Publication number
- CN114842072A CN114842072A CN202210455549.4A CN202210455549A CN114842072A CN 114842072 A CN114842072 A CN 114842072A CN 202210455549 A CN202210455549 A CN 202210455549A CN 114842072 A CN114842072 A CN 114842072A
- Authority
- CN
- China
- Prior art keywords
- image
- target
- position information
- compensation
- display screen
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/70—Determining position or orientation of objects or cameras
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T15/00—3D [Three Dimensional] image rendering
- G06T15/005—General purpose rendering architectures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/80—Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Computer Graphics (AREA)
- Image Processing (AREA)
Abstract
本申请公开了一种图像处理方法、装置及系统。其中,该方法包括:获取目标图像在显示屏进行显示时,目标图像在显示屏中的位置信息;确定图像采集装置在至少一个位置进行图像采集时的工作位置信息,并获取工作位置信息对应的补偿系数,得到第一补偿系数集合,其中,图像采集装置至少用于采集显示屏的显示画面;依据目标图像在显示屏中的位置信息确定目标图像在不同的拍摄方向下的补偿权重,并基于补偿权重和第一补偿系数集合确定目标补偿系数;依据目标补偿系数对目标图像进行补偿。本申请解决了相关技术中对监测终端的配置进行修改时过程复杂、效率较低,影响整个监测系统灵活性的技术问题。
The present application discloses an image processing method, device and system. Wherein, the method includes: acquiring the position information of the target image in the display screen when the target image is displayed on the display screen; determining the working position information of the image acquisition device when the image acquisition device performs image acquisition at at least one position, and acquiring the corresponding information of the working position information compensation coefficients to obtain a first set of compensation coefficients, wherein the image acquisition device is at least used to collect the display screen of the display screen; according to the position information of the target image in the display screen, the compensation weight of the target image in different shooting directions is determined, and based on the position information of the target image in the display screen The compensation weight and the first compensation coefficient set determine the target compensation coefficient; the target image is compensated according to the target compensation coefficient. The present application solves the technical problems in the related art that when modifying the configuration of the monitoring terminal, the process is complicated, the efficiency is low, and the flexibility of the entire monitoring system is affected.
Description
技术领域technical field
本申请涉及虚拟拍摄领域,具体而言,涉及一种图像处理方法、装置及系统。The present application relates to the field of virtual photography, and in particular, to an image processing method, device and system.
背景技术Background technique
影视相关拍摄中采用LED显示屏作为显示背景,在应用显示屏拍摄多屏搭建的场景下,不同拍摄位置由于视角偏差引入的色彩不一致容易导致拍摄问题。The LED display screen is used as the display background in film and television related shooting. In the scene where the display screen is used to shoot multiple screens, the color inconsistency introduced by different shooting positions due to the deviation of the viewing angle can easily lead to shooting problems.
在相关技术的解决方案中,从服务器获取当前摄像机的位置,并根据当下位置的LED得到偏色后的画面,服务器对画面进行渲染,达到解决偏色问题。由于相关技术的解决方案在服务器端处理带来图像延时大的问题,尤其是在相机快速移动时,服务器增加的渲染速度与显示屏的动态调节匹配不当,导致拍摄受约束,或快速移动后产生色差问题,或服务器端进行图像渲染的精度低,导致对图像补偿不当的问题。In the solution of the related art, the current position of the camera is obtained from the server, and the color cast image is obtained according to the LED at the current position, and the server renders the image to solve the color cast problem. Due to the problem of large image delay caused by the solution of the related art in the server-side processing, especially when the camera moves rapidly, the rendering speed increased by the server does not match the dynamic adjustment of the display screen, resulting in restricted shooting, or after rapid movement. The problem of chromatic aberration occurs, or the image rendering accuracy on the server side is low, resulting in the problem of improper image compensation.
针对上述的问题,目前尚未提出有效的解决方案。For the above problems, no effective solution has been proposed yet.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种图像处理方法、装置及系统,以至少解决相关技术中对监测终端的配置进行修改时过程复杂、效率较低,影响整个监测系统灵活性的技术问题。Embodiments of the present application provide an image processing method, device, and system to at least solve the technical problems in the related art that modifying the configuration of a monitoring terminal is complicated and inefficient, and affects the flexibility of the entire monitoring system.
根据本申请实施例的一个方面,提供了一种图像处理方法,包括:获取目标图像在显示屏进行显示时,目标图像在显示屏中的位置信息;确定图像采集装置在至少一个位置进行图像采集时的工作位置信息,并获取工作位置信息对应的补偿系数,得到第一补偿系数集合,其中,图像采集装置至少用于采集显示屏的显示画面;依据目标图像在显示屏中的位置信息确定目标图像在不同的拍摄方向下的补偿权重,并基于补偿权重和所述第一补偿系数集合确定目标补偿系数;依据目标补偿系数对目标图像进行补偿。According to an aspect of the embodiments of the present application, an image processing method is provided, including: acquiring position information of the target image in the display screen when the target image is displayed on the display screen; determining that the image acquisition device performs image acquisition at at least one position The working position information at the time is obtained, and the compensation coefficient corresponding to the working position information is obtained to obtain the first set of compensation coefficients, wherein the image acquisition device is at least used to collect the display screen of the display screen; the target image is determined according to the position information of the target image in the display screen. Compensation weights of images in different shooting directions, and target compensation coefficients are determined based on the compensation weights and the first compensation coefficient set; the target image is compensated according to the target compensation coefficients.
可选地,获取图像采集装置中的多个标定点位置信息,并确定和显示屏的尺寸信息,其中,多个标定点所对应的标定点位置与不同的拍摄方向一一对应,尺寸信息为基于显示屏中像素点的数量确定的;确定多个标定点位置信息所对应的目标视角,其中,目标视角为图像采集装置在不同工作位置时,图像采集装置的拍摄方向与显示屏所在平面的法线形成的角度;依据目标图像在显示屏中的位置信息对应的坐标信息和尺寸信息之间的差异信息;依据差异信息和目标视角确定补偿权重。Optionally, the position information of multiple calibration points in the image acquisition device is obtained, and the size information of the display screen is determined, wherein the positions of the calibration points corresponding to the multiple calibration points correspond to different shooting directions one-to-one, and the size information is: It is determined based on the number of pixels in the display screen; the target angle of view corresponding to the position information of the multiple calibration points is determined, wherein the target angle of view is the shooting direction of the image acquisition device and the plane where the display screen is located when the image acquisition device is in different working positions. The angle formed by the normal line; the difference information between the coordinate information and the size information corresponding to the position information of the target image in the display screen; the compensation weight is determined according to the difference information and the target viewing angle.
可选地,将尺寸信息和目标图像在所述显示屏中的位置信息所对应的坐标信息进行取差运算,并依据运算结果和目标视角确定补偿权重。Optionally, a difference operation is performed between the size information and the coordinate information corresponding to the position information of the target image in the display screen, and the compensation weight is determined according to the operation result and the target viewing angle.
可选地,所述第一补偿系数集合为系数矩阵,其中,所述系数矩阵中的每个元素为所述多个标定点位置信息中每个标定点位置信息对应的补偿系数;基于所述补偿权重和所述第一补偿系数集合确定所述目标补偿系数,包括:依据上述系数矩阵中的所有系数和所述补偿权重确定第二系数集合;基于所述第二系数集合中所有系数的平均值确定目标补偿系数。Optionally, the first set of compensation coefficients is a coefficient matrix, wherein each element in the coefficient matrix is a compensation coefficient corresponding to each calibration point position information in the plurality of calibration point position information; based on the Determining the target compensation coefficient based on the compensation weight and the first compensation coefficient set includes: determining a second coefficient set according to all the coefficients in the coefficient matrix and the compensation weight; and based on the average of all the coefficients in the second coefficient set The value determines the target compensation factor.
可选地,多个标定点位置信息所对应的多个标定点中至少包括在两条直线上分布的标定点,并且,所述两条直线互相垂直。Optionally, the multiple calibration points corresponding to the multiple calibration point position information include at least calibration points distributed on two straight lines, and the two straight lines are perpendicular to each other.
可选地,从外接设备接收工作位置信息对应的补偿系数;或者,从接收设备预先存储的补偿系数集合中确定与工作位置信息对应的补偿系数。Optionally, the compensation coefficient corresponding to the working position information is received from the external device; or, the compensation coefficient corresponding to the working position information is determined from a compensation coefficient set pre-stored by the receiving device.
可选地,获取图像采集装置在有效移动空间范围内移动时,在候选采样点集合中的采样点采集的样本图像;获取样本图像的质量评估指标;依据质量评估指标从候选采样点集合中选择目标采样点,并将目标采样点所在的位置作为工作位置信息。Optionally, acquiring a sample image collected at a sampling point in the candidate sampling point set when the image acquisition device moves within the effective moving space; acquiring a quality evaluation index of the sample image; selecting from the candidate sampling point set according to the quality evaluation index The target sampling point, and the location of the target sampling point is used as the working position information.
根据本申请实施例的另一方面,还提供了一种图像处理装置,包括:获取模块,用于获取目标图像在显示屏进行显示时,目标图像在显示屏中的位置信息;第一确定模块,用于确定图像采集装置在不同工作位置进行图像采集时的工作位置信息,并获取工作位置信息对应的补偿系数,得到第一补偿系数集合;第二确定模块,用于依据目标图像在显示屏中的位置信息确定在不同的拍摄方向下的补偿权重,并基于补偿权重和第一补偿系数集合确定目标补偿系数补偿模块,用于依据目标补偿系数对目标图像进行补偿。According to another aspect of the embodiments of the present application, an image processing apparatus is further provided, including: an acquisition module for acquiring position information of the target image in the display screen when the target image is displayed on the display screen; a first determination module , which is used to determine the working position information when the image acquisition device performs image acquisition at different working positions, and obtains the compensation coefficient corresponding to the working position information, and obtains the first set of compensation coefficients; the second determination module is used for displaying on the display screen according to the target image. The position information in the device determines compensation weights in different shooting directions, and determines a target compensation coefficient compensation module based on the compensation weights and the first compensation coefficient set for compensating the target image according to the target compensation coefficients.
根据本申请实施例的另一方面,还提供了一种图像处理系统,包括:图像源设备,发送设备,接收设备,其中:图像源设备,用于提供原始图像,并将原始图像发送至发送设备;发送设备,用于接收原始图像,并对目标图像进行处得到目标图像;接收设备,用于执行上述任意一项的图像处理方法。According to another aspect of the embodiments of the present application, an image processing system is further provided, including: an image source device, a sending device, and a receiving device, wherein: the image source device is configured to provide an original image and send the original image to a sending device. equipment; sending equipment, used for receiving the original image, and processing the target image to obtain the target image; receiving equipment, used for executing any one of the above image processing methods.
在本申请实施例中,首先获取目标图像在显示屏进行显示时,目标图像在显示屏中的位置信息;确定图像采集装置在至少一个位置进行图像采集时的工作位置信息,并获取工作位置信息对应的补偿系数,得到第一补偿系数集合,其中,图像采集装置至少用于采集显示屏的显示画面所对应的图像;依据目标图像在显示屏中的位置信息确定目标图像在不同的拍摄方向下的补偿权重,并基于补偿权重和第一补偿系数集合确定目标补偿系数;依据目标补偿系数对目标图像进行补偿。从而解决了相关技术中对监测终端的配置进行修改时过程复杂、效率较低,影响整个监测系统灵活性技术问题。In the embodiment of the present application, the position information of the target image in the display screen when the target image is displayed on the display screen is firstly obtained; the working position information of the image acquisition device when the image is collected at at least one position is determined, and the working position information is obtained Corresponding compensation coefficients, a first set of compensation coefficients is obtained, wherein the image acquisition device is at least used to collect images corresponding to the display screen of the display screen; according to the position information of the target image in the display screen, it is determined that the target image is in different shooting directions and the target compensation coefficient is determined based on the compensation weight and the first compensation coefficient set; the target image is compensated according to the target compensation coefficient. Therefore, the technical problems of complicated process and low efficiency when modifying the configuration of the monitoring terminal in the related art and affecting the flexibility of the entire monitoring system are solved.
在本申请实施例中,提供了一种图像处理方法,包括:获取目标图像在显示屏进行显示时,目标图像在显示屏中的位置信息;确定图像采集装置在至少一个位置进行图像采集时的工作位置信息,并获取工作位置信息对应的补偿系数,得到第一补偿系数集合,其中,图像采集装置至少用于采集显示屏的显示画面所对应的图像;依据目标图像在显示屏中的位置信息确定目标图像在不同的拍摄方向下的补偿权重,并基于补偿权重和第一补偿系数集合确定目标补偿系数;依据目标补偿系数对目标图像进行补偿。达到了在拍摄过程中快速移动过程中,对图像渲染速度与显示屏的动态调节相匹配,同时对图像进行高精度渲染,从而实现了在降低拍摄成本的前提下对图像可以进行适当补偿,进而解决了相关技术中对监测终端的配置进行修改时过程复杂、效率较低,影响整个监测系统灵活性技术问题。In the embodiment of the present application, an image processing method is provided, which includes: acquiring the position information of the target image in the display screen when the target image is displayed on the display screen; working position information, and obtain the compensation coefficient corresponding to the working position information, and obtain a first set of compensation coefficients, wherein the image acquisition device is at least used to collect the image corresponding to the display screen of the display screen; according to the position information of the target image in the display screen Compensation weights of the target image in different shooting directions are determined, and target compensation coefficients are determined based on the compensation weights and the first compensation coefficient set; the target image is compensated according to the target compensation coefficients. In the process of fast movement during the shooting process, the image rendering speed is matched with the dynamic adjustment of the display screen, and the image is rendered with high precision, so that the image can be properly compensated under the premise of reducing the shooting cost, and then It solves the technical problem of complicated process and low efficiency when modifying the configuration of the monitoring terminal in the related art, which affects the flexibility of the entire monitoring system.
附图说明Description of drawings
此处所说明的附图用来提供对本申请的进一步理解,构成本申请的一部分,本申请的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The schematic embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation of the present application. In the attached image:
图1(a)是根据本申请实施例提供的一种图像处理方法装置的结构示意图;FIG. 1(a) is a schematic structural diagram of an image processing method and apparatus provided according to an embodiment of the present application;
图1(b)是根据本申请实施例提供的另一种图像处理方法装置的结构示意图Fig. 1(b) is a schematic structural diagram of another image processing method and apparatus provided according to an embodiment of the present application
图1(c)是根据本申请实施例提供的另一种图像处理方法装置的结构示意图Fig. 1(c) is a schematic structural diagram of another image processing method and apparatus provided according to an embodiment of the present application
图2是根据本申请实施例提供的一种图像处理方法的流程示意图;2 is a schematic flowchart of an image processing method provided according to an embodiment of the present application;
图3是根据本申请实施例提供的一种相机的特征位置的示意图;3 is a schematic diagram of a feature position of a camera provided according to an embodiment of the present application;
图4是根据本申请实施例提供的一种方案补偿信息说明的示意图;FIG. 4 is a schematic diagram of a scheme compensation information description provided according to an embodiment of the present application;
图5是根据本申请实施例提供的另一种方案补偿信息说明的示意图;FIG. 5 is a schematic diagram illustrating compensation information of another scheme provided according to an embodiment of the present application;
图6是根据本申请实施例提供的一种图像处理方法装置中位置信息转换装置的工作流程示意图;6 is a schematic work flow diagram of a position information conversion device in an image processing method device provided according to an embodiment of the present application;
图7是根据本申请实施例提供的一种Gamma变换后的输入和输出图像灰度值关系的示意图;FIG. 7 is a schematic diagram of the gray value relationship between input and output images after Gamma transformation provided according to an embodiment of the present application;
图8是根据本申请实施例提供的一种图像处理装置的结构示意图。FIG. 8 is a schematic structural diagram of an image processing apparatus provided according to an embodiment of the present application.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分的实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only The embodiments are part of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of the present application.
需要说明的是,本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second", etc. in the description and claims of the present application and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that data so used may be interchanged under appropriate circumstances so that the embodiments of the application described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.
为了更好地理解本申请实施例,以下将本申请实施例中涉及的术语解释如下:In order to better understand the embodiments of the present application, the terms involved in the embodiments of the present application are explained as follows:
服务器:根据用户需要,进行图像渲染处理,生成目标图像,输出给LED发送设备。Server: According to user needs, perform image rendering processing, generate target images, and output them to LED sending devices.
发送设备:承接服务器产生的画面,并通过软件配置,按照软件配置下发给LED 显示屏图像数据。Sending device: Undertake the screen generated by the server, and send the image data to the LED display screen according to the software configuration through software configuration.
LED显示屏:LED显示屏是由LED箱体拼接成大屏,且内部有LED控制系统驱动电路,承接发送设备发送下来的图像数据,进行LED驱动显示。LED display: The LED display is made of LED boxes spliced into a large screen, and there is an LED control system drive circuit inside, which undertakes the image data sent by the sending device for LED drive display.
位置信息发生器:主要用于获取摄像机当下的位置的设备。Location information generator: a device mainly used to obtain the current location of the camera.
摄像机:由1台或者多台摄像机搭建起来的拍摄LED显示屏的设备组合。Camera: A combination of equipment built by one or more cameras to shoot LED displays.
实施例1Example 1
为了解决相关技术中对监测终端的配置进行修改时过程复杂、效率较低,影响整个监测系统灵活性的技术问题,本申请提出实施例提出了一种新的图像处理系统,该方法可以应用于如图1(a)所示的图像处理系统中,但不限于此。In order to solve the technical problems in the related art that the modification of the configuration of the monitoring terminal is complicated, the efficiency is low, and the flexibility of the entire monitoring system is affected, an embodiment of the present application proposes a new image processing system, and the method can be applied to In the image processing system shown in Fig. 1(a), but not limited to this.
具体地,本申请实施例提供的图像处理系统,如图1(a)所示,该系统中至少包括:图像源设备11,发送设备12,接收设备13,其中:Specifically, the image processing system provided by the embodiment of the present application, as shown in FIG. 1( a ), at least includes: an image source device 11 , a
图像源设备11,用于提供原始图像,并将原始图像发送至发送设备;An image source device 11, used to provide the original image and send the original image to the sending device;
在图像处理过程中,对接收到的额原始图像进行处理,为了得到较高质量的目标图像,可以采用人工的方式调整参数,例如,当接收到的原始图像的亮度太暗或者太亮时,可以通过拖动亮度滑条来改变亮度,保证接收设备接收到的目标图像的图像显示效果更好,同样,我们可以采用上述类似的调整方法对原始图像继续局部修改,直到达到想要的视觉效果为止。In the image processing process, the received original image is processed. In order to obtain a higher quality target image, the parameters can be adjusted manually. For example, when the brightness of the received original image is too dark or too bright, the Change the brightness by dragging the brightness slider to ensure that the image of the target image received by the receiving device has a better display effect. Similarly, we can continue to modify the original image locally by using similar adjustment methods above until the desired visual effect is achieved. .
发送设备12,用于接收原始图像,并对原始图像进行处理得到目标图像;The sending
在图像处理过程中,对接收到的原始处理进行处理,为了得到较高质量的目标图像,可以采用人工的方式来调整参数,例如,当接收到的原始图像的亮度太暗或太亮时,可以通过拖动亮度滑条来改变亮度,保证接收设备接收到的图像显示效果更好,我们可以采用同样的调整方法对原始图像进行局部修改,直到达到想要的视觉效果为止。In the process of image processing, the received original processing is processed. In order to obtain a higher quality target image, the parameters can be adjusted manually. For example, when the brightness of the received original image is too dark or too bright, the Change the brightness by dragging the brightness slider to ensure that the image received by the receiving device has a better display effect. We can use the same adjustment method to locally modify the original image until the desired visual effect is achieved.
接收设备13,用于执行本申请实施例提供的图像处理方法。例如,执行图2所示的图像处理方法。The receiving device 13 is configured to execute the image processing method provided by the embodiment of the present application. For example, the image processing method shown in FIG. 2 is performed.
在执行图像处理过程中,由于还需要确定图像采集装置的位置信息和相机拍摄方向信息(例如镜头朝向)信息,并将位置信息转换为坐标信息,因此,图像处理系统中,如图1(b)所示,还需要包括:信息发生器14,用于获取图像采集装置15在不同工作位置进行图像采集时的工作位置信息对应的坐标信息,并获取图像采集装置的拍摄方向。信息发生器14可以位于发送设备(例如发送卡)中,也可以是与发送设备相对独立的设备。During the image processing process, it is also necessary to determine the position information of the image acquisition device and the camera shooting direction information (such as the lens orientation) information, and convert the position information into coordinate information. Therefore, in the image processing system, as shown in Figure 1(b) ), it also needs to include: an information generator 14 for acquiring the coordinate information corresponding to the working position information when the image capturing device 15 performs image capturing at different working positions, and acquiring the shooting direction of the image capturing device. The information generator 14 may be located in the sending device (eg, sending card), or may be a relatively independent device from the sending device.
另外,为了完成数据的分发,如图1(c)所示,还可以包括信息转换器16,该信息转换器可以位于发送设备(例如发送卡)中,也可以是与发送设备相机信息相对独立的设备,信息转换器可以包括以下处理单元:获取单元:从外部获取1个或多个相机现有位置信息;相机信息转换补偿系数:此模块将相机的位置信息转换为LED显示屏的补偿数据信息;补偿系数下发模块:将补偿系数下发给接收卡设备,接收卡设备是LED控制系统驱动LED灯板的控制单元。In addition, in order to complete the distribution of data, as shown in FIG. 1(c), an information converter 16 may also be included. The information converter may be located in the sending device (such as a sending card), or may be relatively independent from the sending device’s camera information The device, the information converter may include the following processing units: acquisition unit: acquire the existing position information of one or more cameras from the outside; camera information conversion compensation coefficient: this module converts the camera's position information into compensation data for the LED display Information; compensation coefficient sending module: send the compensation coefficient to the receiving card device, the receiving card device is the control unit of the LED control system to drive the LED light board.
在上述图像处理系统的基础上,本申请实施例还提供了一种图像处理方法,用于对图像处理系统中的位置信息发生器所执行的流程进行具体说明。需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。On the basis of the above image processing system, the embodiment of the present application further provides an image processing method, which is used to specifically describe the process performed by the position information generator in the image processing system. It should be noted that the steps shown in the flowcharts of the accompanying drawings may be executed in a computer system, such as a set of computer-executable instructions, and, although a logical sequence is shown in the flowcharts, in some cases, Steps shown or described may be performed in an order different from that herein.
图2是根据本申请实施例的一种可选的图像处理方法的流程示意图,如图2所示,该方法至少包括步骤S202-S208,其中:FIG. 2 is a schematic flowchart of an optional image processing method according to an embodiment of the present application. As shown in FIG. 2 , the method includes at least steps S202-S208, wherein:
步骤S202,获取目标图像在显示屏进行显示时,目标图像在显示屏中的位置信息。Step S202 , acquiring position information of the target image in the display screen when the target image is displayed on the display screen.
具体地,图像设备源获取原始图像之后,从原始图像中确定目标图像,并将目标图像发送至显示屏上,显示屏显示目标图像的同时,接收设备获取目标图像在显示屏中的位置信息,其中,显示屏可以为常见的LED显示屏,LED显示屏的最小显示单元是LED灯点,每个最小显示单元可以对应显示屏上不同的位置坐标信息,因此可以在LED显示屏上获取到目标图像对应的位置坐标信息,接收卡接收目标图像在LED 显示屏上对应的位置坐标信息。Specifically, after the image device source obtains the original image, the target image is determined from the original image, and the target image is sent to the display screen. While the display screen displays the target image, the receiving device obtains the position information of the target image in the display screen, Among them, the display screen can be a common LED display screen, and the minimum display unit of the LED display screen is an LED light point. Each minimum display unit can correspond to different position coordinate information on the display screen, so the target can be obtained on the LED display screen. The position coordinate information corresponding to the image, and the receiving card receives the position coordinate information corresponding to the target image on the LED display screen.
获取目标图像在显示屏进行显示时,目标图像在显示屏中的位置信息,可以表现为以下实现方式,但不限于此:接收到原始图像后,对原始图像进行局部调整得到目标图像,依据目标图像的图像数据获取目标像素的信息,目标像素的信息即为目标像素的位置信息。以下会详细举例说明确定目标像素的位置信息,此处不再赘述。Obtaining the location information of the target image on the display screen when the target image is displayed on the display screen can be implemented in the following ways, but is not limited to this: after receiving the original image, the original image is partially adjusted to obtain the target image, and the target image is obtained according to the target image. The image data of the image obtains the information of the target pixel, and the information of the target pixel is the position information of the target pixel. The following will give an example to describe the determination of the position information of the target pixel in detail, which will not be repeated here.
例如:常用LED显示屏包含LED显示屏面板和LED灯,LED显示屏面板上LED 灯按照矩阵式分布,则LED显示屏面板上分布的像素点与LED灯分布的方式相同,同样按照矩阵式分布,都具有横平竖直的特点。在一个300*300的多像素矩阵中,确定LED灯对应的位置坐标信息,其横坐标范围可以在1-300中任意一点,纵坐标范围可以在1-300中任意一点,每个LED灯的不同位置坐标信息都对应LED显示屏面板上的像素点,另外,目标像素的位置信息为目标像素的二维坐标信息,也即,目标像素的横坐标信息和目标像素的纵坐标信息,因此可以依据LED显示屏面板上的像素点的位置信息坐标的到目标像素的位置信息坐标。For example: a common LED display includes an LED display panel and LED lights. The LED lights on the LED display panel are distributed in a matrix, and the pixels distributed on the LED display panel are distributed in the same way as the LED lights, and are also distributed in a matrix. , all have the characteristics of horizontal and vertical. In a 300*300 multi-pixel matrix, determine the position coordinate information corresponding to the LED light, the abscissa range can be any point in 1-300, the ordinate range can be any point in 1-300, the range of each LED light Different position coordinate information corresponds to the pixel on the LED display panel. In addition, the position information of the target pixel is the two-dimensional coordinate information of the target pixel, that is, the abscissa information of the target pixel and the ordinate information of the target pixel, so it can be The position information coordinates to the target pixel according to the position information coordinates of the pixel points on the LED display panel.
步骤S204,确定图像采集装置在至少一个位置进行图像采集时的工作位置信息,并获取工作位置信息对应的补偿系数,得到第一补偿系数集合,其中,图像采集装置至少用于采集显示屏的显示画面所对应的图像。Step S204, determining the working position information when the image capturing device performs image capturing at at least one position, and acquiring the compensation coefficient corresponding to the working position information, to obtain a first set of compensation coefficients, wherein the image capturing device is at least used to capture the display of the display screen image corresponding to the screen.
具体地,首先确定图像采集装置在至少一个位置进行图像采集时的工作位置信息,通过位置信息发生器获取图像采集装置在至少一个位置进行图像采集时的工作位置信息,其中,图像采集装置可以为摄像头,摄像机,相机,扫描仪,其他带有拍照功能的设备(手机、平板电脑等)其中至少一个。Specifically, first determine the working position information of the image acquisition device when the image acquisition device performs image acquisition at at least one position, and obtain the working position information of the image acquisition device when the image acquisition device performs image acquisition in at least one position through the position information generator, wherein the image acquisition device can be At least one of cameras, video cameras, cameras, scanners, and other devices with camera functions (mobile phones, tablet computers, etc.).
确定图像采集装置在至少一个位置进行图像采集时的工作位置信息可以通过获取图像采集装置在有效移动空间范围内移动时,在候选采样点集合中的采样点采集的样本图像;获取样本图像的质量评估指标;依据质量评估指标从候选采样点集合中选择目标采样点,并将目标采样点所在的位置作为工作位置信息,其中,有效移动空间范围为图像采集装置在各个方向上(二维或三维上的各个方向)可移动的最大距离。例如,将质量评估指标大于预设阈值的样本图像所对应的采样点作为上述目标采样点,反之,将质量评估指标小于预设阈值的样本图像所对应的采样点作为无效采样点,即不将无效采样点所在的位置作为上述工作位置信息,亦即在对上述目标图像进行处理过程中,不在该无效采样点进行图像采样。Determining the working position information when the image acquisition device performs image acquisition at at least one position can be obtained by acquiring the sample images collected at the sampling points in the candidate sampling point set when the image acquisition device moves within the effective moving space; obtain the quality of the sample images Evaluation index; select the target sampling point from the candidate sampling point set according to the quality evaluation index, and use the location of the target sampling point as the working position information, wherein the effective moving space range is the image acquisition device in each direction (two-dimensional or three-dimensional). in all directions) the maximum distance that can be moved. For example, the sampling point corresponding to the sample image whose quality evaluation index is greater than the preset threshold is used as the above-mentioned target sampling point, and conversely, the sampling point corresponding to the sample image whose quality evaluation index is less than the preset threshold is used as the invalid sampling point. The position where the invalid sampling point is located is used as the above-mentioned working position information, that is, in the process of processing the above-mentioned target image, image sampling is not performed at the invalid sampling point.
举例而言,上述质量评估指标包括但不限于以下至少之一:图像完整度、图像清晰度、图像失真度等,其中,图像完整度有两个含义:在显示屏为一个的情况下(即通过一个显示屏提供背景画面),仅检测该显示屏显示的图像的完整度;在显示屏为多个的情况下,即由多个显示屏显示的画面共同提供背景图像,需要检测所有显示屏图像的完整度,即所有显示屏的完整度均大于完整度阈值的情况下,才认为样本图像通过完整度检测。例如,在采集到的各个显示屏上的图像中,所有显示屏的边框均在图像中被检测到则认为通过完整度检测。其中,在确定图像完整度前,可以利用图像分割算法,分割出边框和非边框图像,然后对分割出的边框图像进行检测,在边框图像为非闭合的情况下,则未通过完整度检测,否则则认为通过完整度检测。在确定图像完整度时,还可以采样以下方式实现,但不限于此:可以将图像划分为多个部分并选取所述多个部分中的多个或全部作为待处理的子部;根据每个子部在颜色空间内的取值,计算该子部的颜色特征值;以及根据每个子部与其相邻子部的颜色是否相近,计算图像完整度,其中,在所述子部与其相邻子部的颜色特征值之差小于第一阈值的情况下,判定所述子部与其相邻子部的颜色相近。例如,颜色相近的子部越多,说明颜色越单一,此时可以认为图像不完整。在这里,可以在子部与其相邻子部的颜色特征值之差小于第一阈值的情况下,判定所述子部与其相邻子部的颜色相近。For example, the above-mentioned quality evaluation indicators include but are not limited to at least one of the following: image integrity, image clarity, image distortion, etc., wherein, image integrity has two meanings: in the case of one display screen (ie Provide a background image through one display screen), only the integrity of the image displayed on the display screen is detected; in the case of multiple display screens, that is, the background images are provided by the images displayed by multiple display screens, it is necessary to detect all the display screens. The integrity of the image, that is, when the integrity of all display screens is greater than the integrity threshold, is considered to pass the integrity test. For example, in the collected images on each display screen, if the borders of all the display screens are detected in the images, it is considered that the integrity detection is passed. Among them, before determining the integrity of the image, the image segmentation algorithm can be used to segment the frame and the non-frame image, and then the segmented frame image is detected. If the frame image is not closed, the integrity detection fails. Otherwise, it is considered to pass the integrity test. When determining the completeness of the image, sampling can also be implemented in the following manner, but is not limited to this: the image can be divided into multiple parts and multiple or all of the multiple parts can be selected as sub-parts to be processed; Calculate the color feature value of the subsection according to the value of the subsection in the color space; and calculate the image integrity according to whether the color of each subsection and its adjacent subsections are similar, wherein, in the subsection and its adjacent subsections, the completeness of the image is calculated. In the case where the difference between the color feature values of the subsections is smaller than the first threshold, it is determined that the color of the subsection and its adjacent subsections are similar. For example, the more sub-sections with similar colors, the more single the color is, and the image can be considered incomplete at this time. Here, when the difference between the color feature values of the subsection and its adjacent subsections is smaller than the first threshold, it may be determined that the subsection and its adjacent subsections have similar colors.
可选地,从外界设备中接收工作位置信息对应的补偿系数,其中,外界设备包括,发送设备或服务器;或者,从接收设备预先存储的补偿系数集合中确定与工作位置信息对应的补偿系数,其中,补偿系数是依据图像采集装置的多个标定点位置信息,依据补偿系数的算法,利用位置信息转换器的发送设备计算出图像采集装置的每一个标定点所需要的补偿系数,该补偿系数为系数矩阵,其数据量大,可以对多个标定点同时进行补偿。也可以是在外界设备侧维护有标定点位置和补偿系数的映射关系,在确定标定点位置后,利用映射关系确定与标定点位置对应的补偿系数。Optionally, the compensation coefficient corresponding to the working position information is received from an external device, wherein the external device includes a sending device or a server; or, a compensation coefficient corresponding to the working position information is determined from a set of compensation coefficients pre-stored by the receiving device, The compensation coefficient is based on the position information of a plurality of calibration points of the image acquisition device, and according to the compensation coefficient algorithm, the compensation coefficient required by each calibration point of the image acquisition device is calculated by the sending device of the position information converter, and the compensation coefficient is a coefficient matrix with a large amount of data, which can compensate multiple calibration points at the same time. Alternatively, a mapping relationship between the calibration point position and the compensation coefficient may be maintained on the side of the external device, and after the calibration point position is determined, the compensation coefficient corresponding to the calibration point position is determined by using the mapping relationship.
为了更准确地确定具体的补偿系数,依据接收设备中预设的补偿系数算法,利用多个标定点位置和补偿系数的映射关系中,获取与标定点对应映射关系中的补偿系数,其中,补偿系数算法可以是De-Mura补偿算法,分析标定点位置观测到的显示屏显示画面的像素点分布情况,再依据像素点数据情况,通过De-Mura补偿算法计算得到补偿系数,但不限于此。In order to more accurately determine the specific compensation coefficient, according to the preset compensation coefficient algorithm in the receiving device, the compensation coefficient in the mapping relationship corresponding to the calibration point is obtained by using the mapping relationship between the positions of multiple calibration points and the compensation coefficient, wherein the compensation coefficient is The coefficient algorithm can be the De-Mura compensation algorithm, which analyzes the pixel distribution of the display screen observed at the calibration point position, and then calculates the compensation coefficient through the De-Mura compensation algorithm according to the pixel data, but is not limited to this.
其中,接收设备可包括:存储补偿系数集合装置或预约装置,存储补偿系数集合装置,用于存储与图像采集装置的标定点工作位置对应的补偿系数集合;和,预约装置,用于预约图像采集装置多个标定点位置和与之对应的补偿系数集合。Wherein, the receiving device may include: a device for storing compensation coefficient sets or a reservation device, a device for storing compensation coefficient sets, for storing a set of compensation coefficients corresponding to the working position of the calibration point of the image acquisition device; and a reservation device for reserving image acquisition Sets of multiple calibration point positions and corresponding compensation coefficients are installed.
例如,以图像采集装置为相机为例,相机在空间中有9个特征位置,位置信息发生器根据相机与特征位置的关系,计算出相机的实时位置,其中,位置信息发生器可以是发送设备或接收设备中的一个模块,可以是与发送设备或接收设备相对独立的设备。以下结合图3说明上述相机的实时位置的计算过程:For example, taking the image acquisition device as a camera as an example, the camera has 9 characteristic positions in space, and the position information generator calculates the real-time position of the camera according to the relationship between the camera and the characteristic positions, wherein the position information generator can be a sending device Or a module in the receiving device, which can be a relatively independent device from the sending device or the receiving device. The calculation process of the real-time position of the above-mentioned camera is described below in conjunction with FIG. 3 :
当用户已经完成了特征位置的选取,选取了9个点的位置(本方案不局限于9个点,可以是任意点);并且通过算法或者手动调节得到了特征点对应的LED显示屏的矩阵补偿系数;When the user has completed the selection of the feature positions, the positions of 9 points are selected (this solution is not limited to 9 points, it can be any point); and the matrix of the LED display corresponding to the feature points is obtained by algorithm or manual adjustment compensation coefficient;
相机位置移动后,依据相机在不同坐标位置时,确定与坐标位置对应的补偿系数发送至LED显示屏;After the camera position is moved, according to the different coordinate positions of the camera, the compensation coefficient corresponding to the coordinate position is determined and sent to the LED display screen;
相机在(100,100)坐标位置时,(100,100)坐标给到发送装置后,则发送设备将(100,100)对应整个LED显示屏的补偿系数,实时下发给到LED显示屏;When the camera is at the (100,100) coordinate position, after the (100,100) coordinates are sent to the sending device, the sending device will send (100,100) the compensation coefficient corresponding to the entire LED display to the LED display in real time;
当相机移动到(2000,100)后,(2000,100)坐标给到发送装置后,则发送设备将(2000,100)对应整个LED显示屏的补偿系数,实时下发给到LED显示屏。When the camera moves to (2000,100) and the (2000,100) coordinates are sent to the sending device, the sending device will send (2000,100) the compensation coefficient corresponding to the entire LED display to the LED display in real time.
具体地,在室内完成人物、场景拍摄时,采用显示屏作为显示背景,可以减少很多后期制作成本,使用相机对显示屏进行拍摄采集显示屏上的显示画面,由于相机在不同角度和方向进行拍摄时,会出现偏色问题。常用显示屏为LED显示屏,LED显示屏的最小显示单元为LED灯点,单个LED灯点内包含RGB三个独立的发光单元,这些发光单元存在一定空间上的排列关系,包括:竖向一字排列、横向一字排列、三角排列等,例如,当发光单元横向从左至右为RGB排列,在LED显示屏左侧观测,则看到显示屏的发光强度关系为R>G>B,引入偏红的现象;在右侧观测,看到的发光强度是:R<G<B,则看到偏蓝的现象,需要根据具体拍摄观测到的图像偏色情况确定具体的补偿系数。即图像采集装置会在不同位置对显示屏画面进行图像采集时,导致不同位置采集到的目标图像会出现偏色的问题,依据图像采集装置在不同位置时的工作位置信息确定对目标图像的补偿系数,补偿系数是指对待处理目标图像的色差的倍数,补偿系数为非0正数,若补偿系数大于1,说明待处理目标图像逆光过暗,需要增加亮度;若补偿系数小于1,说明待处理目标图像顺光过亮过曝,需要减小亮度。Specifically, when shooting people and scenes indoors, the display screen is used as the display background, which can reduce a lot of post-production costs. The camera is used to shoot the display screen to capture the display screen on the display screen, because the camera shoots at different angles and directions. , there will be a color cast problem. The commonly used display screen is an LED display screen. The smallest display unit of the LED display screen is an LED light point. A single LED light point contains three independent light-emitting units of RGB. These light-emitting units have a certain spatial arrangement relationship, including: a vertical one. Character arrangement, horizontal in-line arrangement, triangular arrangement, etc. For example, when the light-emitting units are arranged horizontally from left to right in RGB, and observed on the left side of the LED display screen, the luminous intensity relationship of the display screen is R>G>B, Introduce the phenomenon of reddishness; observed on the right side, the luminous intensity seen is: R<G<B, then the phenomenon of bluishness is seen, and the specific compensation coefficient needs to be determined according to the color cast of the image observed by the specific shooting. That is to say, when the image acquisition device collects images on the display screen at different positions, the target image collected at different positions will have a color cast problem, and the compensation for the target image is determined according to the working position information of the image acquisition device at different positions. Coefficient, the compensation coefficient refers to the multiple of the color difference of the target image to be processed. The compensation coefficient is a non-zero positive number. If the compensation coefficient is greater than 1, it means that the backlight of the target image to be processed is too dark, and the brightness needs to be increased; if the compensation coefficient is less than 1, it means that the To deal with the target image being over-bright and over-exposed, it is necessary to reduce the brightness.
步骤S206,依据目标图像在显示屏中的位置信息确定目标图像在不同的拍摄方向下的补偿权重,并基于补偿权重和第一补偿系数集合确定目标补偿系数。权重是图像采集装置的标定点位置与目标图像的距离确定的,距离与权重呈反比,即距离越大,权重越小,例如有4个点,距离拍摄方向对应的标定点越近的像素,那么该标定点对应的补偿权重越大。Step S206, determining the compensation weight of the target image in different shooting directions according to the position information of the target image in the display screen, and determining the target compensation coefficient based on the compensation weight and the first compensation coefficient set. The weight is determined by the distance between the calibration point position of the image acquisition device and the target image. The distance is inversely proportional to the weight, that is, the larger the distance, the smaller the weight. For example, there are 4 points, and the pixel that is closer to the calibration point corresponding to the shooting direction, Then the compensation weight corresponding to the calibration point is larger.
可选地,获取图像采集装置中的多个标定点位置信息,并确定显示屏的尺寸信息,其中,多个标定点位置信息多对应的标定点位置与不同的拍摄方向一一对应,其中,尺寸信息可以基于显示屏中像素点的数量确定,也可以采用其他的度量方式确定;确定多个标定点位置信息所对应的目标视角,其中,目标视角为图像采集装置在不同工作位置时,图像采集装置的拍摄方向与显示屏所在平面的法线形成的角度;依据目标图像在显示屏中的位置信息所对应的坐标信息和尺寸信息之间的差异信息;依据差异信息和目标视角确定补偿权重。Optionally, the position information of a plurality of calibration points in the image acquisition device is acquired, and the size information of the display screen is determined, wherein the positions of the calibration points corresponding to the position information of the plurality of calibration points correspond to different shooting directions one-to-one, wherein, The size information can be determined based on the number of pixels in the display screen, or can be determined by other measurement methods; determine the target viewing angle corresponding to the position information of multiple calibration points, wherein the target viewing angle is the image acquisition device in different working positions. The angle formed by the shooting direction of the acquisition device and the normal of the plane where the display screen is located; the difference information between the coordinate information and the size information corresponding to the position information of the target image in the display screen; the compensation weight is determined according to the difference information and the target viewing angle .
具体地,图像采集设备对显示屏中显示的画面进行采集时,图像采集设备在不同工作位置上可以有不同方向的角度进行采集,将标定点与对应的拍摄方向一一对应起来,则获取多个标定点就可以获取对应不同的拍摄方向,同时,确定多个标定点对应的采集装置在不同工作位置进行拍摄时,图像采集装置与显示屏所在法线的角度,记为目标角度。Specifically, when the image capture device captures the picture displayed on the display screen, the image capture device can capture from different directions at different working positions. Corresponding the calibration points and the corresponding shooting directions one by one, the acquisition of more Only one calibration point can obtain corresponding different shooting directions. At the same time, the angle between the image acquisition device and the normal line of the display screen when the acquisition device corresponding to the multiple calibration points is determined to shoot in different working positions is marked as the target angle.
在获取标定点位置信息和与标定点位置信息对应的目标视角的同时,确定显示屏的尺寸信息,常见的LED显示屏的尺寸大小由很多因素影响,包括面积、显示比例、型号、模组尺寸、箱体尺寸等,型号是多样的,箱体的尺寸是可以根据实际情况具体确定合适的尺寸,依据箱体尺寸确定显示屏的尺寸大小,在具体应用过程中并不限于此种实现方式。While obtaining the calibration point position information and the target viewing angle corresponding to the calibration point position information, the size information of the display screen is determined. The size of the common LED display screen is affected by many factors, including area, display ratio, model, and module size. , box size, etc. There are various models. The size of the box can be determined according to the actual situation. The size of the display screen is determined according to the size of the box. The specific application process is not limited to this implementation.
其中,为了节省运算资源,上述多个标定点位置信息所对应的多个标定点中至少包括在两条直线上分布的标定点,并且,所述两条直线互相垂直。该两条直线可以是位于不同对角线方向的标定点的连线,但不限于此。例如,图4中(128,0)和(128, 256)组成的直线与(0,128)和(256,128)组成的直线是互相垂直的,上述4个坐标位置存在4个补偿系数。上述多个标记点的数量可以为偶数,也可以为奇数,具体根据实际情况灵活设定。Wherein, in order to save computing resources, the plurality of calibration points corresponding to the above-mentioned position information of the plurality of calibration points include at least calibration points distributed on two straight lines, and the two straight lines are perpendicular to each other. The two straight lines may be lines connecting calibration points located in different diagonal directions, but are not limited thereto. For example, the straight line composed of (128, 0) and (128, 256) and the straight line composed of (0, 128) and (256, 128) in Fig. 4 are perpendicular to each other, and there are four compensation coefficients for the above four coordinate positions. The number of the above-mentioned multiple marking points may be an even number or an odd number, which is flexibly set according to the actual situation.
在确定上述显示屏尺寸信息后,还需要目标图像在显示屏中的位置信息所对应的坐标信息和显示屏尺寸信息之间的差异信息;并依据差异信息和目标视角确定补偿权重。也就是说,在确定上述补偿权重时,可以依据上述差异信息确定,但是,需要注意的时,在具体应用过程中并不限于此种实现方式,例如,上述补偿权重可以是预先设置的,例如,在数据库中维护标记点与权重的映射关系,依据映射关系确定相应的补偿权重。After the above-mentioned display screen size information is determined, the difference information between the coordinate information corresponding to the position information of the target image in the display screen and the display screen size information is also required; and the compensation weight is determined according to the difference information and the target viewing angle. That is to say, when determining the above compensation weight, it can be determined according to the above difference information. However, it should be noted that the specific application process is not limited to this implementation manner. For example, the above compensation weight may be preset, such as , maintain the mapping relationship between marker points and weights in the database, and determine the corresponding compensation weights according to the mapping relationship.
在依据差异信息和目标视角确定补偿权重时,可以表现为以下实现方式,但不限于此:将尺寸信息和目标图像在显示屏中的位置信息所对应的坐标信息进行取差运算,并依据运算结果和目标视角确定补偿权重,其中,第一补偿系数集合中的补偿系数是根据图像采集装置的多个标定点位置信息得到的,目标补偿系数则是依据当前目标图像的位置信息、箱体的尺寸以及第一补偿系数集合得到,且目标补偿系数是由当前目标图像的位置信息确定的与目标图像相匹配的补偿系数。以下会详细举例说明,此处不再赘述。When the compensation weight is determined according to the difference information and the target viewing angle, it can be implemented in the following manner, but is not limited to this: performing a difference operation between the size information and the coordinate information corresponding to the position information of the target image in the display screen, and according to the operation The result and the target angle of view determine the compensation weight, wherein the compensation coefficients in the first compensation coefficient set are obtained according to the position information of multiple calibration points of the image acquisition device, and the target compensation coefficient is obtained according to the position information of the current target image, the size of the box. The size and the first set of compensation coefficients are obtained, and the target compensation coefficient is a compensation coefficient matched with the target image determined by the position information of the current target image. Detailed examples will be given below, and will not be repeated here.
在本申请的一些可选的实施例中,第一补偿系数集合为系数矩阵,其中,系数矩阵中的每个元素为多个标记点中每个标记点对应的补偿系数;基于补偿权重和第一补偿系数集合确定目标补偿系数,例如,依据系数矩阵中的所有系数和补偿权重确定第二系数集合;然后基于第二系数集合中所有系数的平均值确定目标补偿系数,具体地,系数矩阵中的每个系数和其相应的权重相乘,然后将相乘后得到的运算结果取平均值,将该平均值作为目标补偿系数。In some optional embodiments of the present application, the first set of compensation coefficients is a coefficient matrix, wherein each element in the coefficient matrix is a compensation coefficient corresponding to each mark point in the plurality of mark points; based on the compensation weight and the first A set of compensation coefficients determines a target compensation coefficient, for example, a second set of coefficients is determined according to all coefficients in the coefficient matrix and compensation weights; then the target compensation coefficient is determined based on the average value of all coefficients in the second coefficient set, specifically, the coefficient matrix Each coefficient of is multiplied by its corresponding weight, and then the operation result obtained after the multiplication is averaged, and the average value is taken as the target compensation coefficient.
以下结合图4、图5,以在256*256矩形大小分辨率的LED箱体为例对两种补偿方案进行说明,如图5所示,对B补偿方案进行说明,4个圈内表征了4个坐标位置,其中,每个坐标位置存在4个补偿系数,调节系数具备如下特征:In the following, in conjunction with Figure 4 and Figure 5, the two compensation schemes are described by taking the LED box with a resolution of 256*256 rectangle as an example. As shown in Figure 5, the compensation scheme B is described. The four circles represent the 4 coordinate positions, among which, each coordinate position has 4 compensation coefficients, and the adjustment coefficient has the following characteristics:
需要能够表征梯度的数据,不一定是4个,也有可能是2个或者1个数据表征LED 显示屏从左到右或从上到下的补偿梯度;此处的梯度的含义以4个系数为例进行说明,每2个系数是一对,2个系数只表征了左右两端,或上下两端,但是逐点像素会根据这2个标定点对应的系数作渐变处理,也就是对应的梯度处理。Data that can characterize the gradient is required, not necessarily 4, but may also be 2 or 1 data to characterize the compensation gradient of the LED display from left to right or from top to bottom; the meaning of the gradient here is 4 coefficients For example, each 2 coefficients is a pair, and the 2 coefficients only represent the left and right ends, or the upper and lower ends, but the point-by-point pixels will be processed gradually according to the coefficients corresponding to the two calibration points, that is, the corresponding gradient deal with.
调节参数可以是3*3的矩阵数据,也可以是1*3亮度补偿;The adjustment parameter can be 3*3 matrix data or 1*3 brightness compensation;
例如:特征点(128,0)得到的屏1的调节参数M11CoefFor example: the adjustment parameter M11Coef of
特征点(0,128)的到的屏1的调节参数M12CoefThe adjustment parameter M12Coef of the
……...
特征点(128,256)的到的屏1的调节参数M22CoefThe adjustment parameter M22Coef of the
即补偿系数为M11Coef、M12Coef、M21Coef、M22Coef。That is, the compensation coefficients are M11Coef, M12Coef, M21Coef, and M22Coef.
由图6可知,在256*256的箱体图像显示过程中,每个点都需要获取当前图像的位置信息,根据位置信息获取当前图像数据,然后再进行Gamma转换,在下一步运算过程中,需要根据当先图像的位置信息,确定当前图像的坐标(X,Y)。根据XY计算当前图像数据在4个坐标下对应的数据权重值,再根据权重值得到当前图像的矩阵系数。As can be seen from Figure 6, during the display process of the 256*256 box image, each point needs to obtain the position information of the current image, obtain the current image data according to the position information, and then perform Gamma conversion. According to the position information of the current image, the coordinates (X, Y) of the current image are determined. Calculate the data weight values corresponding to the current image data under the 4 coordinates according to XY, and then obtain the matrix coefficients of the current image according to the weight values.
若当前图像的坐标是X=128,Y=128;Width表示LED箱体像素的宽度,Height表示LED箱体像素高度。则对应当前的调节系数计算方式为:If the coordinates of the current image are X=128, Y=128; Width represents the width of the LED box pixel, and Height represents the height of the LED box pixel. Then the corresponding current adjustment coefficient calculation method is:
M=M11tmp1+M12tmp+M21tmp+M22tmpM=M11tmp1+M12tmp+M21tmp+M22tmp
根据当前位置信息与特征位置信息的关系,根据角度值得出最终A,B的补偿权重值,得到最终的实现数据。According to the relationship between the current position information and the characteristic position information, the compensation weight value of the final A and B is obtained according to the angle value, and the final realization data is obtained.
则(128,128)对应的M值为Then the value of M corresponding to (128,128) is
依据上述梯度运算对图像信息进行补偿,得到补偿后的第一图像数据,输出显示在显示屏上,以保证相机在各个角度和方向拍摄的显示屏的显示画面没有颜色偏差.The image information is compensated according to the above gradient operation, and the compensated first image data is obtained, and the output is displayed on the display screen, so as to ensure that the display screen of the display screen shot by the camera at various angles and directions has no color deviation.
步骤S208,依据目标补偿系数对目标图像进行补偿。Step S208, the target image is compensated according to the target compensation coefficient.
第一补偿系数集合中的补偿系数是根据图像采集装置的多个标定点位置信息、显示屏的尺寸信息、第一补偿系数集合和目标图像的位置信息得到的,目标补偿系数则是依据当前目标图像的位置信息和多个标定点位置信息的关系,依据当前目标角度确定的唯一与目标图像对应的补偿系数。为了保证图像的补偿效果,在依据目标补偿系数对目标图像进行补偿之前,还可以对目标图像进行以下处理:获取目标图像的原始灰度图像,对原始灰度图像进行转换,得到目标灰度图像,其中,目标灰度图像与原始灰度图像呈指数关系。The compensation coefficients in the first compensation coefficient set are obtained according to the position information of multiple calibration points of the image acquisition device, the size information of the display screen, the first compensation coefficient set and the position information of the target image, and the target compensation coefficient is obtained according to the current target The relationship between the position information of the image and the position information of multiple calibration points is determined according to the current target angle, and the unique compensation coefficient corresponding to the target image is determined. In order to ensure the compensation effect of the image, before compensating the target image according to the target compensation coefficient, the following processing can also be performed on the target image: obtain the original grayscale image of the target image, convert the original grayscale image, and obtain the target grayscale image , where the target grayscale image is exponentially related to the original grayscale image.
具体地,人眼对外界光源的感光值与输入光强不是呈线性关系的,而是呈指数型关系的。在低照度下,人眼更容易分辨出亮度的变化,随着照度的增加,人眼不易分辨出亮度的变化。而摄像机感光与输入光强呈线性关系。采用Gamma转换对第一图像数据进行增强,保证提升第一图像数据精度。其中,Gamma转换是对输入图像灰度值进行的非线性操作,使输出图像灰度值与输入图像灰度值呈指数关系。其中,输入图像灰度值的取值范围为0~1,因此需要先进行归一化,然后取指数。Specifically, the sensitivity value of the human eye to the external light source is not linearly related to the input light intensity, but is exponentially related. Under low illumination, it is easier for the human eye to distinguish the change of brightness. With the increase of illumination, it is difficult for the human eye to distinguish the change of brightness. The camera sensitivity is linearly related to the input light intensity. The first image data is enhanced by using Gamma transformation to ensure that the accuracy of the first image data is improved. Among them, Gamma transformation is a nonlinear operation on the gray value of the input image, so that the gray value of the output image has an exponential relationship with the gray value of the input image. Among them, the value range of the gray value of the input image is 0 to 1, so it needs to be normalized first, and then the index is taken.
Gamma变换就是用来图像增强,其提升了暗部细节,简单来说就是通过非线性变换,让图像从暴光强度的线性响应变得更接近人眼感受的响应,即将漂白(相机曝光) 或过暗(曝光不足)的图片,进行矫正。Gamma transformation is used for image enhancement, which improves the details of dark parts. In short, through nonlinear transformation, the image changes from a linear response of exposure intensity to a response that is closer to the response of the human eye, that is, bleaching (camera exposure) or too dark. (underexposed) picture, correct it.
经过Gamma变换后的输入和输出图像灰度值关系如图7所示:横坐标是输入灰度值,纵坐标是输出灰度值,开口向下曲线是gamma值小于1时的输入输出关系,开口向上曲线是gamma值大于1时的输入输出关系。可以观察到,当gamma值小于1 时,图像的整体亮度值得到提升,同时低灰度处的对比度得到增加,更利于分辩低灰度值时的图像细节。The gray value relationship between the input and output images after Gamma transformation is shown in Figure 7: the abscissa is the input gray value, the ordinate is the output gray value, and the downward curve of the opening is the input-output relationship when the gamma value is less than 1. The upward curve of the opening is the input-output relationship when the gamma value is greater than 1. It can be observed that when the gamma value is less than 1, the overall brightness value of the image is improved, while the contrast at low gray levels is increased, which is more conducive to distinguishing image details at low gray levels.
即可以总结如下:That can be summarized as follows:
gamma>1,较亮的区域灰度被拉伸,较暗的区域灰度被压缩的更暗,图像整体变暗;Gamma>1, the grayscale of the brighter area is stretched, the grayscale of the darker area is compressed to be darker, and the overall image becomes darker;
gamma<1,较亮的区域灰度被压缩,较暗的区域灰度被拉伸的较亮,图像整体变亮;Gamma<1, the grayscale of the brighter area is compressed, the grayscale of the darker area is stretched to be brighter, and the overall image becomes brighter;
其中,灰度值为0时为黑色,255为白色。Among them, the gray value of 0 is black, and 255 is white.
在本申请实施例中,首先获取目标图像在显示屏进行显示时,目标图像在显示屏中的位置信息;确定图像采集装置在至少一个位置进行图像采集时的工作位置信息,并获取工作位置信息对应的补偿系数,得到第一补偿系数集合,其中,图像采集装置至少用于采集显示屏的显示画面所对应的图像;依据目标图像在显示屏中的位置信息确定目标图像在不同的拍摄方向下的补偿权重,并基于补偿权重和第一补偿系数集合确定目标补偿系数;依据目标补偿系数对目标图像进行补偿。进而解决了虚拟拍摄场景下,相关技术在服务器端对图像过度补偿或补偿不当,或服务器端处理导致图像延时大的技术问题。In the embodiment of the present application, the position information of the target image in the display screen when the target image is displayed on the display screen is firstly obtained; the working position information of the image acquisition device when the image is collected at at least one position is determined, and the working position information is obtained Corresponding compensation coefficients, a first set of compensation coefficients is obtained, wherein the image acquisition device is at least used to collect images corresponding to the display screen of the display screen; according to the position information of the target image in the display screen, it is determined that the target image is in different shooting directions and the target compensation coefficient is determined based on the compensation weight and the first compensation coefficient set; the target image is compensated according to the target compensation coefficient. Further, in the virtual shooting scene, the related technology over-compensates or improperly compensates the image on the server side, or the technical problem of the large image delay caused by the server-side processing is solved.
实施例2Example 2
根据本申请实施例,还提供了一种用于实现上图像处理方法的图像处理装置,如图8所示,包括:获取模块81、第一确定模块82、第二确定模块83、补偿模块84。According to an embodiment of the present application, an image processing apparatus for implementing the above image processing method is also provided, as shown in FIG. 8 , including: an acquisition module 81 , a first determination module 82 , a second determination module 83 , and a compensation module 84 .
其中:in:
获取模块81,用于获取目标图像在显示屏进行显示时,目标图像在显示屏中的位置信息;an acquisition module 81, configured to acquire position information of the target image in the display screen when the target image is displayed on the display screen;
第一确定模块82,确定图像采集装置在至少一个位置进行图像采集时的工作位置信息,并获取工作位置信息对应的补偿系数,得到第一补偿系数集合,其中,图像采集装置至少用于采集显示屏的显示画面所对应的图像;The first determination module 82 determines the working position information when the image capturing device performs image capturing at at least one position, and acquires the compensation coefficient corresponding to the working position information to obtain a first set of compensation coefficients, wherein the image capturing device is at least used for capturing and displaying The image corresponding to the display screen of the screen;
具体地,首先确定图像采集装置在至少一个位置进行图像采集时的工作位置信息,通过位置信息发生器获取图像采集装置在至少一个位置进行图像采集时的工作位置信息,其中,图像采集装置可以为摄像头,摄像机,相机,扫描仪,其他带有拍照功能的设备(手机、平板电脑等)其中至少一个。Specifically, first determine the working position information of the image acquisition device when the image acquisition device performs image acquisition at at least one position, and obtain the working position information of the image acquisition device when the image acquisition device performs image acquisition in at least one position through the position information generator, wherein the image acquisition device can be At least one of cameras, video cameras, cameras, scanners, and other devices with camera functions (mobile phones, tablet computers, etc.).
可选地,从外界设备中接收工作位置信息对应的补偿系数,其中,外界设备包括,发送设备或服务器;或者,从接收设备预先存储的补偿系数集合中确定与工作位置信息对应的补偿系数,其中,补偿系数是依据图像采集装置的多个标定点位置信息,依据补偿系数的算法,利用位置信息转换器的发送设备计算出图像采集装置的每一个标定点所需要的补偿系数,该补偿系数为系数矩阵,其数据量比较大,可以对多个标定点同时进行补偿。Optionally, the compensation coefficient corresponding to the working position information is received from an external device, wherein the external device includes a sending device or a server; or, a compensation coefficient corresponding to the working position information is determined from a set of compensation coefficients pre-stored by the receiving device, The compensation coefficient is based on the position information of a plurality of calibration points of the image acquisition device, and according to the compensation coefficient algorithm, the compensation coefficient required by each calibration point of the image acquisition device is calculated by the sending device of the position information converter, and the compensation coefficient is a coefficient matrix with a relatively large amount of data, which can compensate multiple calibration points at the same time.
例如,相机在空间中有9个特征位置,位置信息发生器根据相机与特征位置的关系,计算出相机的实时位置,其中,位置信息发生器可以是发送设备或接收设备中的一个模块,可以是与发送设备或接收设备相对独立的设备。以下结合如图3说明上述相机的实时位置的计算过程:For example, the camera has 9 characteristic positions in space, and the position information generator calculates the real-time position of the camera according to the relationship between the camera and the characteristic positions. It is a relatively independent device from the sending device or the receiving device. The calculation process of the real-time position of the above-mentioned camera is described below in conjunction with FIG. 3 :
当用户已经完成了特征位置的选取,选取了9个点的位置(本方案不局限于9个点,可以是任意点);并且通过算法或者手动调节得到了特征点对应的LED显示屏的矩阵补偿系数;When the user has completed the selection of the feature positions, the positions of 9 points are selected (this solution is not limited to 9 points, it can be any point); and the matrix of the LED display corresponding to the feature points is obtained by algorithm or manual adjustment compensation coefficient;
相机位置移动后,依据相机在不同坐标位置时,确定与坐标位置对应的补偿系数发送至LED显示屏;After the camera position is moved, according to the different coordinate positions of the camera, the compensation coefficient corresponding to the coordinate position is determined and sent to the LED display screen;
相机在(100,100)坐标位置时,(100,100)坐标给到发送装置后,则发送设备将(100,100)对应整个LED显示屏的补偿系数,实时下发给到LED显示屏;When the camera is at the (100,100) coordinate position, after the (100,100) coordinates are sent to the sending device, the sending device will send (100,100) the compensation coefficient corresponding to the entire LED display to the LED display in real time;
当相机移动到(2000,100)后,(2000,100)坐标给到发送装置后,则发送设备将(2000,100)对应整个LED显示屏的补偿系数,实时下发给到LED显示屏。When the camera moves to (2000,100) and the (2000,100) coordinates are sent to the sending device, the sending device will send (2000,100) the compensation coefficient corresponding to the entire LED display to the LED display in real time.
具体地,在室内完成人物、场景拍摄时,采用显示屏作为显示背景,可以减少很多后期制作成本,使用相机对显示屏进行拍摄采集显示屏上的显示画面,由于相机在不同角度和方向进行拍摄时,会出现偏色问题。常用显示屏为LED显示屏,LED显示屏的最小显示单元为LED灯点,单个LED灯点内包含RGB三个独立的发光单元,这些发光单元存在一定空间上的排列关系,包括:竖向一字排列、横向一字排列、三角排列等,例如,当发光单元横向从左至右为RGB排列,在LED显示屏左侧观测,则看到显示屏的发光强度关系为R>G>B,引入偏红的现象;在右侧观测,看到的发光强度是:R<G<B,则看到偏蓝的现象,需要根据具体拍摄观测到的图像偏色情况确定具体的补偿系数。即图像采集装置会在不同位置对显示屏画面进行图像采集时,导致不同位置采集到的目标图像会出现偏色的问题,依据图像采集装置在不同位置时的工作位置信息确定对目标图像的补偿系数,补偿系数是指对待处理目标图像的色差的倍数,补偿系数为非0正数,若补偿系数大于1,说明待处理目标图像逆光过暗,需要增加亮度;若补偿系数小于1,说明待处理目标图像顺光过亮过曝,需要减小亮度。Specifically, when shooting people and scenes indoors, the display screen is used as the display background, which can reduce a lot of post-production costs. The camera is used to shoot the display screen to capture the display screen on the display screen, because the camera shoots at different angles and directions. , there will be a color cast problem. The commonly used display screen is an LED display screen. The smallest display unit of the LED display screen is an LED light point. A single LED light point contains three independent light-emitting units of RGB. These light-emitting units have a certain spatial arrangement relationship, including: a vertical one. Character arrangement, horizontal in-line arrangement, triangular arrangement, etc. For example, when the light-emitting units are arranged horizontally from left to right in RGB, and observed on the left side of the LED display screen, the luminous intensity relationship of the display screen is R>G>B, Introduce the phenomenon of reddishness; observed on the right side, the luminous intensity seen is: R<G<B, then the phenomenon of bluishness is seen, and the specific compensation coefficient needs to be determined according to the color cast of the image observed by the specific shooting. That is to say, when the image acquisition device collects images on the display screen at different positions, the target image collected at different positions will have a color cast problem, and the compensation for the target image is determined according to the working position information of the image acquisition device at different positions. Coefficient, the compensation coefficient refers to the multiple of the color difference of the target image to be processed. The compensation coefficient is a non-zero positive number. If the compensation coefficient is greater than 1, it means that the backlight of the target image to be processed is too dark, and the brightness needs to be increased; if the compensation coefficient is less than 1, it means that the To deal with the target image being over-bright and over-exposed, it is necessary to reduce the brightness.
第二确定模块83,依据目标图像在显示屏中的位置信息确定目标图像在不同的拍摄方向下的补偿权重,并基于补偿权重和第一补偿系数集合确定目标补偿系数,补偿权重是图像采集装置的标定点位置与目标图像的距离确定的,距离与补偿权重呈反比,即距离越大,权重越小例如有4个点,距离拍摄方向对应的标定点越近的像素,那么该标定点对应的补偿权重越大;The second determination module 83 determines the compensation weights of the target image in different shooting directions according to the position information of the target image in the display screen, and determines the target compensation coefficient based on the compensation weight and the first compensation coefficient set, and the compensation weight is the image acquisition device The distance between the calibration point and the target image is determined, and the distance is inversely proportional to the compensation weight, that is, the larger the distance, the smaller the weight. For example, if there are 4 points, the closer the pixel is to the calibration point corresponding to the shooting direction, then the calibration point corresponds to The greater the compensation weight;
可选地,获取图像采集装置中的多个标定点位置信息,并确定显示屏的尺寸信息,其中,多个标定点位置信息多对应的标定点位置与不同的拍摄方向是一一对应的,尺寸信息为基于显示屏中像素点的数量确定的,也可以采用其他的度量方式确定;确定多个标定点位置信息所对应的目标视角,其中,目标视角为图像采集装置在不同工作位置时,图像采集装置的拍摄方向与显示屏所在平面的法线形成的角度;依据目标图像在显示屏中的位置信息所对应的坐标信息和尺寸信息之间的差异信息;依据差异信息和目标视角确定补偿权重。Optionally, the position information of a plurality of calibration points in the image acquisition device is acquired, and the size information of the display screen is determined, wherein the positions of the calibration points corresponding to the position information of the plurality of calibration points are in one-to-one correspondence with different shooting directions, The size information is determined based on the number of pixels in the display screen, and can also be determined by other measurement methods; determine the target viewing angle corresponding to the position information of multiple calibration points, wherein the target viewing angle is when the image acquisition device is in different working positions, The angle formed by the shooting direction of the image acquisition device and the normal of the plane where the display screen is located; the difference information between the coordinate information and the size information corresponding to the position information of the target image in the display screen; the compensation is determined according to the difference information and the target viewing angle Weights.
具体地,图像采集设备对显示屏中显示的画面进行采集时,图像采集设备在不同工作位置上可以有不同方向的角度进行采集,将标定点与对应的拍摄方向一一对应起来,则获取多个标定点就可以获取对应不同的拍摄方向,同时,确定多个标定点对应的采集装置在不同工作位置进行拍摄时,图像采集装置与显示屏所在法线的角度,记为目标角度,其中,目标角度是依据图像采集装置的多个标定点位置信息和显示屏所在法线的方向向量的夹角确定。Specifically, when the image capture device captures the picture displayed on the display screen, the image capture device can capture from different directions at different working positions. Corresponding the calibration points and the corresponding shooting directions one by one, the acquisition of more Only one calibration point can be obtained corresponding to different shooting directions. At the same time, the angle between the image acquisition device and the normal line of the display screen when the acquisition device corresponding to the multiple calibration points is determined to shoot at different working positions is marked as the target angle, where, The target angle is determined according to the position information of multiple calibration points of the image acquisition device and the angle between the direction vector of the normal line where the display screen is located.
在获取标定点位置信息和与标定点位置信息对应的目标视角的同时,确定显示屏的尺寸信息,常见的LED显示屏的尺寸大小由很多因素影响,包括面积、显示比例、型号、模组尺寸、箱体尺寸等,型号是多样的,箱体的尺寸是可以根据实际情况具体确定合适的尺寸,依据箱体尺寸确定显示屏的尺寸大小,在具体应用过程中并不限于此种实现方式。While obtaining the calibration point position information and the target viewing angle corresponding to the calibration point position information, the size information of the display screen is determined. The size of the common LED display screen is affected by many factors, including area, display ratio, model, and module size. , box size, etc. There are various models. The size of the box can be determined according to the actual situation. The size of the display screen is determined according to the size of the box. The specific application process is not limited to this implementation.
其中,为了节省运算资源,上述多个标定点位置信息所对应的多个标定点中至少包括在两条直线上分布的标定点,并且,所述两条直线互相垂直。例如,图4中(128, 0)和(128,256)组成的直线与(0,128)和(256,128)组成的直线是互相垂直的,上述4个坐标位置存在4个补偿系数,上述多个标记点的数量可以为偶数,也可以为奇数,具体根据实际情况灵活设定。Wherein, in order to save computing resources, the plurality of calibration points corresponding to the above-mentioned position information of the plurality of calibration points include at least calibration points distributed on two straight lines, and the two straight lines are perpendicular to each other. For example, in Figure 4, the straight line composed of (128, 0) and (128, 256) and the straight line composed of (0, 128) and (256, 128) are perpendicular to each other, and there are four compensation coefficients for the above four coordinate positions, The number of the above-mentioned multiple marking points may be an even number or an odd number, which is flexibly set according to the actual situation.
在确定上述显示屏尺寸信息后,还需要目标图像在显示屏中的位置信息所对应的坐标信息和显示屏尺寸信息之间的差异信息;并依据差异信息和目标视角确定补偿权重。也就是说,在确定上述补偿权重时,可以依据上述差异信息确定,但是,需要注意的时,在具体应用过程中并不限于此种实现方式,例如,上述补偿权重可以是预先设置的,例如,在数据库中维护标记点与权重的映射关系,依据映射关系确定相应的补偿权重。After the above-mentioned display screen size information is determined, the difference information between the coordinate information corresponding to the position information of the target image in the display screen and the display screen size information is also required; and the compensation weight is determined according to the difference information and the target viewing angle. That is to say, when determining the above compensation weight, it can be determined according to the above difference information. However, it should be noted that the specific application process is not limited to this implementation manner. For example, the above compensation weight may be preset, such as , maintain the mapping relationship between marker points and weights in the database, and determine the corresponding compensation weights according to the mapping relationship.
在依据差异信息和目标视角确定补偿权重时,可以表现为以下实现方式,但不限于此:将尺寸信息和目标图像在显示屏中的位置信息所对应的坐标信息进行取差运算,并依据运算结果和目标视角确定补偿权重。When the compensation weight is determined according to the difference information and the target viewing angle, it can be implemented in the following manner, but is not limited to this: performing a difference operation between the size information and the coordinate information corresponding to the position information of the target image in the display screen, and according to the operation The result and target perspective determine the compensation weights.
补偿模块84,用于依据目标补偿系数对目标图像进行补偿。The compensation module 84 is used for compensating the target image according to the target compensation coefficient.
具体地,目标补偿系数是依据当前目标图像的位置信息、箱体的尺寸以及第一补偿系数集合得到,且目标补偿系数是由当前目标图像的位置信息确定的与目标图像相匹配的补偿系数。Specifically, the target compensation coefficient is obtained according to the position information of the current target image, the size of the box and the first compensation coefficient set, and the target compensation coefficient is a compensation coefficient determined by the position information of the current target image and matched with the target image.
为了保证图像的补偿效果,在依据目标补偿系数对目标图像进行补偿之前,还可以对目标图像进行以下处理:获取目标图像的原始灰度图像,对原始灰度图像进行转换,得到目标灰度图像,其中,目标灰度图像与原始灰度图像呈指数关系。In order to ensure the compensation effect of the image, before compensating the target image according to the target compensation coefficient, the following processing can also be performed on the target image: obtain the original grayscale image of the target image, convert the original grayscale image, and obtain the target grayscale image , where the target grayscale image is exponentially related to the original grayscale image.
具体地,人眼对外界光源的感光值与输入光强不是呈线性关系的,而是呈指数型关系的。在低照度下,人眼更容易分辨出亮度的变化,随着照度的增加,人眼不易分辨出亮度的变化。而摄像机感光与输入光强呈线性关系,采用Gamma转换对第一图像数据进行增强,保证提升第一图像数据精度。根据本申请实施例,还提供了一种用于实现上图像处理方法的图像处理系统,如图1(a)所示,该系统中至少包括:图像源设备11,发送设备12,接收设备13,其中,图像源设备11,用于提供原始图像,并将原始图像发送至发送设备;Specifically, the sensitivity value of the human eye to the external light source is not linearly related to the input light intensity, but is exponentially related. Under low illumination, it is easier for the human eye to distinguish the change of brightness. With the increase of illumination, it is difficult for the human eye to distinguish the change of brightness. However, the light sensitivity of the camera has a linear relationship with the input light intensity, and Gamma conversion is used to enhance the first image data to ensure that the accuracy of the first image data is improved. According to an embodiment of the present application, an image processing system for implementing the above image processing method is also provided. As shown in FIG. 1( a ), the system at least includes: an image source device 11 , a sending
在图像处理方法过程中,对接收到的额原始图像进行处理,为了得到较高质量的目标图像,可以采用人工的方式调整参数,例如,当接收到的原始图像的亮度太暗或者太亮时,可以通过拖动亮度滑条来改变亮度,保证接收设备接收到的目标图像的图像显示效果更好,同样,我们可以采用上述类似的调整方法对原始图像继续局部修改,直到达到想要的视觉效果为止。In the process of the image processing method, the received original image is processed. In order to obtain a higher quality target image, the parameters can be adjusted manually. For example, when the brightness of the received original image is too dark or too bright, You can change the brightness by dragging the brightness slider to ensure that the image of the target image received by the receiving device has a better display effect. Similarly, we can continue to modify the original image locally by using similar adjustment methods above until the desired visual effect is achieved. until.
发送设备12,用于接收原始图像,并对原始图像进行处理得到目标图像;The sending
在图像处理方法过程中,对接收到的原始处理进行处理,为了得到较高质量的目标图像,可以采用人工的方式来调整参数,例如,当接收到的原始图像的亮度太暗或太亮时,可以通过拖动亮度滑条来改变亮度,保证接收设备接收到的图像显示效果更好,我们可以采用同样的调整方法对原始图像进行局部修改,直到达到想要的视觉效果为止。In the process of the image processing method, the received original processing is processed. In order to obtain a higher quality target image, the parameters can be adjusted manually. For example, when the brightness of the received original image is too dark or too bright, You can change the brightness by dragging the brightness slider to ensure that the image received by the receiving device has a better display effect. We can use the same adjustment method to locally modify the original image until the desired visual effect is achieved.
接收设备13,用于执行本申请实施例提供的图像处理方法。例如,执行图2所示的图像处理方法;The receiving device 13 is configured to execute the image processing method provided by the embodiment of the present application. For example, execute the image processing method shown in Figure 2;
在执行图像处理方法过程中,由于还需要确定图像采集装置的位置信息和相机拍摄方向信息(例如镜头朝向)信息,并将位置信息转换为坐标信息,因此,图像处理系统中,如图1(b)所示,还需要包括:信息发生器14,用于获取图像采集装置15 在不同工作位置进行图像采集时的工作位置信息对应的坐标信息,并获取图像采集装置的拍摄方向。信息发生器14可以位于发送设备(例如发送卡)中,也可以是与发送设备相机信息相对独立的设备。In the process of executing the image processing method, since it is also necessary to determine the position information of the image acquisition device and the camera shooting direction information (such as the lens orientation) information, and convert the position information into coordinate information, therefore, in the image processing system, as shown in Figure 1 ( b), it also needs to include: an information generator 14 for acquiring the coordinate information corresponding to the working position information when the image capturing device 15 performs image capturing at different working positions, and acquiring the shooting direction of the image capturing device. The information generator 14 may be located in the sending device (eg, sending card), or may be a device relatively independent from the sending device's camera information.
另外,为了完成数据的分发,如图1(c)所示,还可以包括信息转换器16,该信息转换器可以位于发送设备(例如发送卡)中,也可以是与发送设备相机信息相对独立的设备,信息转换器可以包括以下处理单元:获取单元:从外部获取1个或多个相机现有位置信息;相机信息转换补偿系数:此模块将相机的位置信息转换为LED显示屏的补偿数据信息;补偿系数下发模块:将补偿系数下发给接收卡设备,接收卡设备是LED控制系统驱动LED灯板的控制单元。In addition, in order to complete the distribution of data, as shown in FIG. 1(c), an information converter 16 may also be included. The information converter may be located in the sending device (such as a sending card), or may be relatively independent from the sending device’s camera information The device, the information converter may include the following processing units: acquisition unit: acquire the existing position information of one or more cameras from the outside; camera information conversion compensation coefficient: this module converts the camera's position information into compensation data for the LED display Information; compensation coefficient sending module: send the compensation coefficient to the receiving card device, the receiving card device is the control unit of the LED control system to drive the LED light board.
实施例3Example 3
根据本申请实施例,还提供了一种非易失性存储介质,该非易失性存储介质包括存储的程序,其中,在程序运行时控制非易失性存储介质所在设备执行实施例1中的图像处理方法。According to an embodiment of the present application, a non-volatile storage medium is also provided, and the non-volatile storage medium includes a stored program, wherein when the program runs, the device where the non-volatile storage medium is located is controlled to execute the first embodiment image processing method.
可选地,程序运行时执行实现以下步骤:获取目标图像在显示屏进行显示时,目标图像在显示屏中的位置信息;确定图像采集装置在不同工作位置进行图像采集时的工作位置信息,并获取工作位置信息对应的补偿系数,得到第一补偿系数集合,其中,图像采集装置至少用于采集显示屏的显示画面所对应的图像;依据目标图像在显示屏中的位置信息确定在不同的拍摄方向下的补偿权重,并基于补偿权重和第一补偿系数集合确定目标补偿系数;依据目标补偿系数对目标图像进行补偿。Optionally, when the program is running, the following steps are performed: obtaining the position information of the target image in the display screen when the target image is displayed on the display screen; Obtain the compensation coefficient corresponding to the working position information, and obtain the first compensation coefficient set, wherein the image acquisition device is at least used to collect the image corresponding to the display screen of the display screen; The compensation weight in the direction is determined, and the target compensation coefficient is determined based on the compensation weight and the first compensation coefficient set; the target image is compensated according to the target compensation coefficient.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present application are only for description, and do not represent the advantages or disadvantages of the embodiments.
在本申请的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are only illustrative, for example, the division of the units may be a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in 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 alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes .
以上所述仅是本申请的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above are only the preferred embodiments of the present application. It should be pointed out that for those skilled in the art, without departing from the principles of the present application, several improvements and modifications can also be made. It should be regarded as the protection scope of this application.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210455549.4A CN114842072B (en) | 2022-04-24 | Image processing method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210455549.4A CN114842072B (en) | 2022-04-24 | Image processing method, device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114842072A true CN114842072A (en) | 2022-08-02 |
CN114842072B CN114842072B (en) | 2025-04-11 |
Family
ID=
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103366680A (en) * | 2013-07-15 | 2013-10-23 | 惠州市兆光光电科技有限公司 | Led display screen white balance correction technology |
CN104966493A (en) * | 2015-07-31 | 2015-10-07 | 西安诺瓦电子科技有限公司 | Method for compensating spliced bright and dark lines |
CN109637499A (en) * | 2019-01-17 | 2019-04-16 | 硅谷数模半导体(北京)有限公司 | The control method and device of display panel brightness |
CN110767150A (en) * | 2019-10-18 | 2020-02-07 | 北京凯视达科技有限公司 | Method for solving squint color cast problem of LED screen |
US20200135098A1 (en) * | 2018-02-09 | 2020-04-30 | Boe Technology Group Co., Ltd. | Color compensation method, compensation device, and display device |
CN112309317A (en) * | 2020-10-22 | 2021-02-02 | 北京虚拟动点科技有限公司 | Screen color difference compensation method, device and system, electronic equipment and storage medium |
CN112331140A (en) * | 2020-11-02 | 2021-02-05 | 苏州佳智彩光电科技有限公司 | Display screen color cast Mura repairing method and device |
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103366680A (en) * | 2013-07-15 | 2013-10-23 | 惠州市兆光光电科技有限公司 | Led display screen white balance correction technology |
CN104966493A (en) * | 2015-07-31 | 2015-10-07 | 西安诺瓦电子科技有限公司 | Method for compensating spliced bright and dark lines |
US20200135098A1 (en) * | 2018-02-09 | 2020-04-30 | Boe Technology Group Co., Ltd. | Color compensation method, compensation device, and display device |
CN109637499A (en) * | 2019-01-17 | 2019-04-16 | 硅谷数模半导体(北京)有限公司 | The control method and device of display panel brightness |
CN110767150A (en) * | 2019-10-18 | 2020-02-07 | 北京凯视达科技有限公司 | Method for solving squint color cast problem of LED screen |
CN112309317A (en) * | 2020-10-22 | 2021-02-02 | 北京虚拟动点科技有限公司 | Screen color difference compensation method, device and system, electronic equipment and storage medium |
CN112331140A (en) * | 2020-11-02 | 2021-02-05 | 苏州佳智彩光电科技有限公司 | Display screen color cast Mura repairing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108492776B (en) | Intelligent external optical compensation method for AMOLED screen brightness unevenness | |
CN105185314B (en) | LED display uniformity compensation method | |
US8310499B2 (en) | Balancing luminance disparity in a display by multiple projectors | |
CN112672139A (en) | Projection display method, device and computer readable storage medium | |
CN107277388A (en) | Mobile terminal and its light compensation method | |
CN104702928B (en) | Method of correcting image overlap area, recording medium, and execution apparatus | |
JPWO2008156050A1 (en) | Image processing method, image processing program, image processing apparatus, image processing system, electronic camera, and electronic apparatus | |
EP4261784A1 (en) | Image processing method and apparatus based on artificial intelligence, and electronic device, computer-readable storage medium and computer program product | |
CN103200409B (en) | Color correction method of multi-projector display system | |
CN109408008B (en) | Image identification system and information display method thereof | |
CN107404647A (en) | Camera lens condition detection method and device | |
CN107370910A (en) | Method for acquiring minimum bracketing exposure set based on optimal exposure | |
CN111586273A (en) | Electronic device and image acquisition method | |
WO2025016115A1 (en) | Image enhancement display method, and display device and electronic device | |
US8600157B2 (en) | Method, system and computer program product for object color correction | |
JP3347817B2 (en) | Image recognition device | |
EP3363193B1 (en) | Device and method for reducing the set of exposure times for high dynamic range video imaging | |
CN113592753B (en) | Method and device for processing image shot by industrial camera and computer equipment | |
US10621769B2 (en) | Simplified lighting compositing | |
CN106683047B (en) | Illumination compensation method and system for panoramic image | |
CN114842072A (en) | Image processing method, device and system | |
CN114842072B (en) | Image processing method, device and system | |
CN114697483B (en) | Under-screen camera shooting device and method based on compressed sensing white balance algorithm | |
CN117676103A (en) | Correction method of projection display effect, projection equipment and computer storage medium | |
CN114760422B (en) | Backlight detection method and system, electronic equipment 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 |