CN114554155A - Remote image acquisition device - Google Patents
Remote image acquisition device Download PDFInfo
- Publication number
- CN114554155A CN114554155A CN202210180526.7A CN202210180526A CN114554155A CN 114554155 A CN114554155 A CN 114554155A CN 202210180526 A CN202210180526 A CN 202210180526A CN 114554155 A CN114554155 A CN 114554155A
- Authority
- CN
- China
- Prior art keywords
- data
- module
- image
- signal
- image data
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/42—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
- H04N19/423—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/45—Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/617—Upgrading or updating of programs or applications for camera control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/66—Remote control of cameras or camera parts, e.g. by remote control devices
- H04N23/661—Transmitting camera control signals through networks, e.g. control via the Internet
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Software Systems (AREA)
- Image Processing (AREA)
Abstract
本发明公开了一种远程图像采集装置,先通过图像采集模块采集图像,然后在图像处理模块中,利用ZYNQ芯片的FPGA主要完成系统控制、数据的存储和传输以及后处理,ARM处理器则用于对ADC输入数据的前处理和输出数据至DAC;在PS端与PL端之间通过AXI总线进行数据交互,包括AXI4和AXI4_Lite总线,其中AXI4总线的数据位宽为64bit,用于传输数据量大、传输延时要求高的图像数据;AXI4_Lite总线的数据位宽为32bit,用于控制数据的传输。
The invention discloses a remote image acquisition device, which first collects images through an image acquisition module, and then in the image processing module, the FPGA of the ZYNQ chip is used to mainly complete system control, data storage and transmission and post-processing, and the ARM processor uses It is used for preprocessing ADC input data and outputting data to DAC; data exchange between PS terminal and PL terminal through AXI bus, including AXI4 and AXI4_Lite bus, in which the data bit width of AXI4 bus is 64bit, which is used to transmit data volume Large image data with high transmission delay requirements; the data bit width of the AXI4_Lite bus is 32bit, which is used to control the transmission of data.
Description
技术领域technical field
本发明属于图像采集技术领域,更为具体地讲,涉及一种远程图像采集装置。The invention belongs to the technical field of image acquisition, and more particularly, relates to a remote image acquisition device.
背景技术Background technique
图像的采集与存储设备已经广泛应用于工业生产、医疗卫生、航空航天等领域,提升图像数据处理速度与降低图像传输延迟对图像采集终端设备有着重大的意义。在特定的场景下,如远程手术、航天探测器、无人机电力巡检等,对图像远程传输的实时性和稳定性有着很高的要求,而在图像采集、传输及处理过程中需要大量的时间。例如,由模数转换器转换得到的尺寸为1728*625的8bit的数字化图像数据大小为1.03MB,当传感器高帧率、连续的采集图像时需要具备较高的传输带宽才能保证图像数据的完整性。除此之外,为了有效利用图像信息还需要对数据进行处理。传统的DSP或ARM处理器具有优秀的控制能力,但是取样速率较低、指令串行执行且系统使用浮点,很难对数据量大、像素相关性大、频带较宽的图像数据进行直接处理。Image acquisition and storage equipment has been widely used in industrial production, medical and health care, aerospace and other fields. It is of great significance to improve image data processing speed and reduce image transmission delay for image acquisition terminal equipment. In specific scenarios, such as remote surgery, space probes, UAV power inspection, etc., there are high requirements for the real-time and stability of remote image transmission, and a large number of images are required in the process of image acquisition, transmission and processing. time. For example, the 8-bit digital image data size of 1728*625 converted by the analog-to-digital converter is 1.03MB. When the sensor has high frame rate and continuous image acquisition, it needs to have a high transmission bandwidth to ensure the integrity of the image data. sex. In addition, in order to effectively utilize the image information, the data also needs to be processed. The traditional DSP or ARM processor has excellent control ability, but the sampling rate is low, the instructions are executed serially and the system uses floating point, it is difficult to directly process the image data with large data volume, high pixel correlation and wide frequency band .
目前FPGA器件具有的数据并发处理、流水线技术、边接收边处理、高速接口等特性同图像数据传输及处理的需求十分契合,但是在外设控制能力方面有所不足。为了构建一个图像传输延迟低、可远程网络图传、可程控的图像采集系统,本文采用Xilinx公司推出的ZYNQ高性能芯片,ZYNQ芯片内部融合了ARM处理器和FPGA,处理器与FPGA之间通过高速的AXI总线互联,这些特性能够实现处理速度、控制能力、传输速率的最大化,同时ARM处理器还能借助Linux系统搭载Gstreamer流媒体应用将处理好的图像数据推送到网络实现远程图传。At present, the characteristics of data concurrent processing, pipeline technology, receiving-while-processing, high-speed interface and other characteristics of FPGA devices are very compatible with the needs of image data transmission and processing, but they are insufficient in peripheral control capabilities. In order to build an image acquisition system with low image transmission delay, remote network image transmission, and programmable control, this paper adopts the ZYNQ high-performance chip launched by Xilinx. The ZYNQ chip integrates ARM processor and FPGA, and the processor and FPGA pass through High-speed AXI bus interconnection, these features can maximize the processing speed, control capability, and transmission rate. At the same time, the ARM processor can also use the Linux system to carry the Gstreamer streaming media application to push the processed image data to the network for remote image transmission.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于克服现有技术的不足,提供一种远程图像采集装置,通过嵌入式的软硬件和扩展口对图像传感器采集的数据进行实时的数据处理并将数据推送到网口,实现图像数据的远程采集。The purpose of the present invention is to overcome the deficiencies of the prior art, and to provide a remote image acquisition device, which performs real-time data processing on the data collected by the image sensor through embedded software and hardware and an expansion port, and pushes the data to the network port to realize the image acquisition. Remote collection of data.
为实现上述发明目的,本发明一种远程图像采集装置,其特征在于,包括:双通道的图像采集模块、高速实时的图像处理模块以及人机交互模块;In order to achieve the above purpose of the invention, a remote image acquisition device of the present invention is characterized by comprising: a dual-channel image acquisition module, a high-speed real-time image processing module and a human-computer interaction module;
所述双通道的图像采集模块包含两个图像采集传感器,图像采集传感器用于采集图像,再将采集的图像以光信号方式转换为电信号,转换后的电信号通过同轴线缆输入高速实时的图像处理模块;The dual-channel image acquisition module includes two image acquisition sensors, the image acquisition sensors are used to acquire images, and then the acquired images are converted into electrical signals in the form of optical signals, and the converted electrical signals are input into high-speed real-time through a coaxial cable. The image processing module;
所述高速实时的图像处理模块包括视频解码芯片、Zynq芯片、网口以及存储器;Zynq芯片又包括FPGA和ARM处理器;The high-speed real-time image processing module includes a video decoding chip, a Zynq chip, a network port and a memory; the Zynq chip also includes an FPGA and an ARM processor;
其中,ARM处理器运行嵌入式控制程序,负责接收远程PC机的指令,通过指令解析后通过AXI-Lite总线将控制信号传输至FPGA端,实现对视频解码芯片配置模块、通道选择模块、AXI_DMA IP核的配置,配置完成后对采集装置进行功能调度,具体为:视频解码芯片对图像采集传感器转换后的电信号进行解码处理,输出格式为ITU-R BT.656标准的数字视频信号,ARM处理器控制FPGA对数字视频信号进行图像数据重组,再将重组后的图像数据以DMA方式传输至存储器储存,同时通过网口传输给人机交互模块;Among them, the ARM processor runs the embedded control program and is responsible for receiving the instructions of the remote PC. After parsing the instructions, it transmits the control signal to the FPGA side through the AXI-Lite bus to realize the video decoding chip configuration module, channel selection module, AXI_DMA IP The configuration of the core, after the configuration is completed, the function scheduling of the acquisition device is performed, specifically: the video decoding chip decodes the electrical signal converted by the image acquisition sensor, and the output format is the digital video signal of the ITU-R BT.656 standard, which is processed by ARM. The controller controls the FPGA to reorganize the image data of the digital video signal, and then transmits the reorganized image data to the memory for storage by DMA, and transmits it to the human-computer interaction module through the network port at the same time;
所述人机交互模块用于配置图像采集装置的IP地址,实现信号的远程传输,同时通过显示器对采集的图像进行实时显示。The human-computer interaction module is used to configure the IP address of the image acquisition device, realize the remote transmission of the signal, and at the same time display the acquired image in real time through the display.
本发明的发明目的是这样实现的:The purpose of the invention of the present invention is achieved in this way:
本发明一种远程图像采集装置,先通过图像采集模块采集图像,然后在图像处理模块中,利用ZYNQ芯片的FPGA主要完成系统控制、数据的存储和传输以及后处理,ARM处理器则用于对ADC输入数据的前处理和输出数据至DAC;在PS端与PL端之间通过AXI总线进行数据交互,包括AXI4和AXI4_Lite总线,其中AXI4总线的数据位宽为64bit,用于传输数据量大、传输延时要求高的图像数据;AXI4_Lite总线的数据位宽为32bit,用于控制数据的传输。A remote image acquisition device of the present invention first collects images through an image acquisition module, and then in the image processing module, the FPGA of the ZYNQ chip is used to mainly complete system control, data storage and transmission, and post-processing, and the ARM processor is used to Pre-processing of ADC input data and output data to DAC; data exchange between PS terminal and PL terminal through AXI bus, including AXI4 and AXI4_Lite bus, where AXI4 bus has a data bit width of 64 bits, which is used to transmit large amounts of data, Image data with high transmission delay requirements; the data bit width of the AXI4_Lite bus is 32bit, which is used to control the transmission of data.
同时,本发明一种远程图像采集装置还具有以下有益效果:Meanwhile, a remote image acquisition device of the present invention also has the following beneficial effects:
(1)、装置的图像处理部分利用FPGA的逻辑资源实现高速并行的数据处理,可以实现图像数据流的边接收边处理;(1), the image processing part of the device utilizes the logic resources of the FPGA to realize high-speed parallel data processing, which can realize the processing while receiving the image data stream;
(2)、利用输入图像数据的格式,保留灰阶值Y不变,通过串并转换模块先进行传输位宽的拓展,再进一步压缩Cr、Cb,这样保留有效数据的同时减少数据传输量,有效提高了数据传输效率;(2) Using the format of the input image data, keep the gray-scale value Y unchanged, first expand the transmission bit width through the serial-parallel conversion module, and then further compress Cr and Cb, so as to retain the valid data and reduce the amount of data transmission, Effectively improve the efficiency of data transmission;
(3)、利用AXI-DMA传输处理完成的数据,可以直接将图像数据流转换成具有内存映射的数据存储在DDR存储器中,通过Zynq芯片内部的AXI互联总线进行的DMA传输相较于其他接口的DMA传输,传输效率更高;(3) Using AXI-DMA to transfer the processed data, the image data stream can be directly converted into data with memory mapping and stored in the DDR memory. Compared with other interfaces, the DMA transfer through the AXI interconnect bus inside the Zynq chip DMA transmission, the transmission efficiency is higher;
(4)、采用软件编程的方式来实现功能选择与部分电路掉电处理,从而摆脱了传统硬件平台的某些功能不使用但仍然存在大量功耗的现象。(4) The function selection and partial circuit power-down processing are realized by software programming, so as to get rid of the phenomenon that some functions of the traditional hardware platform are not used but still have a large amount of power consumption.
附图说明Description of drawings
图1是本发明一种远程图像采集装置结构框图;1 is a structural block diagram of a remote image acquisition device of the present invention;
图2是图像处理模块的结构框图;Fig. 2 is the structural block diagram of the image processing module;
图3是ITU-R BT.656标准625列数据格式示意图;Figure 3 is a schematic diagram of the ITU-R BT.656 standard 625-column data format;
图4是ITU-R BT.656标准625列数据格式的行数据示意图;Figure 4 is a schematic diagram of row data in the ITU-R BT.656 standard 625-column data format;
图5是辅助信号编码方式示意图;5 is a schematic diagram of an auxiliary signal encoding method;
图6是有效视频信号数据排列示意图;Fig. 6 is the schematic diagram of valid video signal data arrangement;
图7是图像采集系统人机交互界面示意图;Fig. 7 is the schematic diagram of the human-computer interaction interface of the image acquisition system;
图8是图像采集远程显示效果图。Figure 8 is an image acquisition remote display effect diagram.
具体实施方式Detailed ways
下面结合附图对本发明的具体实施方式进行描述,以便本领域的技术人员更好地理解本发明。需要特别提醒注意的是,在以下的描述中,当已知功能和设计的详细描述也许会淡化本发明的主要内容时,这些描述在这里将被忽略。The specific embodiments of the present invention are described below with reference to the accompanying drawings, so that those skilled in the art can better understand the present invention. It should be noted that, in the following description, when the detailed description of known functions and designs may dilute the main content of the present invention, these descriptions will be omitted here.
实施例Example
为了方便描述,先对具体实施方式中出现的相关专业术语进行说明:For the convenience of description, the relevant technical terms appearing in the specific implementation manner are explained first:
FPGA (Field Programmable Gate Array):现场可编程门阵列;FPGA (Field Programmable Gate Array): Field Programmable Gate Array;
ARM(Advanced RISC Machine):先进精简指令集处理器;ARM (Advanced RISC Machine): advanced reduced instruction set processor;
LVDS(Low-Voltage Differential Signaling):低电压差分信号;LVDS (Low-Voltage Differential Signaling): Low-voltage differential signal;
DMA (Direct Memory Access):直接存储器访问;DMA (Direct Memory Access): direct memory access;
FIFO(First Input First Output):先进先出;FIFO (First Input First Output): first in first out;
PC(Personal Computer):个人计算机;PC (Personal Computer): personal computer;
图1是本发明一种远程图像采集装置一种具体实施方式架构图。FIG. 1 is an architectural diagram of a specific implementation manner of a remote image acquisition device according to the present invention.
在本实施例中,如图1所示,本发明一种远程图像采集装置,包括:双通道的图像采集模块、高速实时的图像处理模块以及人机交互模块;In this embodiment, as shown in FIG. 1 , a remote image acquisition device of the present invention includes: a dual-channel image acquisition module, a high-speed real-time image processing module, and a human-computer interaction module;
双通道的图像采集模块包含两个图像采集传感器,图像采集传感器用于采集图像,再将采集的图像以光信号方式转换为电信号,转换后的电信号通过同轴线缆输入至高速实时的图像处理模块;The dual-channel image acquisition module includes two image acquisition sensors. The image acquisition sensor is used to acquire images, and then converts the acquired images into electrical signals in the form of optical signals. The converted electrical signals are input to high-speed real-time image processing module;
高速实时的图像处理模块包括视频解码芯片、Zynq芯片、网口以及存储器;其中,Zynq芯片又包括FPGA和ARM处理器;The high-speed real-time image processing module includes video decoding chip, Zynq chip, network port and memory; among them, Zynq chip also includes FPGA and ARM processor;
其中,视频解码芯片用于将图像传感器输出的电信号转换成格式为ITU-R BT.656标准的数字视频信号;如图2所示,视频解码芯片的工作状态由Zynq芯片芯片的FPGA部分中的视频解码芯片配置模块通过I2C总线进行配置,当视频解码芯片配置完成后,芯片在27Mhz的时钟下持续的对图像传感器的模拟信号进行数据转换,并通过LVDS接口将转换完成的数字信号接入Zynq芯片芯片的FPGA端;Among them, the video decoding chip is used to convert the electrical signal output by the image sensor into a digital video signal whose format is the ITU-R BT.656 standard; as shown in Figure 2, the working state of the video decoding chip is determined by the FPGA part of the Zynq chip. The video decoding chip configuration module is configured through the I2C bus. When the video decoding chip configuration is completed, the chip continuously converts the analog signal of the image sensor under the clock of 27Mhz, and connects the converted digital signal through the LVDS interface. The FPGA side of the Zynq chip;
如图2所示,FPGA包括视频芯片配置模块、通道选择模块、数据解析模块、图像预处理模块、图像数据重组模块;As shown in Figure 2, the FPGA includes a video chip configuration module, a channel selection module, a data analysis module, an image preprocessing module, and an image data reorganization module;
FPGA首先经过通道选择模块选择一路数字视频信号输出至数据解析模块,数据解析模块根据ITU-R BT.656格式的构成特点解析出数字视频信号的标志信息,包括:有效数据、消隐信号标志、数据错误标志、图像帧的头部和尾部信号、行同步信号、场同步信号、复合同步信号;然后先根据数据错误标志判断当前解析的图像数据是否包含完整的信息,当信息不完整时,当前图像帧被丢弃,数据解析模块等待下一帧图像数据输入;否则,数据解析模块将完整无误的图像数据伴随着解析出的标志信息输入至图像预处理模块;The FPGA first selects a channel of digital video signal and outputs it to the data analysis module through the channel selection module. The data analysis module analyzes the digital video signal's sign information according to the composition characteristics of the ITU-R BT.656 format, including: valid data, blanking signal sign, The data error flag, the head and tail signals of the image frame, the horizontal synchronization signal, the vertical synchronization signal, and the composite synchronization signal; then firstly, according to the data error flag, it is judged whether the currently parsed image data contains complete information. When the information is incomplete, the current The image frame is discarded, and the data parsing module waits for the input of the next frame of image data; otherwise, the data parsing module inputs the complete and correct image data along with the parsed flag information to the image preprocessing module;
在本实施例中,ITU-R BT.656标准是将一个视频序列分成N帧,PAL制式转换后的BT.656标准有625行,底场有效数据也是288行,其余行则是为了标记和区分两种场的垂直消隐信号。采集图像的时候采用隔行扫描,每一帧一般有两个场,一个叫顶场,另一个叫底场,由于隔行扫描,也可以将顶场和底场称为偶场和奇场。其中,ITU-R BT.656标准625列数据格式如图3所示;In this embodiment, the ITU-R BT.656 standard divides a video sequence into N frames, the BT.656 standard after PAL format conversion has 625 lines, the bottom field valid data is also 288 lines, and the remaining lines are for marking and A vertical blanking signal that distinguishes the two fields. Interlaced scanning is used when capturing images. Each frame generally has two fields, one is called the top field and the other is called the bottom field. Due to the interlaced scanning, the top and bottom fields can also be called even and odd fields. Among them, the ITU-R BT.656 standard 625-column data format is shown in Figure 3;
BT.656标准的每一行主要由以下四个部分组成:行=结束码(EAV)+水平消隐(Horizontal Vertical Blanking)+起始码(SAV)+有效数据(Active Video),如图4所示。Each line of the BT.656 standard is mainly composed of the following four parts: line = end code (EAV) + horizontal blanking (Horizontal Vertical Blanking) + start code (SAV) + valid data (Active Video), as shown in Figure 4. Show.
每一行数据信号被编码成8bit的形式,其中包括有辅助信号(SAV、EAV)、行消隐信号、有效视频信号。辅助信号包括SAV、EAV,分别表示数据行的开始和结束,由16进制的FF00 00XY组成4byte数据。其中FF 00 00为SAV和EAV的数据标志位,XY为辅助信号的信息位,其编码格式如图5所示,XY的最高位(bit7)为固定数据1;F=0表示偶数场F=1表示奇数场;V=0表示该行为有效视频数据V=1表示该行无有效视频数据;H=0表示为SAV信号H=1表示为EAV信号;P3~P0为保护信号,由F、V、H信号计算生成;P3=V异或H;P2=F异或H;P1=F异或V;P0=F异或V异或H。当时基信号的V=0时表明该行为视频数据;当V=1时表明该行为辅助数据(当无辅助数据时,为消隐一般为10、80交替出现)。每行对应不同的EAV、SAV如表1所示。Each line of data signal is encoded in the form of 8 bits, including auxiliary signals (SAV, EAV), line blanking signals, and effective video signals. The auxiliary signal includes SAV and EAV, which respectively represent the start and end of the data line, and 4byte data is composed of hexadecimal FF00 00XY. Among them,
表1是656列数据对应的行辅助信号Table 1 is the row auxiliary signal corresponding to 656 columns of data
在图像预处理模块中,数据分离模块先利用数据标志信息从ITU-R BT.656格式的图像数据中分别提取偶数场和奇数场中的包含有有效数据的行,同时剥离无效的场消隐信号;In the image preprocessing module, the data separation module firstly uses the data flag information to extract the lines containing valid data in the even field and odd field from the image data in ITU-R BT.656 format, and strips the invalid field blanking at the same time. Signal;
其中,初步提取出的行中仍然包含辅助信号、行消隐信号、有效图像信号;辅助信号包括SAV、EAV,分别表示数据行的开始和结束,利用辅助信号进一步剔除行消隐数据,此时,剔除后的图像数据中只包含有效的灰阶值Y和色度值Cr、Cb;Among them, the preliminary extracted lines still contain auxiliary signals, line blanking signals, and valid image signals; the auxiliary signals include SAV and EAV, which respectively indicate the start and end of the data line, and the auxiliary signals are used to further eliminate the line blanking data. , the removed image data only contains valid grayscale values Y and chrominance values Cr and Cb;
在本实施例中,消隐行数据则由80、10组成,共280byte,本设计在PL端可根据辅助信号的变化,剔除消隐行的无用数据,用以减小一帧有用信号的传输时间及软件处理无用数据的时间。对于有效视频信号(Valid data),其排列顺序如图6所示,其中,Y表示明亮度(Luminance或Luma),也就是灰阶值;而Cr、Cb则用来表示色度,其中Cr反映了RGB输入信号红色部分与RGB信号亮度值之间的差异。Cb反映的使RGB输入信号蓝色部分与RGB信号亮度值间的差异。In this embodiment, the blanking line data is composed of 80 and 10, with a total of 280 bytes. In this design, the useless data of the blanking line can be eliminated at the PL end according to the change of the auxiliary signal, so as to reduce the transmission of a frame of useful signals. time and the time the software processes the useless data. For the valid video signal (Valid data), its arrangement order is shown in Figure 6, where Y represents the brightness (Luminance or Luma), that is, the grayscale value; while Cr and Cb are used to represent the chrominance, where Cr reflects The difference between the red part of the RGB input signal and the luminance value of the RGB signal is calculated. Cb reflects the difference between the blue part of the RGB input signal and the luminance value of the RGB signal.
在本实施例中,有效图像数据的组合为方式为一个像素点包含单独的Y值,相邻的两个像素点共享一对Cr和Cb,其Y、Cr、Cb的比例为4:2:2;为了进一步的缩减数据的传输量,后级需要单独对Cr、Cb数据处理,所以数据分离模块将有效数据中Y数据和Cr、Cb数据单独输出。图像预处理模块中的串并转换模块用于扩展数据传输的带宽,提高数据的传输能力。图像数据中Y数据对图像质量影响较大,而Cr、Cb分量对图像数据的成像影响较小,所以通过进一步压缩Cr、Cb部分的有效数据减少数据量,具体的处理过程为:保留灰阶值Y不变,通过串并转换模块先进行传输位宽的拓展,再进一步压缩Cr、Cb:将逐行图像数据中对应位置的Cb和Cr相加并除以2,得到新的Cb和Cr,最后将处理后的Cb、Cr和Y利用FIFO缓存后同步输出至图像数据重组模块;In this embodiment, the combination of valid image data is such that one pixel contains a single Y value, and two adjacent pixels share a pair of Cr and Cb, and the ratio of Y, Cr, and Cb is 4:2: 2; In order to further reduce the amount of data transmission, the latter stage needs to process the Cr and Cb data separately, so the data separation module outputs the Y data and the Cr and Cb data in the valid data separately. The serial-parallel conversion module in the image preprocessing module is used to expand the bandwidth of data transmission and improve the data transmission capability. In the image data, the Y data has a greater impact on the image quality, while the Cr and Cb components have less impact on the imaging of the image data. Therefore, the amount of data is reduced by further compressing the effective data of the Cr and Cb parts. The specific processing process is: Retain the gray scale The value Y remains unchanged. The serial-parallel conversion module first expands the transmission bit width, and then further compresses Cr and Cb: add Cb and Cr at the corresponding positions in the progressive image data and divide by 2 to obtain new Cb and Cr , and finally, the processed Cb, Cr and Y are output to the image data reorganization module synchronously after using the FIFO buffer;
图像数据重组模块,用于将Y、Cr、Cb有效图像数据重新组合;具体重组方式为:利用一个Y值对应一组Cr、Cb的方式将图像数据重新组合成YUV 4:2:0的数据格式,组合完成的图像数据通过符合AXI数据流的接口输出至AXI_DMA IP核,并以网络数据包的形式传输至采集装置的网口发送给人机交互模块;The image data recombination module is used to recombine the valid image data of Y, Cr and Cb; the specific recombination method is: using a Y value corresponding to a group of Cr and Cb to recombine the image data into YUV 4:2:0 data Format, the combined image data is output to the AXI_DMA IP core through the interface conforming to the AXI data stream, and is transmitted to the network port of the acquisition device in the form of network data packets and sent to the human-computer interaction module;
在本实施例中,外部的PAL制式电视广播信号是模拟视频信号,为了实现ZYNQ数据处理,还需要进行A/D转换,模拟视频信号经过TVP5150AM1转换后模拟视频信号被转换为ITU-R BT.656标准的数字视频信号,但是此时的视频信号包含大量的列消隐信号、行消隐信号、辅助信号等一些无用信号,无法直接传输至上位机做数据处理及图像显示。最终的显示还是需要我们将ITU-R BT.656视频标准中的行场数据重新排列,提取有效行中的灰度及色度信息,即Y、Cr、Cb准确的分离出来,并按奇场偶场重新排列,才能供软件播放使用。因此,视频解码工作在本系统中尤为重要,目前可以实现这视频解码的方式重要分为两种:软件解码和硬件解码。In this embodiment, the external PAL standard TV broadcast signal is an analog video signal. In order to realize ZYNQ data processing, A/D conversion is also required. After the analog video signal is converted by TVP5150AM1, the analog video signal is converted into ITU-R BT. 656 standard digital video signal, but the video signal at this time contains a large number of column blanking signals, row blanking signals, auxiliary signals and other useless signals, which cannot be directly transmitted to the host computer for data processing and image display. The final display still requires us to rearrange the line and field data in the ITU-R BT.656 video standard, extract the grayscale and chromaticity information in the effective line, that is, accurately separate Y, Cr, and Cb, and press the odd field. Even field rearrangement can be used for software playback. Therefore, the video decoding work is particularly important in this system. At present, there are mainly two ways to realize the video decoding: software decoding and hardware decoding.
该设计起初应用软件解码,硬件仅负责数据传输功能,在此架构下,软件的大量循环重复操作且需要处理的数据量巨大,不仅增加了系统功耗及CPU的占用率,频繁对DDR的访问也增加了数据传输和解析的时间。最终只能实现每秒3至5帧的视频播放,远远低于图像采集前端每秒25帧的速度。通过FPGA对图像预处理需要将BT.656标准的数字视频信号做解析,根据每行的XY控制字解析出场同步信号(F)、垂直同步信号(V)、水平同步信号(H)。通过提取每帧图像中的有效数据,拼成逐行图像。The design uses software decoding at first, and the hardware is only responsible for the data transmission function. Under this architecture, a large number of software cycles are repeated and the amount of data to be processed is huge, which not only increases the system power consumption and CPU occupancy rate, but also frequently accesses DDR. It also increases the time for data transmission and parsing. In the end, only 3 to 5 frames per second video playback can be achieved, which is far lower than the 25 frames per second speed of the image acquisition front end. Image preprocessing through FPGA needs to analyze the BT.656 standard digital video signal, and analyze the field synchronization signal (F), vertical synchronization signal (V), and horizontal synchronization signal (H) according to the XY control word of each line. By extracting the effective data in each frame of image, a progressive image is assembled.
相邻每两行为一组,从原来“CbYCrY……”顺序的数据中提取每两行的所有Y数据,Cb数据、Cr数据。按照第一行720字节Y数据(连续180个100MHz时钟周期的dma_tvalid),第二行720字节Y数据,360字节预处理后的Cb数据,360字节预处理后的Cr数据(第二行Y和Cb、Cr一起有连续360个100MHz时钟周期的dma_tvalid)排列,之后就可以这样为一组,每帧图像共发送288组这样的数据通过fifo缓存后发送给DMA。Every two adjacent rows are grouped together, and all the Y data, Cb data, and Cr data of each two rows are extracted from the original data in the order of "CbYCrY...". According to the first line of 720 bytes of Y data (dma_tvalid for 180 consecutive 100MHz clock cycles), the second line of 720 bytes of Y data, 360 bytes of preprocessed Cb data, and 360 bytes of preprocessed Cr data (No. The two lines of Y, Cb, and Cr have 360 consecutive dma_tvalid) arrangements of 100MHz clock cycles. After that, they can be grouped as a group. A total of 288 groups of such data are sent to the DMA after being buffered by the fifo.
为了进一步提高数据传输效率,保证系统的实时性,还需要对数字视频数据进一步压缩处理,将YCrCb=4:2:2转换为YCrCb=4:2:0。In order to further improve the data transmission efficiency and ensure the real-time performance of the system, it is necessary to further compress the digital video data, and convert YCrCb=4:2:2 to YCrCb=4:2:0.
一条线被扫描时传递的亮度值和色度值间的比率常用来描述各种取样方式。这个比率通常基于亮度值,然后以4:X:Y的形式描述,X和Y是每两个色度通道中的数值的相对数量。4:2:2意味着每个横向的扫描线每4个亮度值对应两个色度值,简单的,4:1:1意味着每4个亮度值对应1个色度值,4:4:4意味着色度值不进行二次采样。不过这不是完全连续的,4:2:0会以1个色度值对应四个亮度值,对于第一个色度元素有两个取样值,第二个色度元素则不进行取样,这不能产生完整的彩色图像。实际当中,4:2:0意味着每条扫描线有两个色度取样,只对隔行进行取样。The ratio between the luminance and chrominance values delivered when a line is scanned is often used to describe various sampling methods. This ratio is usually based on luma values and then described as 4:X:Y, where X and Y are the relative numbers of values in each of the two chroma channels. 4:2:2 means that each horizontal scan line corresponds to two chrominance values for every 4 luminance values. Simply, 4:1:1 means that every 4 luminance values corresponds to 1 chrominance value, 4:4 :4 means that the chroma values are not subsampled. However, this is not completely continuous. 4:2:0 will use one chroma value to correspond to four luma values. For the first chroma element, there are two sampling values, and the second chroma element is not sampled. A full color image cannot be produced. In practice, 4:2:0 means that there are two chroma samples per scan line and only interlace is sampled.
虽然将4:2:2转换为4:2:0可能减少细节处颜色的饱和度,但通常不会减少大个物体内的颜色饱和度。具体处理过程为:保留原图像中的Y数据,将逐行图像数据中对应位置的Cb和Cr相加并除以2,得到新的Cb和Cr,然后就可以将数据按两行为一组,每帧图像共发送288组这样的数据通过FIFO缓存后发送给DMA。这种处理方式将一帧图像的数据量进一步压缩,有效提高了数据传输效率。While converting 4:2:2 to 4:2:0 may reduce color saturation in fine detail, it usually does not reduce color saturation in larger objects. The specific processing process is: retain the Y data in the original image, add Cb and Cr at the corresponding position in the progressive image data and divide by 2 to obtain new Cb and Cr, and then the data can be grouped by two rows, A total of 288 groups of such data are sent to the DMA after passing through the FIFO buffer for each frame of image. This processing method further compresses the data amount of one frame of image, which effectively improves the data transmission efficiency.
最终将625行BT.656标准的数字视频信号的一帧数据在PL端根据辅助信号的变化,去除行消隐信号,将有用数据重新排列处理后,经DMA传输至存储器,软件将数据通过奇偶穿插后播放器就能把图像正确地显示出来。Finally, a frame of data of a 625-line BT.656 standard digital video signal is removed at the PL end according to the change of the auxiliary signal, and the line blanking signal is removed. After the useful data is rearranged and processed, it is transferred to the memory through DMA, and the software passes the data through the parity. After interspersed, the player can display the image correctly.
ARM处理器运行嵌入式控制程序,负责接收远程PC机的指令,通过指令解析后通过AXI-Lite总线将控制信号传输至FPGA端,实现对视频解码芯片配置模块、通道选择模块、AXI_DMA IP核的配置,配置完成后对采集装置进行功能调度,具体为:视频解码芯片对图像采集传感器转换后的电信号进行解码处理,输出格式为ITU-R BT.656标准的数字视频信号,ARM处理器控制FPGA对数字视频信号进行图像数据重组,再将重组后的图像数据以DMA方式传输至存储器储存,同时通过网口传输给人机交互模块;The ARM processor runs the embedded control program and is responsible for receiving the instructions of the remote PC. After parsing the instructions, it transmits the control signal to the FPGA side through the AXI-Lite bus to realize the video decoding chip configuration module, channel selection module, and AXI_DMA IP core. Configuration, after the configuration is completed, the function scheduling of the acquisition device is performed, specifically: the video decoding chip decodes the electrical signal converted by the image acquisition sensor, and the output format is the digital video signal of the ITU-R BT.656 standard, which is controlled by the ARM processor. The FPGA reorganizes the image data of the digital video signal, and then transmits the reorganized image data to the memory for storage by DMA, and transmits it to the human interaction module through the network port at the same time;
人机交互模块用于配置图像采集装置的IP地址,实现信号的远程传输,同时通过显示器对采集的图像进行实时显示。The human-computer interaction module is used to configure the IP address of the image acquisition device, realize the remote transmission of the signal, and display the acquired image in real time through the display.
实验结果与分析Experimental results and analysis
利用Xilinx公司的Vivado软件完成FPGA侧的开发并导出硬件平台文件。使用Petalinux软件构建与硬件平台适配的嵌入式Linux系统,系统移植完成后将驱动软件及应用程序导入嵌入式Linux系统中。完成上述操作后对设备重新加电,进入嵌入式系统后加载驱动程序并运行应用程序,首先实现对设备的各个模块进行初始化操作、开启网络监听,然后等待远程客户端接入。Use the Vivado software of Xilinx Company to complete the development on the FPGA side and export the hardware platform file. Use Petalinux software to build an embedded Linux system adapted to the hardware platform, and import the driver software and applications into the embedded Linux system after the system is transplanted. After completing the above operations, power on the device again, load the driver program and run the application program after entering the embedded system, first initialize each module of the device, enable network monitoring, and then wait for remote client access.
功能测试:将远程监视设备和图像采集设备接入同一子网下进行网络传输及视频展示测试,测试步骤如下:Functional test: Connect the remote monitoring equipment and image acquisition equipment to the same subnet for network transmission and video display tests. The test steps are as follows:
a)将设计的图像采集设备与计算机通过网线相连,直流电源与采集设备通过12V电源线相连,设置直流电源电流为3A并输出;a) Connect the designed image acquisition device to the computer through a network cable, connect the DC power supply to the acquisition device through a 12V power cable, set the DC power supply current to 3A and output;
b)在PC中启动上位机软件,设置图像采集设备的IP地址,点击“打开连接”;b) Start the host computer software in the PC, set the IP address of the image acquisition device, and click "Open Connection";
c)将视频源与图像采集设备的输入通道相连并输出图像数据。通过上位机软件配置需要查看的采集通道,并开启视频数据的传输。c) Connect the video source to the input channel of the image acquisition device and output image data. Configure the acquisition channel to be viewed through the host computer software, and enable the transmission of video data.
上位机软件自带视频显示窗口,当数据传输关闭时,显示窗口默认为黑屏状态,配置菜单栏为不可配置状态。图像采集系统人机交互界面如图7所示。The host computer software comes with a video display window. When the data transmission is closed, the display window defaults to a black screen state, and the configuration menu bar is in an unconfigurable state. The human-computer interaction interface of the image acquisition system is shown in Figure 7.
当上位机软件与图像采集设备建立网络连接且采集设备完成自检给上位机软件反馈自检成功信号后,人机交互界面的其他控制窗口切换到可配置状态。配置采集设备打开通道1,并开启远程采集,实验结果如图8所示。When the host computer software establishes a network connection with the image acquisition device and the acquisition device completes the self-test and sends back a self-test success signal to the host computer software, other control windows of the human-computer interaction interface switch to a configurable state. Configure the acquisition device to open
显示窗口左上方显示采集数据的展示时长及图像展示帧数的累加,整个视频采集展示的过程是十分流畅,刷新率每秒25帧,完全与前端ADC采集速率一致。The upper left of the display window displays the display duration of the collected data and the accumulation of the number of image display frames. The entire video collection and display process is very smooth, and the refresh rate is 25 frames per second, which is completely consistent with the front-end ADC collection rate.
尽管上面对本发明说明性的具体实施方式进行了描述,以便于本技术领域的技术人员理解本发明,但应该清楚,本发明不限于具体实施方式的范围,对本技术领域的普通技术人员来讲,只要各种变化在所附的权利要求限定和确定的本发明的精神和范围内,这些变化是显而易见的,一切利用本发明构思的发明创造均在保护之列。Although the illustrative specific embodiments of the present invention have been described above to facilitate the understanding of the present invention by those skilled in the art, it should be clear that the present invention is not limited to the scope of the specific embodiments. For those skilled in the art, As long as various changes are within the spirit and scope of the present invention as defined and determined by the appended claims, these changes are obvious, and all inventions and creations utilizing the inventive concept are included in the protection list.
Claims (3)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210180526.7A CN114554155A (en) | 2022-02-25 | 2022-02-25 | Remote image acquisition device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210180526.7A CN114554155A (en) | 2022-02-25 | 2022-02-25 | Remote image acquisition device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114554155A true CN114554155A (en) | 2022-05-27 |
Family
ID=81679858
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210180526.7A Pending CN114554155A (en) | 2022-02-25 | 2022-02-25 | Remote image acquisition device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114554155A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114755961A (en) * | 2022-06-15 | 2022-07-15 | 浙江杭可仪器有限公司 | Control system of aging test box |
CN115589490A (en) * | 2022-08-04 | 2023-01-10 | 北京临近空间飞行器系统工程研究所 | Compression control method and control device based on aircraft measurement video |
CN116248645A (en) * | 2022-12-30 | 2023-06-09 | 深圳市辰卓科技有限公司 | Image streaming method and device, electronic equipment and storage medium |
CN119383294A (en) * | 2024-10-28 | 2025-01-28 | 南京国兆光电科技有限公司 | A real-time video signal transmission method, electronic device and storage medium based on SPI communication |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1728832A (en) * | 2004-07-27 | 2006-02-01 | 富士通株式会社 | Have estimation and compensation equipment based on the motion vector correction of vertical component |
CN105611295A (en) * | 2015-12-23 | 2016-05-25 | 中国航天时代电子公司 | System and method for implementing video capture, compression and transmission on SOC (System On Chip) |
US10257542B1 (en) * | 2015-03-25 | 2019-04-09 | Amazon Technologies, Inc. | Compression encoding of images |
-
2022
- 2022-02-25 CN CN202210180526.7A patent/CN114554155A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1728832A (en) * | 2004-07-27 | 2006-02-01 | 富士通株式会社 | Have estimation and compensation equipment based on the motion vector correction of vertical component |
US10257542B1 (en) * | 2015-03-25 | 2019-04-09 | Amazon Technologies, Inc. | Compression encoding of images |
CN105611295A (en) * | 2015-12-23 | 2016-05-25 | 中国航天时代电子公司 | System and method for implementing video capture, compression and transmission on SOC (System On Chip) |
Non-Patent Citations (1)
Title |
---|
张赠辉: "基于ZYNQ的多路图像采集处理平台设计", 大连理工大学硕士论文》, 15 February 2019 (2019-02-15), pages 1 - 5 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114755961A (en) * | 2022-06-15 | 2022-07-15 | 浙江杭可仪器有限公司 | Control system of aging test box |
CN115589490A (en) * | 2022-08-04 | 2023-01-10 | 北京临近空间飞行器系统工程研究所 | Compression control method and control device based on aircraft measurement video |
CN116248645A (en) * | 2022-12-30 | 2023-06-09 | 深圳市辰卓科技有限公司 | Image streaming method and device, electronic equipment and storage medium |
CN119383294A (en) * | 2024-10-28 | 2025-01-28 | 南京国兆光电科技有限公司 | A real-time video signal transmission method, electronic device and storage medium based on SPI communication |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN114554155A (en) | Remote image acquisition device | |
WO2011035658A1 (en) | Method, device and system for compressing and decompressing transparent image | |
CN105045549B (en) | A kind of VGA and PS/2 signal transmission systems based on FPGA | |
CN101556791B (en) | Method for converting and processing format of YCbCr data captured and driven by DSP video | |
US8130317B2 (en) | Method and system for performing interleaved to planar transformation operations in a mobile terminal having a video display | |
CN110381278A (en) | Method and apparatus for color space 4:4:4 transmission | |
KR100834439B1 (en) | Graphic data compression and decompression device and method | |
CN108345559B (en) | Virtual reality data input device and virtual reality equipment | |
CN209982615U (en) | Apparatus for color space 4:4:4 transmission | |
CN115278210A (en) | High-integration-level ultra-high definition HDMI (high definition multimedia interface) video test signal source system and method | |
CN101378506A (en) | image compression method | |
CN110798672B (en) | Video drive integrated circuit board with many screens show function simultaneously | |
CN102123275A (en) | Video component data information acquiring and extracting method | |
CN204929022U (en) | Video mosaicing processing ware that shows high -definition video signal can return | |
WO2021007742A1 (en) | Compression method for obtaining video file, decompression method, system, and storage medium | |
CN213279882U (en) | Video compression coding service terminal | |
CN114863869B (en) | A small-pitch LED full-color synchronous screen receiving board and its working method | |
US8189681B1 (en) | Displaying multiple compressed video streams on display devices | |
CN109040706A (en) | A kind of Computerized image processing system using intelligent identification technology | |
US6646686B1 (en) | Managing alpha values for video mixing operations | |
CN105611211A (en) | Video format converter and display device | |
CN114915797A (en) | A kind of multi-channel video decoding method, device and related products | |
CN2922341Y (en) | Video meeting terminal capable of realizing high-definition rideo signal input and output | |
CN201904844U (en) | Digital audio-video signal SerDes | |
CN113225509A (en) | Device and method for converting CEDS video format signals into HDMI interface signals |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20220527 |