CN111818295A - An image acquisition method and device - Google Patents
An image acquisition method and device Download PDFInfo
- Publication number
- CN111818295A CN111818295A CN201910283294.6A CN201910283294A CN111818295A CN 111818295 A CN111818295 A CN 111818295A CN 201910283294 A CN201910283294 A CN 201910283294A CN 111818295 A CN111818295 A CN 111818295A
- Authority
- CN
- China
- Prior art keywords
- track
- image
- preset
- image data
- buffer area
- 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
-
- 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
- H04N7/181—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/265—Mixing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
Description
技术领域technical field
本申请涉及图像处理技术领域,特别是涉及一种图像获取方法及装置。The present application relates to the technical field of image processing, and in particular, to an image acquisition method and device.
背景技术Background technique
在摄像机拍摄并传输的实时码流或者已存储的录像中,当出现目标物、目标对象或者发生预设事件等时,需要获取目标物、目标对象出现或者预设事件发生时的一帧或者多帧图像,以针对所获取的图像进行后续处理。In the real-time code stream shot and transmitted by the camera or the stored video, when a target object, target object or preset event occurs, it is necessary to obtain one or more frames when the target object, target object or preset event occurs. frame images for subsequent processing of the acquired images.
目前,从实时码流或者录像中获取一帧图像的方式是通过抓图的方式获取的,抓图是从实时码流或者录像中抓取完整的一帧图像YUV数据,其中,Y表示明亮度,U表示色度,V表示浓度。再将所抓取的YUV数据编码成所要求的图像格式,例如JPEG格式,RGB格式等。At present, the way to obtain a frame of image from a real-time code stream or video is by capturing a picture, which is to capture a complete frame of image YUV data from the real-time code stream or video, where Y represents the brightness , U represents chromaticity, and V represents density. Then encode the captured YUV data into the required image format, such as JPEG format, RGB format, etc.
在有多个摄像机同时采集视频数据时,每一个摄像机对应有一个传输通道,且通过该传输通道可以将所拍摄的视频数据以码流的形式进行传输。抓图只能在一个传输通道中进行抓取,因此,在有多个摄像机同时进行拍摄时,需要从每一个摄像机所拍摄的视频中抓取图像,再利用大屏拼接技术将所抓取的多个图像拼接成为一个完整的图像。When multiple cameras collect video data at the same time, each camera corresponds to a transmission channel, and the captured video data can be transmitted in the form of a code stream through the transmission channel. Snapshots can only be captured in one transmission channel. Therefore, when there are multiple cameras shooting at the same time, it is necessary to capture images from the video captured by each camera, and then use the large-screen splicing technology to capture the captured images. Multiple images are stitched into one complete image.
具体地,每一传输通道对应有一个解码器,每一解码器对应有一个显示通道。每个摄像机将拍摄的视频数据通过传输通道传输至解码器,解码器对传输通道中的视频数据进行解码处理,并将解码处理后的数据通过显示通道传输至显示大屏,此时,每个显示通道中的数据所表示的图像仅是所需抓取图像中的部分图像。显示大屏将各部分图像通过大屏拼接技术进行拼接,得到拼接后的图像,对该拼接后的图像进行截图,即得到所需抓取的图像。Specifically, each transmission channel corresponds to a decoder, and each decoder corresponds to a display channel. Each camera transmits the captured video data to the decoder through the transmission channel, the decoder decodes the video data in the transmission channel, and transmits the decoded data to the large display screen through the display channel. The image represented by the data in the display channel is only a portion of the desired captured image. The large-screen display splices each part of the image through the large-screen splicing technology to obtain a spliced image, and takes a screenshot of the spliced image to obtain the image to be captured.
然而,目前实现抓图的方案中每一个摄像机需对应有一个传输通道,当摄像机增加时,需相应地增加传输通道,摄像机越多,所需的传输通道资源越多。However, in the current solution for capturing images, each camera needs to have a corresponding transmission channel. When the number of cameras is increased, the transmission channel needs to be increased accordingly. The more cameras, the more transmission channel resources are required.
发明内容SUMMARY OF THE INVENTION
本申请实施例的目的在于提供一种图像获取方法及装置,以解决在多个摄像设备的情况下传输通道资源浪费的问题。具体技术方案如下:The purpose of the embodiments of the present application is to provide an image acquisition method and apparatus, so as to solve the problem of waste of transmission channel resources in the case of multiple camera devices. The specific technical solutions are as follows:
第一方面,本申请实施例提供了一种图像获取方法,所述方法包括:In a first aspect, an embodiment of the present application provides an image acquisition method, the method comprising:
通过预设传输通道,获取待抓取画面的数据包,其中,所述数据包携带多个轨道的预设帧的码流,每个轨道对应至少一个摄像设备,所述预设帧为相同帧或相同时刻的帧;Obtain a data packet of a picture to be captured through a preset transmission channel, wherein the data packet carries the code stream of preset frames of multiple tracks, each track corresponds to at least one camera device, and the preset frames are the same frame or a frame at the same moment;
获取各轨道的码流对应的图像数据;Obtain the image data corresponding to the code stream of each track;
按照轨道与缓存区的对应关系,将所获取的各轨道的图像数据存储至所述各轨道对应的缓存区,得到所述待抓取画面的图像。According to the corresponding relationship between the track and the buffer area, the acquired image data of each track is stored in the buffer area corresponding to each track to obtain the image of the to-be-captured picture.
可选地,所述数据包还携带轨道数量信息;所述获取待抓取画面的数据包的步骤之后,还包括:Optionally, the data packet also carries track quantity information; after the step of acquiring the data packet of the to-be-captured picture, it also includes:
基于所述轨道数量信息,确定所需分配的缓存区的数量;Based on the track quantity information, determine the number of buffer areas to be allocated;
为每一轨道分配对应的缓存区,其中,所述缓存区用于存储该缓存区对应的轨道中的图像数据。A corresponding buffer area is allocated for each track, wherein the buffer area is used to store the image data in the track corresponding to the buffer area.
可选地,所述为每一轨道分配对应的缓存区,包括:Optionally, allocating a corresponding buffer area for each track includes:
分配可用存储空间不小于目标数据量、且宽度不小于预设宽度、高度不小于预设高度的总缓存区,其中,所述目标数据量为所述待抓取画面所生成图像的数据量,所述预设宽度和所述预设高度分别为针对所述待抓取画面所生成图像的宽度和高度;Allocate a total buffer area whose available storage space is not less than the target data volume, and whose width is not less than the preset width and the height is not less than the preset height, wherein the target data volume is the data volume of the image generated by the to-be-captured picture, The preset width and the preset height are respectively the width and height of the image generated for the to-be-captured picture;
将所述总缓存区的所述预设宽度进行平均划分,得到长度相同的多个子宽度,其中,所述多个子宽度的数量与所述多个轨道的数量相同;Dividing the preset width of the total buffer area equally to obtain multiple sub-widths with the same length, wherein the number of the multiple sub-widths is the same as the number of the multiple tracks;
将每个子宽度与所述预设高度所形成的区域确定为缓存区,其中,所确定出的缓存区与轨道为一一对应关系;Determine the area formed by each sub-width and the preset height as a buffer area, wherein the determined buffer area and the track are in a one-to-one correspondence;
所述按照轨道与缓存区的对应关系,将所获取的各轨道的图像数据存储至所述各轨道对应的缓存区,包括:The storing of the acquired image data of each track in the buffer area corresponding to each track according to the corresponding relationship between the track and the buffer area includes:
基于所获得的各轨道的图像数据,得到图像宽度为子宽度以及图像高度为所述预设高度的图像数据;Based on the obtained image data of each track, obtain image data whose image width is the sub-width and the image height is the preset height;
按照缓存区与轨道的一一对应关系,将所得到的各轨道的图像数据分别存储至所述各轨道对应的缓存区;According to the one-to-one correspondence between the buffer area and the track, the obtained image data of each track is respectively stored in the buffer area corresponding to each track;
在所述各轨道的图像数据存储完成后,将各缓存区中存储的图像数据进行组合,得到所述待抓取画面的图像。After the image data of each track is stored, the image data stored in each buffer area are combined to obtain the image of the to-be-captured picture.
可选地,所述方法还包括:Optionally, the method further includes:
在所述各轨道的图像数据存储完成后,对所存储的图像数据进行编码处理,得到预设格式的图像。After the image data of each track is stored, the stored image data is encoded to obtain an image in a preset format.
第二方面,本申请实施例提供了一种图像获取装置,所述装置包括:In a second aspect, an embodiment of the present application provides an image acquisition device, and the device includes:
第一获取模块,用于通过预设传输通道,获取待抓取画面的数据包,其中,所述数据包携带多个轨道的预设帧的码流,每个轨道对应至少一个摄像设备,所述预设帧为相同帧或相同时刻的帧;The first acquisition module is configured to acquire data packets of the to-be-captured pictures through a preset transmission channel, wherein the data packets carry the code streams of preset frames of multiple tracks, each track corresponds to at least one camera device, and the The preset frame is the same frame or a frame at the same moment;
第二获取模块,用于获取各轨道的码流对应的图像数据;The second acquisition module is used to acquire the image data corresponding to the code stream of each track;
存储模块,用于按照轨道与缓存区的对应关系,将所获取的各轨道的图像数据存储至所述各轨道对应的缓存区,得到所述待抓取画面的图像。The storage module is configured to store the acquired image data of each track in the buffer area corresponding to each track according to the corresponding relationship between the track and the buffer area, so as to obtain the image of the to-be-captured picture.
可选地,所述装置还包括:Optionally, the device further includes:
确定模块,用于基于所述轨道数量信息,确定所需分配的缓存区的数量;a determining module for determining the number of buffer areas to be allocated based on the track quantity information;
分配模块,用于为每一轨道分配对应的缓存区,其中,所述缓存区用于存储该缓存区对应的轨道的图像数据。The allocation module is configured to allocate a corresponding buffer area for each track, wherein the buffer area is used to store image data of the track corresponding to the buffer area.
可选地,所述分配模块具体用于:Optionally, the allocation module is specifically used for:
分配可用存储空间不小于目标数据量、且宽度不小于所述预设宽度、高度不小于所述预设高度的总缓存区,其中,所述目标数据量为所述待抓取画面所生成图像的数据量,所述预设宽度和所述预设高度分别为针对所述待抓取画面所生成图像的宽度和高度;Allocate a total buffer area whose available storage space is not less than the target data volume, and whose width is not less than the preset width and height is not less than the preset height, wherein the target data volume is the image generated by the to-be-captured screen The amount of data, the preset width and the preset height are respectively the width and height of the image generated for the to-be-captured picture;
将所述总缓存区的所述预设宽度进行平均划分,得到长度相同的多个子宽度,其中,所述多个子宽度的数量与所述多个轨道的数量相同;Dividing the preset width of the total buffer area equally to obtain multiple sub-widths with the same length, wherein the number of the multiple sub-widths is the same as the number of the multiple tracks;
将每个子宽度与所述预设高度所形成的区域确定为缓存区,其中,所确定出的缓存区与轨道为一一对应关系;Determine the area formed by each sub-width and the preset height as a buffer area, wherein the determined buffer area and the track are in a one-to-one correspondence;
所述存储模块具体用于:The storage module is specifically used for:
基于所获得的各轨道的图像数据,得到图像宽度为子宽度以及图像高度为所述预设高度的图像数据;Based on the obtained image data of each track, obtain image data whose image width is the sub-width and the image height is the preset height;
按照缓存区与轨道的一一对应关系,将所得到的各轨道的图像数据分别存储至所述各轨道对应的缓存区;According to the one-to-one correspondence between the buffer area and the track, the obtained image data of each track is respectively stored in the buffer area corresponding to each track;
在所述各轨道的图像数据存储完成后,将各缓存区中存储的图像数据进行组合,得到所述待抓取画面的图像。After the image data of each track is stored, the image data stored in each buffer area are combined to obtain the image of the to-be-captured picture.
可选地,所述装置还包括:Optionally, the device further includes:
编码模块,用于在所述各轨道的图像数据存储完成后,对所存储的图像数据进行编码处理,得到预设格式的图像。The encoding module is configured to perform encoding processing on the stored image data after the storage of the image data of each track is completed to obtain an image in a preset format.
第三方面,本申请实施例提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
存储器,用于存放计算机程序;memory for storing computer programs;
处理器,用于执行存储器上所存放的程序时,实现上述任一所述的图像获取方法步骤。The processor is configured to implement any of the image acquisition method steps described above when executing the program stored in the memory.
第四方面,本申请实施例提供了一种机器可读存储介质,所述机器可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一所述的图像获取方法步骤。In a fourth aspect, an embodiment of the present application provides a machine-readable storage medium, where a computer program is stored in the machine-readable storage medium, and when the computer program is executed by a processor, any one of the image acquisition methods described above is implemented step.
本申请实施例提供的技术方案中,通过预设传输通道,获取待抓取画面的数据包,其中,数据包携带多个轨道的预设帧的码流,每个轨道对应至少一个摄像设备,获取各轨道的码流对应的图像数据,按照轨道与缓存区的对应关系,将所获取的各轨道的图像数据存储至各轨道对应的缓存区,得到待抓取画面的图像。通过本申请实施例提供的技术方案,对于各摄像设备的预设帧的码流,在同一数据包中通过预设传输通道进行传输,且在该预设传输通道中得到各轨道的码流对应的图像数据,进而得到待抓取画面的图像。上述过程在一个传输通道中完成,即使摄像设备增加的情况下,也无需增加传输通道,节省了传输通道资源。并且,在一个传输通道中得到图像数据,将图像数据对应存储至缓存区即可在一个显示通道中得到待抓取画面的图像,无需再进行图像拼接处理,节省了图像拼接资源。In the technical solution provided by the embodiment of the present application, a data packet of a to-be-captured picture is obtained through a preset transmission channel, wherein the data packet carries a code stream of preset frames of multiple tracks, and each track corresponds to at least one camera device, The image data corresponding to the code stream of each track is acquired, and according to the correspondence between the track and the buffer area, the acquired image data of each track is stored in the buffer area corresponding to each track to obtain the image of the to-be-captured picture. With the technical solutions provided in the embodiments of the present application, the code streams of the preset frames of each camera device are transmitted through the preset transmission channel in the same data packet, and the corresponding code streams of each track are obtained in the preset transmission channel. the image data, and then obtain the image of the picture to be captured. The above process is completed in one transmission channel. Even if the number of camera devices is increased, there is no need to increase the transmission channel, which saves transmission channel resources. Moreover, by obtaining image data in one transmission channel and correspondingly storing the image data in the buffer area, the image of the to-be-captured picture can be obtained in one display channel, eliminating the need for image splicing processing and saving image splicing resources.
附图说明Description of drawings
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本申请实施例提供的图像获取方法的一种流程图;FIG. 1 is a flowchart of an image acquisition method provided by an embodiment of the present application;
图2(a)为所确定的缓存区的一种示意图;FIG. 2(a) is a schematic diagram of the determined buffer area;
图2(b)为基于所确定的缓存区得到的待抓取画面的图像;Figure 2 (b) is an image of the picture to be captured based on the determined buffer area;
图2(c)为基于所确定的缓存区得到的待抓取画面的一种示意图;Fig. 2 (c) is a kind of schematic diagram of the picture to be captured based on the determined buffer area;
图3(a)为所确定的缓存区的另一种示意图;FIG. 3(a) is another schematic diagram of the determined buffer area;
图3(b)为所确定的缓存区的另一种示意图;Figure 3(b) is another schematic diagram of the determined buffer area;
图4为本申请实施例提供的图像获取装置的一种结构示意图;FIG. 4 is a schematic structural diagram of an image acquisition apparatus provided by an embodiment of the present application;
图5为本申请实施例提供的电子设备的一种结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this application.
为了解决在多个摄像设备的情况下传输通道资源浪费的问题,本申请实施例提供了一种图像获取方法及装置,其中,该图像获取方法包括:In order to solve the problem of waste of transmission channel resources in the case of multiple camera devices, the embodiments of the present application provide an image acquisition method and apparatus, wherein the image acquisition method includes:
通过预设传输通道,获取待抓取画面的数据包,其中,数据包携带多个轨道的预设帧的码流,每个轨道对应至少一个摄像设备,所述预设帧为相同帧或相同时刻的帧;Obtain a data packet of a picture to be captured through a preset transmission channel, wherein the data packet carries the code stream of preset frames of multiple tracks, each track corresponds to at least one camera device, and the preset frames are the same frame or the same the frame of the moment;
获取各轨道的码流对应的图像数据;Obtain the image data corresponding to the code stream of each track;
按照轨道与缓存区的对应关系,将所获取的各轨道的图像数据存储至缓存区,得到待抓取画面的图像。According to the corresponding relationship between the track and the buffer area, the acquired image data of each track is stored in the buffer area to obtain the image of the picture to be captured.
通过本申请实施例提供的技术方案,对于各摄像设备的预设帧的码流,在同一数据包中通过预设传输通道进行传输,且在该预设传输通道中得到各轨道的码流对应的图像数据,进而得到待抓取画面的图像。上述过程在一个传输通道中完成,即使摄像设备增加的情况下,也无需增加传输通道,节省了传输通道资源。并且,在一个传输通道中得到图像数据,将图像数据对应存储至缓存区即可在一个显示通道中得到待抓取画面的图像,无需再进行图像拼接处理,节省了图像拼接资源。With the technical solutions provided in the embodiments of the present application, the code streams of the preset frames of each camera device are transmitted through the preset transmission channel in the same data packet, and the corresponding code streams of each track are obtained in the preset transmission channel. the image data, and then obtain the image of the picture to be captured. The above process is completed in one transmission channel. Even if the number of camera devices is increased, there is no need to increase the transmission channel, which saves transmission channel resources. Moreover, by obtaining image data in one transmission channel and correspondingly storing the image data in the buffer area, the image of the to-be-captured picture can be obtained in one display channel, eliminating the need for image splicing processing and saving image splicing resources.
下面首先对本申请实施例提供的图像获取方法进行介绍。本申请实施例提供的一种图像获取方法,可以应用于视频处理设备,该视频处理设备可以与一个或多个摄像设备连接,各摄像设备可以将所拍摄的视频数据发送至该视频处理设备进行处理。另外,视频处理设备接收摄像设备发送的码流时,可以对所接收的码流进行解码处理,得到该摄像设备所拍摄的视频图像。The following first introduces the image acquisition method provided by the embodiment of the present application. An image acquisition method provided by an embodiment of the present application can be applied to a video processing device. The video processing device can be connected to one or more camera devices, and each camera device can send the captured video data to the video processing device for processing. deal with. In addition, when the video processing device receives the code stream sent by the imaging device, it can perform decoding processing on the received code stream to obtain a video image captured by the imaging device.
如图1所示,本申请实施例提供的一种图像获取方法,包括如下步骤。As shown in FIG. 1 , an image acquisition method provided by an embodiment of the present application includes the following steps.
S101,通过预设传输通道,获取待抓取画面的数据包。S101: Acquire a data packet of a to-be-captured image through a preset transmission channel.
其中,数据包携带多个轨道的预设帧的码流,每个轨道对应至少一个摄像设备。例如,摄像设备1对应的轨道为轨道1,摄像设备1输出的码流即为该轨道1的码流。Wherein, the data packet carries the code streams of preset frames of multiple tracks, and each track corresponds to at least one camera device. For example, the track corresponding to the camera device 1 is the track 1, and the code stream output by the camera device 1 is the code stream of the track 1.
其中,预设帧为相同帧或相同时刻的帧。The preset frame is the same frame or a frame at the same moment.
当预设帧为相同帧时,一个数据包中包括的码流为各摄像设备的相同帧的码流。例如,摄像设备包括摄像设备1、摄像设备2和摄像设备3,摄像设备1的第一帧图像的码流与摄像设备2的第一帧图像的码流、摄像设备3的第一帧图像的码流打包成为一个数据包。When the preset frame is the same frame, the code stream included in one data packet is the code stream of the same frame of each imaging device. For example, the imaging device includes imaging device 1, imaging device 2, and imaging device 3. The code stream of the first frame of image of imaging device 1 is the same as the code stream of the first frame of image of imaging device 2, and the code stream of the first frame of image of imaging device 3. The stream is packaged into a data packet.
当预设帧为相同时刻的帧时,一个数据包中包括的码流为各摄像设备的相同时刻的帧的码流。例如,摄像设备1在12点时刻的码流、摄像设备2在12点时刻的码流以及摄像设备3在12点时刻的码流,打包成为一个数据包。When the preset frame is the frame at the same time, the code stream included in one data packet is the code stream of the frame at the same time of each imaging device. For example, the code stream of the camera device 1 at 12:00, the code stream of the camera device 2 at 12:00, and the code stream of the camera device 3 at 12:00 are packaged into a data packet.
一种实现方式中,一个数据包中所包括的码流可以仅为一帧图像的码流,例如,第一个数据包包括各摄像机的第一帧图像的码流,第二个数据包包括各摄像机的第二帧图像的码流。其中,一个数据包中不同摄像机的码流可以利用预设的开始标记和结束标记来区分。In an implementation manner, the code stream included in one data packet may only be the code stream of one frame of image, for example, the first data packet includes the code stream of the first frame of image of each camera, and the second data packet includes The code stream of the second frame image of each camera. Among them, the code streams of different cameras in a data packet can be distinguished by the preset start mark and end mark.
另一种实现方式中,一个数据包中所包括的码流还可以包括多帧图像的码流,这种情况下,数据包中可以有每一帧码流的开始和结束的标记,以用于区分每一帧的码流。In another implementation manner, the code stream included in a data packet may also include a code stream of multiple frames of images. In this case, the data packet may include the start and end marks of each frame of code stream to use To distinguish the code stream of each frame.
其中,预设传输通道可以是自定义设定的,该预设传输通道用于对所连接的多个摄像设备的码流进行传输,也就是说,该多个摄像设备通过该预设传输通道传输码流。The preset transmission channel may be a user-defined setting, and the preset transmission channel is used to transmit the code streams of the connected multiple camera devices, that is, the multiple camera devices pass through the preset transmission channel. transport stream.
一种实现方式中,预先自定义一种传输协议,每个摄像设备根据该传输协议将所获取的图像信息编码成为码流,并将编码所得到的码流与其他摄像设备的码流打包成为一个数据包,通过预设传输通道对该数据包进行传输。In one implementation, a transmission protocol is pre-defined, and each camera device encodes the acquired image information into a code stream according to the transmission protocol, and packages the code stream obtained by encoding and the code stream of other camera devices into a code stream. A data packet, which is transmitted through a preset transmission channel.
以自定义的协议为多轨流协议为例进行说明,多轨流协议为用于码流编解码、传输、预览、录像存储等的码流协议,多轨流码流包括了基于多个摄像设备的图像信息所编码而成的多个轨道的码流,不同轨道的码流图像之间可以拼接组合成一个图像,并且,多个轨道的码流可以在一个传输通道中进行传输、预览、录像存储等处理。该多轨流协议的协议头中可以包括轨道数量、各轨道的码流在数据包中的开始、结束标记等信息。Take the custom protocol as an example of a multi-track streaming protocol. The multi-track streaming protocol is a streaming protocol used for stream encoding and decoding, transmission, preview, video storage, etc. The code stream of multiple tracks encoded by the image information of the device can be spliced and combined into one image between the code stream images of different tracks, and the code streams of multiple tracks can be transmitted, previewed, Video storage, etc. The protocol header of the multi-track streaming protocol may include information such as the number of tracks, the start and end markers of the code stream of each track in the data packet, and the like.
另一种实现方式中,各摄像设备可以与一个处理设备连接,各摄像设备可以将各自采集的图像信息发送至该处理设备。处理设备接收到各摄像设备发送的图像信息后,可以对图像信息进行编码成为码流,并将属于同一帧图像的码流打包成为一个数据包,以数据包的形式通过预设传输通道进行传输。In another implementation manner, each imaging device may be connected to one processing device, and each imaging device may send image information collected by itself to the processing device. After the processing device receives the image information sent by each camera device, it can encode the image information into a code stream, and package the code stream belonging to the same frame of image into a data packet, which is transmitted through the preset transmission channel in the form of a data packet. .
例如,处理设备分别连接摄像设备1、摄像设备2和摄像设备3,摄像设备1、摄像设备2和摄像设备3分别将各自采集的第一帧图像信息发送至处理设备,处理设备对所接收的第一帧图像信息进行编码成为针对第一帧图像的码流,并将摄像设备1的第一帧图像的码流、摄像设备2的第一帧图像的码流以及摄像设备3的第一帧图像的码流打包成为一个数据包,将该数据包通过预设传输通道进行传输。这样,保证了摄像设备1、摄像设备2和摄像设备3所拍摄的第一帧图像是同步的。For example, the processing device is connected to the camera device 1, the camera device 2, and the camera device 3, respectively, and the camera device 1, the camera device 2, and the camera device 3 respectively send the first frame of image information collected to the processing device. The first frame image information is encoded into the code stream for the first frame image, and the code stream of the first frame image of the camera device 1, the code stream of the first frame image of the camera device 2, and the first frame image of the camera device 3 are encoded. The code stream of the image is packaged into a data packet, and the data packet is transmitted through the preset transmission channel. In this way, it is ensured that the first frame of images captured by the imaging device 1 , the imaging device 2 and the imaging device 3 are synchronized.
通过上述任一种实现方式,均可以使得属于同一帧图像的码流在同一个数据包中进行传输,进而保证了各摄像设备之间的同步。Through any of the above-mentioned implementation manners, the code streams belonging to the same frame of image can be transmitted in the same data packet, thereby ensuring the synchronization between the camera devices.
其中,待抓取画面可以是自定义设定的。例如,在实时播放摄像设备拍摄的视频画面的场景下,可以将当前显示的画面作为待抓取画面。在对已存储的视频进行回放的场景下,可以在回放过程中将当前显示的画面作为待抓取画面。还可以将当前所播放视频的第一帧图像的画面确定为待抓取画面。Wherein, the to-be-captured picture may be customized. For example, in a scenario of playing a video image captured by a camera device in real time, the currently displayed image may be used as the image to be captured. In the scenario of playing back the stored video, the currently displayed picture can be used as the picture to be captured during the playback. The picture of the first frame image of the currently playing video may also be determined as the picture to be captured.
在对已存储的视频进行回放的场景下,可以将视频中的任一帧的画面确定为待抓取画面,因此,可以根据用户指令确定待抓取画面,并从回放的视频中获取待抓取画面的图像。In the scenario of replaying the stored video, any frame in the video can be determined as the to-be-captured image. Therefore, the to-be-captured image can be determined according to the user's instruction, and the to-be-captured image can be obtained from the replayed video. Take an image of the screen.
其中,数据包中还可以包括MFI(Multiple Frame Indicator,合成帧信息字节)信息,该MFI信息可以包括轨道数量、该数据包中各码流的信息、各轨道的码流开始和结束的标识等。Wherein, the data packet may also include MFI (Multiple Frame Indicator, composite frame information byte) information, and the MFI information may include the number of tracks, the information of each code stream in the data packet, and the identification of the start and end of the code stream of each track Wait.
S102,获取各轨道的码流对应的图像数据。S102: Acquire image data corresponding to the code stream of each track.
其中,若轨道中传输的码流为解码后的图像数据,则可以直接从各轨道获取图像数据。若轨道中传输的码流为编码后的图像数据,则可以对每一轨道的码流进行解码处理,得到该轨道的图像数据。Wherein, if the code stream transmitted in the track is the decoded image data, the image data can be directly obtained from each track. If the code stream transmitted in the track is encoded image data, the code stream of each track can be decoded to obtain the image data of the track.
在获取到数据包之后,可以获取数据包所携带的码流,所获取的码流包括各轨道的码流,即各摄像设备输出的码流。在获取到各轨道的码流之后,分别对每一轨道的码流进行解码处理。After the data packet is acquired, the code stream carried by the data packet can be acquired, and the acquired code stream includes the code stream of each track, that is, the code stream output by each camera device. After the code stream of each track is acquired, the code stream of each track is decoded respectively.
其中,对每一轨道的码流进行解码处理的一种实施方式中,每一轨道对应有解码器,解码器可以对所对应轨道上的码流进行解码,且每个轨道对应的解码器不会对该轨道以外的其他轨道的码流进行解码。Among them, in an embodiment of decoding the code stream of each track, each track corresponds to a decoder, the decoder can decode the code stream on the corresponding track, and the decoder corresponding to each track does not The codestreams of tracks other than this track will be decoded.
例如,摄像设备1对应轨道1,摄像设备2对应轨道2,摄像设备3对应轨道3,其中,轨道1对应解码器1,轨道2对应解码器2,轨道3对应解码器3。那么,解码器1对轨道1的码流进行解码处理,解码器2对轨道2的码流进行解码处理,解码器3对轨道3的码流进行解码处理。For example, camera device 1 corresponds to track 1, camera device 2 corresponds to track 2, and camera device 3 corresponds to track 3, wherein track 1 corresponds to decoder 1, track 2 corresponds to decoder 2, and track 3 corresponds to decoder 3. Then, decoder 1 decodes the code stream of track 1, decoder 2 decodes the code stream of track 2, and decoder 3 decodes the code stream of track 3.
其中,图像数据为用于表示图像的数据,图像数据可以是YUV数据、RGB数据等。本申请实施例中以YUV数据为例进行介绍。也就是说,若获取到的图像数据为YUV数据,该YUV数据可以用来表示一张图像。例如,当YUV数据来源于摄像设备1时,该YUV数据所表示的图像即为摄像设备1所拍摄的图像。The image data is data used to represent an image, and the image data may be YUV data, RGB data, or the like. In the embodiments of the present application, YUV data is used as an example for introduction. That is to say, if the acquired image data is YUV data, the YUV data can be used to represent an image. For example, when the YUV data comes from the imaging device 1 , the image represented by the YUV data is the image captured by the imaging device 1 .
S103,按照轨道与缓存区的对应关系,将所获取的各轨道的图像数据存储至各轨道对应的缓存区,得到待抓取画面的图像。S103, according to the corresponding relationship between the track and the buffer area, store the acquired image data of each track in the buffer area corresponding to each track, and obtain the image of the picture to be captured.
其中,轨道与缓存区的对应关系可以是预设的,还可以是在根据数据包携带的码流确定的,在此不作限定。轨道与缓存区的对应关系用于确定每一轨道的图像数据的存储位置。在各轨道的图像数据均存储至对应的缓存区之后,也就是说,各缓存区中均已存储对应的图像数据后,所有存储图像数据组合起来,即形成一张图像,该图像即为待抓取画面的图像。The corresponding relationship between the track and the buffer area may be preset or determined according to the code stream carried in the data packet, which is not limited herein. The correspondence between the track and the buffer area is used to determine the storage location of the image data of each track. After the image data of each track is stored in the corresponding buffer area, that is to say, after the corresponding image data has been stored in each buffer area, all the stored image data are combined to form an image, and the image is to be Capture an image of the screen.
例如,摄像设备包括摄像设备1、摄像设备2和摄像设备3,缓存区包括缓存区1、缓存区2和缓存区3,如图2(a)所示,其中,摄像设备1对应缓存区1,摄像设备2对应缓存区2,摄像设备3对应缓存区3。摄像设备1输出的码流经过解码处理后得到的YUV数据存储至缓存区1中,摄像设备2输出的码流经过解码处理后得到的YUV数据存储至缓存区2中,摄像设备3输出的码流经过解码处理后得到的YUV数据存储至缓存区3中。在上述3个缓存区均存储所对应摄像设备的YUV数据之后,3个缓存区中的YUV数据组合在一起,可以得到一张组合而成的图像,如图2(b)所示,图中的两条竖线是为了便于与图2(a)进行比对而加的,最终得到图像,即待抓取画面的图像,如图2(c)所示。For example, the camera equipment includes camera equipment 1, camera equipment 2 and camera equipment 3, and the buffer area includes buffer area 1, buffer area 2 and buffer area 3, as shown in Figure 2(a), wherein camera equipment 1 corresponds to buffer area 1 , the camera device 2 corresponds to the buffer area 2, and the camera device 3 corresponds to the buffer area 3. The YUV data obtained after the decoding process of the code stream output by the camera device 1 is stored in the buffer area 1, the YUV data obtained after the decoding process of the code stream output by the camera device 2 is stored in the buffer area 2, and the code output by the camera device 3 is stored in the buffer area 2. The YUV data obtained after the stream is decoded is stored in the buffer area 3 . After the above three buffer areas all store the YUV data of the corresponding camera equipment, the YUV data in the three buffer areas are combined to obtain a combined image, as shown in Figure 2(b), in the figure The two vertical lines of are added for the convenience of comparison with Figure 2(a), and finally an image is obtained, that is, the image of the picture to be captured, as shown in Figure 2(c).
一种实施方式中,缓存区是预先设定的。缓存区的数量与轨道的数量一致,每一个轨道与一个缓存区相对应,可以是一一对应关系。在缓存区确定的情况下,预先确定每一轨道与缓存区的对应关系。在后续进行图像获取的过程中,该对应关系保持不变,也就是说,每个轨道中传输的图像数据固定存储至对应的缓存区中。In one embodiment, the buffer area is preset. The number of buffer areas is consistent with the number of tracks, and each track corresponds to a buffer area, which can be in a one-to-one correspondence. When the buffer area is determined, the corresponding relationship between each track and the buffer area is predetermined. In the subsequent image acquisition process, the corresponding relationship remains unchanged, that is, the image data transmitted in each track is fixedly stored in the corresponding buffer area.
例如,缓存区1和缓存区2是预设的,且预先设定轨道1对应缓存区1,轨道2对应缓存区2,则在进行图像获取时,轨道1中传输的图像数据存储至缓存区1中,轨道2中传输的图像数据存储至缓存区2中。For example, buffer area 1 and buffer area 2 are preset, and it is preset that track 1 corresponds to buffer area 1, and track 2 corresponds to buffer area 2. When image acquisition is performed, the image data transmitted in track 1 is stored in the buffer area. In 1, the image data transmitted in track 2 is stored in buffer 2.
在该实施方式中,可以对缓存区进行调整,并重新对轨道与缓存区的对应关系进行调整。In this embodiment, the buffer area can be adjusted, and the corresponding relationship between the track and the buffer area can be adjusted again.
一种实施方式中,每一轨道所对应的缓存区可以是自定义设置的缓存区,各轨道对应的缓存区可以是连续的,也可以是非连续的。基于轨道与缓存区的对应关系,可以将各轨道中的图像数据存储至对应的缓存区中。在需要生成图像时,可以从各缓存区中获取所存储的图像数据,并将所获取的图像数据按照预设排列规则组合,即可以得到待抓取画面的图像。其中,在对各图像数据进行组合后,可以进行格式转换、缩放处理等,进而得到符合要求的待抓取画面的图像。In one embodiment, the buffer area corresponding to each track may be a self-defined buffer area, and the buffer area corresponding to each track may be continuous or non-consecutive. Based on the correspondence between the track and the buffer area, the image data in each track can be stored in the corresponding buffer area. When an image needs to be generated, the stored image data can be obtained from each buffer area, and the obtained image data can be combined according to a preset arrangement rule, that is, the image of the to-be-captured picture can be obtained. Wherein, after each image data is combined, format conversion, scaling processing, etc. can be performed, so as to obtain an image of the picture to be captured that meets the requirements.
其中,预设排列规则可以是自定义的。例如,轨道1中的图像数据是摄像设备1拍摄得到的,轨道2中的图像数据是摄像设备2拍摄得到的,轨道3中的图像数据是摄像设备3拍摄得到的,预设排列规则是:轨道1中的图像数据位于最左侧、轨道2中的图像数据位于中间、轨道3中的图像数据位于最右侧,则所得到的待抓取画面的图像中摄像设备1所拍摄的画面位于最左侧,摄像设备2所拍摄的画面位于中间,摄像设备3所拍摄的画面位于最右侧。The preset arrangement rules may be customized. For example, the image data in track 1 is captured by camera device 1, the image data in track 2 is captured by camera device 2, and the image data in track 3 is captured by camera device 3. The preset arrangement rules are: The image data in track 1 is located on the leftmost, the image data in track 2 is located in the middle, and the image data in track 3 is located on the far right, then the image captured by the camera device 1 in the obtained image to be captured is located at the On the leftmost side, the picture captured by the imaging device 2 is in the middle, and the picture captured by the imaging device 3 is in the far right.
一种实施方式中,获取待抓取画面的数据包的步骤(S101)之后,还可以包括如下步骤:基于轨道数量信息,确定所需分配的缓存区的数量;根据数据包中各轨道的码流的数据量,为每一轨道分配缓存区。In one embodiment, after the step (S101) of acquiring the data packet of the picture to be captured, the following steps may also be included: based on the track quantity information, determine the number of buffer areas to be allocated; The amount of data to stream, with buffers allocated for each track.
数据包中可以携带轨道数量信息,该轨道数量信息用于表示数据包中携带的各码流所属的轨道的数量。基于轨道数量信息,即可以确定缓存区的数量,缓存区的数量与轨道的数量一致。例如,数据包携带的轨道数量信息为4,则表示该数据包中携带有4个轨道的码流,且可以确定缓存区的数量为4。The data packet may carry track quantity information, where the track quantity information is used to indicate the number of tracks to which each code stream carried in the data packet belongs. Based on the track number information, the number of buffer areas can be determined, and the number of buffer areas is consistent with the number of tracks. For example, if the track quantity information carried in the data packet is 4, it means that the data packet carries code streams of 4 tracks, and it can be determined that the number of buffer areas is 4.
在确定缓存区的数量之后,可以对各缓存区的可用存储空间进行分配,每一缓存区的可用存储空间可以是自定义设定的。也就是说,各缓存区的可用存储空间可以大于等于该缓存区所对应的轨道中的图像数据的数据量,在这种情况下,可以将轨道中的图像数据直接存储至对应的缓存区中。各缓存区的可用存储空间可以小于该缓存区所对应的轨道中的图像数据的数据量,在这种情况下,在存储之前,可以对轨道中的图像数据进行缩放处理,使得图像数据的数据量小于等于所对应的缓存区的可用存储空间。After the number of buffer areas is determined, the available storage space of each buffer area may be allocated, and the available storage space of each buffer area may be set by yourself. That is to say, the available storage space of each buffer area can be greater than or equal to the data amount of the image data in the track corresponding to the buffer area. In this case, the image data in the track can be directly stored in the corresponding buffer area. . The available storage space of each buffer area may be smaller than the data amount of the image data in the track corresponding to the buffer area. The amount is less than or equal to the available storage space of the corresponding buffer area.
一种实现方式中,为了保证每个缓存区有足够的可用存储空间来存储所对应轨道的图像数据,在进行缓存区分配时,可以为每一缓存区分配的可用存储空间大于或者等于该缓存区所对应轨道的图像数据的数据量,即可以认为,每一缓存区的可用存储空间大于或者等于该缓存区所对应轨道的码流的数据量。这样,即使轨道的图像数据在未进行缩放的情况下也可以存储在对应的缓存区中。In one implementation, in order to ensure that each buffer area has enough available storage space to store the image data of the corresponding track, when the buffer area is allocated, the available storage space allocated for each buffer area may be greater than or equal to the buffer area. The data amount of the image data of the track corresponding to the area, that is, it can be considered that the available storage space of each buffer area is greater than or equal to the data amount of the code stream of the track corresponding to the buffer area. In this way, even the image data of the track can be stored in the corresponding buffer area without scaling.
一种实施方式中,数据包可以携带针对待抓取画面所生成图像的目标数据量。其中,可以自定义设定图像的目标数据量,即设定所生成的图像的大小,例如,目标数据量设定为5M,则表示待抓取画面所生成的图像为5M。In one embodiment, the data packet may carry the target data amount of the image generated for the to-be-captured picture. The target data volume of the image can be customized, that is, the size of the generated image can be set. For example, if the target data volume is set to 5M, it means that the image generated by the image to be captured is 5M.
另外,数据包还可以携带针对待抓取画面所生成图像的宽高信息,宽高信息包括预设宽度和预设高度,也就是说,待抓取画面所生成的图像的宽度为预设宽度,高度为预设高度。其中,预设宽度和预设高度均可以是自定义设定的,例如,预设宽度为800像素,预设高度为480像素,则表示待抓取画面所生成的图像的分辨率宽度为800像素,分辨率高度为480像素。In addition, the data packet can also carry the width and height information of the image generated for the image to be captured, and the width and height information includes a preset width and a preset height, that is, the width of the image generated by the image to be captured is the preset width , the height is the preset height. Wherein, both the preset width and the preset height can be set by yourself. For example, if the preset width is 800 pixels and the preset height is 480 pixels, it means that the resolution width of the image generated by the image to be captured is 800 pixels. pixels, the resolution height is 480 pixels.
在上述实施方式的基础上,为每一轨道分配缓存区的步骤,可以具体包括如下步骤。On the basis of the foregoing implementation manner, the step of allocating a buffer area for each track may specifically include the following steps.
可以先分配一个总缓存区,该总缓存区用于存储数据包中各轨道的码流经过解码处理后的图像数据。其中,总缓存区的可用存储空间可以根据针对待抓取画面所生成图像的目标数据量自定义分配,也就是说,总缓存区的可用存储空间至少应不小于该目标数据量。另外,总缓存区的宽度不小于预设宽度,且高度不小于预设高度。其中,预设宽度和预设高度为针对待抓取画面所生成图像的宽度和高度,该预设宽度和预设高度可以是自定义设定的。A total buffer area may be allocated first, and the total buffer area is used to store the decoded image data of the code stream of each track in the data packet. The available storage space of the total buffer area can be allocated according to the target data volume of the images generated for the images to be captured, that is to say, the available storage space of the total buffer area should at least not be less than the target data volume. In addition, the width of the total buffer area is not less than the preset width, and the height is not less than the preset height. The preset width and preset height are the width and height of the image generated for the image to be captured, and the preset width and preset height may be set by yourself.
在分配总缓存区之后,可以将该总缓存区的预设宽度进行平均划分,得到长度相同的多个子宽度。其中,所划分的子宽度的数量与轨道的数量相同。例如,摄像设备的数量为4,则轨道的数量也为4,当总缓存区的预设宽度为800像素时,可以将该预设宽度平均划分为4个子宽度,每个子宽度为200像素。After allocating the total buffer area, the preset width of the total buffer area may be equally divided to obtain multiple sub-widths with the same length. The number of divided sub-widths is the same as the number of tracks. For example, if the number of camera devices is 4, the number of tracks is also 4. When the preset width of the total buffer area is 800 pixels, the preset width can be equally divided into 4 sub-widths, and each sub-width is 200 pixels.
将每个子宽度与预设高度所形成的区域确定为缓存区,也就是说,总缓存区包括多个相同大小的缓存区。每个缓存区的宽度为子宽度,高度为预设高度。如图3(a)所示,总缓存区的预设宽度为W,预设高度为H,有T1个轨道,则将预设宽度W平均划分为T1等分,每个子宽度为W/T1。将每个子宽度W/T1与预设高度H所形成的区域确定为缓存区,如图中的第一缓存区、第二缓存区……第T1缓存区。An area formed by each sub-width and a preset height is determined as a buffer area, that is, the total buffer area includes a plurality of buffer areas of the same size. The width of each buffer is the sub-width and the height is the preset height. As shown in Figure 3(a), the preset width of the total buffer area is W, the preset height is H, and there are T1 tracks, then the preset width W is equally divided into T1 equal parts, and each sub-width is W/T1 . The area formed by each sub-width W/T1 and the preset height H is determined as a buffer area, such as the first buffer area, the second buffer area, and the T1-th buffer area in the figure.
其中,所确定出的缓存区与轨道可以为一一对应关系,也就是说,每一缓存区对应一个轨道,该轨道的图像数据存储至该轨道对应的缓存区中。The determined buffer areas and tracks may be in a one-to-one correspondence, that is, each buffer area corresponds to a track, and the image data of the track is stored in the buffer area corresponding to the track.
在确定缓存区之后,按照轨道与缓存区的对应关系,将所得到的各轨道的图像数据存储至各轨道对应的缓存区的步骤(S103),可以包括如下步骤。After the buffer area is determined, according to the corresponding relationship between the track and the buffer area, the step of storing the obtained image data of each track in the buffer area corresponding to each track ( S103 ) may include the following steps.
基于所获得的各轨道的图像数据,可以得到图像宽度为子宽度以及图像高度为预设高度的图像数据。其中,当各轨道的图像数据的宽和高与所对应的缓存区的宽和高是一致的,则可以将该图像数据直接存储至所对应的缓存区中,当轨道中的图像数据的宽和高与所对应的缓存区的宽和高不一致时,则可以先对该轨道中的图像数据进行缩放处理,使得经过缩放处理后的图像数据的宽和高与所对应的缓存区的宽和高是一致的。一种实现方式中,可以利用VGS(Video Graphics Sub-System,视频图形子系统)分别对各轨道的图像数据进行压缩处理,其中,VGS可以对图像进行缩放、格式转换、解码等处理。Based on the obtained image data of each track, image data with an image width of a sub-width and an image height of a preset height can be obtained. Wherein, when the width and height of the image data of each track are consistent with the width and height of the corresponding buffer area, the image data can be directly stored in the corresponding buffer area. When the sum and height are inconsistent with the width and height of the corresponding buffer area, the image data in the track can be scaled first, so that the width and height of the scaled image data are the same as the width and height of the corresponding buffer area. High is consistent. In an implementation manner, VGS (Video Graphics Sub-System, video graphics subsystem) can be used to compress the image data of each track, wherein the VGS can perform processing such as scaling, format conversion, and decoding on the image.
在各轨道的图像数据经过缩放处理成子宽度和预设高度的图像数据后,可以按照缓存区与轨道的一一对应关系,将各轨道的经过缩放处理后的图像数据分别存储至各轨道对应的缓存区。After the image data of each track is scaled into image data of sub-width and preset height, the scaled image data of each track can be stored in the corresponding cache area.
以图3(a)为例,有T1个轨道,其中,第一轨道和第一缓存区对应,第二轨道和第二缓存区对应……第T1轨道和第T1缓存区对应,则将第一轨道的经过缩放处理后的图像数据存储至第一缓存区,将第二轨道的经过缩放处理后的图像数据存储至第二缓存区,将第T1轨道的经过缩放处理后的图像数据存储至第T1缓存区。Taking Figure 3(a) as an example, there are T1 tracks, in which the first track corresponds to the first buffer area, the second track corresponds to the second buffer area... The T1th track corresponds to the T1th buffer area, then the first track corresponds to the T1th buffer area. The zoomed image data of one track is stored in the first buffer area, the zoomed image data of the second track is stored in the second buffer area, and the zoomed image data of the T1th track is stored in the T1 cache area.
基于经过缩放处理后的图像数据和缓存区的宽和高均相同,在将图像数据存储至缓存区后,整个缓存区会被图像数据填满,则该缓存区中的图像数据可以表示出一张图像。Based on the image data after scaling processing and the buffer area having the same width and height, after the image data is stored in the buffer area, the entire buffer area will be filled with image data, then the image data in the buffer area can represent a image.
其中,将各轨道的经过缩放处理后的图像数据分别存储至各轨道对应的缓存区时,可以针对多个缓存区同时进行存储,还可以按照自定义的顺序依次进行存储。例如,图3(a)中按照标识从小到大的顺序进行存储,即先针对第一缓存区进行存储,再针对第二缓存区进行存储,最后针对第T1缓存区进行存储,当针对第T1缓存区的存储完成后,即整个总缓存区的存储完成。Wherein, when the scaled image data of each track is respectively stored in the buffer area corresponding to each track, the storage may be performed for multiple buffer areas at the same time, or may be sequentially stored in a custom order. For example, in Fig. 3(a), the identifiers are stored in the order from small to large, that is, the first buffer area is stored first, then the second buffer area is stored, and finally the T1-th buffer area is stored. After the storage of the buffer area is completed, the storage of the entire total buffer area is completed.
在各轨道的图像数据存储完成后,将各缓存区中存储的图像数据进行组合,可以得到待抓取画面的图像。其中,组合的方式可以是由各缓存区中存储的图像数据直接得到一张图像,该图像即为待抓取画面的图像。例如,待抓取画面的图像为一张YUV图像,缓存区分为Y、U、V三部分分别进行存储,则此时可以直接得到一张YUV图像,即待抓取画面的图像。又例如,待抓取画面的图像为一张比特图像,缓存区为连续的,则可以直接得到待抓取画面的图像。另外,组合的方式还可以对各缓存区中的图像数据进行数据转换处理,得到符合图像格式等要求的图像数据,由数据转换处理后的图像数据所得到的图像即为待抓取画面的图像。After the image data of each track is stored, the image data stored in each buffer area is combined to obtain the image of the to-be-captured picture. Wherein, the combination method may be to directly obtain an image from the image data stored in each buffer area, and the image is the image of the to-be-captured picture. For example, if the image of the picture to be captured is a YUV image, and the cache is divided into three parts, Y, U, and V for storage, then a YUV image can be directly obtained at this time, that is, the image of the picture to be captured. For another example, if the image of the picture to be captured is a bit image and the buffer area is continuous, the image of the picture to be captured can be directly obtained. In addition, the combination method can also perform data conversion processing on the image data in each buffer area to obtain image data that meets the requirements of the image format, etc. The image obtained from the image data after data conversion processing is the image of the screen to be captured. .
一种实现方式中,总缓存区平均划分为T1个缓存区,所划分的T1个缓存区如图3(a)所示,在确定出每个缓存区之后,确定出每个缓存区的首地址,如图3(b)所示。相邻两个缓存区是相接的,也就是说,缓存区的首地址与该缓存区相邻的上一个缓存区的末地址是连续的。例如,第二缓存区的首地址为第一缓存区的末地址。In one implementation, the total buffer area is evenly divided into T1 buffer areas, and the divided T1 buffer areas are shown in Figure 3(a). After each buffer area is determined, the first buffer area of each buffer area is determined. address, as shown in Figure 3(b). Two adjacent buffer areas are contiguous, that is, the first address of the buffer area and the last address of the previous buffer area adjacent to the buffer area are consecutive. For example, the first address of the second buffer area is the last address of the first buffer area.
针对图3(b)中的缓存区,按照标识从小到大的顺序依次进行存储,即先针对第一缓存区进行存储,再针对第二缓存区进行存储,最后针对第T1缓存区进行存储,当检测到第T1缓存区中存储有图像数据时,即表示当前T1个缓存区均已存储图像数据,此时,将各缓存区中存储的图像数据进行组合,即得到待抓取画面的图像。For the buffer areas in Fig. 3(b), storage is performed in order of the identifiers from small to large, that is, the first buffer area is stored first, then the second buffer area is stored, and finally the T1th buffer area is stored. When it is detected that image data is stored in the T1-th buffer area, it means that the current T1 buffer areas have stored image data. At this time, the image data stored in each buffer area is combined to obtain the image of the picture to be captured. .
一种实施方式中,可以对待抓取画面的图像进行图像格式设置。在各轨道的图像数据存储完成后,对所存储的图像数据进行编码处理,得到预设格式的图像。In one embodiment, the image format setting of the image to be captured may be performed. After the image data of each track is stored, the stored image data is encoded to obtain an image of a preset format.
其中,可以认为,编码处理的过程中包括了对图像数据的数据处理,另外,还可以对所存储的图像数据进行缩放处理,使得所得到的图像的宽度和高度为预先设定的宽度和高度。Among them, it can be considered that the data processing of the image data is included in the process of the encoding process. In addition, the stored image data can also be scaled, so that the width and height of the obtained image are the preset width and height. .
其中,预设格式可以是自定义设定的,例如,预设格式可以是JPEG(JointPhotographic Experts Group,联合图像专家小组)格式,PNG(Portable NetworkGraphics,便携式网络图形)格式等。The preset format may be user-defined, for example, the preset format may be a JPEG (Joint Photographic Experts Group, Joint Photographic Experts Group) format, a PNG (Portable Network Graphics, Portable Network Graphics) format, and the like.
其中,预设格式可以是自定义设定的。一种实现方式中,数据包中可以携带预设格式的信息。当获取到数据包之后,可以获取到预设格式信息,根据该预设格式信息可以创建针对该预设格式的编码器,该编码器用于将输入该编码器的图像转换成预设格式的图像。在各轨道的图像数据存储完成后,将缓存区中存储的图像数据输入至编码器中,通过该编码器生成预设格式的图像,将所生成的预设格式的图像进行存储并显示。The preset format may be set by yourself. In an implementation manner, the data packet may carry information in a preset format. After the data packet is acquired, the preset format information can be acquired, and an encoder for the preset format can be created according to the preset format information, and the encoder is used to convert the image input to the encoder into an image of the preset format . After the image data of each track is stored, the image data stored in the buffer area is input into the encoder, the encoder generates an image in a preset format, and the generated image in the preset format is stored and displayed.
例如,预设格式为JPEG格式,则数据包中携带JPEG格式信息,该JPEG格式信息表示所需生成的图像的格式为JPEG格式。根据JPEG格式信息创建的编码器为JPEG编码器,在各轨道的图像数据存储完成后,将缓存区中存储的图像数据输入至JPEG编码器,生成JPEG格式的图像。For example, if the preset format is JPEG format, the data packet carries JPEG format information, and the JPEG format information indicates that the format of the image to be generated is JPEG format. The encoder created according to the JPEG format information is a JPEG encoder. After the image data of each track is stored, the image data stored in the buffer area is input to the JPEG encoder to generate a JPEG format image.
一种实现方式中,预设格式为RGB格式,则可以利用TDE(Two DimensionalEngine,二维数据处理工具)对缓存区中存储的图像数据进行图像处理,得到RGB格式的图像。其中,TDE设备可以提供OSD(On Screen Display,屏幕显示叠加)和GUI(GraphicalUser Interface,图形用户界面)方面的图形绘制功能。In an implementation manner, if the preset format is RGB format, TDE (Two Dimensional Engine, two-dimensional data processing tool) can be used to perform image processing on the image data stored in the buffer area to obtain an image in RGB format. Among them, the TDE device can provide graphics drawing functions in terms of OSD (On Screen Display, screen display overlay) and GUI (Graphical User Interface, graphical user interface).
通过本申请实施例提供的技术方案,对于各摄像设备的预设帧的码流,在同一数据包中通过预设传输通道进行传输,且在该预设传输通道中得到各轨道的码流对应的图像数据,进而得到待抓取画面的图像。上述过程在一个传输通道中完成,即使摄像设备增加的情况下,也无需增加传输通道,节省了传输通道资源。并且,在一个传输通道中得到图像数据,将图像数据对应存储至缓存区即可在一个显示通道中得到待抓取画面的图像,无需再进行图像拼接处理,节省了图像拼接资源。With the technical solutions provided by the embodiments of the present application, the code streams of the preset frames of each camera device are transmitted through the preset transmission channel in the same data packet, and the corresponding code streams of each track are obtained in the preset transmission channel. the image data, and then obtain the image of the picture to be captured. The above process is completed in one transmission channel. Even if the number of camera devices is increased, there is no need to increase the transmission channel, which saves transmission channel resources. Moreover, by obtaining image data in one transmission channel and correspondingly storing the image data in the buffer area, the image of the to-be-captured picture can be obtained in one display channel, without the need for image splicing processing, which saves image splicing resources.
相应于上述图像获取方法实施例,本申请实施例还提供一种图像获取装置,如图4所示,该图像获取装置包括:Corresponding to the above image acquisition method embodiments, the embodiments of the present application further provide an image acquisition apparatus, as shown in FIG. 4 , the image acquisition apparatus includes:
第一获取模块410,用于通过预设传输通道,获取待抓取画面的数据包,其中,数据包携带多个轨道的预设帧的码流,每个轨道对应至少一个摄像设备,预设帧为相同帧或相同时刻的帧;The first obtaining
第二获取模块420,用于获取各轨道的码流对应的图像数据;The
存储模块430,用于按照轨道与缓存区的对应关系,将所获取的各轨道的图像数据存储至各轨道对应的缓存区,得到待抓取画面的图像。The
一种实施方式中,该图像获取装置还可以包括:In one embodiment, the image acquisition device may further include:
确定模块,用于基于轨道数量信息,确定所需分配的缓存区的数量;A determination module for determining the number of buffer areas to be allocated based on the track quantity information;
分配模块,用于为每一轨道分配对应的缓存区,其中,缓存区用于存储该缓存区对应的轨道的图像数据。The allocation module is used for allocating a corresponding buffer area for each track, wherein the buffer area is used to store the image data of the track corresponding to the buffer area.
一种实施方式中,分配模块具体用于:In one embodiment, the allocation module is specifically used to:
分配可用存储空间不小于目标数据量、且宽度不小于所述预设宽度、高度不小于所述预设高度的总缓存区,其中,目标数据量为待抓取画面所生成图像的数据量,预设宽度和预设高度为针对待抓取画面所生成图像的宽度和高度;Allocate a total buffer area whose available storage space is not less than the target data volume, and whose width is not less than the preset width and the height is not less than the preset height, wherein the target data volume is the data volume of the image generated by the screen to be captured, The preset width and preset height are the width and height of the image generated for the image to be captured;
将总缓存区的预设宽度进行平均划分,得到长度相同的多个子宽度,其中,多个子宽度的数量与多个轨道的数量相同;The preset width of the total buffer area is evenly divided to obtain multiple sub-widths with the same length, wherein the number of multiple sub-widths is the same as the number of multiple tracks;
将每个子宽度与预设高度所形成的区域确定为缓存区,其中,所确定出的缓存区与轨道为一一对应关系;The area formed by each sub-width and the preset height is determined as a buffer area, wherein the determined buffer area and the track are in a one-to-one correspondence;
存储模块430具体用于:The
基于所获得的各轨道的图像数据,得到图像宽度为子宽度以及图像高度为所述预设高度的图像数据;Based on the obtained image data of each track, obtain image data whose image width is the sub-width and the image height is the preset height;
按照缓存区与轨道的一一对应关系,将所得到的各轨道的图像数据分别存储至各轨道对应的缓存区;According to the one-to-one correspondence between the buffer area and the track, the obtained image data of each track is respectively stored in the buffer area corresponding to each track;
在各轨道的图像数据存储完成后,将各缓存区中存储的图像数据进行组合,得到待抓取画面的图像。After the image data of each track is stored, the image data stored in each buffer area are combined to obtain the image of the image to be captured.
一种实施方式中,该图像获取装置还可以包括:In one embodiment, the image acquisition device may further include:
编码模块,用于在各轨道的图像数据存储完成后,对所存储的图像数据进行编码处理,得到预设格式的图像。The encoding module is configured to perform encoding processing on the stored image data after the storage of the image data of each track is completed to obtain an image in a preset format.
通过本申请实施例提供的技术方案,对于各摄像设备的预设帧的码流,在同一数据包中通过预设传输通道进行传输,且在该预设传输通道中得到各轨道的码流对应的图像数据,进而得到待抓取画面的图像。上述过程在一个传输通道中完成,即使摄像设备增加的情况下,也无需增加传输通道,节省了传输通道资源。并且,在一个传输通道中得到图像数据,将图像数据对应存储至缓存区即可在一个显示通道中得到待抓取画面的图像,无需再进行图像拼接处理,节省了图像拼接资源。With the technical solutions provided in the embodiments of the present application, the code streams of the preset frames of each camera device are transmitted through the preset transmission channel in the same data packet, and the corresponding code streams of each track are obtained in the preset transmission channel. the image data, and then obtain the image of the picture to be captured. The above process is completed in one transmission channel. Even if the number of camera devices is increased, there is no need to increase the transmission channel, which saves transmission channel resources. Moreover, by obtaining image data in one transmission channel and correspondingly storing the image data in the buffer area, the image of the to-be-captured picture can be obtained in one display channel, eliminating the need for image splicing processing and saving image splicing resources.
相应于上述图像获取方法实施例,本申请实施例还提供了一种电子设备,如图5所示,包括处理器510、通信接口520、存储器530和通信总线540,其中,处理器510,通信接口520,存储器530通过通信总线540完成相互间的通信;Corresponding to the above image acquisition method embodiments, the embodiments of the present application further provide an electronic device, as shown in FIG. 5 , including a
存储器530,用于存放计算机程序;a
处理器510,用于执行存储器530上所存放的程序时,实现如下步骤:When the
通过预设传输通道,获取待抓取画面的数据包,其中,数据包携带多个轨道的预设帧的码流,每个轨道对应至少一个摄像设备,预设帧为相同帧或相同时刻的帧;Obtain the data packet of the picture to be captured through the preset transmission channel, wherein the data packet carries the code stream of preset frames of multiple tracks, each track corresponds to at least one camera device, and the preset frame is the same frame or the same time. frame;
获取各轨道的码流对应的图像数据;Obtain the image data corresponding to the code stream of each track;
按照轨道与缓存区的对应关系,将所获取的各轨道的图像数据存储至各轨道对应的缓存区,得到待抓取画面的图像。According to the corresponding relationship between the track and the buffer area, the acquired image data of each track is stored in the buffer area corresponding to each track, and the image of the picture to be captured is obtained.
通过本申请实施例提供的技术方案,对于各摄像设备的预设帧的码流,在同一数据包中通过预设传输通道进行传输,且在该预设传输通道中得到各轨道的码流对应的图像数据,进而得到待抓取画面的图像。上述过程在一个传输通道中完成,即使摄像设备增加的情况下,也无需增加传输通道,节省了传输通道资源。并且,在一个传输通道中得到图像数据,将图像数据对应存储至缓存区即可在一个显示通道中得到待抓取画面的图像,无需再进行图像拼接处理,节省了图像拼接资源。With the technical solutions provided in the embodiments of the present application, the code streams of the preset frames of each camera device are transmitted through the preset transmission channel in the same data packet, and the corresponding code streams of each track are obtained in the preset transmission channel. the image data, and then obtain the image of the picture to be captured. The above process is completed in one transmission channel. Even if the number of camera devices is increased, there is no need to increase the transmission channel, which saves transmission channel resources. Moreover, by obtaining image data in one transmission channel and correspondingly storing the image data in the buffer area, the image of the to-be-captured picture can be obtained in one display channel, eliminating the need for image splicing processing and saving image splicing resources.
上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral ComponentInterconnect,PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an Extended Industry Standard Architecture (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 presentation, 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 communication interface is used for communication between the above electronic device and other devices.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital SignalProcessing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; may also be a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
相应于上述图像获取方法实施例,一种机器可读存储介质,所述机器可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述任一所述的图像获取方法步骤。Corresponding to the above image acquisition method embodiments, a machine-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the image acquisition method steps described above are implemented. .
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于图像获取装置、电子设备以及机器可读存储介质实施例而言,由于其基本相似于图像获取方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the image acquisition apparatus, electronic device, and machine-readable storage medium embodiments, since they are basically similar to the image acquisition method embodiments, the description is relatively simple.
以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。The above descriptions are only preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application are included in the protection scope of this application.
Claims (10)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910283294.6A CN111818295B (en) | 2019-04-10 | 2019-04-10 | Image acquisition method and device |
| PCT/CN2020/083707 WO2020207403A1 (en) | 2019-04-10 | 2020-04-08 | Image acquisition method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910283294.6A CN111818295B (en) | 2019-04-10 | 2019-04-10 | Image acquisition method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111818295A true CN111818295A (en) | 2020-10-23 |
| CN111818295B CN111818295B (en) | 2022-02-01 |
Family
ID=72752131
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910283294.6A Active CN111818295B (en) | 2019-04-10 | 2019-04-10 | Image acquisition method and device |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN111818295B (en) |
| WO (1) | WO2020207403A1 (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112565627A (en) * | 2020-11-30 | 2021-03-26 | 天津津航计算技术研究所 | Multi-channel video centralized display design method based on bitmap superposition |
| CN113068024A (en) * | 2021-03-19 | 2021-07-02 | 瑞芯微电子股份有限公司 | Real-time snap analysis method and storage medium |
| CN117499601A (en) * | 2024-01-02 | 2024-02-02 | 上海励驰半导体有限公司 | Method for calling multi-camera data for SoC |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114928730B (en) * | 2022-06-23 | 2023-08-22 | 湖南国科微电子股份有限公司 | Image processing method and image processing apparatus |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20070056001A1 (en) * | 2005-08-24 | 2007-03-08 | Hules Frank J | Dual channel video and audio data for DBS receivers |
| CN101536101A (en) * | 2006-10-19 | 2009-09-16 | Lg电子株式会社 | Encoding method and apparatus and decoding method and apparatus |
| CN103309933A (en) * | 2005-07-19 | 2013-09-18 | 苹果公司 | Method and apparatus for media data transmission |
| CN104050092A (en) * | 2013-03-15 | 2014-09-17 | 上海芯豪微电子有限公司 | Data caching system and method |
| US20150234632A1 (en) * | 2011-12-16 | 2015-08-20 | Enyi Shi | Multi-processor video processing system and video image synchronous transmission and display method therein |
| CN104935947A (en) * | 2014-03-17 | 2015-09-23 | 英特尔公司 | Hardware assisted media playback and capture synchronization |
| CN104980774A (en) * | 2014-04-07 | 2015-10-14 | 纳宝株式会社 | Service method and system for providing multi-track video contents |
| CN109429037A (en) * | 2017-09-01 | 2019-03-05 | 杭州海康威视数字技术股份有限公司 | A kind of image processing method, device, equipment and system |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4384607B2 (en) * | 2005-01-25 | 2009-12-16 | 株式会社日立国際電気 | Image processing device |
| TWI323128B (en) * | 2006-10-03 | 2010-04-01 | Quanta Comp Inc | Image processing apparatus and method |
| CN103260011A (en) * | 2013-05-16 | 2013-08-21 | 杭州巨峰科技有限公司 | System and method for achieving monitoring of more paths by utilization of net-harddisk video recorder |
| CN105306837A (en) * | 2015-10-27 | 2016-02-03 | 浙江宇视科技有限公司 | Multi-image splicing method and device |
| CN109120867A (en) * | 2018-09-27 | 2019-01-01 | 乐蜜有限公司 | Image synthesizing method and device |
-
2019
- 2019-04-10 CN CN201910283294.6A patent/CN111818295B/en active Active
-
2020
- 2020-04-08 WO PCT/CN2020/083707 patent/WO2020207403A1/en not_active Ceased
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103309933A (en) * | 2005-07-19 | 2013-09-18 | 苹果公司 | Method and apparatus for media data transmission |
| US20070056001A1 (en) * | 2005-08-24 | 2007-03-08 | Hules Frank J | Dual channel video and audio data for DBS receivers |
| CN101536101A (en) * | 2006-10-19 | 2009-09-16 | Lg电子株式会社 | Encoding method and apparatus and decoding method and apparatus |
| US20150234632A1 (en) * | 2011-12-16 | 2015-08-20 | Enyi Shi | Multi-processor video processing system and video image synchronous transmission and display method therein |
| CN104050092A (en) * | 2013-03-15 | 2014-09-17 | 上海芯豪微电子有限公司 | Data caching system and method |
| CN104935947A (en) * | 2014-03-17 | 2015-09-23 | 英特尔公司 | Hardware assisted media playback and capture synchronization |
| CN104980774A (en) * | 2014-04-07 | 2015-10-14 | 纳宝株式会社 | Service method and system for providing multi-track video contents |
| CN109429037A (en) * | 2017-09-01 | 2019-03-05 | 杭州海康威视数字技术股份有限公司 | A kind of image processing method, device, equipment and system |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN112565627A (en) * | 2020-11-30 | 2021-03-26 | 天津津航计算技术研究所 | Multi-channel video centralized display design method based on bitmap superposition |
| CN113068024A (en) * | 2021-03-19 | 2021-07-02 | 瑞芯微电子股份有限公司 | Real-time snap analysis method and storage medium |
| CN113068024B (en) * | 2021-03-19 | 2024-04-16 | 瑞芯微电子股份有限公司 | Real-time capture analysis method and storage medium |
| CN117499601A (en) * | 2024-01-02 | 2024-02-02 | 上海励驰半导体有限公司 | Method for calling multi-camera data for SoC |
| CN117499601B (en) * | 2024-01-02 | 2024-04-05 | 上海励驰半导体有限公司 | Method for SoC to call multiple camera data |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111818295B (en) | 2022-02-01 |
| WO2020207403A1 (en) | 2020-10-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN105100963B (en) | Audio-visual media file synthesis method and service system | |
| CN111818295A (en) | An image acquisition method and device | |
| US12526438B2 (en) | Video transcoding and video display method, apparatus, and electronic device | |
| CN110784740A (en) | Video processing method, device, server and readable storage medium | |
| TWI362888B (en) | Encoding and decoding method for video screen layout, encoding device, decoding device, and data structure | |
| CN109429037B (en) | An image processing method, device, equipment and system | |
| CN107155093B (en) | Video preview method, device and equipment | |
| CN113727114B (en) | Transcoded video decoding method | |
| CN113727115B (en) | Efficient transcoded video decoding method | |
| CN111885346A (en) | Picture code stream synthesis method, terminal, electronic device and storage medium | |
| CN110049379B (en) | Video delay detection method and system | |
| CN112511896A (en) | Video rendering method and device | |
| CN111131654B (en) | Watermark embedding method and device and coder-decoder | |
| CN111953990A (en) | Coding method and device | |
| CN113747063B (en) | Video transmission method and device, electronic equipment and readable storage medium | |
| CN119520855B (en) | AI detection method and device for asynchronous processing of video streams based on timestamp alignment | |
| WO2025001606A1 (en) | Method for transmitting screen image, and electronic device and computer-readable medium | |
| US11956519B2 (en) | Method and apparatus for signaling grouping types in an image container file | |
| CN112291483A (en) | Video pushing method and system, electronic equipment and readable storage medium | |
| CN115460369B (en) | Video recording device, off-line video analysis method, electronic device and storage medium | |
| CN112911299B (en) | A video code rate control method, device, electronic equipment and storage medium | |
| CN115665481A (en) | Video processing apparatus, method, device, and storage medium | |
| CN115942000A (en) | Video stream transcoding method, device, equipment and medium based on H.264 format | |
| CN116781913A (en) | Encoding and decoding method of point cloud media and related products | |
| CN116208738A (en) | Pre-monitoring back display method and device of video picture, electronic equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |