CN115601219A - Image processing method, device, reference monitor and medium - Google Patents
Image processing method, device, reference monitor and medium Download PDFInfo
- Publication number
- CN115601219A CN115601219A CN202211183091.8A CN202211183091A CN115601219A CN 115601219 A CN115601219 A CN 115601219A CN 202211183091 A CN202211183091 A CN 202211183091A CN 115601219 A CN115601219 A CN 115601219A
- Authority
- CN
- China
- Prior art keywords
- column
- rgb data
- test
- transmission group
- image
- 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
- G06T1/00—General purpose image data processing
- G06T1/20—Processor architectures; Processor configuration, e.g. pipelining
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4038—Image mosaicing, e.g. composing plane images from plane sub-images
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2200/00—Indexing scheme for image data processing or generation, in general
- G06T2200/32—Indexing scheme for image data processing or generation, in general involving image mosaicing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Image Processing (AREA)
- Closed-Circuit Television Systems (AREA)
- Color Television Systems (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
本申请提供了一种图像处理方法、装置、基准监视器及介质,由于在本申请实施例中,FPGA中预先保存了第一VBO信号线的第一编号与列的对应关系,使得针对每个第一传输组,FPGA根据该第一传输组包含的每列RGB数据对应的第一VBO信号线,以及预先保存的该对应关系,确定该第一传输组中每列RGB数据所在的第一目标列,避免了接收到的图像出现像素错位等问题,提高了图像传输的准确率。
The present application provides an image processing method, device, reference monitor and medium. Since in the embodiment of the present application, the corresponding relationship between the first number and the column of the first VBO signal line is pre-saved in the FPGA, so that for each The first transmission group, the FPGA determines the first target where each column of RGB data in the first transmission group is located according to the first VBO signal line corresponding to each column of RGB data included in the first transmission group and the pre-saved correspondence. Columns, avoiding problems such as pixel misalignment in the received image, and improving the accuracy of image transmission.
Description
技术领域technical field
本申请涉及图像处理技术领域,尤其涉及一种图像处理方法、装置、基准监视器及介质。The present application relates to the technical field of image processing, in particular to an image processing method, device, reference monitor and medium.
背景技术Background technique
在现有技术中,系统级芯片(System on Chip,SOC)在与现场可编程逻辑门阵列(Field Programmable Gate Array,FPGA)进行图像传输时,主要是通过HS(VBO)信号线进行传输。In the prior art, when a System on Chip (SOC) performs image transmission with a Field Programmable Gate Array (Field Programmable Gate Array, FPGA), mainly through HS (VBO) signal line for transmission.
具体的,SOC与FPGA对应的管脚之间通过VBO信号线进行连接,SOC对图像中的像素点按列进行分组,每组中包含的像素点的列数与VBO信号线的条数相同。该SOC根据管脚的顺序依次将每组中的每列像素点的RGB数据发送给FPGA。FPGA接收到RGB数据后,将管脚顺序作为VBO信号线的顺序,对接收到的RGB数据进行组合和拼接,得到完整的图像。Specifically, the corresponding pins of the SOC and the FPGA are connected through VBO signal lines, and the SOC groups the pixels in the image into columns, and the number of columns of pixels contained in each group is the same as the number of VBO signal lines. The SOC sequentially sends the RGB data of each column of pixels in each group to the FPGA according to the order of the pins. After the FPGA receives the RGB data, it takes the order of the pins as the order of the VBO signal lines, and combines and stitches the received RGB data to obtain a complete image.
但是,在设计和制作各芯片电路板时,为了满足电路板尺寸或VBO信号线等长等间距的要求,制作过程中会对SOC与FPGA的管脚的连接顺序进行调整,这就导致了SOC与FPGA的管脚不是对应连接的。如SOC的管脚1应该与FPGA的管脚1连接,但在制作过程中,将SOC的管脚1与FPGA的管脚3连接。进而导致了FPGA拼接得到的图像与原始的图像不一致,降低了图像传输的准确率。However, in the design and production of each chip circuit board, in order to meet the requirements of the circuit board size or the equal length and equal spacing of the VBO signal lines, the connection sequence of the SOC and FPGA pins will be adjusted during the production process, which leads to the SOC The pins of the FPGA are not connected correspondingly. For example, the
发明内容Contents of the invention
本申请提供了一种图像处理方法、装置、基准监视器及介质,用以解决现有技术中由于电路板设计的影响,导致SOC与FPGA的管脚不是对应的连接的,进而导致FPGA拼接得到的图像与原始的图像不一致,图像传输的准确率低的问题。The present application provides an image processing method, device, reference monitor and medium, which are used to solve the problem that the pins of the SOC and the FPGA are not connected correspondingly due to the influence of the circuit board design in the prior art, thereby resulting in splicing of the FPGA. The image is inconsistent with the original image, and the accuracy of image transmission is low.
第一方面,本申请实施例提供了一种图像处理方法,应用于现场可编程逻辑门阵列FPGA,所述方法包括:In the first aspect, the embodiment of the present application provides an image processing method applied to a Field Programmable Logic Gate Array FPGA, the method comprising:
接收系统级芯片SOC通过第一预设数量个第一VBO信号线发送的每列RGB数据,确定每个第一传输组中包含的每列RGB数据;Receiving each column of RGB data sent by the system-on-chip SOC through the first preset number of first VBO signal lines, and determining each column of RGB data contained in each first transmission group;
针对每个第一传输组,根据该第一传输组包含的每列RGB数据对应的第一VBO信号线,以及预先保存的第一VBO信号线的第一编号与列的对应关系,确定该第一传输组中每列RGB数据所在的第一目标列;其中,每个第一传输组中包含所述第一预设数量列RGB数据;For each first transmission group, according to the first VBO signal line corresponding to each column of RGB data contained in the first transmission group, and the pre-saved correspondence between the first number of the first VBO signal line and the column, determine the first VBO signal line The first target column where each column of RGB data in a transmission group is located; wherein, each first transmission group contains the first preset number of columns of RGB data;
根据所述每个第一传输组中每列RGB数据所在的第一目标列及第一传输组的顺序,确定目标图像。The target image is determined according to the first target column where each column of RGB data in each first transmission group is located and the order of the first transmission group.
第二方面,本申请实施例还提供一种图像处理装置,应用于现场可编程逻辑门阵列FPGA,所述装置包括:In the second aspect, the embodiment of the present application also provides an image processing device, which is applied to a field programmable logic gate array FPGA, and the device includes:
接收模块,用于接收系统级芯片SOC通过第一预设数量个第一VBO信号线发送的每列RGB数据,确定每个第一传输组中包含的每列RGB数据;The receiving module is used to receive each column of RGB data sent by the system-on-chip SOC through the first preset number of first VBO signal lines, and determine each column of RGB data contained in each first transmission group;
确定模块,用于针对每个第一传输组,根据该第一传输组包含的每列RGB数据对应的第一VBO信号线,以及预先保存的第一VBO信号线的第一编号与列的对应关系,确定该第一传输组中每列RGB数据所在的第一目标列;其中,每个第一传输组中包含所述第一预设数量列RGB数据;根据所述每个第一传输组中每列RGB数据所在的第一目标列及第一传输组的顺序,确定目标图像。The determination module is configured to, for each first transmission group, according to the first VBO signal line corresponding to each column of RGB data included in the first transmission group, and the correspondence between the first number of the first VBO signal line and the column stored in advance Relationship, determine the first target column where each column of RGB data in the first transmission group is located; wherein, each first transmission group contains the first preset number of columns of RGB data; according to each first transmission group The order of the first target column where each column of RGB data is located and the order of the first transmission group determines the target image.
第三方面,本申请实施例还提供了一种基准监视器,所述基准监视器包括FPGA,所述FPGA用于执行如上述所述图像处理方法的步骤。In a third aspect, an embodiment of the present application further provides a benchmark monitor, where the benchmark monitor includes an FPGA, and the FPGA is configured to execute the steps of the image processing method as described above.
第四方面,本申请实施例还提供了一种计算机可读存储介质,其存储有计算机程序,所述计算机程序被处理器执行时实现如上述所述图像处理方法的步骤。In a fourth aspect, the embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned image processing method are realized.
在本申请实施例中,FPGA接收SOC通过第一预设数量个第一VBO信号线发送的每列RGB数据,确定每个第一传输组中包含的每列RGB数据;针对每个第一传输组,根据该第一传输组包含的每列RGB数据对应的第一VBO信号线,以及预先保存的第一VBO信号线的第一编号与列的对应关系,确定该第一传输组中每列RGB数据所在的第一目标列;其中,每个第一传输组中包含第一预设数量个列;根据每个第一传输组中每列RGB数据所在的目标列及第一传输组的顺序,确定目标图像。由于在本申请实施例中,FPGA中预先保存了第一VBO信号线的第一编号与列的对应关系,使得针对每个第一传输组,FPGA根据该第一传输组包含的每列RGB数据对应的第一VBO信号线,以及预先保存的该对应关系,确定该第一传输组中每列RGB数据所在的第一目标列,避免了接收到的图像出现像素错位等问题,提高了图像传输的准确率。In this embodiment of the application, the FPGA receives each column of RGB data sent by the SOC through the first preset number of first VBO signal lines, and determines each column of RGB data contained in each first transmission group; for each first transmission group group, according to the first VBO signal line corresponding to each column of RGB data contained in the first transmission group, and the pre-saved correspondence between the first number of the first VBO signal line and the column, determine each column in the first transmission group The first target column where the RGB data is located; wherein, each first transmission group contains a first preset number of columns; according to the target column where each column of RGB data is located in each first transmission group and the order of the first transmission group , to determine the target image. Since in the embodiment of the present application, the corresponding relationship between the first serial number and the column of the first VBO signal line is pre-saved in the FPGA, so that for each first transmission group, the FPGA uses the RGB data of each column contained in the first transmission group The corresponding first VBO signal line and the pre-stored corresponding relationship determine the first target column where each column of RGB data in the first transmission group is located, avoiding problems such as pixel misalignment in the received image, and improving image transmission. the accuracy rate.
附图说明Description of drawings
为了更清楚地说明本申请的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solution of the present application more clearly, the accompanying drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. Ordinary technicians can also obtain other drawings based on these drawings on the premise of not paying creative work.
图1为本申请实施例提供的一种相关技术中的基准监视器的结构示意图;FIG. 1 is a schematic structural diagram of a reference monitor in a related art provided by an embodiment of the present application;
图2为本申请实施例提供的一种图像处理过程示意图;FIG. 2 is a schematic diagram of an image processing process provided by an embodiment of the present application;
图3为本申请实施例提供的基准监视器的结构示意图;FIG. 3 is a schematic structural diagram of a reference monitor provided in an embodiment of the present application;
图4为本申请实施例提供的第一测试图像与第一预测图像的示意图;FIG. 4 is a schematic diagram of a first test image and a first prediction image provided by an embodiment of the present application;
图5为本申请实施例提供的第一VBO信号线的第一编号与列的对应关系的确定流程示意图;Fig. 5 is a schematic flow chart of determining the corresponding relationship between the first serial number and the column of the first VBO signal line provided by the embodiment of the present application;
图6为本申请实施例提供的FPGA的内部结构示意图;FIG. 6 is a schematic diagram of the internal structure of the FPGA provided by the embodiment of the present application;
图7为本申请实施例提供的FPGA的数据检测比对模块内部的结构示意图;Fig. 7 is the internal structural representation of the data detection and comparison module of the FPGA provided by the embodiment of the application;
图8为本申请实施例提供的两个第二传输组的第二测试图像的示意图;FIG. 8 is a schematic diagram of second test images of two second transmission groups provided by an embodiment of the present application;
图9为本申请实施例提供的两个第二传输组的第二测试图像对应的预测图像的示意图;FIG. 9 is a schematic diagram of predicted images corresponding to the second test images of the two second transmission groups provided in the embodiment of the present application;
图10为本申请实施例提供的第二VBO信号线的第二编号与列的对应关系的确定流程示意图;FIG. 10 is a schematic flowchart of determining the correspondence between the second number and the column of the second VBO signal line provided in the embodiment of the present application;
图11为本申请实施例提供的一种图像处理装置结构示意图;FIG. 11 is a schematic structural diagram of an image processing device provided in an embodiment of the present application;
图12为本申请实施例提供的一种电子设备结构示意图。FIG. 12 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图,对本申请的实施例的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present application. rather than all examples. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.
相关技术中,基准监视器包括SOC、FPGA以及时序控制器(Timer ControlRegister,TCON)。图1为一种相关技术中的基准监视器的结构示意图。如图1所示,SOC的管脚通过VBO信号线与FPGA一侧的管脚连接,FPGA另一侧的管脚与TCON连接。其中,图像的RGB数据从SOC中通过VBO信号线传输给FPGA芯片,FPGA芯片对RGB数据进行处理后,再通过VBO信号线传输给后端的TCON,最终进行显示。In the related art, the reference monitor includes SOC, FPGA and timing controller (Timer Control Register, TCON). FIG. 1 is a schematic structural diagram of a reference monitor in the related art. As shown in Figure 1, the pins of the SOC are connected to the pins on one side of the FPGA through the VBO signal line, and the pins on the other side of the FPGA are connected to the TCON. Among them, the RGB data of the image is transmitted from the SOC to the FPGA chip through the VBO signal line. After the FPGA chip processes the RGB data, it is then transmitted to the back-end TCON through the VBO signal line, and finally displayed.
其中,SOC与FPGA、以及FPGA与TCON通常都采用8路VBO信号线连接,每一路VBO信号线用于传输图像中的特定列的RGB数据。并且,8路VBO信号线各自独立的进行RGB数据的传输。VBO信号线的各路线之间的顺序不会影响数据传输的质量,但是会影响到RGB数据的排列顺序。基于此,如果后端芯片不是按照前端芯片传输的顺序进行重新组合图像数据,那么后端显示的图像就会出现像素错位,显示错误。Among them, SOC and FPGA, and FPGA and TCON are usually connected by 8 VBO signal lines, and each VBO signal line is used to transmit RGB data of a specific column in the image. In addition, the 8 VBO signal lines transmit RGB data independently. The order of the various routes of the VBO signal line will not affect the quality of data transmission, but will affect the arrangement order of RGB data. Based on this, if the back-end chip does not recombine the image data in the order transmitted by the front-end chip, then the image displayed on the back-end will have pixel misalignment and display errors.
因此,为了解决上述的问题,本申请实施例提供了一种图像处理方法,该方法应用于FPGA,该FPGA接收SOC通过第一预设数量个第一VBO信号线发送的每列RGB数据,确定每个第一传输组中包含的每列RGB数据;针对每个第一传输组,根据该第一传输组包含的每列RGB数据对应的第一VBO信号线,以及预先保存的第一VBO信号线的第一编号与列的对应关系,确定该第一传输组中每列RGB数据所在的第一目标列;其中,每个第一传输组中包含第一预设数量个列;根据每个第一传输组中每列RGB数据所在的第一目标列及第一传输组的顺序,确定目标图像。Therefore, in order to solve the above-mentioned problems, the embodiment of the present application provides an image processing method, which is applied to FPGA, and the FPGA receives each column of RGB data sent by the SOC through the first preset number of first VBO signal lines, and determines Each column of RGB data contained in each first transmission group; for each first transmission group, according to the first VBO signal line corresponding to each column of RGB data contained in the first transmission group, and the pre-saved first VBO signal The corresponding relationship between the first number of the line and the column determines the first target column where each column of RGB data in the first transmission group is located; wherein, each first transmission group contains a first preset number of columns; according to each The first target column where each column of RGB data in the first transmission group is located and the order of the first transmission group determine the target image.
图2为本申请实施例提供的一种图像处理过程示意图,该过程包括:Fig. 2 is a schematic diagram of an image processing process provided by the embodiment of the present application, the process includes:
S201:接收SOC通过第一预设数量个第一VBO信号线发送的每列RGB数据,确定每个第一传输组中包含的每列RGB数据。S201: Receive each column of RGB data sent by the SOC through a first preset number of first VBO signal lines, and determine each column of RGB data included in each first transmission group.
本申请实施例提供的一种图像处理方法应用于FPGA,该FPGA部署于基准监视器上。An image processing method provided by an embodiment of the present application is applied to an FPGA, and the FPGA is deployed on a reference monitor.
图3为本申请实施例提供的基准监视器的结构示意图,如该图3所示,该基准监视器包括:微控制单元(Microcontroller Unit,MCU)、SOC、PC、上位机及TCON。其中,在本申请实施例中,MCU可以在FPGA上电之后对FPGA的参数进行配置;SOC是基准监视器的核心器件,具有丰富的输入输出接口,如高清多媒体接口(High Definition Multimedia Interface,HDMI)和VBO等,同时SOC还具有数字信号处理功能;PC中安装有上位机软件,技术人员可以通过PC中安装的上位机软件对FPGA中保存的内容实时地进行读写;TCON用于驱动液晶显示器显示图像;FPGA用于接收SOC发送的图像,并对图像进行图像处理,如增强画质效果等,并将处理后的图像发送给TOCN。FIG. 3 is a schematic structural diagram of a reference monitor provided by an embodiment of the present application. As shown in FIG. 3 , the reference monitor includes: a Microcontroller Unit (MCU), SOC, PC, host computer, and TCON. Wherein, in the embodiment of the present application, the MCU can configure the parameters of the FPGA after the FPGA is powered on; the SOC is the core device of the benchmark monitor, and has abundant input and output interfaces, such as High Definition Multimedia Interface (HDMI) ) and VBO, etc. At the same time, the SOC also has digital signal processing functions; PC software is installed in the PC, and technicians can read and write the content stored in the FPGA in real time through the PC software installed in the PC; TCON is used to drive LCD The monitor displays the image; the FPGA is used to receive the image sent by the SOC, and perform image processing on the image, such as enhancing the image quality effect, etc., and send the processed image to TOCN.
在本申请实施例中,FPGA与SOC通过第一预设数量个第一VBO信号线连接,并且SOC通过该第一预设数量个第一VBO信号线向FPGA传输图像的每列RGB数据。其中,在本申请实施例中,在进行图像的RGB数据传输时,SOC将图像分为至少一个第一传输组,每个第一VBO信号线用于传输每个第一传输组中特定列的RGB数据。每个第一传输组中包含该第一预设数量列RGB数据。In the embodiment of the present application, the FPGA and the SOC are connected through a first preset number of first VBO signal lines, and the SOC transmits each column of RGB data of the image to the FPGA through the first preset number of first VBO signal lines. Wherein, in the embodiment of the present application, when performing the RGB data transmission of the image, the SOC divides the image into at least one first transmission group, and each first VBO signal line is used to transmit the data of a specific column in each first transmission group. RGB data. Each first transmission group includes the first preset number of columns of RGB data.
基于此,在本申请实施例中,FPGA接收SOC通过第一预设数量个第一VBO信号线发送的每列RGB数据,并根据每列RGB数据在对应的第一VBO信号线中的传输顺序,确定每个第一传输组中包含的每列RGB数据。具体的,传输顺序相同的每列RGB数据位于一个第一传输组中。例如,在本申请实施例中,将每个第一VBO信号线传输的首列RGB数据确定为一个第一传输组,将每个第一VBO信号线传输的第二列RGB数据确定为一个第一传输组等。Based on this, in this embodiment of the application, the FPGA receives each column of RGB data sent by the SOC through the first preset number of first VBO signal lines, and according to the transmission sequence of each column of RGB data in the corresponding first VBO signal line , to determine each column of RGB data contained in each first transmission group. Specifically, each column of RGB data with the same transmission order is located in a first transmission group. For example, in the embodiment of the present application, the first column of RGB data transmitted by each first VBO signal line is determined as a first transmission group, and the second column of RGB data transmitted by each first VBO signal line is determined as a first column of RGB data. A transport group, etc.
S202:针对每个第一传输组,根据该第一传输组包含的每列RGB数据对应的第一VBO信号线,以及预先保存的第一VBO信号线的第一编号与列的对应关系,确定该第一传输组中每列RGB数据所在的第一目标列;其中,每个第一传输组中包含所述第一预设数量列RGB数据。S202: For each first transmission group, according to the first VBO signal line corresponding to each column of RGB data included in the first transmission group, and the pre-saved correspondence between the first number of the first VBO signal line and the column, determine The first target column where each column of RGB data in the first transmission group is located; wherein, each first transmission group contains the first preset number of columns of RGB data.
由于电路板的设计原因,FPGA与SOC的相同序号的管脚可能不是对应连接的,为了避免FGPA直接根据管脚顺序对接收到的每列RGB数据进行排列,使得得到的图像出现像素错位的情况,在本申请实施例中,FPGA中保存了第一VBO信号线的第一编号与列的对应关系,使得FPGA在接收到每列RGB数据后,针对每个第一传输组,可以根据该对应关系确定该第一传输组中包含的每列RGB数据对应的第一目标列。Due to the design of the circuit board, the pins of the same serial number of the FPGA and the SOC may not be connected correspondingly. In order to prevent the FPGA from directly arranging each column of RGB data received according to the order of the pins, the pixel misalignment of the obtained image occurs. , in the embodiment of the present application, the corresponding relationship between the first number and the column of the first VBO signal line is saved in the FPGA, so that after the FPGA receives each column of RGB data, for each first transmission group, it can The relationship determines the first target column corresponding to each column of RGB data included in the first transmission group.
其中,在本申请实施例中,该对应关系中的列是在第一传输组中的列,并且每个第一VBO信号线的第一编号一般为该第一VBO信号线对应的FPGA的管脚的序号。Wherein, in the embodiment of the present application, the columns in the corresponding relationship are the columns in the first transmission group, and the first serial number of each first VBO signal line is generally the FPGA pipe corresponding to the first VBO signal line. The serial number of the foot.
具体的,在本申请实施例中,FPGA在确定了每个第一传输组中包含的RGB数据之后,该FPGA确定传输该每列RGB数据的第一VBO信号线,并获取保存的该每个第一VBO信号线对应的第一编号。该FPGA根据保存的第一VBO信号线的第一编号与列的对应关系,确定每列RGB数据所在的第一目标列。其中,在本申请实施例中,每列RGB数据对应的第一目标列为该列RGB数据在所在的第一传输组中所在的列。FPGA最终会根据每列RGB数据所在的第一传输组的顺序以及每列RGB数据在所在的第一传输组中的第一目标列,生成与SOC发送的一致的图像。Specifically, in the embodiment of the present application, after the FPGA determines the RGB data contained in each first transmission group, the FPGA determines the first VBO signal line that transmits the RGB data of each column, and obtains the stored The first serial number corresponding to the first VBO signal line. The FPGA determines the first target column where the RGB data of each column is located according to the stored correspondence between the first number of the first VBO signal line and the column. Wherein, in the embodiment of the present application, the first target column corresponding to each column of RGB data is the column in which the column of RGB data is located in the first transmission group. FPGA will finally generate an image consistent with that sent by the SOC according to the order of the first transmission group where each column of RGB data is located and the first target column in the first transmission group where each column of RGB data is located.
其中,需要说明的是,每个第一传输组中包含第一预设数量个列。Wherein, it should be noted that each first transmission group includes a first preset number of columns.
此外,在本申请实施例中,可以在FGPA的内部增加接收端的VBO信号线顺序调整模块,并将第一VBO信号线的第一编号与列的对应关系保存到该调整模块中。In addition, in the embodiment of the present application, a VBO signal line sequence adjustment module at the receiving end may be added inside the FGPA, and the corresponding relationship between the first serial number and the column of the first VBO signal line is stored in the adjustment module.
在本申请实施例中,该第一VBO信号线的第一编号与列的对应关系可以保存在MCU中,当FPGA上电后,MCU会将该对应关系写入到FPGA中,使得FPGA可以根据该对应关系对接收到的每列RGB数据进行组合,并生成图像,其中该FPGA生成的图像与SOC发送的图像一致。In the embodiment of the present application, the corresponding relationship between the first serial number and the column of the first VBO signal line can be stored in the MCU, and when the FPGA is powered on, the MCU will write the corresponding relationship into the FPGA, so that the FPGA can The corresponding relationship combines each column of RGB data received to generate an image, wherein the image generated by the FPGA is consistent with the image sent by the SOC.
S203:根据所述每个第一传输组中每列RGB数据所在的第一目标列及第一传输组的顺序,确定目标图像。S203: Determine a target image according to the first target column where each column of RGB data in each first transmission group is located and the order of the first transmission group.
在本申请实施例中,FPGA在确定了每个第一传输组中的每列RGB数据所在的第一目标列之后,该FPGA根据每个第一传输组中每列RGB数据所在的第一目标列及第一传输组的顺序,确定目标图像。In the embodiment of the present application, after the FPGA determines the first target column where each column of RGB data in each first transmission group is located, the FPGA determines the first target column where each column of RGB data is located in each first transmission group. The order of the columns and the first transmission group determines the target image.
具体的,针对每个第一传输组,FPGA根据该第一传输组中每列RGB数据所在的第一目标列,确定该第一传输组对应的子目标图像。该FPGA在确定了每个第一传输组对应的每个子目标图像之后,该FPGA根据第一传输组的顺序,对该每个子目标图像进行拼接,得到目标图像。Specifically, for each first transmission group, the FPGA determines the sub-target image corresponding to the first transmission group according to the first target column where each column of RGB data in the first transmission group is located. After the FPGA determines each sub-target image corresponding to each first transmission group, the FPGA stitches each sub-target image according to the order of the first transmission group to obtain a target image.
由于在本申请实施例中,FPGA中预先保存了第一VBO信号线的第一编号与列的对应关系,使得针对每个第一传输组,FPGA根据该第一传输组包含的每列RGB数据对应的第一VBO信号线,以及预先保存的该对应关系,确定该第一传输组中每列RGB数据所在的第一目标列,避免了接收到的图像出现像素错位等问题,提高了图像传输的准确率。Since in the embodiment of the present application, the corresponding relationship between the first serial number and the column of the first VBO signal line is pre-saved in the FPGA, so that for each first transmission group, the FPGA uses the RGB data of each column contained in the first transmission group The corresponding first VBO signal line and the pre-stored corresponding relationship determine the first target column where each column of RGB data in the first transmission group is located, avoiding problems such as pixel misalignment in the received image, and improving image transmission. the accuracy rate.
为了避免基于接收到的RGB数据进行图像重组后得到的图像出现像素错位等问题,在上述实施例的基础上,在本申请实施例中,所述根据该第一传输组包含的每列RGB数据对应的第一VBO信号线,以及预先保存的第一VBO信号线的第一编号与列的对应关系,确定该第一传输组中每列RGB数据所在的第一目标列包括:In order to avoid problems such as pixel misalignment in the image obtained after image reconstruction based on the received RGB data, on the basis of the above-mentioned embodiments, in the embodiment of the present application, the RGB data of each column included in the first transmission group Corresponding to the first VBO signal line, and the correspondence between the first serial number and the column of the first VBO signal line saved in advance, determining the first target column where each column of RGB data in the first transmission group is located includes:
针对该第一传输组中的每列RGB数据,确定该列RGB数据对应的目标第一VBO信号线;根据所述对应关系,确定所述目标第一VBO信号线的目标第一编号对应的列,将所述列确定为该列RGB数据所在的第一目标列。For each column of RGB data in the first transmission group, determine the target first VBO signal line corresponding to the column of RGB data; according to the correspondence, determine the column corresponding to the target first number of the target first VBO signal line , determining the column as the first target column where the RGB data of the column is located.
在本申请实施例中,FPGA在确定第一传输组中的每列RGB数据所在的第一目标列时,针对该第一传输组中的每列RGB数据,该FPGA确定传输该列RGB数据的目标第一VBO信号线,并根据保存的该对应关系,确定目标第一VBO信号线的目标第一编号对应的列,将该列确定为该列RGB数据所在的第一目标列。In the embodiment of the present application, when the FPGA determines the first target column where each column of RGB data in the first transmission group is located, for each column of RGB data in the first transmission group, the FPGA determines the target column for transmitting the column of RGB data. Target the first VBO signal line, and according to the stored correspondence, determine the column corresponding to the target first number of the target first VBO signal line, and determine this column as the first target column where the RGB data of the column is located.
例如,在本申请实施例中,SOC通过四个第一VBO信号线向FPGA发送的第一传输组中包含四列RGB数据。其中,该四个第一VBO信号线的编号分为1、2、3和4,该四列RGB数据分别为RGB数据A、RGB数据B、RGB数据C和RGB数据D,编号为1的第一VBO信号线传输RGB数据A,编号为2的第一VBO信号线传输RGB数据B,编号为3的第一VBO信号线传输RGB数据C,编号为4的第一VBO信号线传输RGB数据D。并且,该FPGA中保存的对应关系为编号1对应第一列、编号2对应第四列、编号3对应第二列以及编号4对应第三列。基于此,该FPGA确定RGB数据A所在的第一目标列为第一列,RGB数据B所在的第一目标列为第四列,RGB数据C所在的第一目标列为第二列,RGB数据D所在的第一目标列为第三列。For example, in the embodiment of the present application, the first transmission group sent by the SOC to the FPGA through the four first VBO signal lines includes four columns of RGB data. Wherein, the numbers of the four first VBO signal lines are divided into 1, 2, 3 and 4, and the four columns of RGB data are respectively RGB data A, RGB data B, RGB data C and RGB data D, and the numbered 1st One VBO signal line transmits RGB data A, the first VBO signal line numbered 2 transmits RGB data B, the first VBO signal line numbered 3 transmits RGB data C, and the first VBO signal line numbered 4 transmits RGB data D . Moreover, the corresponding relationship stored in the FPGA is that
为了提高图像传输的准确性,在上述各实施例的基础上,在本申请实施例中,所述每个第一传输组的确定过程包括:In order to improve the accuracy of image transmission, on the basis of the above embodiments, in this embodiment of the application, the process of determining each first transmission group includes:
确定每个RGB数据在对应的第一VBO信号线中的传输顺序;Determine the transmission order of each RGB data in the corresponding first VBO signal line;
将传输顺序相同的RGB数据确定为一个第一传输组。Determine the RGB data with the same transmission sequence as a first transmission group.
在本申请实施例中,FPGA在确定每个第一传输组中时,该FPGA确定每个RGB数据在对应的第一VBO信号线中的传输顺序,并将传输顺序相同的RGB数据确定为一个第一传输组。如,FPGA将每个第一VBO信号线传输的首列RGB数据确定为一个传输组等。In the embodiment of the present application, when the FPGA determines each first transmission group, the FPGA determines the transmission order of each RGB data in the corresponding first VBO signal line, and determines the RGB data with the same transmission order as one first transmission group. For example, the FPGA determines the first column of RGB data transmitted by each first VBO signal line as a transmission group.
为了使得FPGA中保存有第一VBO信号线的第一编号与列的对应关系,进而提高图像传输的准确性,在上述各实施例的基础上,在本申请实施例中,所述第一VBO信号线的第一编号与列的对应关系的确定过程包括:In order to save the corresponding relationship between the first serial number and the column of the first VBO signal line in the FPGA, thereby improving the accuracy of image transmission, on the basis of the above-mentioned embodiments, in the embodiment of the present application, the first VBO The process of determining the corresponding relationship between the first number of the signal line and the column includes:
将生成的第一测试图像通过上位机发送给所述SOC,其中所述第一测试图像中的每列第一测试RGB数据不同,且所述第一测试图像中包含第一预设数量个列;Send the generated first test image to the SOC through the host computer, wherein the first test RGB data of each column in the first test image is different, and the first test image contains a first preset number of columns ;
向所述SOC发送携带有发送每列RGB数据的发送指令,并接收所述SOC通过所述第一预设数量个第一VBO信号线发送的每列第二测试RGB数据;sending to the SOC a sending instruction carrying sending each column of RGB data, and receiving each column of second test RGB data sent by the SOC through the first preset number of first VBO signal lines;
针对每列第二测试RGB数据,确定该列第二测试RGB数据在所述第一测试图像中对应的第二目标列,并将所述第二目标列与传输该列第二测试RGB数据的第一VBO信号线的第一编号对应保存。For each column of the second test RGB data, determine the second target column corresponding to the column of the second test RGB data in the first test image, and combine the second target column with the column that transmits the column of the second test RGB data The first serial number of the first VBO signal line is stored correspondingly.
在本申请实施例中,FPGA生成第一测试图像,并将该第一测试图像发送给SOC。其中,由于第一VBO信号线的第一编号与列的对应关系适用于所有的第一传输组,因此,为了节省传输资源,在本申请实施例中,该第一测试图像可以由一个第一传输组构成,即该第一测试图像中包含的列的数量与第一VBO信号线的数量一致。In the embodiment of the present application, the FPGA generates the first test image, and sends the first test image to the SOC. Wherein, since the corresponding relationship between the first number and the column of the first VBO signal line is applicable to all the first transmission groups, in order to save transmission resources, in the embodiment of the present application, the first test image can be composed of a first The configuration of the transmission group means that the number of columns contained in the first test image is consistent with the number of the first VBO signal lines.
其中,为了使SOC可以准确地接收到FPGA生成的第一测试图像,在本申请实施例中,该FPGA是通过上位机将生成的第一测试图像发送给SOC的。Wherein, in order for the SOC to accurately receive the first test image generated by the FPGA, in the embodiment of the present application, the FPGA sends the generated first test image to the SOC through the host computer.
在本申请实施例中,FPGA在将第一测试图像通过上位机发送给SOC之后,该FPGA向该SOC发送发送指令,使得SOC在接收到该发送指令后,通过第一预设数量个第一VBO信号线向该FPGA发送该第一测试图像的每列第一测试RGB数据。并且,由于FPGA的某一序号的管脚接收到的RGB数据可能与SOC的相同序号的管脚发送的RGB数据不是同一列,例如,SOC序号为1的管脚负责发送第一测试图像的第一列RGB数据,但是FPGA序号为1的管脚接收到的RGB数据为第一测试图像的第三列,因此,在本申请实施例中,将FPGA接收到的RGB数据称为第二测试RGB数据。In the embodiment of the present application, after the FPGA sends the first test image to the SOC through the host computer, the FPGA sends a sending instruction to the SOC, so that the SOC passes the first preset number of first images after receiving the sending instruction. The VBO signal line sends the first test RGB data of each column of the first test image to the FPGA. Moreover, since the RGB data received by a pin of a certain serial number of the FPGA may not be in the same column as the RGB data sent by the pin of the same serial number of the SOC, for example, the pin with the serial number of the SOC being 1 is responsible for sending the first test image. A column of RGB data, but the RGB data received by the pin with FPGA
在本申请实施例中,FPGA在接收到第二测试RGB数据之后,针对每列第二测试RGB数据,该FPGA确定该列第二测试数据在该第一测试图像中对应的第二目标列,并将该第二目标列与传输该列第二测试RGB数据的第一VBO信号线的第一编号对应保存。In the embodiment of the present application, after the FPGA receives the second test RGB data, for each column of the second test RGB data, the FPGA determines the second target column corresponding to the column of second test data in the first test image, And store the second target column in correspondence with the first serial number of the first VBO signal line transmitting the second test RGB data of the column.
具体的,在本申请实施例中,FPGA在确定每列第二测试RGB数据对应的第二目标列时,可以通过以下一种或多种方式进行确定:Specifically, in the embodiment of the present application, when the FPGA determines the second target column corresponding to the second test RGB data of each column, it can be determined in one or more of the following ways:
方式一:针对每列第二测试RGB数据,根据第一测试图像中每列像素点对应的第一测试RGB数据,在该第一测试图像中查找该第二测试RGB数据对应的第二目标列。Mode 1: For each column of second test RGB data, according to the first test RGB data corresponding to each column of pixel points in the first test image, search for the second target column corresponding to the second test RGB data in the first test image .
由于第一测试图像的每列第一测试RGB数据不同,因此,针对每列第二测试RGB数据,FPGA可以在第一测试图像中查找与该第二测试RGB数据的数值相同的目标第一测试RGB数据,并将该目标第一测试RGB数据所在的列确定为该第二测试RGB数据对应的第二目标列。Since each column of the first test RGB data of the first test image is different, therefore, for each column of the second test RGB data, the FPGA can search the first test image for the same target first test image as the numerical value of the second test RGB data. RGB data, and determine the column where the target first test RGB data is located as the second target column corresponding to the second test RGB data.
例如,第一测试图像中有4列第一测试RGB数据,针对某个第二测试RGB数据,FPGA确定该第二测试RGB数据的数值与该第一测试图像中第三列的第一测试RGB数据的数值相同,则该FPGA确定第三列为该第二测试RGB数据对应的第二目标列。For example, there are 4 columns of first test RGB data in the first test image, and for a certain second test RGB data, the FPGA determines that the value of the second test RGB data is consistent with the first test RGB data of the third column in the first test image. If the values of the data are the same, the FPGA determines that the third column is the second target column corresponding to the second test RGB data.
方式二:FPGA对预先保存的每个第一VBO信号线的第一编号进行排序,并根据排序结果对每个第一VBO信号线传输的第二测试RGB数据进行拼接,得到第一预测图像。该FPGA根据将该第一预测图像与第一测试图像进行比较,并根据第一测试图像中的第一测试RGB数据的顺序对该第一预测图像中的第二测试RGB数据的顺序进行调整,使得第一预测图像与第一测试图像一致。针对每个第二测试RGB数据,FPGA确定该第二测试RGB数据在调整后的第一预测图像所在的列,并将该列确定为该第二测试RGB数据对应的第二目标列。Method 2: The FPGA sorts the pre-saved first numbers of each first VBO signal line, and according to the sorting result, splices the second test RGB data transmitted by each first VBO signal line to obtain the first predicted image. The FPGA compares the first predicted image with the first test image, and adjusts the order of the second test RGB data in the first predicted image according to the order of the first test RGB data in the first test image, The first predicted image is made to coincide with the first test image. For each second test RGB data, the FPGA determines the column where the second test RGB data is located in the adjusted first prediction image, and determines this column as the second target column corresponding to the second test RGB data.
图4为本申请实施例提供的第一测试图像与第一预测图像的示意图,如该图4所示,第一测试图像中的每列第一测试RGB数据不同,第一预测图像与第一测试图像的第二列和第三列不同。Figure 4 is a schematic diagram of the first test image and the first predicted image provided by the embodiment of the present application. As shown in Figure 4, each column of first test RGB data in the first test image is different, and the first predicted image is different from the first predicted image. The second and third columns of test images are different.
此外,在本申请实施例中,FPGA在确定了第一VBO信号线的第一编号与列的对应关系之后,该FPGA将该对应关系保存到寄存器中,并将该对应关系发送给MCU,使得MCU将该对应关系写入到上电配置参数的程序中。当FPGA再次上电时,MCU可以将该上电配置参数发送给FPGA,使得该FPGA保存该对应关系。In addition, in the embodiment of the present application, after the FPGA determines the correspondence between the first serial number and the column of the first VBO signal line, the FPGA saves the correspondence in a register, and sends the correspondence to the MCU, so that The MCU writes the corresponding relationship into the program of the power-on configuration parameters. When the FPGA is powered on again, the MCU can send the power-on configuration parameters to the FPGA, so that the FPGA can save the corresponding relationship.
图5为本申请实施例提供的第一VBO信号线的第一编号与列的对应关系的确定流程示意图,如该图5所示,该过程包括:Fig. 5 is a schematic flow chart for determining the corresponding relationship between the first number and the column of the first VBO signal line provided by the embodiment of the present application. As shown in Fig. 5, the process includes:
S501:基准监视器上电。S501: The reference monitor is powered on.
S502:MCU对FPGA的参数进行配置,使得基准监视器可以正常工作。S502: The MCU configures the parameters of the FPGA so that the reference monitor can work normally.
S503:技术人员通过上位机控制FPGA进入VBO信号线检测模式。S503: The technician controls the FPGA to enter the VBO signal line detection mode through the host computer.
在本申请实施例中,技术人员可以通过上位机向FPGA发送进入VBO信号线检测模式的指令,使得FPGA进入VBO信号线检测模式,并确定第一VBO信号线的第一编号与列的对应关系。In the embodiment of the present application, the technician can send an instruction to the FPGA to enter the VBO signal line detection mode through the host computer, so that the FPGA enters the VBO signal line detection mode, and determine the correspondence between the first number and the column of the first VBO signal line .
S504:FPGA生成第一测试图像。S504: The FPGA generates a first test image.
S505:上位机获取FPGA生成的该第一测试图像,并将该第一测试图像发送给SOC。S505: The host computer acquires the first test image generated by the FPGA, and sends the first test image to the SOC.
S506:FPGA向所述SOC发送携带有发送每列RGB数据的发送指令,并接收所述SOC通过所述第一预设数量个第一VBO信号线发送的每列第二测试RGB数据。S506: The FPGA sends to the SOC a sending instruction carrying RGB data for each column, and receives second test RGB data for each column sent by the SOC through the first preset number of first VBO signal lines.
S507:FPGA对预先保存的每个第一VBO信号线的第一编号进行排序,并根据排序结果对每个第一VBO信号线传输的第二测试RGB数据进行拼接,得到第一预测图像。S507: The FPGA sorts the pre-saved first numbers of each first VBO signal line, and splices the second test RGB data transmitted by each first VBO signal line according to the sorting result to obtain a first prediction image.
S508:该FPGA根据将该第一预测图像与第一测试图像进行比较。S508: The FPGA compares the first predicted image with the first test image.
S509:根据第一测试图像中的第一测试RGB数据的顺序对该第一预测图像中的第二测试RGB数据的顺序进行调整,使得第一预测图像与第一测试图像一致。S509: Adjust the sequence of the second test RGB data in the first prediction image according to the sequence of the first test RGB data in the first test image, so that the first prediction image is consistent with the first test image.
S510:针对每个第二测试RGB数据,FPGA确定该第二测试RGB数据在调整后的第一预测图像所在的列,并将该列确定为该第二测试RGB数据对应的第二目标列。S510: For each second test RGB data, the FPGA determines a column where the second test RGB data is located in the adjusted first prediction image, and determines this column as a second target column corresponding to the second test RGB data.
S511:将所述第二目标列与传输该列第二测试RGB数据的第一VBO信号线的第一编号对应保存到寄存器中。S511: Store the second target column in a register corresponding to the first number of the first VBO signal line transmitting the second test RGB data of the column.
S512:上位机读取寄存器中保存的该对应关系。S512: The upper computer reads the corresponding relationship stored in the register.
S513:显示屏显示该第一测试图像和第一预测图像,技术人员根据显示验证该对应关系是否正确。S513: The display screen displays the first test image and the first prediction image, and the technician verifies whether the corresponding relationship is correct according to the display.
S514:技术人员将该对应关系写入到MCU的上电配置参数的程序中,并对FPGA重新上电。S514: The technician writes the corresponding relationship into the program of the power-on configuration parameters of the MCU, and powers on the FPGA again.
为了使得图像能够正确地在基准监视器的显示屏中显示,在上述各实施例的基础上,在本申请实施例中,所述方法还包括:In order to enable the image to be correctly displayed on the display screen of the reference monitor, on the basis of the above-mentioned embodiments, in the embodiment of the present application, the method further includes:
获取保存的所述FPGA与时序控制器TCON连接的第二VBO信号线的第二预设数量,并根据所述第二预设数量,对所述目标图像中的每列RGB数据进行分组,确定每个第二传输组;Obtaining the saved second preset number of the second VBO signal lines connected between the FPGA and the timing controller TCON, and grouping each column of RGB data in the target image according to the second preset number, and determining each second transmission group;
根据预先保存的第二VBO信号线的第二编号与列的对应关系,确定所述目标图像中每个第二传输组的每个列对应的第二编号的第二VBO信号线;According to the correspondence between the second number and the column of the second VBO signal line saved in advance, determine the second VBO signal line of the second number corresponding to each column of each second transmission group in the target image;
采用所述每个第二传输组中每列RGB数据对应的第二编号的第二VBO信号线,向所述TCON发送所述目标图像中的每列RGB数据。Send each column of RGB data in the target image to the TCON by using the second numbered second VBO signal line corresponding to each column of RGB data in each second transmission group.
在本申请实施例中,FPGA还与TCON连接并向TCON发送RGB数据,使得TCON控制显示器显示图像。In the embodiment of the present application, the FPGA is also connected to the TCON and sends RGB data to the TCON, so that the TCON controls the display to display images.
具体的,在本申请实施例中,FPGA获取保存的该FPGA与TCON连接的第二VBO信号线的第二预设数量,并根据该第二预设数量,对接收到的目标图像中的每列RGB数据进行分组,确定每个第二传输组。其中,在本申请实施例中,该第二预设数量可以与第一预设数量相同,也可以不同。Specifically, in this embodiment of the application, the FPGA acquires the saved second preset number of second VBO signal lines connected to the FPGA and TCON, and according to the second preset number, each The columns of RGB data are grouped to identify each second transmission group. Wherein, in this embodiment of the present application, the second preset number may be the same as or different from the first preset number.
由于电路板的设计原因,电路板的制作过程中会对FPGA与TCON的管脚连接顺序进行调整,这就导致了TCON与FPGA的管脚不是对应连接的。如TCON的管脚1应该与FPGA的管脚1连接,但在制作过程中,将TCON的管脚1与FPGA的管脚3连接。进而导致了TCON拼接得到的图像与目标图像不一致,降低了图像传输的准确率。基于此,在本申请实施例中,FPGA中还会保存有第二VBO信号线的第二编号与列的对应关系,该FPGA根据该对应关系,确定目标图像中每个第二传输组的每个列对应的第二编号,并采用每个第二传输组中每列RGB数据对应的第二编号的第二VBO信号线,向TCON发送该目标图像中的每列RGB数据,使得TCON可以控制显示屏显示正确的目标图像。Due to the design of the circuit board, the connection order of the pins of the FPGA and the TCON will be adjusted during the production process of the circuit board, which results in that the pins of the TCON and the FPGA are not connected correspondingly. For example,
图6为本申请实施例提供的FPGA的内部结构示意图,如该图6所示,FPGA包括串并转换解码模块、并串转换编码模块、接收数据重组模块、发送数据重组模块、数据检测比对模块以及数据读写模块。其中,串并转换解码模块用于进行每列RGB数据的串并转换,将SOC发送的每列RGB数据由串行的信号转换成并行的数字信号;并串转换编码模块用于进行数据的并串转换,将每列RGB数据由并行的数字信号转换为串行的信号,发送给TCON显示;接收数据重组模块用于对SOC发送的每列RGB数据进行重新排列组合,组成目标图像;发送数据重组模块用于对目标图像重新拆分,将拆分后的每列RGB数据发送给TCON;图像处理模块用于对图像进行图像处理,实现画质的效果增强等效果;数据检测比对模块用于产生测试图像,并确定VBO信号线的编号与列的对应关系;数据读写模块用于上电之后,接收MCU配置的参数,并进行参数配置,并接收通过上位机进行的FPGA内部数据的读写。Figure 6 is a schematic diagram of the internal structure of the FPGA provided by the embodiment of the present application. As shown in Figure 6, the FPGA includes a serial-to-parallel conversion decoding module, a parallel-to-serial conversion encoding module, a receiving data reorganization module, a sending data reorganization module, and a data detection comparison Module and data read and write module. Among them, the serial-to-parallel conversion decoding module is used to perform serial-to-parallel conversion of each column of RGB data, and converts each column of RGB data sent by the SOC from a serial signal to a parallel digital signal; the parallel-to-serial conversion encoding module is used to perform parallel data conversion Serial conversion, converting each column of RGB data from parallel digital signals to serial signals, and sending them to TCON for display; the receiving data reorganization module is used to rearrange and combine each column of RGB data sent by SOC to form the target image; sending data The recombination module is used to re-split the target image, and sends each column of RGB data after splitting to TCON; the image processing module is used to process the image to achieve image quality enhancement and other effects; the data detection and comparison module is used to It is used to generate the test image and determine the corresponding relationship between the number of the VBO signal line and the column; the data reading and writing module is used to receive the parameters configured by the MCU after power-on, and perform parameter configuration, and receive the internal data of the FPGA through the host computer. read and write.
为了使得FPGA中保存有第二VBO信号线的第二编号与列的对应关系,进而提高图像传输的准确性,在上述各实施例的基础上,在本申请实施例中,所述第二VBO信号线的第二编号与列的对应关系的确定过程包括:In order to save the corresponding relationship between the second number and the column of the second VBO signal line in the FPGA, thereby improving the accuracy of image transmission, on the basis of the above-mentioned embodiments, in the embodiment of the present application, the second VBO The process of determining the corresponding relationship between the second number of the signal line and the column includes:
将生成的第二测试图像的第三测试RGB数据发送给所述TCON,使得所述TCON根据接收到第三测试RGB数据进行排序得到预测图像,并将所述预测图像发送给所述SOC;其中所述第二测试图像中的每列第三测试RGB数据不同,且所述第二测试图像中包含第二预设数量个列;Send the third test RGB data of the generated second test image to the TCON, so that the TCON sorts the received third test RGB data to obtain a predicted image, and sends the predicted image to the SOC; wherein The third test RGB data of each column in the second test image is different, and the second test image includes a second preset number of columns;
接收所述SOC通过所述第一VBO信号线发送的所述预测图像的每列像素点的第四测试RGB数据;receiving the fourth test RGB data of each column of pixels of the predicted image sent by the SOC through the first VBO signal line;
针对每列第四测试RGB数据,确定该列第四测试RGB数据在所述第二测试图像中对应的第三目标列,并将所述第三目标列与传输该列第四测试RGB数据的第二VBO信号线的第二编号对应保存。For each column of the fourth test RGB data, determine the third target column corresponding to the column of the fourth test RGB data in the second test image, and combine the third target column with the column that transmits the column of the fourth test RGB data. The second number corresponding to the second VBO signal line is saved.
在本申请实施例中,FPGA生成第二测试图像,并将该第二测试图像的每列第三测试RGB数据发送给TCON。其中,由于第二VBO信号线的第二编号与列的对应关系适用于所有的第二传输组,因此,为了节省传输资源,在本申请实施例中,该第二测试图像可以由一个第二传输组构成,即该第二测试图像中包含的列的数量与第二VBO信号线的数量一致。In the embodiment of the present application, the FPGA generates the second test image, and sends the third test RGB data of each column of the second test image to the TCON. Wherein, since the corresponding relationship between the second number and the column of the second VBO signal line is applicable to all the second transmission groups, in order to save transmission resources, in the embodiment of the present application, the second test image can be composed of a second The configuration of the transmission group means that the number of columns contained in the second test image is consistent with the number of the second VBO signal lines.
其中,由于FPGA的某一序号的管脚发送的RGB数据可能与TCON的相同序号的管脚接收的RGB数据不是同一列,例如,FPGA序号为1的管脚负责发送第二测试图像的第一列RGB数据,但是TCON序号为1的管脚接收到的RGB数据为第二测试图像的第三列,因此,在本申请实施例中,将TCON接收到的每列RGB数据称为第四测试RGB数据。TCON接收到每列第三测试RGB数据之后,会根据每个第二VBO信号线连接的管脚的顺序,对每列第三测试RGB数据进行排序,得到预测图像。Among them, since the RGB data sent by a pin of a certain serial number of the FPGA may not be in the same column as the RGB data received by a pin of the same serial number of the TCON, for example, the pin of the FPGA
为了使得FPGA可以确定TCON确定的预测图像是否发生像素错乱,在本申请实施例中,FPGA将第二预测图像发送给TCON,且TCON确定了预测图像之后,该TCON还会将该预测图像转发给FPGA。其中,为了使FPGA接收到的预测图像与TCON确定的预测图像一致,在本申请实施例中,该TCON是通过上位机将预测图像发送SOC,再由SOC发送给FPGA。In order for the FPGA to determine whether the predicted image determined by the TCON is pixel-disordered, in the embodiment of this application, the FPGA sends the second predicted image to the TCON, and after the TCON determines the predicted image, the TCON will also forward the predicted image to FPGA. Wherein, in order to make the predicted image received by the FPGA consistent with the predicted image determined by the TCON, in the embodiment of the present application, the TCON sends the predicted image to the SOC through the host computer, and then the SOC sends the predicted image to the FPGA.
在本申请实施例中,FPGA在通过上位机和SOC接收到每列第四测试RGB数据之后,针对每列第四测试RGB数据,该FPGA确定该列第四测试数据在该预测图像中对应的第三目标列,并将该第三目标列与传输该列第四测试RGB数据的第二VBO信号线的第二编号对应保存。In the embodiment of the present application, after the FPGA receives the fourth test RGB data of each column through the host computer and the SOC, for each column of the fourth test RGB data, the FPGA determines the corresponding a third target column, and store the third target column in correspondence with the second serial number of the second VBO signal line that transmits the fourth test RGB data of the column.
具体的,在本申请实施例中,FPGA在确定每列第四测试RGB数据对应的第三目标列时,可以通过以下一种或多种方式进行确定:Specifically, in the embodiment of the present application, when the FPGA determines the third target column corresponding to the fourth test RGB data of each column, it can be determined in one or more of the following ways:
方式一:针对每列第四测试RGB数据,根据第二测试图像中每列像素点对应的第三测试RGB数据,在该第二测试图像中查找该第四测试RGB数据对应的第三目标列。Mode 1: For each column of the fourth test RGB data, according to the third test RGB data corresponding to each column of pixel points in the second test image, find the third target column corresponding to the fourth test RGB data in the second test image .
由于第二测试图像的每列第三测试RGB数据不同,因此,针对每列第四测试RGB数据,FPGA可以在第二测试图像中查找与该第四测试RGB数据的数值相同的目标第三测试RGB数据,并将该目标第三测试RGB数据所在的列确定为该第四测试RGB数据对应的第三目标列。Since the third test RGB data of each column of the second test image is different, therefore, for each column of the fourth test RGB data, the FPGA can search the second test image for the same target third test with the numerical value of the fourth test RGB data. RGB data, and determine the column where the target third test RGB data is located as the third target column corresponding to the fourth test RGB data.
例如,第二测试图像中有4列第三测试RGB数据,针对某列第四测试RGB数据,FPGA确定该列第四测试RGB数据的数值与该第二测试图像中第三列的第三测试RGB数据的数值相同,则该FPGA确定第三列为该第四测试RGB数据对应的第三目标列。For example, there are 4 columns of the third test RGB data in the second test image, and for a certain column of the fourth test RGB data, the FPGA determines that the value of the column's fourth test RGB data is consistent with the third test value of the third column in the second test image. If the values of the RGB data are the same, the FPGA determines that the third column is the third target column corresponding to the fourth test RGB data.
方式二:FPGA根据预先保存的第一VBO信号线的第一编号与列的对应关系,对每个第二VBO信号线传输的第四测试RGB数据进行拼接,使得FPGA还原得到TCON确定的预测图像。该FPGA根据将该预测图像与第二测试图像进行比较,并根据第二测试图像中的第三测试RGB数据的顺序,对该预测图像中的第四测试RGB数据的顺序进行调整,使得该预测图像与第二测试图像一致。针对每列第四测试RGB数据,FPGA确定该第四测试RGB数据在调整后的预测图像所在的列,并将该列确定为该第四测试RGB数据对应的第三目标列。Method 2: According to the correspondence between the first serial number and the column of the first VBO signal line saved in advance, the FPGA splices the fourth test RGB data transmitted by each second VBO signal line, so that the FPGA restores and obtains the predicted image determined by TCON . The FPGA compares the prediction image with the second test image, and adjusts the order of the fourth test RGB data in the prediction image according to the order of the third test RGB data in the second test image, so that the prediction The image agrees with the second test image. For each column of the fourth test RGB data, the FPGA determines the column where the fourth test RGB data is located in the adjusted predicted image, and determines this column as the third target column corresponding to the fourth test RGB data.
此外,在本申请实施例中,TCON在确定了预测图像之后,该TCON还可以控制显示屏显示该预测图像,技术人员可以通过上位机从FPGA中获取该FPGA生成的第二测试图像,并根据该第二测试图像和该预测图像,确定第二VBO信号线的第二编号与列的对应关系。该技术人员通过MCU将该对应关系写入到FPGA中。In addition, in the embodiment of the present application, after the TCON determines the predicted image, the TCON can also control the display screen to display the predicted image, and the technician can obtain the second test image generated by the FPGA from the FPGA through the host computer, and according to The second test image and the predictive image determine the correspondence between the second number and the column of the second VBO signal line. The technician writes the corresponding relationship into the FPGA through the MCU.
此外,FPGA在生成第二测试图像时,该第二测试图像中还可以包括两个第二传输组或多个第二传输组。其中,在本申请实施例中,FPGA在生成两个第二传输组的第二测试图像时,可以先生成两个子测试图像,分别为第一子测试图像和第二子测试图像。FPGA将该第一子测试图像与该第二子测试图像进行拼接,得到第二测试图像。其中,为了提高图像的显示效果,第一子测试图像中的一个第二传输组的子测试RGB数据为白色像素点对应的RGB数据,该第二子测试图像中的另一个第二传输组的子测试RGB数据为黑色像素点对应的RGB数据;该第二子测试图像中的两个第二传输组的子测试RGB数据相同,但是同一个第二传输组的不同列的子RGB数据不同。In addition, when the FPGA generates the second test image, the second test image may further include two second transmission groups or multiple second transmission groups. Wherein, in the embodiment of the present application, when the FPGA generates the second test images of the two second transmission groups, it may first generate two sub-test images, which are respectively the first sub-test image and the second sub-test image. The FPGA splices the first sub-test image and the second sub-test image to obtain a second test image. Wherein, in order to improve the display effect of the image, the sub-test RGB data of one second transmission group in the first sub-test image is the RGB data corresponding to the white pixel, and the other second transmission group in the second sub-test image The sub-test RGB data is RGB data corresponding to black pixels; the sub-test RGB data of the two second transmission groups in the second sub-test image are the same, but the sub-RGB data of different columns of the same second transmission group are different.
图7为本申请实施例提供的FPGA的数据检测比对模块内部的结构示意图,如该图7所示,数据检测比对模块内部包括VBO RX测试图卡生成模块、VBO RX测试图卡提取模块、VBO RX数据比对模块、VBO TX参考图卡生成模块、VBO TX检测图卡生成模块以及图卡拼接组合模块。其中,VBO RX测试图卡生成模块用于产生第一测试图像,并将该第一测试图像通过上位机读出到PC,发送给SCO芯片;VBO RX测试图卡提取模块,用于将接收到的SOC发送的第二测试RGB数据进行解析,提取图像识别信息;VBO RX数据比对模块用于比对第二测试RGB数据及VBO RX测试图卡生成模块产生的第一测试RGB数据,自动识别出FPGA的第二VBO信号线的第一编号与列的对应关系,并将该对应关系以寄存器的形式写入到接收数据重组模块;VBO TX参考图卡生成模块用于生成第一子测试图像;VBO TX检测图卡生成模块用于生成第二子测试图像;图卡拼接组合模块用于将第一子测试图像和第二子测试图像进行拼接,得到第二测试图像。Fig. 7 is the internal structure schematic diagram of the data detection comparison module of the FPGA that the embodiment of the present application provides, as shown in this Fig. 7, the data detection comparison module includes VBO RX test chart generation module, VBO RX test chart card extraction module inside , VBO RX data comparison module, VBO TX reference chart generation module, VBO TX detection chart generation module and chart splicing combination module. Wherein, the VBO RX test pattern card generating module is used to generate the first test image, and the first test image is read out to the PC through the host computer, and sent to the SCO chip; the VBO RX test pattern card extraction module is used to receive the Analyze the second test RGB data sent by the SOC to extract image recognition information; the VBO RX data comparison module is used to compare the second test RGB data and the first test RGB data generated by the VBO RX test chart generation module, and automatically identify The corresponding relationship between the first serial number and the column of the second VBO signal line of the FPGA, and write the corresponding relationship into the receiving data recombination module in the form of a register; the VBO TX reference image card generation module is used to generate the first sub-test image ; The VBO TX detection chart generation module is used to generate the second sub-test image; the chart splicing and combination module is used to splice the first sub-test image and the second sub-test image to obtain the second test image.
图8为本申请实施例提供的两个第二传输组的第二测试图像的示意图,如该图8所示,该第二测试图像由两个子测试图像组成,分别为第一子测试图像和第二子测试图像。其中,第一子测试图像中的一个第二传输组的子测试RGB数据为白色像素点对应的RGB数据,该第二子测试图像中的另一个第二传输组的子测试RGB数据为黑色像素点对应的RGB数据;该第二子测试图像中的两个第二传输组的子测试RGB数据相同,但是同一个第二传输组的不同列的子RGB数据不同。FIG. 8 is a schematic diagram of the second test images of the two second transmission groups provided by the embodiment of the present application. As shown in FIG. 8, the second test image is composed of two sub-test images, which are respectively the first sub-test image and The second subtest image. Wherein, the sub-test RGB data of a second transmission group in the first sub-test image is RGB data corresponding to white pixels, and the sub-test RGB data of another second transmission group in the second sub-test image is black pixels The RGB data corresponding to the point; the sub-test RGB data of the two second transmission groups in the second sub-test image are the same, but the sub-RGB data of different columns of the same second transmission group are different.
在图8的基础上,图9为本申请实施例提供的两个第二传输组的第二测试图像对应的预测图像的示意图,如该图9所示,预测图像的每个第二传输组与第一测试图像的每个第二传输组的第二列和第三列不同。On the basis of Fig. 8, Fig. 9 is a schematic diagram of the predicted images corresponding to the second test images of the two second transmission groups provided by the embodiment of the present application. As shown in Fig. 9, each second transmission group of the predicted images Different from the second and third columns of each second transmission group of the first test image.
图10为本申请实施例提供的第二VBO信号线的第二编号与列的对应关系的确定流程示意图,如该图10所示,该过程包括:Fig. 10 is a schematic flowchart of determining the corresponding relationship between the second number and the column of the second VBO signal line provided by the embodiment of the present application. As shown in Fig. 10 , the process includes:
S1001:上位机向FPGA发送VBO TX信号线顺序调试命令。S1001: The host computer sends a VBO TX signal line sequential debugging command to the FPGA.
S1002:FPGA的VBO TX参考图卡生成模块生成第一子测试图像。S1002: The VBO TX reference image card generating module of the FPGA generates a first sub-test image.
S1003:FPGA的VBO TX检测图卡生成模块生成第二子测试图像。S1003: The VBO TX detection pattern generation module of the FPGA generates a second sub-test pattern.
S1004:图卡拼接组合模块将第一子测试图像和第二子测试图像拼接到一起,得到第二测试图像。S1004: The picture card splicing and combining module splices the first sub-test image and the second sub-test image together to obtain a second test image.
S1005:接收SOC通过该第一VBO信号线发送的该预测图像的每列像素点的第四测试RGB数据。S1005: Receive the fourth test RGB data of each column of pixels of the prediction image sent by the SOC through the first VBO signal line.
S1006:针对每列第四测试RGB数据,确定该列第四测试RGB数据在所述第二测试图像中对应的第三目标列,并将所述第三目标列与传输该列第四测试RGB数据的第二VBO信号线的第二编号对应保存。S1006: For each column of fourth test RGB data, determine the third target column corresponding to the column of fourth test RGB data in the second test image, and transmit the third target column and the column of fourth test RGB data The data corresponding to the second number of the second VBO signal line is stored.
为了将RGB数据发送给TCON,在上述各实施例的基础上,在本申请实施例中,所述根据所述每个第二传输组中每列RGB数据对应的第二编号的第二VBO信号线,向所述TCON发送所述目标图像中的每列RGB数据包括:In order to send RGB data to TCON, on the basis of the above-mentioned embodiments, in the embodiment of the present application, the second VBO signal of the second number corresponding to each column of RGB data in each second transmission group line, sending each column of RGB data in the target image to the TCON includes:
根据每个第二传输组中包含的序号最小的一列RGB数据,对所述每个第二传输组进行排序;其中,所述序号为每列RGB数据在所述目标图像中的排序;Sorting each second transmission group according to a column of RGB data with the smallest sequence number contained in each second transmission group; wherein, the sequence number is the sequence of each column of RGB data in the target image;
根据排序结果,依次针对每个第二传输组,根据该第二传输组中每列RGB数据对应的第二编号的第二VBO信号线,向所述TCON发送该第二传输组中的每列RGB数据。According to the sorting result, for each second transmission group in turn, according to the second VBO signal line of the second number corresponding to each column of RGB data in the second transmission group, send each column in the second transmission group to the TCON RGB data.
在本申请实施例中,FPGA在根据每个第二传输组中每列RGB数据对应的第二编号的第二VBO信号线,向TCON发送目标图像中的每列RGB数据时,该FPGA根据每个第二传输组中包含的序号最小的一列RGB数据,对所述每个第二传输组进行排序,使得FPGA将排序结果确定为每个第二传输组中的每列RGB数据在对应的第二VBO信号线中的传输顺序。In the embodiment of the present application, when the FPGA sends each column of RGB data in the target image to TCON according to the second VBO signal line of the second number corresponding to each column of RGB data in each second transmission group, the FPGA transmits each column of RGB data in the target image according to each A column of RGB data with the smallest sequence number included in the second transmission group, sorting each second transmission group, so that the FPGA determines the sorting result as each column of RGB data in each second transmission group in the corresponding first The transmission sequence in the two VBO signal lines.
具体的,FPGA根据排序结果,依次针对每个第二传输组,根据该第二传输组中每列RGB数据对应的第二编号的第二VBO信号线,向所述TCON发送该第二传输组中的每列RGB数据。Specifically, according to the sorting result, the FPGA sends the second transmission group to the TCON according to the second VBO signal line of the second number corresponding to each column of RGB data in the second transmission group for each second transmission group in turn. Each column of RGB data in .
图11为本申请实施例提供的一种图像处理装置结构示意图,该装置包括:Fig. 11 is a schematic structural diagram of an image processing device provided in an embodiment of the present application, the device includes:
接收模块1101,用于接收系统级芯片SOC通过第一预设数量个第一VBO信号线发送的每列RGB数据,确定每个第一传输组中包含的每列RGB数据;The
确定模块1102,用于针对每个第一传输组,根据该第一传输组包含的每列RGB数据对应的第一VBO信号线,以及预先保存的第一VBO信号线的第一编号与列的对应关系,确定该第一传输组中每列RGB数据所在的第一目标列;其中,每个第一传输组中包含所述第一预设数量列RGB数据;根据所述每个第一传输组中每列RGB数据所在的第一目标列及第一传输组的顺序,确定目标图像。The determining
在一种可能的实施方式中,所述确定模块1102,具体用于针对该第一传输组中的每列RGB数据,确定该列RGB数据对应的目标第一VBO信号线;根据所述对应关系,确定所述目标第一VBO信号线的目标第一编号对应的列,将所述列确定为该列RGB数据所在的第一目标列。In a possible implementation manner, the determining
在一种可能的实施方式中,所述确定模块1102,还用于将生成的第一测试图像通过上位机发送给所述SOC,其中所述第一测试图像中的每列第一测试RGB数据不同,且所述第一测试图像中包含第一预设数量个列;向所述SOC发送携带有发送每列RGB数据的发送指令,并接收所述SOC通过所述第一预设数量个第一VBO信号线发送的每列第二测试RGB数据;针对每列第二测试RGB数据,确定该列第二测试RGB数据在所述第一测试图像中对应的第二目标列,并将所述第二目标列与传输该列第二测试RGB数据的第一VBO信号线的第一编号对应保存。In a possible implementation manner, the determining
在一种可能的实施方式中,所述确定模块1102,还用于确定每个RGB数据在对应的第一VBO信号线中的传输顺序;将传输顺序相同的RGB数据确定为一个第一传输组。In a possible implementation manner, the
在一种可能的实施方式中,所述确定模块1102,还用于获取保存的所述FPGA与时序控制器TCON连接的第二VBO信号线的第二预设数量,并根据所述第二预设数量,对所述目标图像中的每列RGB数据进行分组,确定每个第二传输组;根据预先保存的第二VBO信号线的第二编号与列的对应关系,确定所述目标图像中每个第二传输组的每个列对应的第二编号的第二VBO信号线;In a possible implementation manner, the
所述装置还包括:The device also includes:
发送模块1103,用于采用所述每个第二传输组中每列RGB数据对应的第二编号的第二VBO信号线,向所述TCON发送所述目标图像中的每列RGB数据。The sending
在一种可能的实施方式中,所述确定模块1102,还用于将生成的第二测试图像的第三测试RGB数据发送给所述TCON,使得所述TCON根据接收到第三测试RGB数据进行排序得到预测图像,并将所述预测图像发送给所述SOC;其中所述第二测试图像中的每列第三测试RGB数据不同,且所述第二测试图像中包含第二预设数量个列;接收所述SOC通过所述第一VBO信号线发送的所述预测图像的每列像素点的第四测试RGB数据;针对每列第四测试RGB数据,确定该列第四测试RGB数据在所述第二测试图像中对应的第三目标列,并将所述第三目标列与传输该列第四测试RGB数据的第二VBO信号线的第二编号对应保存。In a possible implementation manner, the determining
在一种可能的实施方式中,所述发送模块1103,具体用于根据每个第二传输组中包含的序号最小的一列RGB数据,对所述每个第二传输组进行排序;其中,所述序号为每列RGB数据在所述目标图像中的排序;根据排序结果,依次针对每个第二传输组,根据该第二传输组中每列RGB数据对应的第二编号的第二VBO信号线,向所述TCON发送该第二传输组中的每列RGB数据。In a possible implementation manner, the sending
在本申请实施例中,该数据传输装置部署于基准监视器的FPGA中。In the embodiment of the present application, the data transmission device is deployed in the FPGA of the reference monitor.
在上述实施例的基础上,本申请实施例还提供了一种电子设备,图12为本申请实施例提供的一种电子设备结构示意图,如图12所示,包括:处理器1201、通信接口1202、存储器1203和通信总线1204,其中,处理器1201,通信接口1202,存储器1203通过通信总线1204完成相互间的通信;On the basis of the above embodiments, the embodiment of the present application also provides an electronic device. FIG. 12 is a schematic structural diagram of an electronic device provided in the embodiment of the present application. As shown in FIG. 12 , it includes: a
存储器1203中存储有计算机程序,当程序被处理器1201执行时,使得处理器1201执行如下步骤:A computer program is stored in the
接收系统级芯片SOC通过第一预设数量个第一VBO信号线发送的每列RGB数据,确定每个第一传输组中包含的每列RGB数据;Receiving each column of RGB data sent by the system-on-chip SOC through the first preset number of first VBO signal lines, and determining each column of RGB data contained in each first transmission group;
针对每个第一传输组,根据该第一传输组包含的每列RGB数据对应的第一VBO信号线,以及预先保存的第一VBO信号线的第一编号与列的对应关系,确定该第一传输组中每列RGB数据所在的第一目标列;其中,每个第一传输组中包含所述第一预设数量列RGB数据;For each first transmission group, according to the first VBO signal line corresponding to each column of RGB data contained in the first transmission group, and the pre-saved correspondence between the first number of the first VBO signal line and the column, determine the first VBO signal line The first target column where each column of RGB data in a transmission group is located; wherein, each first transmission group contains the first preset number of columns of RGB data;
根据所述每个第一传输组中每列RGB数据所在的第一目标列及第一传输组的顺序,确定目标图像。The target image is determined according to the first target column where each column of RGB data in each first transmission group is located and the order of the first transmission group.
在一种可能的实施方式中,所述处理器还用于:In a possible implementation manner, the processor is further configured to:
针对该第一传输组中的每列RGB数据,确定该列RGB数据对应的目标第一VBO信号线;根据所述对应关系,确定所述目标第一VBO信号线的目标第一编号对应的列,将所述列确定为该列RGB数据所在的第一目标列。For each column of RGB data in the first transmission group, determine the target first VBO signal line corresponding to the column of RGB data; according to the correspondence, determine the column corresponding to the target first number of the target first VBO signal line , determining the column as the first target column where the RGB data of the column is located.
在一种可能的实施方式中,所述处理器还用于:In a possible implementation manner, the processor is further configured to:
将生成的第一测试图像通过上位机发送给所述SOC,其中所述第一测试图像中的每列第一测试RGB数据不同,且所述第一测试图像中包含第一预设数量个列;Send the generated first test image to the SOC through the host computer, wherein the first test RGB data of each column in the first test image is different, and the first test image contains a first preset number of columns ;
向所述SOC发送携带有发送每列RGB数据的发送指令,并接收所述SOC通过所述第一预设数量个第一VBO信号线发送的每列第二测试RGB数据;sending to the SOC a sending instruction carrying sending each column of RGB data, and receiving each column of second test RGB data sent by the SOC through the first preset number of first VBO signal lines;
针对每列第二测试RGB数据,确定该列第二测试RGB数据在所述第一测试图像中对应的第二目标列,并将所述第二目标列与传输该列第二测试RGB数据的第一VBO信号线的第一编号对应保存。For each column of the second test RGB data, determine the second target column corresponding to the column of the second test RGB data in the first test image, and combine the second target column with the column that transmits the column of the second test RGB data The first serial number of the first VBO signal line is stored correspondingly.
在一种可能的实施方式中,所述处理器还用于:In a possible implementation manner, the processor is further configured to:
确定每个RGB数据在对应的第一VBO信号线中的传输顺序;Determine the transmission order of each RGB data in the corresponding first VBO signal line;
将传输顺序相同的RGB数据确定为一个第一传输组。Determine the RGB data with the same transmission sequence as a first transmission group.
在一种可能的实施方式中,所述处理器还用于:In a possible implementation manner, the processor is further configured to:
获取保存的所述FPGA与时序控制器TCON连接的第二VBO信号线的第二预设数量,并根据所述第二预设数量,对所述目标图像中的每列RGB数据进行分组,确定每个第二传输组;Obtaining the saved second preset number of the second VBO signal lines connected between the FPGA and the timing controller TCON, and grouping each column of RGB data in the target image according to the second preset number, and determining each second transmission group;
根据预先保存的第二VBO信号线的第二编号与列的对应关系,确定所述目标图像中每个第二传输组的每个列对应的第二编号的第二VBO信号线;According to the correspondence between the second number and the column of the second VBO signal line saved in advance, determine the second VBO signal line of the second number corresponding to each column of each second transmission group in the target image;
采用所述每个第二传输组中每列RGB数据对应的第二编号的第二VBO信号线,向所述TCON发送所述目标图像中的每列RGB数据。Send each column of RGB data in the target image to the TCON by using the second numbered second VBO signal line corresponding to each column of RGB data in each second transmission group.
在一种可能的实施方式中,所述处理器还用于:In a possible implementation manner, the processor is further configured to:
将生成的第二测试图像的第三测试RGB数据发送给所述TCON,使得所述TCON根据接收到第三测试RGB数据进行排序得到预测图像,并将所述预测图像发送给所述SOC;其中所述第二测试图像中的每列第三测试RGB数据不同,且所述第二测试图像中包含第二预设数量个列;Send the third test RGB data of the generated second test image to the TCON, so that the TCON sorts the received third test RGB data to obtain a predicted image, and sends the predicted image to the SOC; wherein The third test RGB data of each column in the second test image is different, and the second test image includes a second preset number of columns;
接收所述SOC通过所述第一VBO信号线发送的所述预测图像的每列像素点的第四测试RGB数据;receiving the fourth test RGB data of each column of pixels of the predicted image sent by the SOC through the first VBO signal line;
针对每列第四测试RGB数据,确定该列第四测试RGB数据在所述第二测试图像中对应的第三目标列,并将所述第三目标列与传输该列第四测试RGB数据的第二VBO信号线的第二编号对应保存。For each column of the fourth test RGB data, determine the third target column corresponding to the column of the fourth test RGB data in the second test image, and combine the third target column with the column that transmits the column of the fourth test RGB data. The second number corresponding to the second VBO signal line is saved.
在一种可能的实施方式中,所述处理器还用于:In a possible implementation manner, the processor is further configured to:
根据每个第二传输组中包含的序号最小的一列RGB数据,对所述每个第二传输组进行排序;其中,所述序号为每列RGB数据在所述目标图像中的排序;Sorting each second transmission group according to a column of RGB data with the smallest sequence number contained in each second transmission group; wherein, the sequence number is the sequence of each column of RGB data in the target image;
根据排序结果,依次针对每个第二传输组,根据该第二传输组中每列RGB数据对应的第二编号的第二VBO信号线,向所述TCON发送该第二传输组中的每列RGB数据。According to the sorting result, for each second transmission group in turn, according to the second VBO signal line of the second number corresponding to each column of RGB data in the second transmission group, send each column in the second transmission group to the TCON RGB data.
由于上述电子设备解决问题的原理与图像处理方法相似,因此上述电子设备的实施可以参见方法的实施例,重复之处不再赘述。Since the problem-solving principle of the above-mentioned electronic device is similar to that of the image processing method, the implementation of the above-mentioned electronic device can refer to the embodiment of the method, and the repetition will not be repeated.
上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral ComponentInterconnect,PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。通信接口1202用于上述电子设备与其他设备之间的通信。存储器可以包括随机存取存储器(RandomAccess Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选地,存储器还可以是至少一个位于远离前述处理器的存储装置。The communication bus mentioned in the above electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The
上述处理器可以是通用处理器,包括中央处理器、网络处理器(NetworkProcessor,NP)等;还可以是数字指令处理器(Digital Signal Processing,DSP)、专用集成电路、现场可编程门陈列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。Above-mentioned processor can be general-purpose processor, comprises central processing unit, network processor (NetworkProcessor, NP) etc.; Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
在上述各实施例的基础上,本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质内存储有可由处理器执行的计算机程序,当程序在处理器上运行时,使得处理器执行时实现如下步骤:On the basis of the above-mentioned embodiments, an embodiment of the present invention also provides a computer-readable storage medium, in which a computer program executable by a processor is stored, and when the program is run on the processor, the The following steps are implemented when the processor executes:
接收系统级芯片SOC通过第一预设数量个第一VBO信号线发送的每列RGB数据,确定每个第一传输组中包含的每列RGB数据;Receiving each column of RGB data sent by the system-on-chip SOC through the first preset number of first VBO signal lines, and determining each column of RGB data contained in each first transmission group;
针对每个第一传输组,根据该第一传输组包含的每列RGB数据对应的第一VBO信号线,以及预先保存的第一VBO信号线的第一编号与列的对应关系,确定该第一传输组中每列RGB数据所在的第一目标列;其中,每个第一传输组中包含所述第一预设数量列RGB数据;For each first transmission group, according to the first VBO signal line corresponding to each column of RGB data contained in the first transmission group, and the pre-saved correspondence between the first number of the first VBO signal line and the column, determine the first VBO signal line The first target column where each column of RGB data in a transmission group is located; wherein, each first transmission group contains the first preset number of columns of RGB data;
根据所述每个第一传输组中每列RGB数据所在的第一目标列及第一传输组的顺序,确定目标图像。The target image is determined according to the first target column where each column of RGB data in each first transmission group is located and the order of the first transmission group.
在一种可能的实施方式中,所述根据该第一传输组包含的每列RGB数据对应的第一VBO信号线,以及预先保存的第一VBO信号线的第一编号与列的对应关系,确定该第一传输组中每列RGB数据所在的第一目标列包括:In a possible implementation manner, according to the first VBO signal line corresponding to each column of RGB data included in the first transmission group, and the pre-saved correspondence between the first serial number and the column of the first VBO signal line, Determining the first target column where each column of RGB data is located in the first transmission group includes:
针对该第一传输组中的每列RGB数据,确定该列RGB数据对应的目标第一VBO信号线;根据所述对应关系,确定所述目标第一VBO信号线的目标第一编号对应的列,将所述列确定为该列RGB数据所在的第一目标列。For each column of RGB data in the first transmission group, determine the target first VBO signal line corresponding to the column of RGB data; according to the correspondence, determine the column corresponding to the target first number of the target first VBO signal line , determining the column as the first target column where the RGB data of the column is located.
在一种可能的实施方式中,所述第一VBO信号线的第一编号与列的对应关系的确定过程包括:In a possible implementation manner, the process of determining the correspondence between the first serial number and the column of the first VBO signal line includes:
将生成的第一测试图像通过上位机发送给所述SOC,其中所述第一测试图像中的每列第一测试RGB数据不同,且所述第一测试图像中包含第一预设数量个列;Send the generated first test image to the SOC through the host computer, wherein the first test RGB data of each column in the first test image is different, and the first test image contains a first preset number of columns ;
向所述SOC发送携带有发送每列RGB数据的发送指令,并接收所述SOC通过所述第一预设数量个第一VBO信号线发送的每列第二测试RGB数据;sending to the SOC a sending instruction carrying sending each column of RGB data, and receiving each column of second test RGB data sent by the SOC through the first preset number of first VBO signal lines;
针对每列第二测试RGB数据,确定该列第二测试RGB数据在所述第一测试图像中对应的第二目标列,并将所述第二目标列与传输该列第二测试RGB数据的第一VBO信号线的第一编号对应保存。For each column of the second test RGB data, determine the second target column corresponding to the column of the second test RGB data in the first test image, and combine the second target column with the column that transmits the column of the second test RGB data The first serial number of the first VBO signal line is stored correspondingly.
在一种可能的实施方式中,所述每个第一传输组的确定过程包括:In a possible implementation manner, the process of determining each first transmission group includes:
确定每个RGB数据在对应的第一VBO信号线中的传输顺序;Determine the transmission order of each RGB data in the corresponding first VBO signal line;
将传输顺序相同的RGB数据确定为一个第一传输组。Determine the RGB data with the same transmission sequence as a first transmission group.
在一种可能的实施方式中,所述方法还包括:In a possible implementation manner, the method also includes:
获取保存的所述FPGA与时序控制器TCON连接的第二VBO信号线的第二预设数量,并根据所述第二预设数量,对所述目标图像中的每列RGB数据进行分组,确定每个第二传输组;Obtaining the saved second preset number of the second VBO signal lines connected between the FPGA and the timing controller TCON, and grouping each column of RGB data in the target image according to the second preset number, and determining each second transmission group;
根据预先保存的第二VBO信号线的第二编号与列的对应关系,确定所述目标图像中每个第二传输组的每个列对应的第二编号的第二VBO信号线;According to the correspondence between the second number and the column of the second VBO signal line saved in advance, determine the second VBO signal line of the second number corresponding to each column of each second transmission group in the target image;
采用所述每个第二传输组中每列RGB数据对应的第二编号的第二VBO信号线,向所述TCON发送所述目标图像中的每列RGB数据。Send each column of RGB data in the target image to the TCON by using the second numbered second VBO signal line corresponding to each column of RGB data in each second transmission group.
在一种可能的实施方式中,所述第二VBO信号线的第二编号与列的对应关系的确定过程包括:In a possible implementation manner, the process of determining the correspondence between the second number and the column of the second VBO signal line includes:
将生成的第二测试图像的第三测试RGB数据发送给所述TCON,使得所述TCON根据接收到第三测试RGB数据进行排序得到预测图像,并将所述预测图像发送给所述SOC;其中所述第二测试图像中的每列第三测试RGB数据不同,且所述第二测试图像中包含第二预设数量个列;Send the third test RGB data of the generated second test image to the TCON, so that the TCON sorts the received third test RGB data to obtain a predicted image, and sends the predicted image to the SOC; wherein The third test RGB data of each column in the second test image is different, and the second test image includes a second preset number of columns;
接收所述SOC通过所述第一VBO信号线发送的所述预测图像的每列像素点的第四测试RGB数据;receiving the fourth test RGB data of each column of pixels of the predicted image sent by the SOC through the first VBO signal line;
针对每列第四测试RGB数据,确定该列第四测试RGB数据在所述第二测试图像中对应的第三目标列,并将所述第三目标列与传输该列第四测试RGB数据的第二VBO信号线的第二编号对应保存。For each column of the fourth test RGB data, determine the third target column corresponding to the column of the fourth test RGB data in the second test image, and combine the third target column with the column that transmits the column of the fourth test RGB data. The second number corresponding to the second VBO signal line is saved.
在一种可能的实施方式中,所述根据所述每个第二传输组中每列RGB数据对应的第二编号的第二VBO信号线,向所述TCON发送所述目标图像中的每列RGB数据包括:In a possible implementation manner, according to the second VBO signal line with the second number corresponding to each column of RGB data in each second transmission group, each column in the target image is sent to the TCON RGB data includes:
根据每个第二传输组中包含的序号最小的一列RGB数据,对所述每个第二传输组进行排序;其中,所述序号为每列RGB数据在所述目标图像中的排序;Sorting each second transmission group according to a column of RGB data with the smallest sequence number contained in each second transmission group; wherein, the sequence number is the sequence of each column of RGB data in the target image;
根据排序结果,依次针对每个第二传输组,根据该第二传输组中每列RGB数据对应的第二编号的第二VBO信号线,向所述TCON发送该第二传输组中的每列RGB数据。According to the sorting result, for each second transmission group in turn, according to the second VBO signal line of the second number corresponding to each column of RGB data in the second transmission group, send each column in the second transmission group to the TCON RGB data.
由于上述计算机可读存储介质解决问题的原理与图像处理方法相似,因此上述计算机可读存储介质的实施可以参见方法的实施例,重复之处不再赘述。Since the problem-solving principle of the above-mentioned computer-readable storage medium is similar to that of the image processing method, the implementation of the above-mentioned computer-readable storage medium can refer to the embodiment of the method, and repeated descriptions will not be repeated.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211183091.8A CN115601219B (en) | 2022-09-27 | 2022-09-27 | Image processing method, device, reference monitor and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211183091.8A CN115601219B (en) | 2022-09-27 | 2022-09-27 | Image processing method, device, reference monitor and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115601219A true CN115601219A (en) | 2023-01-13 |
CN115601219B CN115601219B (en) | 2025-06-27 |
Family
ID=84845042
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211183091.8A Active CN115601219B (en) | 2022-09-27 | 2022-09-27 | Image processing method, device, reference monitor and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115601219B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118762625A (en) * | 2024-09-05 | 2024-10-11 | 海的电子科技(苏州)有限公司 | Screenless testing method and related products of LCD timing control board |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109068132A (en) * | 2018-08-22 | 2018-12-21 | 广州视源电子科技股份有限公司 | VBO display interface test method, device, equipment and storage medium |
CN111726668A (en) * | 2020-06-05 | 2020-09-29 | 青岛信芯微电子科技股份有限公司 | FPGA, double-screen television, startup display method, equipment and medium |
CN112367557A (en) * | 2020-10-29 | 2021-02-12 | 深圳Tcl数字技术有限公司 | Display method of LED television wall, television and computer readable storage medium |
CN113628304A (en) * | 2021-10-09 | 2021-11-09 | 湖北芯擎科技有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
US20220253183A1 (en) * | 2021-02-05 | 2022-08-11 | Boe Technology Group Co., Ltd. | Display device and display method thereof |
-
2022
- 2022-09-27 CN CN202211183091.8A patent/CN115601219B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109068132A (en) * | 2018-08-22 | 2018-12-21 | 广州视源电子科技股份有限公司 | VBO display interface test method, device, equipment and storage medium |
CN111726668A (en) * | 2020-06-05 | 2020-09-29 | 青岛信芯微电子科技股份有限公司 | FPGA, double-screen television, startup display method, equipment and medium |
CN112367557A (en) * | 2020-10-29 | 2021-02-12 | 深圳Tcl数字技术有限公司 | Display method of LED television wall, television and computer readable storage medium |
US20220253183A1 (en) * | 2021-02-05 | 2022-08-11 | Boe Technology Group Co., Ltd. | Display device and display method thereof |
CN113628304A (en) * | 2021-10-09 | 2021-11-09 | 湖北芯擎科技有限公司 | Image processing method, image processing device, electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
何振琦;李光明;张慧琳;李颀: "高速图像采集系统的研究及FPGA实现", 计算机应用, vol. 30, no. 11, 26 November 2010 (2010-11-26) * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118762625A (en) * | 2024-09-05 | 2024-10-11 | 海的电子科技(苏州)有限公司 | Screenless testing method and related products of LCD timing control board |
Also Published As
Publication number | Publication date |
---|---|
CN115601219B (en) | 2025-06-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11573872B2 (en) | Leveraging low power states for fault testing of processing cores at runtime | |
US11915058B2 (en) | Video processing method and device, electronic equipment and storage medium | |
CN102053899A (en) | Memory test method and system | |
US8749534B2 (en) | Low-cost and pixel-accurate test method and apparatus for testing pixel generation circuits | |
WO2024060506A1 (en) | Method and apparatus for debugging in baseboard management control chip, device, and readable medium | |
CN112399095A (en) | Video processing method, device and system | |
CN115601219A (en) | Image processing method, device, reference monitor and medium | |
KR20210057354A (en) | Electronic apparatus and control method thereof | |
US8953893B2 (en) | System and method to determine feature candidate pixels of an image | |
US20110141290A1 (en) | System and method for testing video graphics array signal groups | |
US11106478B2 (en) | Simulation device, simulation method, and computer readable medium | |
CN111859630B (en) | A kind of image compression simulation verification method, device, device and readable storage medium | |
CN212230036U (en) | Display panel detection device and system | |
US9250683B2 (en) | System, method, and computer program product for allowing a head to enter a reduced power mode | |
US8990624B2 (en) | Emulator verification system, emulator verification method | |
US20220377390A1 (en) | Video processing device, video processing method, monitor apparatus, computer device, and medium | |
US20210173989A1 (en) | Simulation signal viewing method and system for digital product | |
CN111179151B (en) | Method and device for improving graphic rendering efficiency and computer storage medium | |
US20210173994A1 (en) | Method and system for viewing simulation signals of a digital product | |
TWI418816B (en) | Error checking system for high resolution and high frequency image processing chip | |
US20250029201A1 (en) | Image processing support device, image processing support method, and computer readable medium | |
CN211505255U (en) | Display panel detection device and system | |
KR101621662B1 (en) | Computer test apparatus and method thereof | |
US12133020B1 (en) | Method and system for verifying image interface and image equipment | |
US12216163B2 (en) | Systems and methods of testing devices using CXL for increased parallelism |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |