技术领域 Technical field
本发明涉及一种图像处理记录方法及装置,尤其是指视频信号经 数字编码和压縮并记录的方法和装置。 The present invention relates to an image processing recording method and apparatus, and more particularly to a method and apparatus for digitally encoding and compressing and recording a video signal.
背景技术 Background technique
现有技术中, 日本 SONY HSR- IP 数字监控录像机设有硬盘和数 字磁带记录双存储装置,并连为前、后级。当硬盘上存满图像数据后, 图像数据从硬盘转存到后级的数字磁带记录置内的数据磁带上,然后 · 硬盘上再存入新的图像数据。 由于数据磁带的可更替, 使得系统存储 容量可无限扩大,一定程度满足了大容量数字图像记录的要求。此外, 现有方法及其装置还能针对不同的图像记录要求, 设置的 25帧 /秒 (PAL制)速率或小于 25帧 I秒(PAL制)速率记录; 以增大单位存 储空间的记录图像的时间跨度。 同时, 现有装置可以调整、 设置压缩 数据码流等指标来适应不同应用。但是, 在图像处理记录时仅能按预 先设置以一种固定的压缩方式(方法)对所有图像进行压縮处理, 经 这样压縮处理和保存的图像数据 (流), 是很难兼顾图像不同的侧重 点要求。 In the prior art, the Japanese SONY HSR-IP digital surveillance video recorder has dual storage devices for hard disk and digital tape recording, and is connected to the front and rear stages. After the image data is filled on the hard disk, the image data is transferred from the hard disk to the data tape in the digital tape recording of the subsequent stage, and then the new image data is stored on the hard disk. Due to the replacement of data tapes, the system storage capacity can be expanded indefinitely to meet the requirements of large-capacity digital image recording to some extent. In addition, the existing methods and devices can also be set for 25 frames per second (PAL) rate or less than 25 frames per second (PAL) rate recording for different image recording requirements; to increase the recording image per unit storage space. Time span. At the same time, the existing device can adjust and set the compressed data stream and other indicators to adapt to different applications. However, in image processing and recording, all images can be compressed only in a fixed compression mode (method), and the image data (stream) thus compressed and saved is difficult to balance the image. The focus of the request.
发明内容 Summary of the invention
本发明的目的在于为了克服现有技术不能同时兼顾记录图像不 同着重点的不足, 提供一种数字图像处理记录方法和装置。 SUMMARY OF THE INVENTION An object of the present invention is to provide a digital image processing and recording method and apparatus for overcoming the deficiencies of the prior art that can not simultaneously take into account the different focus of recorded images.
本发明的上述目的是通过如下技术方案来实现的:原图像输入图
像采集压缩处理单元, 使用两种以上的方式 (方法) 进行压缩处理, 压缩数据(流)输入主处理器单元处理后分别记录在存储单元。 主处 理器单元按预置条件可以由程序控制自动运行或半自动运行。半自动 运行时主处理器单元运行受控于由外部输入的辅助控制信号或指 令。。图像采集压缩处理单元可以对一个及以上原图像同时进行采集。 对被采集的原图像可以采用二种以上不同的压縮方式(方法)进行压 縮处理, 二种以上不同的压縮方式 (方法)可以采用不同的压縮标准, 也可以采用不同的图像分辨率,还可以采用不同的数据码流或图像帧 率。 The above object of the present invention is achieved by the following technical solution: original image input map Like the acquisition compression processing unit, compression processing is performed using two or more methods (methods), and compressed data (stream) is input to the main processor unit for processing and then recorded in the storage unit. The main processor unit can be automatically or semi-automatically operated by the program according to preset conditions. The semi-automatic runtime main processor unit operation is controlled by an auxiliary control signal or command input from the outside. . The image acquisition compression processing unit can simultaneously acquire one or more original images. Two or more different compression methods (methods) may be used for compression processing on the original image to be collected, and two or more different compression methods (methods) may adopt different compression standards or different image resolutions. Rate, you can also use different data streams or image frame rates.
本发明的上述目的是还可以通过如下技术方案来实现的:一种数 字图像处理记录装置, 包括图像采集压縮处理单元, 用于对原图像采 集后进行压縮处理; 主处理单元, 用于对经压縮的数据(流)进行存 储或传送处理; 存储单元, 用于对图像压缩数据进行存储, 所述采集 压缩处理单元中有二个以上的压缩处理单元。数字图像处理记录装置 还可以包括辅助控制单元, 对数字图像处理记录方法进行控制。数字 图像处理记录装置中存储单元可以由数据接口传送到外部记录设备。 数字图像处理记录装置中存储单元是硬盘、 磁带、 光盘或者是闪存。 The above object of the present invention is also achieved by the following technical solution: a digital image processing and recording apparatus, comprising an image acquisition compression processing unit for performing compression processing on an original image after acquisition; a main processing unit, The compressed data (stream) is stored or transmitted; the storage unit is configured to store the image compressed data, and the acquisition compression processing unit has two or more compression processing units. The digital image processing recording apparatus may further include an auxiliary control unit that controls the digital image processing recording method. The storage unit in the digital image processing recording device can be transferred from the data interface to the external recording device. The storage unit in the digital image processing recording apparatus is a hard disk, a magnetic tape, an optical disk, or a flash memory.
与现有技术相比, 本发明具有以下有益效果: 能用二种或二种以 上不同的压缩图像数据, 体现原图像信息的不同侧重内容, 因而满足 用户的不同用途, 以避免顾此失彼或资源的浪费。 Compared with the prior art, the present invention has the following beneficial effects: two or more different compressed image data can be used to reflect different content of the original image information, thereby satisfying different uses of the user, thereby avoiding the loss of resources or resources. waste.
附图说明 DRAWINGS
图 1是本发明一种数字图像处理记录方法及装置的原理图;
图 2是本发明一种数字图像处理记录方法及装置实施例一的原理图; 图 3是本发明一种数字图像处理记录方法及装置实施例二的原理图。 1 is a schematic diagram of a digital image processing and recording method and apparatus of the present invention; 2 is a schematic diagram of a first embodiment of a digital image processing and recording method and apparatus according to the present invention; and FIG. 3 is a schematic diagram of a second embodiment of a digital image processing and recording method and apparatus according to the present invention.
其中 - among them -
100是图像采集压缩处理单元; 101是图像采集处理单元; 102、 103是图像压缩处理单元; 105为数据总线; 100 is an image acquisition compression processing unit; 101 is an image acquisition processing unit; 102, 103 is an image compression processing unit; 105 is a data bus;
200是主处理单元; 201是数据总线; 202是处理器单元; 203是 数据接口单元; 200 is a main processing unit; 201 is a data bus; 202 is a processor unit; 203 is a data interface unit;
300是存储单元; 300 is a storage unit;
400是辅助控制单元; 401是辅助信号单元; 402是辅助信息指 令单元; 400 is an auxiliary control unit; 401 is an auxiliary signal unit; 402 is an auxiliary information command unit;
500是图像显示输出单元。 500 is an image display output unit.
最佳实施例 Best embodiment
下面结合附图和实施例对本发明作进一步描述。 The invention is further described below in conjunction with the drawings and embodiments.
参照图 1和图 2所示, 本实施例包括五个单元: 图像采集压縮处 理单元, 主处理单元, 存储单元, 辅助控制单元, 显示输出单元。 本 发明图像采集压缩单元, 对输入本单元的 n个 (n为自然数)原图像视 频信号进行数字化编码(例: 采用 CCIR601、 CCIR656标准), 并对数 字化编码后的 n个原图像编码数据 (流)进行图像压縮处理(例: 按 IS0/IEC的 MPEG系列以及 ITU- T的 H. 263等的图像压缩标准, 也可 用 WAVELET或其它有效的编码、 压缩技术), 同时对其中的任选 m个 (m^n)原图像编码数据(流)采用二种或二种以上不同的图像压缩 处理方式(方法)进行压缩处理, 例如: 不同的图像压缩标准(JEPG
与 MEPG), 或不同的图像分辨率 (720 X 576与 352 X 288), 或不同的 压縮数据码流 (4 Mbps与 1. 15 Mbps), 或不同的数字帧率 (25帧 I 秒与 6帧 /秒)。 Referring to Figures 1 and 2, the present embodiment includes five units: an image acquisition compression processing unit, a main processing unit, a storage unit, an auxiliary control unit, and a display output unit. The image acquisition and compression unit of the invention digitally encodes n (n is a natural number) original image video signals input to the unit (for example: adopting CCIR601 and CCIR656 standards), and encodes the digitally encoded n original images (stream) ) Image compression processing (example: image compression standard according to IS0/IEC MPEG series and ITU-T H.263, etc., WAVELET or other effective encoding and compression techniques can also be used), and at the same time, optional m The original image encoded data (stream) is compressed by two or more different image compression processing methods (methods), for example: Different image compression standards (JEPG) With MPEG), or different image resolution (720 X 576 and 352 X 288), or a different compressed data stream (4 Mbps vs. 1.15 Mbps), or a different digital frame rate (25 frames per second) 6 frames / sec).
主处理单元将被压縮处理后的各种图像压縮数据 (流), 分别进 行存储处理 (例: 分类、 加入标识等), 并选择存储的方式和存储装 置存储。 The main processing unit compresses the various image compression data (streams) subjected to the compression processing, respectively (for example, classification, adding a logo, etc.), and selects the storage method and the storage device storage.
各种图像压缩数据 (流) 被记录在存储单元的一个或多个同类, 或不同类的装置的记录载体上(这些装置例: 硬盘、 数据磁带机、 光 盘刻录机、 闪存装置等); 此外还可以将一种图像压缩数据 (流) 记 录在本装置上述存储单元, 另一种图像压縮数据(流)通过数据接口 (例: 肌 SCSI, IEEE1394、 USB, SerialATA、 LA 等) 传送到外 部存储装置, 或其它系统中存储。 Various image compression data (streams) are recorded on one or more storage units of the same type, or on different types of devices (such devices: hard disk, data tape drive, CD burner, flash memory device, etc.); It is also possible to record one type of image compression data (stream) in the above-mentioned storage unit of the device, and another type of image compression data (stream) to be transmitted to the outside through a data interface (eg, muscle SCSI, IEEE1394, USB, SerialATA, LA, etc.). Storage in storage devices, or other systems.
辅助控制单元可在必要时将所接收的信号、指令、数据提供给主 处理单元, 以辅助其进行系统控制及数据处理。 The auxiliary control unit can provide the received signals, instructions, and data to the main processing unit when necessary to assist in system control and data processing.
显示输出单元将由主处理单元解压的图像信号再现输出,或直接 将被适当处理后原图像信号再现输出。 The display output unit reproduces the output of the image signal decompressed by the main processing unit, or directly reproduces the original image signal after being appropriately processed.
本发明数字图像处理记录方法实施例一采用二种不同的压縮方 式(方法)对一原图像采集后进行压缩处理并分别进行存储或传送处 理, 且运行控制为由程序控制的自动或半自动进行。 图像采集压缩处 理单元 100, 可以同时接收 n个(n为自然数)实时的原图像视频信号, 并对任 m(m n)个原图像视频信号进行双压缩处理。 The first embodiment of the digital image processing and recording method of the present invention uses two different compression methods (methods) to compress and process an original image and store or transmit the data separately, and the operation control is automatically or semi-automatically controlled by the program. . The image acquisition compression processing unit 100 can simultaneously receive n (n is a natural number) real-time original image video signals, and perform double compression processing on any m ( m n) original image video signals.
例原图像 1,经图像采集处理单元 101进行模数转换和数字编码
后分别送入二个图像压縮处理单元 102和 103。 按不同的压縮处理方 式 (方法) 进行处理 (例: 单元 102采用 MPEG— 1、 而单元 103采用 JPEG压縮标准,或单元 102以 352 X 288、 而单元 103以 720 X 576图 像分辨率, 或单元 102用 25帧 /秒、 而单元 103用 6帧 /秒的压缩 帧率…等), 经图像压縮处理单元 102和 103处理, 使同一原图像信 息, 形成了二种不同的压缩数据 (流), 而后通过数据总线 105输至 主处理单元进行存储处理。 The original image 1 is subjected to analog-to-digital conversion and digital encoding by the image acquisition processing unit 101. They are then sent to two image compression processing units 102 and 103, respectively. Processing according to different compression processing methods (methods) (eg, unit 102 uses MPEG-1, unit 103 uses JPEG compression standard, or unit 102 uses 352 X 288, and unit 103 uses 720 X 576 image resolution, Or unit 102 uses 25 frames/second, and unit 103 uses a compression frame rate of 6 frames/second, etc., and is processed by image compression processing units 102 and 103 to form two different compressed data for the same original image information. (Stream), and then transmitted to the main processing unit through the data bus 105 for storage processing.
如上述的双压縮处理时, 其采集处理单元例 101, 可以是经由一 个模数转换和数字编码电路进行数字编码后,再分为二个相同的数据 (流) 分别送入图像压縮处理单元 102和 103; 也可是以二个相同的 模数转换和数字编码电路同时接收原图像视频信号 1, 并分别进行数 字编码后, 再送入相应的图像压缩处理单元 102、 103。 In the double compression processing as described above, the acquisition processing unit example 101 can be digitally encoded by an analog-to-digital conversion and digital encoding circuit, and then divided into two identical data (streams) and sent to the image compression processing. The units 102 and 103 can also simultaneously receive the original image video signal 1 by two identical analog-to-digital conversion and digital encoding circuits, and digitally encode them, and then send them to the corresponding image compression processing units 102 and 103.
其余原图像处理按上述方法依此类推。 The rest of the original image processing is the same as described above.
本实施例的主处理单元 200, 对数据总线 105的各图像压縮数据 (流), 进行分类管理和处理, 并通过数据总线 201将该类数据(流) 送往存储单元记录存储, 或将经不同压缩方式(方法)处理的二种图 像压缩数据(流) 的其中一种或部份图像压縮数据(流)经数据接口 (例: IDE, SCSI、 ΙΕΕΕ1394 USB, SerialATA、 LAN等) 传送到外 部存储装置或其它系统中记录存储。 The main processing unit 200 of the embodiment performs classification management and processing on each image compression data (stream) of the data bus 105, and sends the data (stream) to the storage unit record storage through the data bus 201, or One or part of the image compression data (stream) of the two types of image compression data (stream) processed by different compression methods (methods) are transmitted via a data interface (eg, IDE, SCSI, ΙΕΕΕ1394 USB, SerialATA, LAN, etc.) Record storage to an external storage device or other system.
本实施例的存储单元 300, 是由一个或多个同类或不同类型的存 储装置组成, (例: 硬盘、 数据磁带机、 光盘刻录机、 闪存装置等), 存储单元 300将按主处理单元的要求分别将图像压缩数据(流)进行
记录存储或读取。 The storage unit 300 of the embodiment is composed of one or more storage devices of the same type or different types (for example, a hard disk, a data tape drive, a CD burner, a flash memory device, etc.), and the storage unit 300 will be according to the main processing unit. Requires separate image compression data (streaming) Record storage or reading.
本实施例的辅助控制单元 400, 由辅助信号单元 401和辅助信息 指令单元 402组成。辅助信号单元 401,可将来自于外部的信号(例- 开关量信号)经处理后传送给主处理单元; 辅助信息和指令单元, 可 接收外部输入的信息 (数据) 和指令, 并处理后传送给主处理单元, 以辅助主处理单元进行系统控制和数据处理(例: 压縮方式的选控或 压缩数据 (流) 中的辅助信息插入处理…等)。 The auxiliary control unit 400 of the present embodiment is composed of an auxiliary signal unit 401 and an auxiliary information instructing unit 402. The auxiliary signal unit 401 can process the signal from the outside (for example, the digital signal) to the main processing unit; the auxiliary information and the command unit can receive the externally input information (data) and instructions, and process and transmit The main processing unit is provided to assist the main processing unit for system control and data processing (for example: selective control of compression mode or auxiliary information insertion processing in compressed data (stream), etc.).
本实施例的显示输出单元 500, 是将经解压縮的图像数据(流), 或经适当处理的原图像再现并输出 (例: 以 AV或 VGA方式)。 The display output unit 500 of the present embodiment reproduces and outputs the decompressed image data (stream) or the appropriately processed original image (for example, in AV or VGA mode).
参照附图 3所示,图 3是一个以计算机硬结构或类似结构的实施 例。图中图像采集压縮处理单元 100,主处理单元 200,存储单元 300, 辅助控制单元 400, 图像再现单元 500, 这几部分功能与前述实施例 相似。 Referring to Figure 3, Figure 3 is an embodiment of a computer hard or similar structure. The image acquisition compression processing unit 100, the main processing unit 200, the storage unit 300, the auxiliary control unit 400, and the image reproduction unit 500 are similar in function to the foregoing embodiment.
前实施例的图像采集压缩处理单元 100, 在本实施例中是具有计 算机总线 (如 PCI总线) 方式的图像处理压缩卡组成的。 The image acquisition compression processing unit 100 of the previous embodiment is composed of an image processing compression card having a computer bus (e.g., PCI bus) mode in this embodiment.
前实施例主处理单元 200,在本实施中是由计算机主体部分组成, 包括主板、 CPU、 内存、 IDE接口、 PCI总线等, 在本实施例中图像压 缩数据 (流) 的解压缩是可由 CPU单元 202以软件方式完成并处理, 并通过显示卡单元 500输出。 The main processing unit 200 of the previous embodiment is composed of a main body of the computer, including a main board, a CPU, a memory, an IDE interface, a PCI bus, etc. In this embodiment, the decompression of the image compressed data (stream) is performed by the CPU. Unit 202 is completed and processed in software and output by display card unit 500.
本实施例中存储单元 300可是硬盘、 光盘刻录机、 闪存装置、 磁 带机等。 The storage unit 300 in this embodiment may be a hard disk, a compact disk recorder, a flash memory device, a tape drive or the like.
本实施例辅助信息控制接口单元 400 与前述实施例相同不再复
述。 The auxiliary information control interface unit 400 of this embodiment is the same as the foregoing embodiment. Said.
工业实用性 Industrial applicability
本发明能用二种或二种以上不同的压缩图像数据,体现原图像信 息的不同侧重内容, 因而满足用户的不同用途, 以避免顾此失彼或资 源的浪费。
The present invention can use two or more different compressed image data to reflect different content of the original image information, thereby satisfying different uses of the user, so as to avoid waste of resources or resources.