Summary of the invention
In view of this, the application provides a kind of multi-channel video monitor image processing method and system, for multi-channel video monitor data are processed, makes its space taking compared with prior art less, can effectively reduce storage pressure.
To achieve these goals, the existing scheme proposing is as follows:
A kind of multi-channel video monitor image processing method, comprising:
Obtain multi-channel video monitor data, wherein described in each road, video monitoring data is made up of multiple image data;
The current Ge of obtaining road Image Mosaics is become to piece image;
The image being spliced into is compressed to processing, and compression is stored after processing.
Preferably, described the current Ge of obtaining road Image Mosaics is become to piece image, is specially:
The way of determining the monitor video of wanting is n;
Create a width null images, the resolution sizes of described null images is identical with the resolution of the rectangular image by obtaining after the splicing of n width multiway images;
Described null images is divided into position, n data area;
View data described in n frame is left in respectively in described n position, data area, save as a width new images.
Preferably, described, the image being spliced into is compressed to processing, compression also comprises after storing after processing:
The image of compression is decompressed;
By the Image Segmentation Using after decompressing, be divided into n width multiway images.
Preferably, described by decompress after Image Segmentation Using, be divided into n width multiway images, be specially:
Create n width null images, the resolution sizes of the resolution sizes Yu Mei road image of every width null images is identical;
View data in position, n data area is stored in respectively in the data bit of described n width null images, and carries out respectively Image Saving.
Preferably, described the image being spliced into is compressed to processing, is specially:
Adopt motion rest image compress technique, the image being spliced into is compressed to processing.
Preferably, the way of described wanted monitor video is 4 tunnels,,
Create a width null images, the resolution sizes of described null images with by 4 width multiway images according to two width upper, two width under mode to splice the resolution of the rectangular image obtaining identical;
Described null images is to a point position, 4 data areas;
View data described in 4 frames is left in respectively in position, described 4 data areas, save as a width new images.
Preferably, the image resolution ratio of described wanted monitor video is 640*480, and the resolution of described null images is 1280*960.
A kind of multi-channel video monitor image data processing system, comprising:
Data capture unit, for obtaining multi-channel video monitor data, wherein described in each road, video monitoring data is made up of multiple image data;
Image Mosaics unit, for becoming piece image by the current Ge of obtaining road Image Mosaics;
Image compression unit, for compressing processing by the image being spliced into;
Image storage unit, stores for the image that compression is processed.
Preferably, described Image Mosaics unit comprises:
Way determining unit, for determining the way n of the monitor video of wanting;
Image creation unit, for creating a width null images, the resolution sizes of described null images is identical with the resolution of the rectangular image by obtaining after the splicing of n width multiway images;
Region division unit, for being described null images point n position, data area;
New images determining unit, for view data described in n frame is left in respectively in described n position, data area, saves as a width new images.
Preferably, also comprise: decompression unit and cutting unit, wherein,
Described decompression unit is for decompressing the image of compression;
Described cutting unit, for by the Image Segmentation Using after decompressing, is divided into n width multiway images.
Can find out from above-mentioned technical scheme, the disclosed multi-channel video monitor image processing method of the application, Real-time Obtaining Multipath Video Monitoring System Zhong Mei road view data, then the current Ge of obtaining road Image Mosaics is become to piece image, then the image being spliced into is compressed to processing again, owing to multiple paths of video images being spliced into an image, the redundant data that the image being spliced into like this comprises is larger than the redundant data sum of multiple independent vide images, the compression ratio of the image being therefore spliced into is also just larger, thereby after compression separately to store shared disk space after compression than multiple video images less again in the space of shared disk.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is clearly and completely described, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiment.Based on the embodiment in the application, those of ordinary skill in the art are not paying all other embodiment that obtain under creative work prerequisite, all belong to the scope of the application's protection.
Less for image is taken up room, in prior art, can use compression algorithm, image is compressed to processing.And why compression can make image committed memory reduce, be that data can be regarded as the combination of information and redundancy because exist certain redundancy between view data, the object of compression is deleted redundancy just.So-called redundancy refers between the each pixel due to piece image and exists very large correlation, can utilize the method for some codings to delete.The application just from this point of view, has proposed following proposal.
Embodiment mono-
Referring to Fig. 1, Fig. 1 is the disclosed a kind of multi-channel video monitor image processing method flow chart of the embodiment of the present application.
As shown in Figure 1, the method comprises:
Step 101: obtain multi-channel video monitor data, wherein described in each road, video monitoring data is made up of multiple image data;
Particularly, existing multi-channel video monitor equipment, it is provided with multiple cameras, and multiple cameras gather video data simultaneously, and video monitoring data is made up of view data one by one.
Step 102: the current Ge of obtaining road Image Mosaics is become to piece image;
Particularly, our view data that has individual camera to provide of obtaining of same time, for each two field picture, the image that our Jiang Ge road camera provides splices, and splicing becomes piece image.
Step 103: the image being spliced into is compressed to processing, and compression is stored after processing.
Particularly, the image being spliced into is a complete image, and the correlation between the each pixel comprising due to this image more strengthens, and makes the redundancy of the image being spliced into larger than the redundancy sum of multiple independent images, and compression ratio is also just larger.
The disclosed multi-channel video monitor image processing method of the embodiment of the present application, Real-time Obtaining Multipath Video Monitoring System Zhong Mei road view data, then the current Ge of obtaining road Image Mosaics is become to piece image, then the image being spliced into is compressed to processing again, owing to multiple paths of video images being spliced into an image, the redundant data that the image being spliced into like this comprises is larger than the redundant data sum of multiple independent vide images, the compression ratio of the image being therefore spliced into is also just larger, thereby after compression separately to store shared disk space after compression than multiple video images less again in the space of shared disk.
It should be noted that, in when compression, we can adopt M-JPEG(Motion Joint PhotographicExperts Group, motion rest image compress technique) compress processing.M-JPEG is a kind of video code model, and M-JPEG is cordless telephone and the modal image compression format of network baby monitor and transmission technology, is also a kind of Imaging for Monitoring scheme that possesses better cost performance at safety-security area.Certainly, also can adopt other existing compress technique.
Embodiment bis-
Referring to Fig. 2, Fig. 2 is the disclosed a kind of image split-joint method flow chart of the embodiment of the present application.
As shown in Figure 2, the step 102 of embodiment mono-: become piece image to realize in the following manner the current Ge of obtaining road Image Mosaics:
Step 201: the way of determining the monitor video of wanting is n;
Step 202: create a width null images, the resolution sizes of described null images is identical with the resolution of the rectangular image by obtaining after the splicing of n width multiway images;
Step 203: described null images is divided into position, n data area;
Step 204: view data described in n frame is left in respectively in described n position, data area, save as a width new images.
More understandable for the above-mentioned statement making, we illustrate with a concrete instance:
Suppose that we will monitor 4 road videos, said n value is 4:
With reference to Fig. 3, Fig. 3 is the disclosed 4 road video image splicing schematic diagrames of the embodiment of the present application.
First create a width blank image, the resolution sizes of this blank image is identical with the resolution of the rectangular image obtaining after 4 width Image Mosaics, because 4 width images are in the time that reality is spliced, there is multiple connecting method, can be two width upper, two width under, can be also 4 width successively laterally or longitudinal arrangements.Certainly, for the ease of watching, we select two width at upper, two width in lower such compound mode.
Then, the blank image of establishment is divided, be divided into uniformly position, 4 data areas.The resolution of the video image providing due to each camera is identical, so we adopt the mode of even division.
Finally, the 4 tunnel view data of obtaining are left in respectively in position, above-mentioned 4 data areas, entire image is saved as to a width new images.
It should be noted that, if the image resolution ratio of the monitor video of wanting is 640*480, the resolution of described null images is 1280*960.
Certainly, above-mentioned just carry out with 4 road video monitorings for example, in reality, also there is other situation of 6 tunnels, 9 tunnels etc.When we splice, make spliced image more coordinate in length-width ratio as far as possible, certainly, in the situation that some is special, cannot accomplish above-mentioned requirements, also can be directly horizontal or longitudinal spliced successively.
Embodiment tri-
Referring to Fig. 4, Fig. 4 is the disclosed another kind of multi-channel video monitor image processing method flow chart of the embodiment of the present application.
As shown in Figure 4, in the present embodiment, on the basis of embodiment mono-, further increased step 104: the image of compression is decompressed; Step 105: by the Image Segmentation Using after decompressing, be divided into n width multiway images.
In the time that some accident or current check need checking monitoring video, because all monitored pictures are in piece image, we can check all monitored pictures simultaneously.But, if only need to check specific monitored picture, when other monitored picture does not need, can carry out image by above-mentioned steps and cut apart, the video image after cutting apart is preserved separately, be reduced to original independent monitored picture.
Wherein, step 105 is the process of Image Segmentation Using after decompressing, and it is contrary two processes with Image Mosaics process in fact.Specifically referring to following:
Create n width null images, the resolution sizes of the resolution sizes Yu Mei road image of every width null images is identical;
View data in position, n data area is stored in respectively in the data bit of described n width null images, and carries out respectively Image Saving.
Visible, above-mentioned cutting procedure is the reverse process of Image Mosaics process.
Embodiment tetra-
Referring to Fig. 5, Fig. 5 is the disclosed a kind of multi-channel video monitor image data processing system structure chart of the embodiment of the present application.
As shown in Figure 5, this system comprises:
Data capture unit 51, for obtaining multi-channel video monitor data, wherein described in each road, video monitoring data is made up of multiple image data;
Image Mosaics unit 52, for becoming piece image by the current Ge of obtaining road Image Mosaics;
Image compression unit 53, for compressing processing by the image being spliced into;
Image storage unit 54, stores for the image that compression is processed.
The disclosed multi-channel video monitor image data processing system of the embodiment of the present application, by data capture unit 51 Real-time Obtaining Multipath Video Monitoring System Zhong Mei road view data, then by Image Mosaics unit 52, the current Ge of obtaining road Image Mosaics is become to piece image, then by image compression unit, the image being spliced into is compressed to processing again, owing to multiple paths of video images being spliced into an image, the redundant data that the image being spliced into like this comprises is larger than the redundant data sum of multiple independent vide images, the compression ratio of the image being therefore spliced into is also just larger, thereby after compression separately to store shared disk space after compression than multiple video images less again in the space of shared disk.
Embodiment five
Referring to Fig. 6, Fig. 6 is the disclosed Image Mosaics cellular construction of the embodiment of the present application figure.
As shown in Figure 6, Image Mosaics unit 52 comprises:
Way determining unit 521, for determining the way n of the monitor video of wanting;
Image creation unit 522, for creating a width null images, the resolution sizes of described null images is identical with the resolution of the rectangular image by obtaining after the splicing of n width multiway images;
Region division unit 523, for being described null images point n position, data area;
New images determining unit 524, for view data described in n frame is left in respectively in described n position, data area, saves as a width new images.
The concrete course of work can be referring to the elaboration of embodiment bis-.
Embodiment six
Referring to Fig. 7, Fig. 7 is the disclosed another kind of multi-channel video monitor image data processing system structure chart of the embodiment of the present application.
As shown in Figure 7, on the basis of embodiment tetra-, the present embodiment has further increased decompression unit 55 and cutting unit 56, wherein,
Described decompression unit 55 is for decompressing the image of compression;
Described cutting unit 56, for by the Image Segmentation Using after decompressing, is divided into n width multiway images.
By said two units is set, the image being spliced into can be reduced and cuts apart, facilitate staff's needs in some cases.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.
To the above-mentioned explanation of the disclosed embodiments, make professional and technical personnel in the field can realize or use the application.To be apparent for those skilled in the art to the multiple amendment of these embodiment, General Principle as defined herein can, in the case of not departing from the application's spirit or scope, realize in other embodiments.Therefore, the application will can not be restricted to these embodiment shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.