WO2021035643A1 - Monitoring image generation method, apparatus, device, system, and image processing device - Google Patents

Monitoring image generation method, apparatus, device, system, and image processing device Download PDF

Info

Publication number
WO2021035643A1
WO2021035643A1 PCT/CN2019/103433 CN2019103433W WO2021035643A1 WO 2021035643 A1 WO2021035643 A1 WO 2021035643A1 CN 2019103433 W CN2019103433 W CN 2019103433W WO 2021035643 A1 WO2021035643 A1 WO 2021035643A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
column
monitoring
monitoring image
sub
Prior art date
Application number
PCT/CN2019/103433
Other languages
French (fr)
Chinese (zh)
Inventor
杨磊
张青涛
麻军平
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to CN201980031015.5A priority Critical patent/CN112119631A/en
Priority to PCT/CN2019/103433 priority patent/WO2021035643A1/en
Publication of WO2021035643A1 publication Critical patent/WO2021035643A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Definitions

  • the present disclosure relates to the field of image processing technology, and in particular to monitoring image generation methods, devices, equipment and systems, and image processing equipment.
  • the monitor image is a waveform diagram used to observe the brightness and color distribution of the scene on the monitor. It describes the concentrated distribution of a certain component of Y/U/V/R/G/B in each column of the image .
  • the main application on the monitor includes RGB or YUV three components displayed on the monitor at the same time or a certain color component is displayed on the monitor alone.
  • DDR Double Data Rate SDRAM, Double Data Rate Synchronous Dynamic Random Access Memory
  • Another achievable structure is to develop a waveform to be displayed on the software architecture cache or FPGA (Field-Programmable Gate Array, Field-Programmable Gate Array) on-chip RAM (Random Access Memory)
  • FPGA Field-Programmable Gate Array, Field-Programmable Gate Array
  • RAM Random Access Memory
  • the embodiments of the present disclosure propose monitoring image generation methods, devices, equipment and systems, and image processing equipment to solve the problem of low data reading efficiency in related technologies, low waveform map accuracy and accuracy, and occupying on-chip Technical problems with large storage resources.
  • a monitoring image generation method includes:
  • Each image column block includes multiple columns of pixels of the image frame, and the sub-monitoring image corresponding to each image column block is generated in the following manner:
  • the sub-monitoring image corresponding to the image column block is generated according to the pixel value of the pixel point.
  • a monitoring image generation device which is characterized by comprising a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor executes the The following methods are implemented in the program:
  • Each image column block includes multiple columns of pixels of the image frame, and the sub-monitoring image corresponding to each image column block is generated in the following manner:
  • the sub-monitoring image corresponding to the image column block is generated according to the pixel value of the pixel point.
  • a monitoring image generation device which is characterized in that it further includes:
  • Histogram statistical unit data processing unit and data output unit
  • the histogram statistical unit For each image column block in the image frame, the histogram statistical unit is used to generate a statistical histogram of each column of the image column block, and send the statistical histogram to the data processing unit; wherein, the The image frame is pre-divided into multiple image column blocks;
  • the data processing unit is configured to generate a sub-monitoring image corresponding to the image column block according to the statistical histogram of each column of the image column block, and send the sub-monitoring image to a data output unit;
  • the data output unit is used to write the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block of the monitoring image storage space to obtain the monitoring image of the image frame.
  • a surveillance image generation system which is characterized in that it includes:
  • the surveillance image generating device according to any embodiment.
  • a storage unit for storing the image frame.
  • an image processing device which is characterized by including the surveillance image generation system described in any of the embodiments.
  • the image frame is read out in rows in the form of image column blocks.
  • One image column block includes several columns of pixels, which ensures the efficiency of data reading.
  • Each read-out image column generates a sub-monitoring image, and the generated sub-monitoring image is written to the corresponding column block in the monitoring image storage space.
  • the on-chip storage RAM consumes only It requires 1/N of the entire surveillance image storage, which greatly reduces storage resources.
  • the method can realize the monitoring image processing of high-resolution images, and realize the generation of high-resolution, high-frame-rate monitoring images.
  • Fig. 1 is a schematic flowchart of a method for generating a surveillance image according to an embodiment of the present disclosure.
  • Fig. 2 is a schematic diagram showing an image column block according to an embodiment of the present disclosure.
  • Fig. 3 is a schematic diagram showing an interpolation processing process of a surveillance image according to an embodiment of the present disclosure.
  • Fig. 4 is a schematic diagram showing the structure of a surveillance image jump address according to an embodiment of the present disclosure.
  • Fig. 5 is a schematic diagram showing a monitoring image generating device according to an embodiment of the present disclosure.
  • Fig. 6 is a schematic diagram showing another monitoring image generating device according to an embodiment of the present disclosure.
  • Fig. 7 is a schematic diagram showing a monitoring image generation system according to an embodiment of the present disclosure.
  • Fig. 8 is a schematic diagram showing another surveillance image generation system according to an embodiment of the present disclosure.
  • Fig. 9 is a schematic diagram showing a monitoring image generating device for implementing the method of this specification according to an embodiment of the present disclosure.
  • first, second, third, etc. may be used in this specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as second information, and similarly, the second information may also be referred to as first information.
  • word “if” as used herein can be interpreted as "when” or “when” or "in response to determination”.
  • FIG. 1 it is a flowchart of a monitoring image generation method according to an embodiment of this specification.
  • the method may include:
  • Step S101 Write the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block of the monitoring image storage space to obtain the monitoring image of the image frame, wherein the image frame is divided into a plurality of Image column blocks, each image column block includes multiple columns of pixels of the image frame, and the sub-monitoring image corresponding to each image column block is generated in the following manner:
  • Step S102 Read pixels in the image column block by row
  • Step S103 Generate the sub-monitoring image corresponding to the image column block according to the pixel value of the pixel point.
  • Image frames are generally read and written in rows, while monitoring images require that the concentration of the same pixels of a certain color component of the entire image be processed according to the image columns, and histogram statistics are performed on each column of the image frame. If the image frame is large, the calculation time for processing all image columns by software is slow, and it is difficult to achieve high frame rate and large frame monitoring images or simultaneous display of three color components; if hardware such as FPGA (Field-Programmable Gate Array) is used, the field can be displayed. Program gate array) or ASIC (Application Specific Integrated Circuit, special application integrated circuit) for processing, because the image frame is output in rows and columns, it is difficult to implement pipelines in the FPGA architecture, and it is difficult to achieve all columns due to the limitation of on-chip RAM resources. Most of the monitoring images can only be displayed in small images, and it is difficult to realize the display of high frame rate and large-format fine monitoring images.
  • FPGA Field-Programmable Gate Array
  • the image frame in the image storage space is divided into a plurality of image tiles in advance, and the image frames are read block by block according to the pre-divided image column blocks.
  • each image column block is read in a row-by-row reading manner, and the monitoring image calculation of the entire image frame is realized by calculating the monitoring image of each image column block.
  • the embodiments of this specification can be implemented based on FPGA, the monitoring image generation process can be executed by on-chip RAM, the original image frame can be stored in DDR, and the generated monitoring image can also be stored in DDR.
  • FIG. 2 A schematic diagram of image column blocks in an embodiment is shown in FIG. 2.
  • the image frame in the figure includes 9 columns, and every 3 columns is divided into an image column block, which is divided into 3 image column blocks in total.
  • the histogram statistics can be performed according to the pixel value of each pixel point in the image column block to generate the sub-monitoring image corresponding to the image column block.
  • the sub-monitoring image of the image column block 1 can be generated according to the pixel value of each pixel in the image column block 1;
  • the sub-monitoring image of image column block 2 can be generated according to the pixel value of each pixel in image column block 2.
  • you can The sub-monitoring image of the image column 3 is generated according to the pixel value of each pixel in the image column 3.
  • the sub-monitoring image After the sub-monitoring image is acquired, the sub-monitoring image can be written to the corresponding column of the surveillance image storage space. When writing, one sub-monitoring image can be written every time it is acquired.
  • the image frame is read row by row from the image storage space in the manner of image column blocks. Since several columns can be read at a time, the image reading efficiency is ensured. Divide the entire image frame into N image column blocks, and the processing unit only needs to open up a storage space that can store the histogram of each image column block, so the resource consumption only needs 1/N of the entire monitoring image storage, which is greatly reduced Storage resources, the use of smaller on-chip RAM can realize the generation of large-scale surveillance images. Therefore, by adopting the method of the embodiments of the present specification, the monitoring image processing of high-resolution images can be realized, and the generation of monitoring images with high resolution and high frame rate can be realized.
  • the number of image column blocks to be divided for an image may be determined first. In order to ensure the efficiency of data reading and writing, several data bytes will be continuously read and written when reading and writing data. Therefore, the amount of read and write data when reading and writing the image frame once can be determined according to the preset data read and write efficiency, and then the number of image column blocks divided by the image frame can be determined according to the amount of read and write data.
  • the depth of the color components needs to be counted as q bits, and a minimum burst amount that meets the efficiency of data reading and writing is selected, and the number of image columns in each image column block of the monochrome surveillance image is determined to be M, three colors The number of image columns for each image column block of the monitoring image is 3M.
  • the image is a 1080p RGB 8bit image
  • M is 64
  • the size of the monochrome and three-color monitoring images to be displayed is 1920*512
  • the three-color waveform image is the stitching result of the three waveform images of 640*512 R, G, and B .
  • the single-color display is divided into 30 image column blocks
  • the three-color display is divided into 10 image column blocks.
  • the RAM space size of each image column block storing each color component is 64*256*12bit.
  • the monochrome surveillance image M satisfies:
  • the three-color surveillance image M satisfies:
  • the burst width is generally greater than 32 bytes. In some cases, it is also necessary to ensure that a minimum burst of data is continuously read exactly as the M pixel data to be read (for monochrome surveillance images). ) Or the size of 3M pixel data (for three-color monitoring images).
  • monitoring image generation includes two steps: histogram statistics and monitoring image mapping output.
  • the step of generating the sub-monitoring image corresponding to the image column block according to the pixel value of the pixel point includes: respectively generating a statistical histogram of each column in the image column block, and according to the statistics of each column in the image column block.
  • the histogram generates the sub-monitoring image corresponding to the image column block, wherein the statistical histogram of each column in the image column block is generated according to the following method: the number of pixels of each pixel value in the column is counted respectively, Obtain the statistical value of the corresponding pixel value in the column; generate a statistical histogram of the column according to the statistical value of each pixel value in the column.
  • the image column block 1 in the image frame shown in FIG. 2 as an example to describe the process of generating the sub-monitoring images of the image column block 1.
  • the sub-monitoring images of the image column block 2 and the image column block 3 are generated in a similar manner. I won't repeat it hereafter.
  • the statistical histogram T1 in the first column, the statistical histogram T2 in the second column, and the statistical histogram T3 in the third column can be respectively generated, and then the sub-monitoring images of the image column block 1 are generated according to T1, T2, and T3.
  • the statistical histogram T1 can be generated according to the following method: the pixel value of each pixel in the first column of the image column block 1 is counted to obtain the number of pixels of each pixel value in the column, for example, the pixel value is 0
  • the number of pixels is N0
  • the number of pixels with a pixel value of 1 is N1
  • the number of pixels with a pixel value of 2 is N2, and so on.
  • N0, N1, N2, ... are the statistical values of pixel value 0, pixel value 1, pixel value 2, ... respectively.
  • the statistical histogram of the first column of the image column block 1 can be generated according to N0, N1, N2,...
  • the statistical histograms in the second and third columns are generated in a similar way.
  • each RAM is divided into 64 histogram storage spaces.
  • the image read from DDR is 64 pixels per line, a total of 1080 lines, output in line, so the corresponding component of the input first pixel is counted in the first histogram, and the second The corresponding component of each pixel is counted in the second histogram, the corresponding component of the 64th pixel is counted in the 64th histogram, the corresponding component of the 65th pixel is counted again in the first histogram, and so on After counting all 64 columns of pixels.
  • the statistics are carried out in three RAMs at the same time.
  • the input image is 192 pixels per line, a total of 1080 lines, and the input pixels 1, 2, and 3 correspond to Each component of is counted in the corresponding first histogram, the 4th, 5th, and 6th pixels are counted in the second histogram, the 190th, 191, and 192th pixels are counted in the 64th histogram, the 193th , 194, and 195 pixels are counted again in the first histogram, and so on, all 192 columns of pixels are counted.
  • the sub-monitoring image can be generated directly based on the statistical histogram, or based on the brightness of the image.
  • the step of generating the sub-monitoring image corresponding to the image column block according to the statistical histogram of each column in the image column block includes: splicing the statistical histogram of each column in the image column block to obtain all The sub-monitoring image corresponding to the image column block; or each statistical value is mapped to the corresponding brightness value, and the brightness distribution map of the corresponding column is generated according to the brightness value of each column, and the brightness distribution map of each column of the image column block Splicing is performed to obtain sub-monitoring images corresponding to the image column blocks.
  • the statistical histograms of each column may be spliced horizontally or vertically to obtain sub-monitoring images corresponding to the image column blocks.
  • each statistical value in the statistical histogram T1 can be mapped to a brightness value, for example, N0 is mapped Is Y0, N1 is mapped to Y1, N2 is mapped to Y2,..., and so on.
  • the statistical value is mapped to the brightness value
  • the following principle can be used: a larger statistical value is mapped to a brighter brightness value, and a smaller statistical value is mapped to a darker brightness value.
  • the brightness distribution diagram of the first column can be obtained.
  • the brightness distribution map can also be generated in a similar manner. Then, horizontal splicing or vertical splicing is performed on the brightness distribution map of the first column, the brightness distribution map of the second column, and the brightness distribution map of the third column to obtain the sub-monitoring image of the image column block 1.
  • the sub-monitoring images of the image column block 2 and the image column block 3 can be obtained, which will not be repeated here.
  • each statistical value may be mapped separately, and the mapping methods include linear mapping method, nonlinear mapping method, table look-up mapping method, etc., after mapping, the brightness value corresponding to the statistical value is obtained.
  • the step of linearly mapping each statistical value includes:
  • histo(x) is the statistical value of the number of pixels with the pixel value x
  • T is the preset upper limit of the statistical value
  • k is the number of bits representing the brightness value
  • Y is the brightness value.
  • mapping method for linearly mapping the statistical value to the brightness value in this specification can also use other formulas.
  • other mapping methods other than linear mapping can also be used to map the statistical value to the brightness value, which will not be repeated here.
  • the two surveillance image generation modules can be used for ping-pong operation.
  • the buffered data stream is continuously sent to the "image data processing module” for calculation and processing.
  • the use of ping-pong operation can complete the seamless buffering and processing of data, and can also save buffer space.
  • a monitoring image generation module After a monitoring image generation module completes histogram statistics, it needs to map and output the histogram data of the image block. At this time, another monitoring image generation module can perform the histogram statistics of the next image block at this time.
  • the two modules ping pong Interleaving ensures that the monitoring image generation module can process continuous high frame rate video source data. Ping-pong processing is not required when the frame rate of the monitoring image is not high. After reading the image of an image block from the image storage unit, wait for the histogram data statistics and mapping output to complete before reading the new data.
  • the logic resources and on-chip RAM occupied by the monitoring image generation process are nearly doubled.
  • the surveillance image needs to be displayed on the display screen.
  • the surveillance image obtained from the original large image may be too large to display.
  • at least one of the following three methods can be adopted:
  • the combined statistics of adjacent columns can be performed.
  • the number of columns required for display refers to the number of column pixels occupied by the monitoring image of this image column when it is actually displayed on the display screen.
  • Consolidated statistics refers to the use of one histogram for multiple columns. Assuming that the display requirements need to reduce the width of the monitored image by 3 times, then the three columns are combined for statistics. In this way, it is directly merged during statistics, and a small monitor image suitable for display is directly generated. There is no need to generate a large monitor image according to requirements and perform a proportional reduction when the monitoring image is displayed.
  • the combined statistics of adjacent pixel values can be performed.
  • the 8-bit pixel statistical height is 256.
  • the pixel value 0 and the pixel value 1 can be regarded as a pixel value statistics, ..., the pixel value 254 and the pixel value 255 is regarded as a pixel value statistics, and the size of the statistical histogram is 128. In this way, it is directly merged during statistics, and a small monitor image suitable for display is directly generated. There is no need to generate a large monitor image and scale it down according to the requirements when the monitor image is displayed.
  • each sub-monitoring image is respectively scaled.
  • This solution can also be used for the display requirements of surveillance images of any resolution. You can first generate a surveillance image of a block of images with a fixed resolution, then zoom the surveillance image and then write it into the surveillance image storage space. The splicing of surveillance images can form surveillance images with the required resolution. It is also possible to generate a surveillance image with a fixed resolution, and the surveillance image of one frame of image can be scaled to obtain the surveillance image with the required resolution after the calculation is completed.
  • 1080p, 8-bit images all generate 1920*256 size surveillance images, and subsequent use of surveillance image scaling and splicing to display the surveillance images to the required resolution.
  • each image column block undergoes corresponding scaling.
  • the statistical step size for counting the number of pixels of each pixel value in the column is 3; if the sub-monitoring image is a three-color monitoring For the image, the statistical step size for the number of the pixel points of each pixel value in the column is 1 respectively.
  • the statistical step size is 3, that is, statistical histogram statistics are calculated according to the method of adding 3 increments. Each time the number of pixels corresponding to a pixel value increases by 1, the statistical value corresponding to the pixel value is increased by 3.
  • each statistical histogram counts image height pixels in monochrome statistics, and each statistical histogram counts image height*3 pixels in three-color statistics, the intention is to make each statistical histogram of monochrome statistics The value of is finally multiplied by 3, which is consistent with the statistical histogram of the three-color statistics, and the same brightness mapping can be performed.
  • the statistical address is the statistical pixel value of the histogram statistics. For example, suppose in the statistical histogram, the statistical value of the number of pixels with a pixel value of 0 is 25, and the statistical value of the number of pixels with a pixel value of 6 is 2. The statistical value of the number of pixels with a pixel value of 255 is 10, then 0, 6 and 255 are three statistical addresses respectively, and 25, 2 and 10 are the statistical values under these three statistical addresses respectively.
  • This embodiment can limit the maximum statistical value of each pixel value to achieve the effect of eliminating the top of the histogram.
  • the pixel points of the sub-monitoring image may also be subjected to row-by-row interpolation processing.
  • a feasible interpolation method is: each row of data is stretched into two rows, except for the last row, the first row of expansion is the original data, the second row of expansion is the mean value of the original data of the current row and the next row; the last row is expanded The two rows of data are copies of the original data.
  • the size of a normal surveillance image is the image width*2m, and m is the width of statistical pixel data. If the number of bits of the surveillance image is 8 bits, its height is 256. If it is displayed on a screen with a resolution of 1080p, it may be too small, so , The height of the surveillance image can be enlarged by interpolation. For example, when the height of the original surveillance image is 256, the height of the surveillance image can be enlarged to 512 by the above method.
  • the monitoring image mapping output process is shown in Figure 3.
  • the first line of the original image stores a, e, ..., h
  • the second line of the original image stores b, f, ..., j
  • the first row of is the same as the first row of the original image, which is also a, e,..., h.
  • the expanded second row is the average value of the first row and the second row of the original image, that is (a+b)/ 2, (e+f)/2, (h+j)/2
  • the third row after expansion is the same as the second row of the original image, also b, f,..., j
  • the fourth row after expansion is the original The average value of the 2nd and 3rd rows in the figure, and so on.
  • Each of the generated sub-monitoring images can be written into the surveillance image storage space according to row jump addresses.
  • the data in each burst is continuously read, but the address is jumped between the burst queues, and the jump address is the corresponding position of the next line of the image.
  • the burst length Take the burst length as 64 pixels, the monochrome display is jumped after each burst, and the three-color display jumps after the three bursts.
  • the jump address ensures that when reading image data from the image storage space, each image column block is output in line from left to right and from top to bottom.
  • the surveillance image is written into the surveillance image storage space, it is also jumped to write to ensure that the surveillance image written into the surveillance image storage space is the continuous surveillance image to be displayed.
  • the structure of jump address reading and writing is shown in Figure 4.
  • the images stored in DDR are read out from DMA (Direct Memory Access) by jump address according to the label from small to large.
  • each image column block includes 64 columns, the image has a total of 1080 lines, for a monochrome surveillance image, 64 columns are read at a time, and the 64 columns are read in rows from the 1st line to the 1080th line; for the three-color surveillance image , Read 192 columns each time, that is, read the first column of the r component first, then read the first column of the g component, and then read the first column of the b component, ..., until the 64th of the r component Column, the 64th column of the g component, and the 64th column of the b component.
  • These 192 columns are read in rows from the 1st row to the 1080th row.
  • the read image column blocks are counted by column histogram, and after the statistics are completed, the DMA is written into the DMA according to the write address from small to large. Assuming that 256 rows of data are interpolated and expanded into 512 rows, when writing, for a monochrome surveillance image, first write the first to 64th columns, and the 64 columns of data are written in rows from the 1st to the 512th row; For the three-color monitoring image, write the first to 192th columns first, and the 192 columns of data are written row by row from the first row to the 512th row.
  • Reading the image from the image storage space and writing the surveillance image into the surveillance image storage space are all subjected to addressing processing.
  • the image stored in the image storage space is an entire frame image written line by line, and the read image is a line-by-line image outputted in image column blocks.
  • the surveillance image written in the surveillance image storage space is an image block area of the entire surveillance image. After all the writing is completed, the surveillance image storage space is exactly assembled into a surveillance image stored row by row to be displayed. Both read and write jump addresses ensure the efficiency of data read and write.
  • the jump address sequence of Figure 4 can be arbitrarily specified, only the data of one image column block and the monitoring image of the corresponding image column block are written to the corresponding position. Changing the monitoring image output sequence in Figure 3, the jump location method in Figure 4, etc. can easily realize the upside down, left and right flipping of the monitoring image, and the monitoring image arrangement sequence of the three-color monitoring image display, etc.
  • the image frame and its monitoring image can also be superimposed and displayed.
  • the surveillance image stored in the surveillance image storage space is a monochrome brightness map.
  • the surveillance image is displayed, it is necessary to read the corresponding brightness data from the surveillance image storage space and map the surveillance image representation for each color component to the corresponding color component.
  • the mapped surveillance image needs to be displayed superimposed with the original video.
  • the superposition can use the blend algorithm, which is generally to superimpose the surveillance image on the original image after being color-mapped.
  • the monitoring image statistics RAM used for the storage of one image column can be divided into several interleaved copies, so that all RAMs can perform histogram statistics at the same time within one clock , It can also output multiple pixels of the monitoring image in one clock to ensure real-time processing. For example, suppose that a clock processes 4 pixels and 4 statistics are in parallel. The original image column block uses a large RAM to realize statistics. Now 4 interleaved small RAMs are used for statistics. The first RAM counts the first column and the first RAM. 5 columns, 9th column, second RAM statistics, 2nd column, 6th column, 10th column, etc. It does not occupy much RAM resources, but the statistical logic is multiplexed 4 times, and other logic resources are not multiplexed. Not much resources.
  • Fine histogram statistics can be performed for each column of the image to generate large-resolution, high-precision and delicate monitoring images, which can not only realize monochrome monitoring images, but also realize simultaneous calculation and simultaneous display of monitoring images with multiple color components .
  • the generated surveillance image is the surveillance image organized according to display requirements, and no additional stitching or data reformation is required.
  • FIG. 5 it is a schematic diagram of a surveillance image generating apparatus 500 according to an embodiment of this specification.
  • the monitoring image generating device 500 includes:
  • Histogram statistics unit 501 data processing unit 502 and data output unit 503;
  • the histogram statistics unit 501 is configured to generate a statistical histogram of each column of the image column block, and send the statistical histogram to the data processing unit 502; wherein, The image frame is divided into a plurality of image column blocks in advance;
  • the data processing unit 502 is configured to generate a sub-monitoring image corresponding to the image column block according to the statistical histogram of each column of the image column block, and send the sub-monitoring image to the data output unit 503;
  • the data output unit 503 is configured to write the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block of the monitoring image storage space to obtain the monitoring image of the image frame.
  • the image frame in the image storage space is pre-divided into a plurality of image column blocks (tile), and the image frame is read block by block according to the pre-divided image column blocks, where each image
  • the column blocks are read in a row-by-row reading manner, and the monitoring image calculation of the entire image frame is realized by calculating the monitoring images of the image column blocks one by one.
  • the embodiments of this specification can be implemented based on FPGA, and both the original image frame and the generated surveillance image can be stored in the DDR.
  • the image frame is read row by row from the image storage space in the manner of image column blocks. Since several columns can be read at a time, the image reading efficiency is ensured. Divide the entire image frame into N image column blocks, and the processing unit only needs to open up a storage space that can store the histogram of each image column block, so the resource consumption only needs 1/N of the entire monitoring image storage, which is greatly reduced Storage resources, the use of smaller on-chip RAM can realize the generation of large-scale surveillance images. Therefore, the device according to the embodiments of the present specification can realize the monitoring image processing of high-resolution images, and realize the generation of high-resolution, high-frame-rate monitoring images.
  • the amount of read and write data when reading and writing the image frame once can be determined according to the preset data read and write efficiency, and then the image sequence divided by the image frame can be determined according to the amount of read and write data.
  • the number of blocks Specifically, the number of image columns M of each image column block in the monochrome surveillance image satisfies:
  • the number of image columns M of each image column block in the three-color surveillance image satisfies:
  • the burst width is generally greater than 32 bytes. In some cases, it is also necessary to ensure that a minimum burst of data is continuously read exactly as the M pixel data to be read (for monochrome surveillance images). ) Or the size of 3M pixel data (for three-color monitoring images).
  • the step of generating the sub-monitoring image corresponding to the image column block by the data processing unit 502 according to the pixel value of the pixel point includes: respectively generating a statistical histogram of each column in the image column block; And generate the sub-monitoring image corresponding to the image column block according to the statistical histogram of each column in the image column block, wherein the statistical histogram of each column in the image column block is generated according to the following method: The number of pixels of each pixel value in the column is counted to obtain the statistical value of the corresponding pixel value in the column; and the statistical histogram of the column is generated according to the statistical value of each pixel value in the column.
  • the sub-monitoring image can be generated directly based on the statistical histogram, or based on the brightness of the image.
  • the step of generating the sub-monitoring image corresponding to the image column block by the data processing unit 502 according to the statistical histogram of each column in the image column block includes: calculating the statistical histogram of each column in the image column block.
  • the images are spliced to obtain the sub-monitoring image corresponding to the image column block; or each statistical value is mapped to the corresponding brightness value, and the brightness distribution map of the corresponding column is generated according to the brightness value of each column, and the image column block
  • the brightness distribution maps of each column are spliced to obtain sub-monitoring images corresponding to the image column blocks.
  • each statistical value may be mapped separately, and the mapping methods include linear mapping method, nonlinear mapping method, table look-up mapping method, etc., after mapping, the brightness value corresponding to the statistical value is obtained.
  • the step of the data processing unit 502 linearly mapping each statistical value includes:
  • histo(x) is the statistical value of the number of pixels with the pixel value x
  • T is the preset upper limit of the statistical value
  • k is the number of bits representing the brightness value
  • Y is the brightness value.
  • mapping method for linearly mapping the statistical value to the brightness value in this specification can also use other formulas.
  • other mapping methods other than linear mapping can also be used to map the statistical value to the brightness value, which will not be repeated here.
  • the data processing unit 502 when it obtains the statistical value, it may perform combined statistics of adjacent columns.
  • the number of columns required for display refers to the number of column pixels occupied by the monitoring image of this image column when it is actually displayed on the display screen.
  • Consolidated statistics refers to the use of one histogram for multiple columns. Assuming that the display requirements need to reduce the width of the monitored image by 3 times, the three columns are combined for statistics. In this way, it is directly merged during statistics, and a small monitor image suitable for display is directly generated. There is no need to generate a large monitor image and scale it down according to the requirements when the monitor image is displayed.
  • the data processing unit 502 when it obtains the statistical value, it may perform the combined statistics of the adjacent pixel values.
  • the 8-bit pixel statistical height is 256.
  • the pixel value 0 and the pixel value 1 can be regarded as a pixel value statistics, ..., the pixel value 254 and the pixel value 255 is regarded as a pixel value statistics, and the size of the statistical histogram is 128. In this way, it is directly merged during statistics, and a small monitor image suitable for display is directly generated. There is no need to generate a large monitor image and scale it down according to the requirements when the monitor image is displayed.
  • the data processing unit 502 may also perform scaling processing on each sub-monitoring image, and then send the scaled sub-monitoring image to the data output unit 503.
  • This solution can also be used for the display requirements of surveillance images of any resolution. You can first generate a surveillance image of a block of images with a fixed resolution, then zoom the surveillance image and then write it into the surveillance image storage space. The splicing of surveillance images can form surveillance images with the required resolution. It is also possible to generate a surveillance image with a fixed resolution, and the surveillance image of one frame of image can be scaled to obtain the surveillance image with the required resolution after the calculation is completed.
  • 1080p, 8-bit images all generate 1920*256 size surveillance images, and subsequent use of surveillance image scaling and splicing to display the surveillance images to the required resolution.
  • each image column block undergoes corresponding scaling.
  • the statistical step size for counting the number of pixels of each pixel value in the column is 3; if the sub-monitoring image is a three-color monitoring For the image, the statistical step size for the number of the pixel points of each pixel value in the column is 1 respectively.
  • the statistical step size is 3, that is, the statistical histogram statistics are calculated according to the method of adding 3 increments. Each time the number of pixels corresponding to a pixel value increases by 1, the statistical value corresponding to the pixel value is increased by 3.
  • each statistical histogram counts image height pixels in monochrome statistics, and each statistical histogram counts image height*3 pixels in three-color statistics, the intention is to make each statistical histogram of monochrome statistics The value of is finally multiplied by 3, which is consistent with the statistical histogram of the three-color statistics, and the same brightness mapping can be performed.
  • the statistical address is the statistical pixel value of the histogram statistics. For example, suppose in the statistical histogram, the statistical value of the number of pixels with a pixel value of 0 is 25, and the statistical value of the number of pixels with a pixel value of 6 is 2. The statistical value of the number of pixels with a pixel value of 255 is 10, then 0, 6 and 255 are three statistical addresses respectively, and 25, 2 and 10 are the statistical values under these three statistical addresses respectively.
  • This embodiment can limit the maximum statistical value of each pixel value to achieve the effect of eliminating the top of the histogram.
  • the data processing unit 502 may also perform interpolation processing on pixel clicks of the sub-monitoring image, and then send the scaled sub-monitoring image to the data output unit 503.
  • the data output unit 503 may write each of the generated sub-monitoring images into the surveillance image storage space by line jump.
  • the data in each burst is continuously read, but the address is jumped between the burst queues, and the jump address is the corresponding position of the next line of the image.
  • the burst length Take the burst length as 64 pixels, the monochrome display is jumped after each burst, and the three-color display jumps after the three bursts.
  • the jump address ensures that when reading image data from the image storage space, each image column block is output in line from left to right and from top to bottom.
  • the surveillance image is written into the surveillance image storage space, it is also jumped to write to ensure that the surveillance image written into the surveillance image storage space is the continuous surveillance image to be displayed.
  • Reading the image from the image storage space and writing the surveillance image into the surveillance image storage space are all subjected to addressing processing.
  • the image stored in the image storage space is an entire frame image written line by line, and the read image is a line-by-line image outputted in image column blocks.
  • the surveillance image written in the surveillance image storage space is an image block area of the entire surveillance image. After all the writing is completed, the surveillance image storage space is exactly assembled into a surveillance image stored row by row to be displayed. Both read and write jump addresses ensure the efficiency of data read and write.
  • the number of the data processing unit 502 is multiple; each data processing unit 502 is respectively configured to generate the image column according to the statistical histogram of each column of the image column block on one of the color components The sub-monitoring image of the block on the corresponding color component.
  • one data processing unit can be used to generate statistical histograms and obtain sub-monitoring images;
  • three data processing units can be used to generate statistical histograms and obtain sub-monitoring images.
  • Each data processing unit generates a sub-monitoring image on the color component.
  • An embodiment of the three-color surveillance image generating device is shown in FIG. 6.
  • the data processing unit is RAM.
  • the monitoring image statistics RAM used for the storage of one image column can be divided into several interleaved copies, so that all RAMs can perform histogram statistics at the same time within one clock , It can also output multiple pixels of the monitoring image in one clock to ensure real-time processing. For example, suppose that a clock processes 4 pixels and 4 statistics are in parallel. The original image column block uses a large RAM to realize statistics. Now 4 interleaved small RAMs are used for statistics. The first RAM counts the first column and the first RAM. 5 columns, 9th column, second RAM statistics, 2nd column, 6th column, 10th column, etc. It does not occupy much RAM resources, but the statistical logic is multiplexed 4 times, and other logic resources are not multiplexed. Not much resources.
  • the surveillance image generation system 700 may include: the surveillance image generation device 500 described in any of the above embodiments; and a storage unit 701 for storing the image frame. Further, the storage unit 701 may also be used to store the generated surveillance image.
  • the monitoring image generating device 500 includes a first monitoring image generating device 500a and a second monitoring image generating device 500b; the second monitoring image generating device 500b is used for the first monitoring image generating device When 500a outputs the sub-monitoring image corresponding to one of the image column blocks, the sub-monitoring image corresponding to the next image column block is generated.
  • This embodiment exemplifies two monitoring image generation modules to perform ping-pong operation processing. After a monitoring image generation module completes histogram statistics, it needs to map and output the histogram data of the image block. At this time, another monitoring image generation module can perform the histogram statistics of the next image block at this time.
  • the two modules ping pong Interleaving ensures that the monitoring image generation module can process continuous high frame rate video source data. Ping-pong processing is not required when the frame rate of the monitoring image is not high. After reading the image of an image block from the image storage unit, wait for the histogram data statistics and mapping output to complete before reading the new data.
  • the logic resources and on-chip RAM occupied by the monitoring image generation process are nearly doubled.
  • the surveillance image generation system 700 further includes a data distribution unit 702; the data distribution unit 702 is configured to read the image column blocks of the image frame from the storage unit 701, and combine the The image sequence block is distributed to the first surveillance image generating device 500a or the second surveillance image generating device 500b.
  • the monitoring image generation system of an embodiment is shown in FIG. 8.
  • the system in FIG. 8 includes two monitoring module generating devices and a distribution unit. In practical applications, the number of monitoring module generating devices can also be more than two.
  • the surveillance image generation system 700 further includes a display unit 703 for displaying the surveillance image.
  • the image frame and its monitoring image can be superimposed and displayed.
  • the surveillance image stored in the surveillance image storage space is a monochrome brightness map.
  • the surveillance image is displayed, it is necessary to read the corresponding brightness data from the surveillance image storage space and map the surveillance image representation for each color component to the corresponding color component.
  • the mapped surveillance image needs to be displayed superimposed with the original video.
  • the superposition can use the blend algorithm, which is generally to superimpose the surveillance image on the original image after being color-mapped.
  • the storage unit 701 is a DDR.
  • the monitoring image generation system 700 is implemented based on FPGA.
  • Fine histogram statistics can be performed for each column of the image to generate large-resolution, high-precision and delicate monitoring images, which can not only realize monochrome monitoring images, but also realize simultaneous calculation and simultaneous display of monitoring images with multiple color components .
  • the generated surveillance image is the surveillance image organized according to display requirements, and no additional stitching or data reformation is required.
  • the embodiments of this specification also provide an image processing device, including the surveillance image generation system described in any of the above embodiments.
  • the image processing device is an image monitor or a camera.
  • the embodiment of this specification also provides a monitoring image generating device, and the embodiment of the method of this specification can be implemented by the monitoring image generating device.
  • the monitoring image generation device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the following method when the program is executed:
  • Each image column block includes multiple columns of pixels of the image frame, and the sub-monitoring image corresponding to each image column block is generated in the following manner:
  • the sub-monitoring image corresponding to the image column block is generated according to the pixel value of the pixel point.
  • the processor further implements the following method when executing the program: determining the amount of read and write data when reading and writing the image frame once according to a preset data read and write efficiency; The amount of data determines the number of image column blocks divided by the image frame.
  • the step of generating the sub-monitoring image corresponding to the image column block by the processor according to the pixel value of the pixel point includes: respectively generating a statistical histogram of each column in the image column block, and according to The statistical histogram of each column in the image column block generates the sub-monitoring image corresponding to the image column block, wherein the statistical histogram of each column in the image column block is generated according to the following method: The number of pixel points of each pixel value is counted to obtain the statistical value of the corresponding pixel value in the column; and the statistical histogram of the column is generated according to the statistical value of each pixel value in the column.
  • the step of the processor generating the sub-monitoring image corresponding to the image column block according to the statistical histogram of each column in the image column block includes: calculating the statistical histogram of each column in the image column block The images are spliced to obtain the sub-monitoring image corresponding to the image column block; or each statistical value is respectively mapped to the corresponding brightness value, and the brightness distribution map of the corresponding column is generated according to the brightness value of each column, and the image column block The brightness distribution maps of each column are spliced to obtain sub-monitoring images corresponding to the image column blocks.
  • the processor further implements the following method when executing the program: merging and counting the pixels corresponding to the same pixel value in several columns; and/or corresponding to several adjacent pixel values in the same column Pixels are combined and counted.
  • the statistical step size for counting the number of pixels of each pixel value in the column is 3; if the sub-monitoring image is a three-color monitoring For the image, the statistical step size for the number of the pixel points of each pixel value in the column is 1 respectively.
  • the step of the processor respectively mapping each statistical value to a corresponding brightness value includes: respectively mapping each statistical value to obtain the brightness value corresponding to the statistical value.
  • the step of the processor respectively mapping each statistical value includes: linearly mapping the statistical value in the following manner:
  • histo(x) is the statistical value of the number of pixels with the pixel value x
  • T is the preset upper limit of the statistical value
  • k is the number of bits representing the brightness value
  • Y is the brightness value.
  • the processor before writing the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block in the monitoring image storage space, the processor further implements the following method when executing the program:
  • the pixel points of the sub-monitoring image are interpolated line by line.
  • each sub-monitoring image is written into the surveillance image storage space by row jump address.
  • the processor further implements the following method when executing the program: superimposing and displaying the image frame and its monitoring image.
  • the processor before writing the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block in the monitoring image storage space, the processor further implements the following method when executing the program: The sub-monitoring image is scaled.
  • the monitoring image generation device of the embodiment of this specification may be, for example, a server or a terminal device.
  • the method embodiments can be implemented by software, or can be implemented by hardware or a combination of software and hardware. Taking software implementation as an example, as a logical device, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory by the processor that processes the file where it is located. From a hardware perspective, as shown in FIG. 9, it is a hardware structure diagram of a surveillance image generating device that implements the method of this specification, except for the processor 901, memory 902, network interface 903, and non-volatile memory shown in FIG. In addition to the sexual memory 904, the monitoring image generating device used to implement the method of this specification in the embodiment may also include other hardware according to the actual function of the monitoring image generating device, which will not be repeated here.
  • the embodiments of this specification may adopt the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program codes.
  • Computer usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • PRAM phase change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read-only memory
  • EEPROM electrically erasable programmable read-only memory
  • flash memory or other memory technology
  • CD-ROM compact disc
  • DVD digital versatile disc
  • Magnetic cassettes magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.

Abstract

The embodiments of the present description provide a monitoring image generation method, an apparatus, a device, a system, and an image processing device. Frames are read row by row in a manner of image column blocks, and one image column block comprises several columns of pixels, ensuring data read efficiency. Each image column block read respectively generates a sub-monitoring image, the generated sub-monitoring image is then written into a corresponding column block of a monitoring image storage space, and when the whole image is divided into N image column blocks, consumption of an on-chip memory RAM only occupies 1/N of the storage of the whole monitoring image, greatly saving storage resources. By means of the method, monitoring image processing of a high-resolution image can be realized, and a monitoring image with a high resolution and a high frame rate can be generated.

Description

监视图像生成方法、装置、设备和系统、图像处理设备Surveillance image generation method, device, equipment and system, and image processing equipment 技术领域Technical field
本公开涉及图像处理技术领域,具体而言,涉及监视图像生成方法、装置、设备和系统、图像处理设备。The present disclosure relates to the field of image processing technology, and in particular to monitoring image generation methods, devices, equipment and systems, and image processing equipment.
背景技术Background technique
监视图像(waveform图像)是监视器上用来观测场景亮度,色彩度分布的波形图,它描述的是Y/U/V/R/G/B某一分量在图像上每一列的集中分布情况。监视器上应用的主要包括RGB或YUV三分量同时在监视器上显示或某一颜色分量单独在监视器上显示。The monitor image (waveform image) is a waveform diagram used to observe the brightness and color distribution of the scene on the monitor. It describes the concentrated distribution of a certain component of Y/U/V/R/G/B in each column of the image . The main application on the monitor includes RGB or YUV three components displayed on the monitor at the same time or a certain color component is displayed on the monitor alone.
由于视频图像是按行缓存到DDR(Double Data Rate SDRAM,双倍速率同步动态随机存储器)存储中,并从DDR中按列调取图像进行waveform计算,因此,存在数据读取效率低的问题。另一种可实现的结构是在软件架构的cache或FPGA(Field-Programmable Gate Array,现场可编程门阵列)的片内RAM(Random Access Memory,随机存取存储器)上开辟一个和要显示的waveform图同样的空间,图像按行输出,输出时每列独立进行统计,但受限于cache或片内RAM的大小,导致waveform图的精确度及准确性较低,同时也会占用大量片内存储资源。Since the video images are cached in DDR (Double Data Rate SDRAM, Double Data Rate Synchronous Dynamic Random Access Memory) storage on a line-by-line basis, and images are retrieved from the DDR column by column for waveform calculation, there is a problem of low data reading efficiency. Another achievable structure is to develop a waveform to be displayed on the software architecture cache or FPGA (Field-Programmable Gate Array, Field-Programmable Gate Array) on-chip RAM (Random Access Memory) In the same space of the graph, the image is output in rows, and each column is independently counted during output. However, it is limited by the size of the cache or on-chip RAM, resulting in low accuracy and accuracy of the waveform graph, and will also occupy a large amount of on-chip storage. Resources.
发明内容Summary of the invention
有鉴于此,本公开的实施例提出了监视图像生成方法、装置、设备和系统、图像处理设备,以解决相关技术中数据读取效率低,waveform图精确度及准确性较低,占用片内存储资源大的技术问题。In view of this, the embodiments of the present disclosure propose monitoring image generation methods, devices, equipment and systems, and image processing equipment to solve the problem of low data reading efficiency in related technologies, low waveform map accuracy and accuracy, and occupying on-chip Technical problems with large storage resources.
根据本公开实施例的第一方面,提出一种监视图像生成方法,所述方法包括:According to a first aspect of the embodiments of the present disclosure, a monitoring image generation method is provided, the method includes:
将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上,以得到所述图像帧的监视图像,其中,所述图像帧被预先划分为多个图像列块,各个图像列块均包括所述图像帧的多列像素点,且各个图像列块对应的子监视图像均 按照以下方式生成:Write the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block of the monitoring image storage space to obtain the monitoring image of the image frame, wherein the image frame is divided into a plurality of image column blocks in advance Each image column block includes multiple columns of pixels of the image frame, and the sub-monitoring image corresponding to each image column block is generated in the following manner:
按行读取所述图像列块中的像素点;Reading the pixels in the image column block by row;
根据所述像素点的像素值生成所述图像列块对应的子监视图像。The sub-monitoring image corresponding to the image column block is generated according to the pixel value of the pixel point.
根据本公开实施例的第二方面,提出一种监视图像生成设备,其特征在于,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以下方法:According to a second aspect of the embodiments of the present disclosure, a monitoring image generation device is proposed, which is characterized by comprising a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor executes the The following methods are implemented in the program:
将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上,以得到所述图像帧的监视图像,其中,所述图像帧被预先划分为多个图像列块,各个图像列块均包括所述图像帧的多列像素点,且各个图像列块对应的子监视图像均按照以下方式生成:Write the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block of the monitoring image storage space to obtain the monitoring image of the image frame, wherein the image frame is divided into a plurality of image column blocks in advance Each image column block includes multiple columns of pixels of the image frame, and the sub-monitoring image corresponding to each image column block is generated in the following manner:
按行读取所述图像列块中的像素点;Reading the pixels in the image column block by row;
根据所述像素点的像素值生成所述图像列块对应的子监视图像。The sub-monitoring image corresponding to the image column block is generated according to the pixel value of the pixel point.
根据本公开实施例的第三方面,提出一种监视图像生成装置,其特征在于,还包括:According to a third aspect of the embodiments of the present disclosure, a monitoring image generation device is provided, which is characterized in that it further includes:
直方图统计单元,数据处理单元和数据输出单元;Histogram statistical unit, data processing unit and data output unit;
针对图像帧中的各个图像列块,所述直方图统计单元用于分别各个生成所述图像列块各个列的统计直方图,并将所述统计直方图发送至数据处理单元;其中,所述图像帧被预先划分为多个图像列块;For each image column block in the image frame, the histogram statistical unit is used to generate a statistical histogram of each column of the image column block, and send the statistical histogram to the data processing unit; wherein, the The image frame is pre-divided into multiple image column blocks;
所述数据处理单元用于根据所述图像列块各个列的统计直方图生成所述图像列块对应的子监视图像,并将所述子监视图像发送至数据输出单元;The data processing unit is configured to generate a sub-monitoring image corresponding to the image column block according to the statistical histogram of each column of the image column block, and send the sub-monitoring image to a data output unit;
所述数据输出单元用于将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上,以得到所述图像帧的监视图像。The data output unit is used to write the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block of the monitoring image storage space to obtain the monitoring image of the image frame.
根据本公开实施例的第四方面,提出一种监视图像生成系统,其特征在于,包括:According to a fourth aspect of the embodiments of the present disclosure, a surveillance image generation system is provided, which is characterized in that it includes:
任一实施例所述的监视图像生成装置;以及The surveillance image generating device according to any embodiment; and
用于存储所述图像帧的存储单元。A storage unit for storing the image frame.
根据本公开实施例的第五方面,提出一种图像处理设备,其特征在于,包括任 一实施例所述的监视图像生成系统。According to a fifth aspect of the embodiments of the present disclosure, an image processing device is provided, which is characterized by including the surveillance image generation system described in any of the embodiments.
应用本说明书实施例方案,以图像列块的方式按行读出图像帧,一个图像列块块包含了若干列像素,保证了数据读出效率。读出的每个图像列块分别生成子监视图像,生成的子监视图像再写入监视图像存储空间的对应列块上,当将全幅图像分成N个图像列块时,片内存储RAM消耗只需要整个监视图像存储的1/N,大大降低了存储资源。该方法可以实现高分辨率图像的监视图像处理,可实现高分辨率、高帧频的监视图像生成。Applying the solution of the embodiment of this specification, the image frame is read out in rows in the form of image column blocks. One image column block includes several columns of pixels, which ensures the efficiency of data reading. Each read-out image column generates a sub-monitoring image, and the generated sub-monitoring image is written to the corresponding column block in the monitoring image storage space. When the full image is divided into N image column blocks, the on-chip storage RAM consumes only It requires 1/N of the entire surveillance image storage, which greatly reduces storage resources. The method can realize the monitoring image processing of high-resolution images, and realize the generation of high-resolution, high-frame-rate monitoring images.
附图说明Description of the drawings
为了更清楚地说明本公开实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly describe the technical solutions in the embodiments of the present disclosure, the following will briefly introduce the accompanying drawings used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present disclosure. For those of ordinary skill in the art, other drawings can be obtained from these drawings without creative labor.
图1是根据本公开的实施例示出的一种监视图像生成方法的示意流程图。Fig. 1 is a schematic flowchart of a method for generating a surveillance image according to an embodiment of the present disclosure.
图2是根据本公开的实施例示出的一种图像列块的示意图。Fig. 2 is a schematic diagram showing an image column block according to an embodiment of the present disclosure.
图3是根据本公开的实施例示出的监视图像的插值处理过程示意图。Fig. 3 is a schematic diagram showing an interpolation processing process of a surveillance image according to an embodiment of the present disclosure.
图4是根据本公开的实施例示出的监视图像跳址结构示意图。Fig. 4 is a schematic diagram showing the structure of a surveillance image jump address according to an embodiment of the present disclosure.
图5是根据本公开的实施例示出的监视图像生成装置的示意图。Fig. 5 is a schematic diagram showing a monitoring image generating device according to an embodiment of the present disclosure.
图6是根据本公开的实施例示出的另一种监视图像生成装置的示意图。Fig. 6 is a schematic diagram showing another monitoring image generating device according to an embodiment of the present disclosure.
图7是根据本公开的实施例示出的一种监视图像生成系统的示意图。Fig. 7 is a schematic diagram showing a monitoring image generation system according to an embodiment of the present disclosure.
图8是根据本公开的实施例示出的另一种监视图像生成系统的示意图。Fig. 8 is a schematic diagram showing another surveillance image generation system according to an embodiment of the present disclosure.
图9是根据本公开的实施例示出的用于实施本说明书方法的监视图像生成设备的示意图。Fig. 9 is a schematic diagram showing a monitoring image generating device for implementing the method of this specification according to an embodiment of the present disclosure.
具体实施方式detailed description
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉 及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书的一些方面相一致的装置和方法的例子。The exemplary embodiments will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with this specification. On the contrary, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.
在本说明书使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书。在本说明书和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in this specification are only for the purpose of describing specific embodiments, and are not intended to limit the specification. The singular forms of "a", "said" and "the" used in this specification and appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and/or" as used herein refers to and includes any or all possible combinations of one or more associated listed items.
应当理解,尽管在本说明书可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information. Depending on the context, the word "if" as used herein can be interpreted as "when" or "when" or "in response to determination".
如图1所示,是本说明书一个实施例的监视图像生成方法流程图。所述方法可包括:As shown in Fig. 1, it is a flowchart of a monitoring image generation method according to an embodiment of this specification. The method may include:
步骤S101:将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上,以得到所述图像帧的监视图像,其中,所述图像帧被预先划分为多个图像列块,各个图像列块均包括所述图像帧的多列像素点,且各个图像列块对应的子监视图像均按照以下方式生成:Step S101: Write the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block of the monitoring image storage space to obtain the monitoring image of the image frame, wherein the image frame is divided into a plurality of Image column blocks, each image column block includes multiple columns of pixels of the image frame, and the sub-monitoring image corresponding to each image column block is generated in the following manner:
步骤S102:按行读取所述图像列块中的像素点;Step S102: Read pixels in the image column block by row;
步骤S103:根据所述像素点的像素值生成所述图像列块对应的子监视图像。Step S103: Generate the sub-monitoring image corresponding to the image column block according to the pixel value of the pixel point.
图像帧一般是按行进行读写的,而监视图像要求按照图像列处理整幅图像某一颜色分量的同像素的集中程度,对图像帧的每一列进行直方图统计。如果图像帧较大,用软件处理全部图像列计算时间较慢,很难实现高帧频大画幅的监视图像或三颜色分量的同时显示;若用硬件如FPGA(Field-Programmable Gate Array,现场可编程门阵列)或ASIC(Application Specific Integrated Circuit,特殊应用集成电路)来进行处理,由于图像帧按行输出按列统计,FPGA的架构难以实现pipeline,受限于片内RAM资源又难以实现全部列监视图像的缓存,多数只能小图显示,难以实现高帧频,大画幅精细监视图像的显示。Image frames are generally read and written in rows, while monitoring images require that the concentration of the same pixels of a certain color component of the entire image be processed according to the image columns, and histogram statistics are performed on each column of the image frame. If the image frame is large, the calculation time for processing all image columns by software is slow, and it is difficult to achieve high frame rate and large frame monitoring images or simultaneous display of three color components; if hardware such as FPGA (Field-Programmable Gate Array) is used, the field can be displayed. Program gate array) or ASIC (Application Specific Integrated Circuit, special application integrated circuit) for processing, because the image frame is output in rows and columns, it is difficult to implement pipelines in the FPGA architecture, and it is difficult to achieve all columns due to the limitation of on-chip RAM resources. Most of the monitoring images can only be displayed in small images, and it is difficult to realize the display of high frame rate and large-format fine monitoring images.
基于此,在本说明书实施例的方法中,预先将图像存储空间中的图像帧划分成多个图像列块(tile),并按照预先划分的图像列块来对图像帧进行逐块读取,其中,每一个图像列块都采用逐行读取的方式进行读取,通过对逐个图像列块的监视图像进行计算来实现整个图像帧的监视图像计算。本说明书实施例可基于FPGA实现,监视图像生成过程可以由片内RAM执行,原图像帧可以存储在DDR中,生成的监视图像也可以存储在DDR中。Based on this, in the method of the embodiment of this specification, the image frame in the image storage space is divided into a plurality of image tiles in advance, and the image frames are read block by block according to the pre-divided image column blocks. Among them, each image column block is read in a row-by-row reading manner, and the monitoring image calculation of the entire image frame is realized by calculating the monitoring image of each image column block. The embodiments of this specification can be implemented based on FPGA, the monitoring image generation process can be executed by on-chip RAM, the original image frame can be stored in DDR, and the generated monitoring image can also be stored in DDR.
一个实施例的图像列块的示意图如图2所示。图中的图像帧包括9列,每3列划分为一个图像列块,共划分为3个图像列块。在对图像进行读取时,可以先按行读取图像列块1中的各个像素点;在图像列块1中的各个像素点均读取完毕之后,再按行读取图像列块2中的各个像素点;同样,在图像列块2中的各个像素点均读取完毕之后,再按行读取图像列块3中的各个像素点。A schematic diagram of image column blocks in an embodiment is shown in FIG. 2. The image frame in the figure includes 9 columns, and every 3 columns is divided into an image column block, which is divided into 3 image column blocks in total. When reading the image, you can read each pixel in the image column block 1 row by row; after all the pixels in the image column block 1 have been read, then read the image column block 2 row by row. Similarly, after each pixel in the image column block 2 has been read, read each pixel in the image column block 3 by row.
当访问一个图像列块中各个像素点的像素点时,可以根据该图像列块中各个像素点的像素值进行直方图统计,生成该图像列块对应的子监视图像。仍以图2所示的图像为例,在访问图像列块1中的各个像素点时,可以根据图像列块1中各个像素点的像素值生成图像列块1的子监视图像;在访问图像列块2中的各个像素点时,可以根据图像列块2中各个像素点的像素值生成图像列块2的子监视图像;同理,在访问图像列块3中的各个像素点时,可以根据图像列块3中各个像素点的像素值生成图像列块3的子监视图像。When accessing the pixel points of each pixel in an image column block, the histogram statistics can be performed according to the pixel value of each pixel point in the image column block to generate the sub-monitoring image corresponding to the image column block. Still taking the image shown in Figure 2 as an example, when accessing each pixel in the image column block 1, the sub-monitoring image of the image column block 1 can be generated according to the pixel value of each pixel in the image column block 1; For each pixel in column block 2, the sub-monitoring image of image column block 2 can be generated according to the pixel value of each pixel in image column block 2. Similarly, when accessing each pixel in image column block 3, you can The sub-monitoring image of the image column 3 is generated according to the pixel value of each pixel in the image column 3.
在获取到子监视图像之后,可以将子监视图像写入监视图像存储空间的对应列块上。写入时,可以每获取到一个子监视图像就写入一个。After the sub-monitoring image is acquired, the sub-monitoring image can be written to the corresponding column of the surveillance image storage space. When writing, one sub-monitoring image can be written every time it is acquired.
在上述实施例中,图像帧以图像列块的方式从图像存储空间中按行读取,由于每次可读取若干列,因此,保证了图像读出效率。将整幅图像帧划分成N个图像列块,处理单元中只需开辟一个可存储每个图像列块直方图的存储空间,因此资源消耗只需要整个监视图像存储的1/N,大大降低了存储资源,较小的片内RAM使用即可实现大幅监视图像的生成。因此,采用本说明书实施例的方法可以实现高分辨率图像的监视图像处理,并可实现高分辨率、高帧频的监视图像生成。In the above embodiment, the image frame is read row by row from the image storage space in the manner of image column blocks. Since several columns can be read at a time, the image reading efficiency is ensured. Divide the entire image frame into N image column blocks, and the processing unit only needs to open up a storage space that can store the histogram of each image column block, so the resource consumption only needs 1/N of the entire monitoring image storage, which is greatly reduced Storage resources, the use of smaller on-chip RAM can realize the generation of large-scale surveillance images. Therefore, by adopting the method of the embodiments of the present specification, the monitoring image processing of high-resolution images can be realized, and the generation of monitoring images with high resolution and high frame rate can be realized.
在一个实施例中,可以先确定一幅图像所需划分的图像列块的数量。为了保证数据读写效率,一般读写数时会连续读写若干个数据字节。因此,可以根据预设的数据读写效率确定对所述图像帧进行一次读写时的读写数据量,再根据所述读写数据量确定所述图像帧划分出的图像列块的数量。In an embodiment, the number of image column blocks to be divided for an image may be determined first. In order to ensure the efficiency of data reading and writing, several data bytes will be continuously read and written when reading and writing data. Therefore, the amount of read and write data when reading and writing the image frame once can be determined according to the preset data read and write efficiency, and then the number of image column blocks divided by the image frame can be determined according to the amount of read and write data.
假设图像共k列,需统计颜色分量的深度为q比特,选定一个满足数据读写效率的最小burst量,据此确定单色监视图像每个图像列块的图像列数为M,三色监视图像每个图像列块的图像列数为3M。三色监视图像需同时显示时,可以例化三倍的RAM,分别同时进行对应颜色分量的监视图像生成。假定图像为1080p RGB 8bit图像,M取64,要显示的单色和三色监视图像大小均为1920*512,三色waveform图是640*512的R、G、B三个waveform图的拼接结果。则单色显示时分成了30个图像列块,三色显示时分成了10个图像列块,存储每个颜色分量的每个图像列块的RAM空间大小为64*256*12bit。具体来说,单色监视图像M满足:Assuming that the image has a total of k columns, the depth of the color components needs to be counted as q bits, and a minimum burst amount that meets the efficiency of data reading and writing is selected, and the number of image columns in each image column block of the monochrome surveillance image is determined to be M, three colors The number of image columns for each image column block of the monitoring image is 3M. When the three-color monitoring images need to be displayed at the same time, three times the RAM can be instantiated, and the corresponding color component monitoring images can be generated at the same time. Assuming that the image is a 1080p RGB 8bit image, M is 64, the size of the monochrome and three-color monitoring images to be displayed is 1920*512, and the three-color waveform image is the stitching result of the three waveform images of 640*512 R, G, and B . The single-color display is divided into 30 image column blocks, and the three-color display is divided into 10 image column blocks. The RAM space size of each image column block storing each color component is 64*256*12bit. Specifically, the monochrome surveillance image M satisfies:
M*q=burst量*burst宽度;M*q=burst amount*burst width;
三色监视图像M满足:The three-color surveillance image M satisfies:
3M*q=burst量*burst宽度;3M*q=burst amount*burst width;
其中,为保证DDR读写效率,burst宽度一般大于32个字节,在某种情况下还需要保证连续读一个最小burst量的数据恰好为待读出的M个像素数据(对于单色监视图像)或者3M个像素数据(对于三色监视图像)的大小。Among them, in order to ensure the efficiency of DDR reading and writing, the burst width is generally greater than 32 bytes. In some cases, it is also necessary to ensure that a minimum burst of data is continuously read exactly as the M pixel data to be read (for monochrome surveillance images). ) Or the size of 3M pixel data (for three-color monitoring images).
在一个实施例中,监视图像生成包括直方图统计和监视图像映射输出两个步骤。根据所述像素点的像素值生成所述图像列块对应的子监视图像的步骤包括:分别生成所述图像列块中各个列的统计直方图,并根据所述图像列块中各个列的统计直方图生成所述图像列块对应的子监视图像,其中,所述图像列块中各个列的统计直方图均根据以下方式生成:分别对所述列中各个像素值的像素点进行数量统计,得到所述列中对应像素值的统计值;根据所述列中各个像素值的统计值生成所述列的统计直方图。In one embodiment, monitoring image generation includes two steps: histogram statistics and monitoring image mapping output. The step of generating the sub-monitoring image corresponding to the image column block according to the pixel value of the pixel point includes: respectively generating a statistical histogram of each column in the image column block, and according to the statistics of each column in the image column block. The histogram generates the sub-monitoring image corresponding to the image column block, wherein the statistical histogram of each column in the image column block is generated according to the following method: the number of pixels of each pixel value in the column is counted respectively, Obtain the statistical value of the corresponding pixel value in the column; generate a statistical histogram of the column according to the statistical value of each pixel value in the column.
现以图2所示的图像帧中图像列块1为例对生成图像列块1的子监视图像的过程进行说明,图像列块2和图像列块3的子监视图像按照类似的方式生成,此后不再赘述。可以分别生成第一列的统计直方图T1、第二列的统计直方图T2和第三列的统计直方图T3,然后根据T1、T2和T3生成图像列块1的子监视图像。其中,统计直方图T1可以根据以下方式生成:对图像列块1第一列中各个像素点的像素值进行统计,得到该列中各个像素值的像素点的个数,例如,像素值为0的像素点的个数为N0,像素值为1的像素点的个数为N1,像素值为2的像素点的个数为N2,等等,以此类推。N0,N1,N2,……即分别为像素值0,像素值1,像素值2,……的统计值。然后, 可以根据N0,N1,N2,……生成图像列块1第一列的统计直方图。第二列和第三列的统计直方图按照类似的方式生成。Now take the image column block 1 in the image frame shown in FIG. 2 as an example to describe the process of generating the sub-monitoring images of the image column block 1. The sub-monitoring images of the image column block 2 and the image column block 3 are generated in a similar manner. I won't repeat it hereafter. The statistical histogram T1 in the first column, the statistical histogram T2 in the second column, and the statistical histogram T3 in the third column can be respectively generated, and then the sub-monitoring images of the image column block 1 are generated according to T1, T2, and T3. Among them, the statistical histogram T1 can be generated according to the following method: the pixel value of each pixel in the first column of the image column block 1 is counted to obtain the number of pixels of each pixel value in the column, for example, the pixel value is 0 The number of pixels is N0, the number of pixels with a pixel value of 1 is N1, the number of pixels with a pixel value of 2 is N2, and so on. N0, N1, N2, ... are the statistical values of pixel value 0, pixel value 1, pixel value 2, ... respectively. Then, the statistical histogram of the first column of the image column block 1 can be generated according to N0, N1, N2,... The statistical histograms in the second and third columns are generated in a similar way.
直方图统计时执行图像按列的统计方法。对于单色监视图像的统计,统计只在对应颜色空间内的RAM中进行,当一个图像列块包括64列时,每个RAM划分出64个直方图存储空间。对于分辨率为1080p的图像,从DDR读出的图像为每行64个像素,共1080行,按行输出,于是输入的第一个像素的对应分量在第一个直方图中统计,第二个像素的对应分量在第二个直方图中统计,第64个像素的对应分量在第64个直方图中统计,第65个像素的对应分量重新在第一个直方图中统计,以此类推统计完所有64列像素。Execute the statistical method of image column by column during histogram statistics. For the statistics of monochrome surveillance images, statistics are only performed in the RAM in the corresponding color space. When an image column block includes 64 columns, each RAM is divided into 64 histogram storage spaces. For an image with a resolution of 1080p, the image read from DDR is 64 pixels per line, a total of 1080 lines, output in line, so the corresponding component of the input first pixel is counted in the first histogram, and the second The corresponding component of each pixel is counted in the second histogram, the corresponding component of the 64th pixel is counted in the 64th histogram, the corresponding component of the 65th pixel is counted again in the first histogram, and so on After counting all 64 columns of pixels.
对于三色监视图像的统计,统计在三个RAM中同时进行,对于分辨率为1080p的图像,输入的图像为每行192个像素,共1080行,输入的第1、2、3个像素对应的每个分量分别在对应的第1个直方图中统计,第4、5、6个像素在第2个直方图统计,第190、191、192个像素在第64个直方图统计,第193、194、195个像素重新在第一个直方图中统计,以此类推统计完所有192列像素。For the statistics of the three-color monitoring image, the statistics are carried out in three RAMs at the same time. For an image with a resolution of 1080p, the input image is 192 pixels per line, a total of 1080 lines, and the input pixels 1, 2, and 3 correspond to Each component of is counted in the corresponding first histogram, the 4th, 5th, and 6th pixels are counted in the second histogram, the 190th, 191, and 192th pixels are counted in the 64th histogram, the 193th , 194, and 195 pixels are counted again in the first histogram, and so on, all 192 columns of pixels are counted.
子监视图像可以直接根据统计直方图来生成,也可以根据图像的亮度来生成。具体来说,根据所述图像列块中各个列的统计直方图生成所述图像列块对应的子监视图像的步骤包括:对所述图像列块中各个列的统计直方图进行拼接,得到所述图像列块对应的子监视图像;或者分别将各个统计值映射为对应的亮度值,分别根据各个列的亮度值生成对应列的亮度分布图,对所述图像列块各个列的亮度分布图进行拼接,得到所述图像列块对应的子监视图像。The sub-monitoring image can be generated directly based on the statistical histogram, or based on the brightness of the image. Specifically, the step of generating the sub-monitoring image corresponding to the image column block according to the statistical histogram of each column in the image column block includes: splicing the statistical histogram of each column in the image column block to obtain all The sub-monitoring image corresponding to the image column block; or each statistical value is mapped to the corresponding brightness value, and the brightness distribution map of the corresponding column is generated according to the brightness value of each column, and the brightness distribution map of each column of the image column block Splicing is performed to obtain sub-monitoring images corresponding to the image column blocks.
对于根据统计直方图来生成子监视图像的方式,可以将各个列的统计直方图横向拼接或者纵向拼接,得到所述图像列块对应的子监视图像。对于根据亮度值来生成子监视图像的方式,以图2中图像列块1中的第一列为例,可以将统计直方图T1中的各个统计值分别映射为亮度值,例如,将N0映射为Y0,将N1映射为Y1,将N2映射为Y2,……,以此类推。在将统计值映射为亮度值时,可以根据以下原则:将较大的统计值映射为较亮的亮度值,较小的统计值映射为较暗的亮度值。根据Y0,Y1,Y2,……可以得到第一列的亮度分布图。同理,对于图像列块1中的第二列和第三列也可以按照类似的方式生成亮度分布图。然后,对第一列的亮度分布图、第二列的亮度分布图和第三列的亮度分布图进行横向拼接或者纵向拼接,可以得到图像列块1的子监视图像。按照类似的方式可以得到图像列块2和图像列块3的子监视图像,此处 不再赘述。For the method of generating sub-monitoring images based on statistical histograms, the statistical histograms of each column may be spliced horizontally or vertically to obtain sub-monitoring images corresponding to the image column blocks. For the method of generating sub-monitoring images based on brightness values, taking the first column in image column block 1 in Figure 2 as an example, each statistical value in the statistical histogram T1 can be mapped to a brightness value, for example, N0 is mapped Is Y0, N1 is mapped to Y1, N2 is mapped to Y2,..., and so on. When the statistical value is mapped to the brightness value, the following principle can be used: a larger statistical value is mapped to a brighter brightness value, and a smaller statistical value is mapped to a darker brightness value. According to Y0, Y1, Y2, ... the brightness distribution diagram of the first column can be obtained. In the same way, for the second column and the third column in the image column block 1, the brightness distribution map can also be generated in a similar manner. Then, horizontal splicing or vertical splicing is performed on the brightness distribution map of the first column, the brightness distribution map of the second column, and the brightness distribution map of the third column to obtain the sub-monitoring image of the image column block 1. In a similar manner, the sub-monitoring images of the image column block 2 and the image column block 3 can be obtained, which will not be repeated here.
在一个实施例中,可以分别对各个统计值进行映射,映射方法包括线性映射法、非线性映射法以及查表映射法等,映射后得到所述统计值对应的亮度值。以线性映射法举例说明,在一个实施例中,分别对各个统计值进行线性映射的步骤包括:In one embodiment, each statistical value may be mapped separately, and the mapping methods include linear mapping method, nonlinear mapping method, table look-up mapping method, etc., after mapping, the brightness value corresponding to the statistical value is obtained. Taking the linear mapping method as an example, in one embodiment, the step of linearly mapping each statistical value includes:
按照以下方式对所述统计值进行线性映射:Perform linear mapping on the statistical values in the following way:
Y=histo(x)*(2 k-1)/T; Y=histo(x)*(2 k -1)/T;
式中,histo(x)是像素值为x的像素点的数量的统计值,T是预设的统计值上限,k是亮度值的表示位数,Y是亮度值。In the formula, histo(x) is the statistical value of the number of pixels with the pixel value x, T is the preset upper limit of the statistical value, k is the number of bits representing the brightness value, and Y is the brightness value.
本说明书中将统计值线性映射为亮度值的映射方式也可以采用其他公式,此外,也可以采用线性映射以外的其他映射方式将统计值映射为亮度值,此处不再赘述。The mapping method for linearly mapping the statistical value to the brightness value in this specification can also use other formulas. In addition, other mapping methods other than linear mapping can also be used to map the statistical value to the brightness value, which will not be repeated here.
为了保证监视图像的高帧率,可以将两个监视图像生成模块做乒乓操作处理。通过“输入数据选择单元”和“输出数据选择单元”,按节拍、相互配合地切换,来将经过缓冲的数据流不停地送到“图像数据处理模块”进行运算及处理。使用乒乓操作可以完成数据的无缝缓冲与处理,还可以节约缓冲区空间。In order to ensure the high frame rate of the surveillance image, the two surveillance image generation modules can be used for ping-pong operation. Through the "input data selection unit" and "output data selection unit", according to the rhythm and mutual cooperation, the buffered data stream is continuously sent to the "image data processing module" for calculation and processing. The use of ping-pong operation can complete the seamless buffering and processing of data, and can also save buffer space.
一个监视图像生成模块完成直方图统计后需要将该图像列块的直方图数据映射输出,此时另一个监视图像生成模块可以在此时进行下一个图像列块的直方图统计,两个模块乒乓交错进行保证监视图像生成模块能够处理连续高帧频的视频源数据。在监视图像帧频要求不高的情况下也可以不做乒乓处理,一个图像列块的图像从图像存储单元读出后等待直方图数据统计及映射输出完毕后再读出新的数据,可以使监视图像生成过程占用的逻辑资源及片内RAM将近减少一倍。After a monitoring image generation module completes histogram statistics, it needs to map and output the histogram data of the image block. At this time, another monitoring image generation module can perform the histogram statistics of the next image block at this time. The two modules ping pong Interleaving ensures that the monitoring image generation module can process continuous high frame rate video source data. Ping-pong processing is not required when the frame rate of the monitoring image is not high. After reading the image of an image block from the image storage unit, wait for the histogram data statistics and mapping output to complete before reading the new data. The logic resources and on-chip RAM occupied by the monitoring image generation process are nearly doubled.
监视图像要在显示屏上显示出来,按照原始大图统计得到的监视图像显示起来可能会太大,为了解决上述问题,可以采取以下三种方式中的至少一种:The surveillance image needs to be displayed on the display screen. The surveillance image obtained from the original large image may be too large to display. In order to solve the above problem, at least one of the following three methods can be adopted:
方式一:method one:
若显示屏的像素宽度小于每个图像列块的显示需求列数,可以进行相邻列的合并统计。其中,显示需求列数是指这一个图像列块的监视图像实际在显示屏上显示时所占的列像素个数。合并统计是指多列用一个直方图统计,假设显示需求需要监视图像宽度缩小3倍,则3列合并统计。通过这种方式,直接在统计时就合并,直接生成适合显示的监视图像小图,无需在进行监视图像显示时根据需求生成监视图像大图并 进行等比例缩小。If the pixel width of the display screen is less than the number of columns required for the display of each image column block, the combined statistics of adjacent columns can be performed. Among them, the number of columns required for display refers to the number of column pixels occupied by the monitoring image of this image column when it is actually displayed on the display screen. Consolidated statistics refers to the use of one histogram for multiple columns. Assuming that the display requirements need to reduce the width of the monitored image by 3 times, then the three columns are combined for statistics. In this way, it is directly merged during statistics, and a small monitor image suitable for display is directly generated. There is no need to generate a large monitor image according to requirements and perform a proportional reduction when the monitoring image is displayed.
方式二:Way two:
若显示屏的像素高度小于2q,可以执行相邻像素值的合并统计。举例来讲,8位像素统计高度是256,当监视图像要显示的高度是128时,则可以将像素值0和像素值1看作一个像素值统计,……,将像素值254和像素值255看作一个像素值统计,统计直方图的大小就是128了。通过这种方式,直接在统计时就合并,直接生成适合显示的监视图像小图,无需在进行监视图像显示时根据需求生成监视图像大图并进行等比例缩小。If the pixel height of the display screen is less than 2q, the combined statistics of adjacent pixel values can be performed. For example, the 8-bit pixel statistical height is 256. When the height of the monitor image to be displayed is 128, the pixel value 0 and the pixel value 1 can be regarded as a pixel value statistics, ..., the pixel value 254 and the pixel value 255 is regarded as a pixel value statistics, and the size of the statistical histogram is 128. In this way, it is directly merged during statistics, and a small monitor image suitable for display is directly generated. There is no need to generate a large monitor image and scale it down according to the requirements when the monitor image is displayed.
方式三:Way three:
在将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上之前,分别对各个子监视图像进行缩放处理。对于任意分辨率的监视图像显示要求也可以采用该方案,可以先以一种固定分辨率生成一个图像列块的监视图像,将该监视图像缩放后再写入监视图像存储空间,多个缩放后的监视图像的拼接即可形成所需分辨率的监视图像。也可以生成一种固定分辨率的监视图像,一帧图像的监视图像计算完毕后再缩放得到所需分辨率的监视图像。例如,1080p,8位的图像都生成1920*256大小的监视图像,后续利用监视图像的缩放和拼接来将监视图像显示成所需的分辨率。对于一个图像帧划分成多个图像列块的情形,则每个图像列块都经过相应的缩放。Before writing the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block of the monitoring image storage space, each sub-monitoring image is respectively scaled. This solution can also be used for the display requirements of surveillance images of any resolution. You can first generate a surveillance image of a block of images with a fixed resolution, then zoom the surveillance image and then write it into the surveillance image storage space. The splicing of surveillance images can form surveillance images with the required resolution. It is also possible to generate a surveillance image with a fixed resolution, and the surveillance image of one frame of image can be scaled to obtain the surveillance image with the required resolution after the calculation is completed. For example, 1080p, 8-bit images all generate 1920*256 size surveillance images, and subsequent use of surveillance image scaling and splicing to display the surveillance images to the required resolution. In the case where an image frame is divided into multiple image column blocks, each image column block undergoes corresponding scaling.
在一个实施例中,若所述子监视图像为单色监视图像,分别对所述列中各个像素值的像素点进行数量统计的统计步长为3;若所述子监视图像为三色监视图像,分别对所述列中各个像素值的像素点进行数量统计的统计步长为1。统计步长为3,即统计直方图统计按照加3递增的方法进行统计,一个对应像素值的像素点数量每增加1,该像素值对应的统计值加3。由于单色统计时每个统计直方图统计的是图像高度个像素,三色统计时每个统计直方图统计的是图像高度*3个像素,该意图是让单色统计的每个统计直方图的值最后乘以3,和三色统计的统计直方图一致,可进行同样的亮度映射。In one embodiment, if the sub-monitoring image is a single-color monitoring image, the statistical step size for counting the number of pixels of each pixel value in the column is 3; if the sub-monitoring image is a three-color monitoring For the image, the statistical step size for the number of the pixel points of each pixel value in the column is 1 respectively. The statistical step size is 3, that is, statistical histogram statistics are calculated according to the method of adding 3 increments. Each time the number of pixels corresponding to a pixel value increases by 1, the statistical value corresponding to the pixel value is increased by 3. Since each statistical histogram counts image height pixels in monochrome statistics, and each statistical histogram counts image height*3 pixels in three-color statistics, the intention is to make each statistical histogram of monochrome statistics The value of is finally multiplied by 3, which is consistent with the statistical histogram of the three-color statistics, and the same brightness mapping can be performed.
当某一统计地址下的统计值达到该颜色分量定义下的最高上限T时,统计直方图的统计值保持为T不变。其中,统计地址就是直方图统计的统计像素值,例如,假设在统计直方图中,像素值为0的像素点数量的统计值为25,像素值为6的像素点数 量的统计值为2,像素值为255的像素点数量的统计值为10,则0,6和255分别为3个统计地址,25,2和10则分别为这三个统计地址下的统计值。本实施例可以限制每个像素值的最大统计值,达到直方图消顶的效果。When the statistical value under a certain statistical address reaches the highest upper limit T defined by the color component, the statistical value of the statistical histogram remains unchanged at T. Among them, the statistical address is the statistical pixel value of the histogram statistics. For example, suppose in the statistical histogram, the statistical value of the number of pixels with a pixel value of 0 is 25, and the statistical value of the number of pixels with a pixel value of 6 is 2. The statistical value of the number of pixels with a pixel value of 255 is 10, then 0, 6 and 255 are three statistical addresses respectively, and 25, 2 and 10 are the statistical values under these three statistical addresses respectively. This embodiment can limit the maximum statistical value of each pixel value to achieve the effect of eliminating the top of the histogram.
当三色同时显示时,可以先输出r直方图数据的第一行(每个直方图的最大地址),然后依次输出g直方图数据的第一行,b直方图数据的第一行,最后输出b直方图数据的最后一行。其他输出顺序也可以,只需保证在输出时将一个图像列块的三色直方图数据均写入DDR中对应颜色的监视图像存储空间中。When the three colors are displayed at the same time, you can first output the first row of r histogram data (the maximum address of each histogram), then output the first row of g histogram data, the first row of b histogram data, and finally Output the last line of b histogram data. Other output sequences are also possible, just ensure that the three-color histogram data of an image column is written into the monitoring image storage space of the corresponding color in the DDR during output.
在一个实施例中,在将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上之前,还可以对所述子监视图像的像素点按行进行插值处理。一种可行的插值方式是:每一行数据拉伸成两行,除了最后一行外,扩展的第一行为原数据,扩展的第二行数据为当前行和下一行原数据的均值;最后一行扩展的两行数据均为原数据的复制。输出时,假设插值前子监视图像包括K行数据,则通过插值可将子监视图像扩展成2K行数据。在实际应用中可以根据显示需求来确定是否对子监视图像进行扩展。正常监视图像的大小是图像宽度*2m,m为统计像素数据宽度,若监视图像的位数是8位,则其高度就是256,如果用分辨率为1080p的显示屏显示可能会太小,因此,通过插值可以对监视图像的高度进行放大,例如,当原监视图像的高度为256时,通过上述方式可以将监视图像的高度放大到512。In an embodiment, before writing the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block of the monitoring image storage space, the pixel points of the sub-monitoring image may also be subjected to row-by-row interpolation processing. A feasible interpolation method is: each row of data is stretched into two rows, except for the last row, the first row of expansion is the original data, the second row of expansion is the mean value of the original data of the current row and the next row; the last row is expanded The two rows of data are copies of the original data. When outputting, assuming that the sub-monitoring image includes K lines of data before interpolation, the sub-monitoring image can be expanded into 2K lines of data through interpolation. In practical applications, it can be determined whether to extend the sub-monitoring image according to the display requirements. The size of a normal surveillance image is the image width*2m, and m is the width of statistical pixel data. If the number of bits of the surveillance image is 8 bits, its height is 256. If it is displayed on a screen with a resolution of 1080p, it may be too small, so , The height of the surveillance image can be enlarged by interpolation. For example, when the height of the original surveillance image is 256, the height of the surveillance image can be enlarged to 512 by the above method.
监视图像映射输出过程如图3所示,原图的第1行存储的是a,e,……,h,原图的第2行存储的是b,f,……,j,则扩展后的第1行与原图的第1行相同,也是a,e,……,h,扩展后的第2行为原图中第1行与第2行的平均值,即(a+b)/2,(e+f)/2,(h+j)/2,扩展后的第3行与原图的第2行相同,也是b,f,……,j,扩展后的第4行为原图中第2行与第3行的平均值,以此类推。The monitoring image mapping output process is shown in Figure 3. The first line of the original image stores a, e, ..., h, and the second line of the original image stores b, f, ..., j, then after expansion The first row of is the same as the first row of the original image, which is also a, e,..., h. The expanded second row is the average value of the first row and the second row of the original image, that is (a+b)/ 2, (e+f)/2, (h+j)/2, the third row after expansion is the same as the second row of the original image, also b, f,..., j, the fourth row after expansion is the original The average value of the 2nd and 3rd rows in the figure, and so on.
除了以上插值方法,也可以采取其他的线性插值方式或者非线性插值方式来进行插值,或者采用图像像素复制,此处不再赘述。In addition to the above interpolation methods, other linear interpolation methods or nonlinear interpolation methods can also be used for interpolation, or image pixel replication can be used, which will not be repeated here.
生成的各个子监视图像可以按行跳址写入所述监视图像存储空间。对图像存储空间进行读取时,在每个burst中的数据连续读取,但在burst队列之间进行跳址,跳址成图像下一行的对应位置。取burst长度为64个像素,单色显示在每个burst后均跳址,三色显示在三个burst后进行跳址。跳址保证从图像存储空间中读出图像数据时依次将每个图像列块块按照从左到右,从上到下按行输出。监视图像写入监视图像存储空间时同样跳址写入,保证写入监视图像存储空间的监视图像即为连续的待显示的监 视图像。Each of the generated sub-monitoring images can be written into the surveillance image storage space according to row jump addresses. When reading the image storage space, the data in each burst is continuously read, but the address is jumped between the burst queues, and the jump address is the corresponding position of the next line of the image. Take the burst length as 64 pixels, the monochrome display is jumped after each burst, and the three-color display jumps after the three bursts. The jump address ensures that when reading image data from the image storage space, each image column block is output in line from left to right and from top to bottom. When the surveillance image is written into the surveillance image storage space, it is also jumped to write to ensure that the surveillance image written into the surveillance image storage space is the continuous surveillance image to be displayed.
跳址读写结构如图4所示,DDR中存储的图像按照标号从小到大从DMA(Direct Memory Access,直接内存存取)中跳址读出。假设每个图像列块包括64列,图像共1080行,对于单色监视图像,每次读取64列,且这64列从第1行至第1080行按行读取;对于三色监视图像,每次读取192列,即,先读取r分量的第1列,再读取g分量的第1列,再读取b分量的第1列,……,一直到r分量的第64列,g分量的第64列,b分量的第64列,这192列从第1行至第1080行按行读取。读取到的图像列块按列进行直方图统计,统计完成后按标号从小到大的写地址写入DMA。假设256行的数据插值扩展成512行,则写入时,对于单色监视图像,先写入第1列至第64列,这64列数据从第1行至第512行按行写入;对于三色监视图像,先写入第1列至第192列,这192列数据从第1行至第512行按行写入。The structure of jump address reading and writing is shown in Figure 4. The images stored in DDR are read out from DMA (Direct Memory Access) by jump address according to the label from small to large. Assuming that each image column block includes 64 columns, the image has a total of 1080 lines, for a monochrome surveillance image, 64 columns are read at a time, and the 64 columns are read in rows from the 1st line to the 1080th line; for the three-color surveillance image , Read 192 columns each time, that is, read the first column of the r component first, then read the first column of the g component, and then read the first column of the b component, ..., until the 64th of the r component Column, the 64th column of the g component, and the 64th column of the b component. These 192 columns are read in rows from the 1st row to the 1080th row. The read image column blocks are counted by column histogram, and after the statistics are completed, the DMA is written into the DMA according to the write address from small to large. Assuming that 256 rows of data are interpolated and expanded into 512 rows, when writing, for a monochrome surveillance image, first write the first to 64th columns, and the 64 columns of data are written in rows from the 1st to the 512th row; For the three-color monitoring image, write the first to 192th columns first, and the 192 columns of data are written row by row from the first row to the 512th row.
从图像存储空间读取图像和将监视图像写入监视图像存储空间均进行跳址处理。图像存储空间存储的图像是逐行写入的整帧图像,读出的图像是按图像列块输出的逐行图像。监视图像存储空间写入的监视图像是一整幅监视图像的一个图像列块区域,全部写完后监视图像存储空间中恰好拼成一幅待显示的逐行存储的监视图像。读写跳址均保证了数据读写效率。Reading the image from the image storage space and writing the surveillance image into the surveillance image storage space are all subjected to addressing processing. The image stored in the image storage space is an entire frame image written line by line, and the read image is a line-by-line image outputted in image column blocks. The surveillance image written in the surveillance image storage space is an image block area of the entire surveillance image. After all the writing is completed, the surveillance image storage space is exactly assembled into a surveillance image stored row by row to be displayed. Both read and write jump addresses ensure the efficiency of data read and write.
图4的跳址顺序可以任意指定,只需将一个图像列块的数据读出和对应图像列块的监视图像写到对应位置。更改图3的监视图像输出顺序,图4的跳址方法等可以轻易实现监视图像的上下翻转,左右翻转,3色监视图像显示的监视图像排布顺序等。The jump address sequence of Figure 4 can be arbitrarily specified, only the data of one image column block and the monitoring image of the corresponding image column block are written to the corresponding position. Changing the monitoring image output sequence in Figure 3, the jump location method in Figure 4, etc. can easily realize the upside down, left and right flipping of the monitoring image, and the monitoring image arrangement sequence of the three-color monitoring image display, etc.
在一个实施例中,还可以对所述图像帧及其监视图像进行叠加显示。监视图像存储空间中存储的监视图像是单色亮度图,监视图像显示时还需要从监视图像存储空间中读出对应亮度数据并针对每个颜色分量的监视图像表示映射成相应的彩色分量。映射后的监视图像需要和原视频叠加显示。叠加可采用blend算法,一般是把监视图像经过色彩映射后透明化叠加到原始图像上。In an embodiment, the image frame and its monitoring image can also be superimposed and displayed. The surveillance image stored in the surveillance image storage space is a monochrome brightness map. When the surveillance image is displayed, it is necessary to read the corresponding brightness data from the surveillance image storage space and map the surveillance image representation for each color component to the corresponding color component. The mapped surveillance image needs to be displayed superimposed with the original video. The superposition can use the blend algorithm, which is generally to superimpose the surveillance image on the original image after being color-mapped.
对于1个时钟处理多个像素的如4k大分辨率图像,可以将用于一个图像列块存储的监视图像统计RAM分割成交错的若干份,使所有RAM能够在一个时钟内同时进行直方图统计,也可以在一个时钟内输出监视图像的多个像素,保证实时处理。举例来说,假设一个时钟处理4个像素,4个统计并行,原来一个图像列块用一个大RAM实现统计,现在用4个交错的小RAM进行统计,第一个RAM统计第1列,第5列,第9列,第二个RAM统计第2列,第6列,第10列,等等,不多占RAM资源,只 是统计逻辑复用了4次,其他逻辑资源没有复用,所占资源不多。For a 4k high-resolution image that processes multiple pixels in one clock, the monitoring image statistics RAM used for the storage of one image column can be divided into several interleaved copies, so that all RAMs can perform histogram statistics at the same time within one clock , It can also output multiple pixels of the monitoring image in one clock to ensure real-time processing. For example, suppose that a clock processes 4 pixels and 4 statistics are in parallel. The original image column block uses a large RAM to realize statistics. Now 4 interleaved small RAMs are used for statistics. The first RAM counts the first column and the first RAM. 5 columns, 9th column, second RAM statistics, 2nd column, 6th column, 10th column, etc. It does not occupy much RAM resources, but the statistical logic is multiplexed 4 times, and other logic resources are not multiplexed. Not much resources.
本说明书实施例具有以下优点:The embodiments of this specification have the following advantages:
(1)可实现4k超大分辨率视频的监视图像生成,监视图像的处理频率可达到和输入频率相一致。(1) It can realize the generation of surveillance images of 4k ultra-large resolution video, and the processing frequency of surveillance images can be consistent with the input frequency.
(2)可针对图像每列进行精细的直方图统计,生成大分辨率,高精度细腻的监视图像,不仅能实现单色监视图像,也可以实现多颜色分量的监视图像的同时计算及同时显示。(2) Fine histogram statistics can be performed for each column of the image to generate large-resolution, high-precision and delicate monitoring images, which can not only realize monochrome monitoring images, but also realize simultaneous calculation and simultaneous display of monitoring images with multiple color components .
(3)生成的监视图像即为根据显示需求整理好的监视图像,不需要额外的拼接或数据重整。(3) The generated surveillance image is the surveillance image organized according to display requirements, and no additional stitching or data reformation is required.
如图5所示,是本说明书一个实施例的监视图像生成装置500的示意图。所述监视图像生成装置500包括:As shown in FIG. 5, it is a schematic diagram of a surveillance image generating apparatus 500 according to an embodiment of this specification. The monitoring image generating device 500 includes:
直方图统计单元501,数据处理单元502和数据输出单元503; Histogram statistics unit 501, data processing unit 502 and data output unit 503;
针对图像帧中的各个图像列块,所述直方图统计单元501用于分别各个生成所述图像列块各个列的统计直方图,并将所述统计直方图发送至数据处理单元502;其中,所述图像帧被预先划分为多个图像列块;For each image column block in the image frame, the histogram statistics unit 501 is configured to generate a statistical histogram of each column of the image column block, and send the statistical histogram to the data processing unit 502; wherein, The image frame is divided into a plurality of image column blocks in advance;
所述数据处理单元502用于根据所述图像列块各个列的统计直方图生成所述图像列块对应的子监视图像,并将所述子监视图像发送至数据输出单元503;The data processing unit 502 is configured to generate a sub-monitoring image corresponding to the image column block according to the statistical histogram of each column of the image column block, and send the sub-monitoring image to the data output unit 503;
所述数据输出单元503用于将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上,以得到所述图像帧的监视图像。The data output unit 503 is configured to write the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block of the monitoring image storage space to obtain the monitoring image of the image frame.
在本说明书实施例中,图像存储空间中的图像帧被预先划分成多个图像列块(tile),并按照预先划分的图像列块来对图像帧进行逐块读取,其中,每一个图像列块都采用逐行读取的方式进行读取,通过对逐个图像列块的监视图像进行计算来实现整个图像帧的监视图像计算。本说明书实施例可基于FPGA实现,原图像帧和生成的监视图像均可以存储在DDR中。In the embodiment of this specification, the image frame in the image storage space is pre-divided into a plurality of image column blocks (tile), and the image frame is read block by block according to the pre-divided image column blocks, where each image The column blocks are read in a row-by-row reading manner, and the monitoring image calculation of the entire image frame is realized by calculating the monitoring images of the image column blocks one by one. The embodiments of this specification can be implemented based on FPGA, and both the original image frame and the generated surveillance image can be stored in the DDR.
在上述实施例中,图像帧以图像列块的方式从图像存储空间中按行读取,由于每次可读取若干列,因此,保证了图像读出效率。将整幅图像帧划分成N个图像列块,处理单元中只需开辟一个可存储每个图像列块直方图的存储空间,因此资源消耗只需要整个监视图像存储的1/N,大大降低了存储资源,较小的片内RAM使用即可实现大 幅监视图像的生成。因此,采用本说明书实施例的装置可以实现高分辨率图像的监视图像处理,并可实现高分辨率、高帧频的监视图像生成。In the above embodiment, the image frame is read row by row from the image storage space in the manner of image column blocks. Since several columns can be read at a time, the image reading efficiency is ensured. Divide the entire image frame into N image column blocks, and the processing unit only needs to open up a storage space that can store the histogram of each image column block, so the resource consumption only needs 1/N of the entire monitoring image storage, which is greatly reduced Storage resources, the use of smaller on-chip RAM can realize the generation of large-scale surveillance images. Therefore, the device according to the embodiments of the present specification can realize the monitoring image processing of high-resolution images, and realize the generation of high-resolution, high-frame-rate monitoring images.
在一个实施例中,可以根据预设的数据读写效率确定对所述图像帧进行一次读写时的读写数据量,再根据所述读写数据量确定所述图像帧划分出的图像列块的数量。具体来说,单色监视图像中每个图像列块的图像列数M满足:In an embodiment, the amount of read and write data when reading and writing the image frame once can be determined according to the preset data read and write efficiency, and then the image sequence divided by the image frame can be determined according to the amount of read and write data. The number of blocks. Specifically, the number of image columns M of each image column block in the monochrome surveillance image satisfies:
M*q=burst量*burst宽度;M*q=burst amount*burst width;
三色监视图像中每个图像列块的图像列数M满足:The number of image columns M of each image column block in the three-color surveillance image satisfies:
3M*q=burst量*burst宽度。3M*q=burst amount*burst width.
其中,为保证DDR读写效率,burst宽度一般大于32个字节,在某种情况下还需要保证连续读一个最小burst量的数据恰好为待读出的M个像素数据(对于单色监视图像)或者3M个像素数据(对于三色监视图像)的大小。Among them, in order to ensure the efficiency of DDR reading and writing, the burst width is generally greater than 32 bytes. In some cases, it is also necessary to ensure that a minimum burst of data is continuously read exactly as the M pixel data to be read (for monochrome surveillance images). ) Or the size of 3M pixel data (for three-color monitoring images).
在一个实施例中,所述数据处理单元502根据所述像素点的像素值生成所述图像列块对应的子监视图像的步骤包括:分别生成所述图像列块中各个列的统计直方图,并根据所述图像列块中各个列的统计直方图生成所述图像列块对应的子监视图像,其中,所述图像列块中各个列的统计直方图均根据以下方式生成:分别对所述列中各个像素值的像素点进行数量统计,得到所述列中对应像素值的统计值;根据所述列中各个像素值的统计值生成所述列的统计直方图。In one embodiment, the step of generating the sub-monitoring image corresponding to the image column block by the data processing unit 502 according to the pixel value of the pixel point includes: respectively generating a statistical histogram of each column in the image column block; And generate the sub-monitoring image corresponding to the image column block according to the statistical histogram of each column in the image column block, wherein the statistical histogram of each column in the image column block is generated according to the following method: The number of pixels of each pixel value in the column is counted to obtain the statistical value of the corresponding pixel value in the column; and the statistical histogram of the column is generated according to the statistical value of each pixel value in the column.
子监视图像可以直接根据统计直方图来生成,也可以根据图像的亮度来生成。具体来说,所述数据处理单元502根据所述图像列块中各个列的统计直方图生成所述图像列块对应的子监视图像的步骤包括:对所述图像列块中各个列的统计直方图进行拼接,得到所述图像列块对应的子监视图像;或者分别将各个统计值映射为对应的亮度值,分别根据各个列的亮度值生成对应列的亮度分布图,对所述图像列块各个列的亮度分布图进行拼接,得到所述图像列块对应的子监视图像。The sub-monitoring image can be generated directly based on the statistical histogram, or based on the brightness of the image. Specifically, the step of generating the sub-monitoring image corresponding to the image column block by the data processing unit 502 according to the statistical histogram of each column in the image column block includes: calculating the statistical histogram of each column in the image column block. The images are spliced to obtain the sub-monitoring image corresponding to the image column block; or each statistical value is mapped to the corresponding brightness value, and the brightness distribution map of the corresponding column is generated according to the brightness value of each column, and the image column block The brightness distribution maps of each column are spliced to obtain sub-monitoring images corresponding to the image column blocks.
在一个实施例中,可以分别对各个统计值进行映射,映射方法包括线性映射法、非线性映射法以及查表映射法等,映射后得到所述统计值对应的亮度值。以线性映射法举例说明,在一个实施例中,所述数据处理单元502分别对各个统计值进行线性映射的步骤包括:In one embodiment, each statistical value may be mapped separately, and the mapping methods include linear mapping method, nonlinear mapping method, table look-up mapping method, etc., after mapping, the brightness value corresponding to the statistical value is obtained. Taking the linear mapping method as an example, in one embodiment, the step of the data processing unit 502 linearly mapping each statistical value includes:
按照以下方式对所述统计值进行线性映射:Perform linear mapping on the statistical values in the following way:
Y=histo(x)*(2 k-1)/T; Y=histo(x)*(2 k -1)/T;
式中,histo(x)是像素值为x的像素点的数量的统计值,T是预设的统计值上限,k是亮度值的表示位数,Y是亮度值。In the formula, histo(x) is the statistical value of the number of pixels with the pixel value x, T is the preset upper limit of the statistical value, k is the number of bits representing the brightness value, and Y is the brightness value.
本说明书中将统计值线性映射为亮度值的映射方式也可以采用其他公式,此外,也可以采用线性映射以外的其他映射方式将统计值映射为亮度值,此处不再赘述。The mapping method for linearly mapping the statistical value to the brightness value in this specification can also use other formulas. In addition, other mapping methods other than linear mapping can also be used to map the statistical value to the brightness value, which will not be repeated here.
在一个实施例中,数据处理单元502获取统计值时,可以进行相邻列的合并统计。其中,显示需求列数是指这一个图像列块的监视图像实际在显示屏上显示时所占的列像素个数。合并统计是指多列用一个直方图统计,假设显示需求需要监视图像宽度缩小3倍,则3列合并统计。通过这种方式,直接在统计时就合并,直接生成适合显示的监视图像小图,无需在进行监视图像显示时根据需求生成监视图像大图并进行等比例缩小。In one embodiment, when the data processing unit 502 obtains the statistical value, it may perform combined statistics of adjacent columns. Among them, the number of columns required for display refers to the number of column pixels occupied by the monitoring image of this image column when it is actually displayed on the display screen. Consolidated statistics refers to the use of one histogram for multiple columns. Assuming that the display requirements need to reduce the width of the monitored image by 3 times, the three columns are combined for statistics. In this way, it is directly merged during statistics, and a small monitor image suitable for display is directly generated. There is no need to generate a large monitor image and scale it down according to the requirements when the monitor image is displayed.
在一个实施例中,数据处理单元502获取统计值时,可以执行相邻像素值的合并统计。举例来讲,8位像素统计高度是256,当监视图像要显示的高度是128时,则可以将像素值0和像素值1看作一个像素值统计,……,将像素值254和像素值255看作一个像素值统计,统计直方图的大小就是128了。通过这种方式,直接在统计时就合并,直接生成适合显示的监视图像小图,无需在进行监视图像显示时根据需求生成监视图像大图并进行等比例缩小。In one embodiment, when the data processing unit 502 obtains the statistical value, it may perform the combined statistics of the adjacent pixel values. For example, the 8-bit pixel statistical height is 256. When the height of the monitor image to be displayed is 128, the pixel value 0 and the pixel value 1 can be regarded as a pixel value statistics, ..., the pixel value 254 and the pixel value 255 is regarded as a pixel value statistics, and the size of the statistical histogram is 128. In this way, it is directly merged during statistics, and a small monitor image suitable for display is directly generated. There is no need to generate a large monitor image and scale it down according to the requirements when the monitor image is displayed.
在一个实施例中,数据处理单元502还可以对各个子监视图像进行缩放处理,再将缩放后的子监视图像发送至数据输出单元503。对于任意分辨率的监视图像显示要求也可以采用该方案,可以先以一种固定分辨率生成一个图像列块的监视图像,将该监视图像缩放后再写入监视图像存储空间,多个缩放后的监视图像的拼接即可形成所需分辨率的监视图像。也可以生成一种固定分辨率的监视图像,一帧图像的监视图像计算完毕后再缩放得到所需分辨率的监视图像。例如,1080p,8位的图像都生成1920*256大小的监视图像,后续利用监视图像的缩放和拼接来将监视图像显示成所需的分辨率。对于一个图像帧划分成多个图像列块的情形,则每个图像列块都经过相应的缩放。In an embodiment, the data processing unit 502 may also perform scaling processing on each sub-monitoring image, and then send the scaled sub-monitoring image to the data output unit 503. This solution can also be used for the display requirements of surveillance images of any resolution. You can first generate a surveillance image of a block of images with a fixed resolution, then zoom the surveillance image and then write it into the surveillance image storage space. The splicing of surveillance images can form surveillance images with the required resolution. It is also possible to generate a surveillance image with a fixed resolution, and the surveillance image of one frame of image can be scaled to obtain the surveillance image with the required resolution after the calculation is completed. For example, 1080p, 8-bit images all generate 1920*256 size surveillance images, and subsequent use of surveillance image scaling and splicing to display the surveillance images to the required resolution. In the case where an image frame is divided into multiple image column blocks, each image column block undergoes corresponding scaling.
在一个实施例中,若所述子监视图像为单色监视图像,分别对所述列中各个像素值的像素点进行数量统计的统计步长为3;若所述子监视图像为三色监视图像,分别对所述列中各个像素值的像素点进行数量统计的统计步长为1。统计步长为3,即统 计直方图统计按照加3递增的方法进行统计,一个对应像素值的像素点数量每增加1,该像素值对应的统计值加3。由于单色统计时每个统计直方图统计的是图像高度个像素,三色统计时每个统计直方图统计的是图像高度*3个像素,该意图是让单色统计的每个统计直方图的值最后乘以3,和三色统计的统计直方图一致,可进行同样的亮度映射。In one embodiment, if the sub-monitoring image is a single-color monitoring image, the statistical step size for counting the number of pixels of each pixel value in the column is 3; if the sub-monitoring image is a three-color monitoring For the image, the statistical step size for the number of the pixel points of each pixel value in the column is 1 respectively. The statistical step size is 3, that is, the statistical histogram statistics are calculated according to the method of adding 3 increments. Each time the number of pixels corresponding to a pixel value increases by 1, the statistical value corresponding to the pixel value is increased by 3. Since each statistical histogram counts image height pixels in monochrome statistics, and each statistical histogram counts image height*3 pixels in three-color statistics, the intention is to make each statistical histogram of monochrome statistics The value of is finally multiplied by 3, which is consistent with the statistical histogram of the three-color statistics, and the same brightness mapping can be performed.
当某一统计地址下的统计值达到该颜色分量定义下的最高上限T时,统计直方图的统计值保持为T不变。其中,统计地址就是直方图统计的统计像素值,例如,假设在统计直方图中,像素值为0的像素点数量的统计值为25,像素值为6的像素点数量的统计值为2,像素值为255的像素点数量的统计值为10,则0,6和255分别为3个统计地址,25,2和10则分别为这三个统计地址下的统计值。本实施例可以限制每个像素值的最大统计值,达到直方图消顶的效果。When the statistical value under a certain statistical address reaches the highest upper limit T defined by the color component, the statistical value of the statistical histogram remains unchanged at T. Among them, the statistical address is the statistical pixel value of the histogram statistics. For example, suppose in the statistical histogram, the statistical value of the number of pixels with a pixel value of 0 is 25, and the statistical value of the number of pixels with a pixel value of 6 is 2. The statistical value of the number of pixels with a pixel value of 255 is 10, then 0, 6 and 255 are three statistical addresses respectively, and 25, 2 and 10 are the statistical values under these three statistical addresses respectively. This embodiment can limit the maximum statistical value of each pixel value to achieve the effect of eliminating the top of the histogram.
在一个实施例中,数据处理单元502还可以对所述子监视图像的像素点按行进行插值处理,再将缩放后的子监视图像发送至数据输出单元503。In an embodiment, the data processing unit 502 may also perform interpolation processing on pixel clicks of the sub-monitoring image, and then send the scaled sub-monitoring image to the data output unit 503.
数据输出单元503可以将生成的各个子监视图像按行跳址写入所述监视图像存储空间。对图像存储空间进行读取时,在每个burst中的数据连续读取,但在burst队列之间进行跳址,跳址成图像下一行的对应位置。取burst长度为64个像素,单色显示在每个burst后均跳址,三色显示在三个burst后进行跳址。跳址保证从图像存储空间中读出图像数据时依次将每个图像列块块按照从左到右,从上到下按行输出。监视图像写入监视图像存储空间时同样跳址写入,保证写入监视图像存储空间的监视图像即为连续的待显示的监视图像。The data output unit 503 may write each of the generated sub-monitoring images into the surveillance image storage space by line jump. When reading the image storage space, the data in each burst is continuously read, but the address is jumped between the burst queues, and the jump address is the corresponding position of the next line of the image. Take the burst length as 64 pixels, the monochrome display is jumped after each burst, and the three-color display jumps after the three bursts. The jump address ensures that when reading image data from the image storage space, each image column block is output in line from left to right and from top to bottom. When the surveillance image is written into the surveillance image storage space, it is also jumped to write to ensure that the surveillance image written into the surveillance image storage space is the continuous surveillance image to be displayed.
从图像存储空间读取图像和将监视图像写入监视图像存储空间均进行跳址处理。图像存储空间存储的图像是逐行写入的整帧图像,读出的图像是按图像列块输出的逐行图像。监视图像存储空间写入的监视图像是一整幅监视图像的一个图像列块区域,全部写完后监视图像存储空间中恰好拼成一幅待显示的逐行存储的监视图像。读写跳址均保证了数据读写效率。Reading the image from the image storage space and writing the surveillance image into the surveillance image storage space are all subjected to addressing processing. The image stored in the image storage space is an entire frame image written line by line, and the read image is a line-by-line image outputted in image column blocks. The surveillance image written in the surveillance image storage space is an image block area of the entire surveillance image. After all the writing is completed, the surveillance image storage space is exactly assembled into a surveillance image stored row by row to be displayed. Both read and write jump addresses ensure the efficiency of data read and write.
在一个实施例中,所述数据处理单元502的数量为多个;各个数据处理单元502分别用于根据所述图像列块的各个列在其中一个颜色分量上的统计直方图生成所述图像列块在对应颜色分量上的子监视图像。对于单色监视图像生成,可以采用一个数据处理单元来生成统计直方图并获取子监视图像;对于三色监视图像生成,可以采用三个数据处理单元来生成统计直方图并获取子监视图像,每个数据处理单元生成一个颜 色分量上的子监视图像。一个实施例的三色监视图像生成装置如图6所示。In an embodiment, the number of the data processing unit 502 is multiple; each data processing unit 502 is respectively configured to generate the image column according to the statistical histogram of each column of the image column block on one of the color components The sub-monitoring image of the block on the corresponding color component. For monochrome surveillance image generation, one data processing unit can be used to generate statistical histograms and obtain sub-monitoring images; for three-color surveillance image generation, three data processing units can be used to generate statistical histograms and obtain sub-monitoring images. Each data processing unit generates a sub-monitoring image on the color component. An embodiment of the three-color surveillance image generating device is shown in FIG. 6.
在一个实施例中,所述数据处理单元为RAM。对于1个时钟处理多个像素的如4k大分辨率图像,可以将用于一个图像列块存储的监视图像统计RAM分割成交错的若干份,使所有RAM能够在一个时钟内同时进行直方图统计,也可以在一个时钟内输出监视图像的多个像素,保证实时处理。举例来说,假设一个时钟处理4个像素,4个统计并行,原来一个图像列块用一个大RAM实现统计,现在用4个交错的小RAM进行统计,第一个RAM统计第1列,第5列,第9列,第二个RAM统计第2列,第6列,第10列,等等,不多占RAM资源,只是统计逻辑复用了4次,其他逻辑资源没有复用,所占资源不多。In one embodiment, the data processing unit is RAM. For a 4k high-resolution image that processes multiple pixels in one clock, the monitoring image statistics RAM used for the storage of one image column can be divided into several interleaved copies, so that all RAMs can perform histogram statistics at the same time within one clock , It can also output multiple pixels of the monitoring image in one clock to ensure real-time processing. For example, suppose that a clock processes 4 pixels and 4 statistics are in parallel. The original image column block uses a large RAM to realize statistics. Now 4 interleaved small RAMs are used for statistics. The first RAM counts the first column and the first RAM. 5 columns, 9th column, second RAM statistics, 2nd column, 6th column, 10th column, etc. It does not occupy much RAM resources, but the statistical logic is multiplexed 4 times, and other logic resources are not multiplexed. Not much resources.
所述监视图像生成装置的其他实施例与上述监视图像生成方法的实施例相同,此处不再赘述。Other embodiments of the monitoring image generation device are the same as the above-mentioned embodiments of the monitoring image generation method, and will not be repeated here.
如图7所示,是本说明书一个实施例的监视图像生成系统的示意图。所述监视图像生成系统700可包括:以上任一实施例所述的监视图像生成装置500;以及用于存储所述图像帧的存储单元701。进一步地,所述存储单元701还可以用于存储生成的监视图像。As shown in FIG. 7, it is a schematic diagram of a surveillance image generation system according to an embodiment of this specification. The surveillance image generation system 700 may include: the surveillance image generation device 500 described in any of the above embodiments; and a storage unit 701 for storing the image frame. Further, the storage unit 701 may also be used to store the generated surveillance image.
在一个实施例中,所述监视图像生成装置500包括第一监视图像生成装置500a和第二监视图像生成装置500b;所述第二监视图像生成装置500b用于在所述第一监视图像生成装置500a输出其中一个图像列块对应的子监视图像时,生成下一个图像列块对应的子监视图像。In one embodiment, the monitoring image generating device 500 includes a first monitoring image generating device 500a and a second monitoring image generating device 500b; the second monitoring image generating device 500b is used for the first monitoring image generating device When 500a outputs the sub-monitoring image corresponding to one of the image column blocks, the sub-monitoring image corresponding to the next image column block is generated.
本实施例例化两个监视图像生成模块做乒乓操作处理。一个监视图像生成模块完成直方图统计后需要将该图像列块的直方图数据映射输出,此时另一个监视图像生成模块可以在此时进行下一个图像列块的直方图统计,两个模块乒乓交错进行保证监视图像生成模块能够处理连续高帧频的视频源数据。在监视图像帧频要求不高的情况下也可以不做乒乓处理,一个图像列块的图像从图像存储单元读出后等待直方图数据统计及映射输出完毕后再读出新的数据,可以使监视图像生成过程占用的逻辑资源及片内RAM将近减少一倍。This embodiment exemplifies two monitoring image generation modules to perform ping-pong operation processing. After a monitoring image generation module completes histogram statistics, it needs to map and output the histogram data of the image block. At this time, another monitoring image generation module can perform the histogram statistics of the next image block at this time. The two modules ping pong Interleaving ensures that the monitoring image generation module can process continuous high frame rate video source data. Ping-pong processing is not required when the frame rate of the monitoring image is not high. After reading the image of an image block from the image storage unit, wait for the histogram data statistics and mapping output to complete before reading the new data. The logic resources and on-chip RAM occupied by the monitoring image generation process are nearly doubled.
在一个实施例中,所述监视图像生成系统700还包括数据分发单元702;所述数据分发单元702用于从所述存储单元701中读取所述图像帧的图像列块,并将所述图像列块分发至所述第一监视图像生成装置500a或所述第二监视图像生成装置500b。 一个实施例的监视图像生成系统如图8所示,图8中的系统包括2个监视模块生成装置和一个分发单元。在实际应用中,监视模块生成装置的数量也可以是2个以上。In an embodiment, the surveillance image generation system 700 further includes a data distribution unit 702; the data distribution unit 702 is configured to read the image column blocks of the image frame from the storage unit 701, and combine the The image sequence block is distributed to the first surveillance image generating device 500a or the second surveillance image generating device 500b. The monitoring image generation system of an embodiment is shown in FIG. 8. The system in FIG. 8 includes two monitoring module generating devices and a distribution unit. In practical applications, the number of monitoring module generating devices can also be more than two.
在一个实施例中,所述监视图像生成系统700还包括:用于对所述监视图像进行显示的显示单元703。在显示单元703中可以对所述图像帧及其监视图像进行叠加显示。监视图像存储空间中存储的监视图像是单色亮度图,监视图像显示时还需要从监视图像存储空间中读出对应亮度数据并针对每个颜色分量的监视图像表示映射成相应的彩色分量。映射后的监视图像需要和原视频叠加显示。叠加可采用blend算法,一般是把监视图像经过色彩映射后透明化叠加到原始图像上。In an embodiment, the surveillance image generation system 700 further includes a display unit 703 for displaying the surveillance image. In the display unit 703, the image frame and its monitoring image can be superimposed and displayed. The surveillance image stored in the surveillance image storage space is a monochrome brightness map. When the surveillance image is displayed, it is necessary to read the corresponding brightness data from the surveillance image storage space and map the surveillance image representation for each color component to the corresponding color component. The mapped surveillance image needs to be displayed superimposed with the original video. The superposition can use the blend algorithm, which is generally to superimpose the surveillance image on the original image after being color-mapped.
在一个实施例中,所述存储单元701为DDR。In one embodiment, the storage unit 701 is a DDR.
在一个实施例中,所述监视图像生成系统700基于FPGA实现。In one embodiment, the monitoring image generation system 700 is implemented based on FPGA.
本说明书实施例具有以下优点:The embodiments of this specification have the following advantages:
(1)可实现4k超大分辨率视频的监视图像生成,监视图像的处理频率可达到和输入频率相一致。(1) It can realize the generation of surveillance images of 4k ultra-large resolution video, and the processing frequency of surveillance images can be consistent with the input frequency.
(2)可针对图像每列进行精细的直方图统计,生成大分辨率,高精度细腻的监视图像,不仅能实现单色监视图像,也可以实现多颜色分量的监视图像的同时计算及同时显示。(2) Fine histogram statistics can be performed for each column of the image to generate large-resolution, high-precision and delicate monitoring images, which can not only realize monochrome monitoring images, but also realize simultaneous calculation and simultaneous display of monitoring images with multiple color components .
(3)生成的监视图像即为根据显示需求整理好的监视图像,不需要额外的拼接或数据重整。(3) The generated surveillance image is the surveillance image organized according to display requirements, and no additional stitching or data reformation is required.
本说明书实施例还提供一种图像处理设备,包括以上任一实施例所述的监视图像生成系统。The embodiments of this specification also provide an image processing device, including the surveillance image generation system described in any of the above embodiments.
在一个实施例中,所述图像处理设备为图像监视器或者摄影机。In one embodiment, the image processing device is an image monitor or a camera.
本说明书实施例还提供一种监视图像生成设备,本说明书方法的实施例可以由所述监视图像生成设备来实施。The embodiment of this specification also provides a monitoring image generating device, and the embodiment of the method of this specification can be implemented by the monitoring image generating device.
在一个实施例中,所述监视图像生成设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以下方法:In one embodiment, the monitoring image generation device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the following method when the program is executed:
将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上,以得到所述图像帧的监视图像,其中,所述图像帧被预先划分为多个图像列块,各个图像列块均包括所述图像帧的多列像素点,且各个图像列块对应的子监视图像均 按照以下方式生成:Write the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block of the monitoring image storage space to obtain the monitoring image of the image frame, wherein the image frame is divided into a plurality of image column blocks in advance Each image column block includes multiple columns of pixels of the image frame, and the sub-monitoring image corresponding to each image column block is generated in the following manner:
按行读取所述图像列块中的像素点;Reading the pixels in the image column block by row;
根据所述像素点的像素值生成所述图像列块对应的子监视图像。The sub-monitoring image corresponding to the image column block is generated according to the pixel value of the pixel point.
在一个实施例中,所述处理器执行所述程序时还实现以下方法:根据预设的数据读写效率确定对所述图像帧进行一次读写时的读写数据量;根据所述读写数据量确定所述图像帧划分出的图像列块的数量。In one embodiment, the processor further implements the following method when executing the program: determining the amount of read and write data when reading and writing the image frame once according to a preset data read and write efficiency; The amount of data determines the number of image column blocks divided by the image frame.
在一个实施例中,所述处理器根据所述像素点的像素值生成所述图像列块对应的子监视图像的步骤包括:分别生成所述图像列块中各个列的统计直方图,并根据所述图像列块中各个列的统计直方图生成所述图像列块对应的子监视图像,其中,所述图像列块中各个列的统计直方图均根据以下方式生成:分别对所述列中各个像素值的像素点进行数量统计,得到所述列中对应像素值的统计值;根据所述列中各个像素值的统计值生成所述列的统计直方图。In one embodiment, the step of generating the sub-monitoring image corresponding to the image column block by the processor according to the pixel value of the pixel point includes: respectively generating a statistical histogram of each column in the image column block, and according to The statistical histogram of each column in the image column block generates the sub-monitoring image corresponding to the image column block, wherein the statistical histogram of each column in the image column block is generated according to the following method: The number of pixel points of each pixel value is counted to obtain the statistical value of the corresponding pixel value in the column; and the statistical histogram of the column is generated according to the statistical value of each pixel value in the column.
在一个实施例中,所述处理器根据所述图像列块中各个列的统计直方图生成所述图像列块对应的子监视图像的步骤包括:对所述图像列块中各个列的统计直方图进行拼接,得到所述图像列块对应的子监视图像;或者分别将各个统计值映射为对应的亮度值,分别根据各个列的亮度值生成对应列的亮度分布图,对所述图像列块各个列的亮度分布图进行拼接,得到所述图像列块对应的子监视图像。In an embodiment, the step of the processor generating the sub-monitoring image corresponding to the image column block according to the statistical histogram of each column in the image column block includes: calculating the statistical histogram of each column in the image column block The images are spliced to obtain the sub-monitoring image corresponding to the image column block; or each statistical value is respectively mapped to the corresponding brightness value, and the brightness distribution map of the corresponding column is generated according to the brightness value of each column, and the image column block The brightness distribution maps of each column are spliced to obtain sub-monitoring images corresponding to the image column blocks.
在一个实施例中,所述处理器执行所述程序时还实现以下方法:将若干列中相同像素值对应的像素点进行合并统计;和/或对同一列中相邻的若干个像素值对应的像素点进行合并统计。In one embodiment, the processor further implements the following method when executing the program: merging and counting the pixels corresponding to the same pixel value in several columns; and/or corresponding to several adjacent pixel values in the same column Pixels are combined and counted.
在一个实施例中,若所述子监视图像为单色监视图像,分别对所述列中各个像素值的像素点进行数量统计的统计步长为3;若所述子监视图像为三色监视图像,分别对所述列中各个像素值的像素点进行数量统计的统计步长为1。In one embodiment, if the sub-monitoring image is a single-color monitoring image, the statistical step size for counting the number of pixels of each pixel value in the column is 3; if the sub-monitoring image is a three-color monitoring For the image, the statistical step size for the number of the pixel points of each pixel value in the column is 1 respectively.
在一个实施例中,所述处理器分别将各个统计值映射为对应的亮度值的步骤包括:分别对各个统计值进行映射,得到所述统计值对应的亮度值。In an embodiment, the step of the processor respectively mapping each statistical value to a corresponding brightness value includes: respectively mapping each statistical value to obtain the brightness value corresponding to the statistical value.
在一个实施例中,所述处理器分别对各个统计值进行映射的步骤包括:按照以下方式对所述统计值进行线性映射:In an embodiment, the step of the processor respectively mapping each statistical value includes: linearly mapping the statistical value in the following manner:
Y=histo(x)*(2 k-1)/T。 Y=histo(x)*(2 k -1)/T.
式中,histo(x)是像素值为x的像素点的数量的统计值,T是预设的统计值上限,k是亮度值的表示位数,Y是亮度值。In the formula, histo(x) is the statistical value of the number of pixels with the pixel value x, T is the preset upper limit of the statistical value, k is the number of bits representing the brightness value, and Y is the brightness value.
在一个实施例中,在将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上之前,所述处理器执行所述程序时还实现以下方法:对所述子监视图像的像素点按行进行插值处理。In one embodiment, before writing the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block in the monitoring image storage space, the processor further implements the following method when executing the program: The pixel points of the sub-monitoring image are interpolated line by line.
在一个实施例中,各个子监视图像按行跳址写入所述监视图像存储空间。In an embodiment, each sub-monitoring image is written into the surveillance image storage space by row jump address.
在一个实施例中,所述处理器执行所述程序时还实现以下方法:对所述图像帧及其监视图像进行叠加显示。In an embodiment, the processor further implements the following method when executing the program: superimposing and displaying the image frame and its monitoring image.
在一个实施例中,在将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上之前,所述处理器执行所述程序时还实现以下方法:分别对各个子监视图像进行缩放处理。In one embodiment, before writing the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block in the monitoring image storage space, the processor further implements the following method when executing the program: The sub-monitoring image is scaled.
所述处理器执行的方法的其他实施例与前述监视图像生成方法的实施例相同,此处不再赘述。Other embodiments of the method executed by the processor are the same as the foregoing embodiments of the monitoring image generation method, and will not be repeated here.
本说明书实施例的监视图像生成设备例如可以是服务器或终端设备。方法实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在文件处理的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。从硬件层面而言,如图9所示,为实施本说明书方法的监视图像生成设备的一种硬件结构图,除了图9所示的处理器901、内存902、网络接口903、以及非易失性存储器904之外,实施例中用于实施本说明书方法的监视图像生成设备,通常根据该监视图像生成设备的实际功能,还可以包括其他硬件,对此不再赘述。The monitoring image generation device of the embodiment of this specification may be, for example, a server or a terminal device. The method embodiments can be implemented by software, or can be implemented by hardware or a combination of software and hardware. Taking software implementation as an example, as a logical device, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory by the processor that processes the file where it is located. From a hardware perspective, as shown in FIG. 9, it is a hardware structure diagram of a surveillance image generating device that implements the method of this specification, except for the processor 901, memory 902, network interface 903, and non-volatile memory shown in FIG. In addition to the sexual memory 904, the monitoring image generating device used to implement the method of this specification in the embodiment may also include other hardware according to the actual function of the monitoring image generating device, which will not be repeated here.
以上实施例中的各种技术特征可以任意进行组合,只要特征之间的组合不存在冲突或矛盾,但是限于篇幅,未进行一一描述,因此上述实施方式中的各种技术特征的任意进行组合也属于本说明书公开的范围。The various technical features in the above embodiments can be combined arbitrarily, as long as there is no conflict or contradiction between the combinations of features, but due to space limitations, they are not described one by one. Therefore, the various technical features in the above embodiments can be combined arbitrarily. It also belongs to the scope of the disclosure of this specification.
本说明书实施例可采用在一个或多个其中包含有程序代码的存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机可用存储介质包括永久性和非永久性、可移动和非可移动媒体,可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括但不限于:相变内存(PRAM)、静态随机存取存储 器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。The embodiments of this specification may adopt the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program codes. Computer usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
本领域技术人员在考虑说明书及实践这里公开的说明书后,将容易想到本公开的其它实施方案。本公开旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Those skilled in the art will easily think of other embodiments of the present disclosure after considering the specification and practicing the specification disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptive changes of the present disclosure. These variations, uses, or adaptive changes follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field that are not disclosed in the present disclosure. . The description and the embodiments are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are pointed out by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise structure that has been described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present disclosure is only limited by the appended claims.
以上所述仅为本公开的较佳实施例而已,并不用以限制本公开,凡在本公开的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本公开保护的范围之内。The above are only the preferred embodiments of the present disclosure and are not intended to limit the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure shall be included in the present disclosure. Within the scope of protection.

Claims (35)

  1. 一种监视图像生成方法,其特征在于,所述方法包括:A method for generating surveillance images, characterized in that the method includes:
    将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上,以得到所述图像帧的监视图像,其中,所述图像帧被预先划分为多个图像列块,各个图像列块均包括所述图像帧的多列像素点,且各个图像列块对应的子监视图像均按照以下方式生成:Write the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block of the monitoring image storage space to obtain the monitoring image of the image frame, wherein the image frame is divided into a plurality of image column blocks in advance Each image column block includes multiple columns of pixels of the image frame, and the sub-monitoring image corresponding to each image column block is generated in the following manner:
    按行读取所述图像列块中的像素点;Reading the pixels in the image column block by row;
    根据所述像素点的像素值生成所述图像列块对应的子监视图像。The sub-monitoring image corresponding to the image column block is generated according to the pixel value of the pixel point.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    根据预设的数据读写效率确定对所述图像帧进行一次读写时的读写数据量;Determine the amount of read and write data when reading and writing the image frame once according to the preset data read and write efficiency;
    根据所述读写数据量确定所述图像帧划分出的图像列块的数量。The number of image column blocks divided by the image frame is determined according to the amount of read and write data.
  3. 根据权利要求1所述的方法,其特征在于,根据所述像素点的像素值生成所述图像列块对应的子监视图像的步骤包括:The method according to claim 1, wherein the step of generating the sub-monitoring image corresponding to the image column block according to the pixel value of the pixel point comprises:
    分别生成所述图像列块中各个列的统计直方图,并根据所述图像列块中各个列的统计直方图生成所述图像列块对应的子监视图像,其中,所述图像列块中各个列的统计直方图均根据以下方式生成:Generate a statistical histogram of each column in the image column block respectively, and generate a sub-monitoring image corresponding to the image column block according to the statistical histogram of each column in the image column block, wherein each of the image column blocks The statistical histograms of the columns are all generated according to the following methods:
    分别对所述列中各个像素值的像素点进行数量统计,得到所述列中对应像素值的统计值;Performing quantitative statistics on the pixel points of each pixel value in the column respectively to obtain the statistical value of the corresponding pixel value in the column;
    根据所述列中各个像素值的统计值生成所述列的统计直方图。A statistical histogram of the column is generated according to the statistical value of each pixel value in the column.
  4. 根据权利要求3所述的方法,其特征在于,根据所述图像列块中各个列的统计直方图生成所述图像列块对应的子监视图像的步骤包括:The method according to claim 3, wherein the step of generating the sub-monitoring image corresponding to the image column block according to the statistical histogram of each column in the image column block comprises:
    对所述图像列块中各个列的统计直方图进行拼接,得到所述图像列块对应的子监视图像;或者Splicing the statistical histograms of each column in the image column block to obtain the sub-monitoring image corresponding to the image column block; or
    分别将各个统计值映射为对应的亮度值,分别根据各个列的亮度值生成对应列的亮度分布图,对所述图像列块各个列的亮度分布图进行拼接,得到所述图像列块对应的子监视图像。Each statistical value is mapped to the corresponding brightness value, the brightness distribution map of the corresponding column is generated according to the brightness value of each column, and the brightness distribution map of each column of the image column block is spliced to obtain the corresponding image column block. Sub-monitor image.
  5. 根据权利要求3所述的方法,其特征在于,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    将若干列中相同像素值对应的像素点进行合并统计;和/或Merging and counting the pixels corresponding to the same pixel value in several columns; and/or
    对同一列中相邻的若干个像素值对应的像素点进行合并统计。The pixel points corresponding to several adjacent pixel values in the same column are combined and counted.
  6. 根据权利要求3所述的方法,其特征在于,若所述子监视图像为单色监视图像,分别对所述列中各个像素值的像素点进行数量统计的统计步长为3;若所述子监视图 像为三色监视图像,分别对所述列中各个像素值的像素点进行数量统计的统计步长为1。The method according to claim 3, wherein if the sub-monitoring image is a monochromatic monitoring image, the statistical step size for performing quantitative statistics on the pixel points of each pixel value in the column is 3; if the sub-monitoring image is a monochromatic monitoring image, The sub-monitoring image is a three-color monitoring image, and the statistical step size of the pixel points of each pixel value in the column is 1 respectively.
  7. 根据权利要求4所述的方法,其特征在于,分别将各个统计值映射为对应的亮度值的步骤包括:The method according to claim 4, wherein the step of respectively mapping each statistical value to a corresponding brightness value comprises:
    分别对各个统计值进行映射,得到所述统计值对应的亮度值。Each statistical value is respectively mapped to obtain the brightness value corresponding to the statistical value.
  8. 根据权利要求7所述的方法,其特征在于,分别对各个统计值进行映射的步骤包括:8. The method according to claim 7, wherein the step of respectively mapping each statistical value comprises:
    按照以下方式对所述统计值进行线性映射:Perform linear mapping on the statistical values in the following way:
    Y=histo(x)*(2 k-1)/T; Y=histo(x)*(2 k -1)/T;
    式中,histo(x)是像素值为x的像素点的数量的统计值,T是预设的统计值上限,k是亮度值的表示位数,Y是亮度值。In the formula, histo(x) is the statistical value of the number of pixels with the pixel value x, T is the preset upper limit of the statistical value, k is the number of bits representing the brightness value, and Y is the brightness value.
  9. 根据权利要求1所述的方法,其特征在于,在将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上之前,所述方法还包括:The method according to claim 1, characterized in that, before writing the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block of the monitoring image storage space, the method further comprises:
    对所述子监视图像的像素点按行进行插值处理。Perform interpolation processing on pixel points of the sub-monitoring image by line.
  10. 根据权利要求1所述的方法,其特征在于,各个子监视图像按行跳址写入所述监视图像存储空间。The method according to claim 1, wherein each sub-monitoring image is written into the surveillance image storage space by row jump address.
  11. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    对所述图像帧及其监视图像进行叠加显示。The image frame and its monitoring image are superimposed and displayed.
  12. 根据权利要求1所述的方法,其特征在于,在将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上之前,所述方法还包括:The method according to claim 1, characterized in that, before writing the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block of the monitoring image storage space, the method further comprises:
    分别对各个子监视图像进行缩放处理。Respectively perform zoom processing on each sub-monitoring image.
  13. 一种监视图像生成设备,其特征在于,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现以下方法:A monitoring image generation device is characterized by comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and the processor implements the following method when the program is executed:
    将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上,以得到所述图像帧的监视图像,其中,所述图像帧被预先划分为多个图像列块,各个图像列块均包括所述图像帧的多列像素点,且各个图像列块对应的子监视图像均按照以下方式生成:Write the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block of the monitoring image storage space to obtain the monitoring image of the image frame, wherein the image frame is divided into a plurality of image column blocks in advance Each image column block includes multiple columns of pixels of the image frame, and the sub-monitoring image corresponding to each image column block is generated in the following manner:
    按行读取所述图像列块中的像素点;Reading the pixels in the image column block by row;
    根据所述像素点的像素值生成所述图像列块对应的子监视图像。The sub-monitoring image corresponding to the image column block is generated according to the pixel value of the pixel point.
  14. 根据权利要求13所述的监视图像生成设备,其特征在于,所述处理器执行所述程序时还实现以下方法:The monitoring image generation device according to claim 13, wherein the processor further implements the following method when executing the program:
    根据预设的数据读写效率确定对所述图像帧进行一次读写时的读写数据量;Determine the amount of read and write data when reading and writing the image frame once according to the preset data read and write efficiency;
    根据所述读写数据量确定所述图像帧划分出的图像列块的数量。The number of image column blocks divided by the image frame is determined according to the amount of read and write data.
  15. 根据权利要求13所述的监视图像生成设备,其特征在于,所述处理器根据所述像素点的像素值生成所述图像列块对应的子监视图像的步骤包括:The monitoring image generation device according to claim 13, wherein the step of the processor generating the sub-monitoring image corresponding to the image column block according to the pixel value of the pixel point comprises:
    分别生成所述图像列块中各个列的统计直方图,并根据所述图像列块中各个列的统计直方图生成所述图像列块对应的子监视图像,其中,所述图像列块中各个列的统计直方图均根据以下方式生成:Generate a statistical histogram of each column in the image column block respectively, and generate a sub-monitoring image corresponding to the image column block according to the statistical histogram of each column in the image column block, wherein each of the image column blocks The statistical histograms of the columns are all generated according to the following methods:
    分别对所述列中各个像素值的像素点进行数量统计,得到所述列中对应像素值的统计值;Performing quantitative statistics on the pixel points of each pixel value in the column respectively to obtain the statistical value of the corresponding pixel value in the column;
    根据所述列中各个像素值的统计值生成所述列的统计直方图。A statistical histogram of the column is generated according to the statistical value of each pixel value in the column.
  16. 根据权利要求15所述的监视图像生成设备,其特征在于,所述处理器根据所述图像列块中各个列的统计直方图生成所述图像列块对应的子监视图像的步骤包括:The monitoring image generating device according to claim 15, wherein the step of the processor generating the sub-monitoring image corresponding to the image column block according to the statistical histogram of each column in the image column block comprises:
    对所述图像列块中各个列的统计直方图进行拼接,得到所述图像列块对应的子监视图像;或者Splicing the statistical histograms of each column in the image column block to obtain the sub-monitoring image corresponding to the image column block; or
    分别将各个统计值映射为对应的亮度值,分别根据各个列的亮度值生成对应列的亮度分布图,对所述图像列块各个列的亮度分布图进行拼接,得到所述图像列块对应的子监视图像。Each statistical value is mapped to the corresponding brightness value, the brightness distribution map of the corresponding column is generated according to the brightness value of each column, and the brightness distribution map of each column of the image column block is spliced to obtain the corresponding image column block. Sub-monitor image.
  17. 根据权利要求15所述的监视图像生成设备,其特征在于,所述处理器执行所述程序时还实现以下方法:The monitoring image generation device according to claim 15, wherein the processor further implements the following method when executing the program:
    将若干列中相同像素值对应的像素点进行合并统计;和/或Merging and counting the pixels corresponding to the same pixel value in several columns; and/or
    对同一列中相邻的若干个像素值对应的像素点进行合并统计。The pixel points corresponding to several adjacent pixel values in the same column are combined and counted.
  18. 根据权利要求15所述的监视图像生成设备,其特征在于,若所述子监视图像为单色监视图像,分别对所述列中各个像素值的像素点进行数量统计的统计步长为3;若所述子监视图像为三色监视图像,分别对所述列中各个像素值的像素点进行数量统计的统计步长为1。The monitoring image generating device according to claim 15, wherein if the sub-monitoring image is a monochromatic monitoring image, the statistical step size for respectively counting the number of pixels of each pixel value in the column is 3; If the sub-monitoring image is a three-color monitoring image, the statistical step size for counting the number of pixels of each pixel value in the column is 1.
  19. 根据权利要求15所述的监视图像生成设备,其特征在于,所述处理器分别将各个统计值映射为对应的亮度值的步骤包括:The monitoring image generation device according to claim 15, wherein the step of the processor respectively mapping each statistical value to a corresponding brightness value comprises:
    分别对各个统计值进行映射,得到所述统计值对应的亮度值。Each statistical value is respectively mapped to obtain the brightness value corresponding to the statistical value.
  20. 根据权利要求19所述的监视图像生成设备,其特征在于,所述处理器分别对各个统计值进行映射的步骤包括:The monitoring image generation device according to claim 19, wherein the step of the processor respectively mapping each statistical value comprises:
    按照以下方式对所述统计值进行线性映射:Perform linear mapping on the statistical values in the following way:
    Y=histo(x)*(2 k-1)/T; Y=histo(x)*(2 k -1)/T;
    式中,histo(x)是像素值为x的像素点的数量的统计值,T是预设的统计值上限,k是亮度值的表示位数,Y是亮度值。In the formula, histo(x) is the statistical value of the number of pixels with the pixel value x, T is the preset upper limit of the statistical value, k is the number of bits representing the brightness value, and Y is the brightness value.
  21. 根据权利要求13所述的监视图像生成设备,其特征在于,在将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上之前,所述处理器执行所述程序时还实现以下方法:The monitoring image generation device according to claim 13, wherein the processor executes the sub-monitoring image corresponding to each image column block in the image frame on the corresponding column block of the monitoring image storage space. The program also implements the following methods:
    对所述子监视图像的像素点按行进行插值处理。Perform interpolation processing on pixel points of the sub-monitoring image by line.
  22. 根据权利要求13所述的监视图像生成设备,其特征在于,各个子监视图像按行跳址写入所述监视图像存储空间。The monitoring image generating device according to claim 13, wherein each sub-monitoring image is written into the monitoring image storage space by row jump address.
  23. 根据权利要求13所述的监视图像生成设备,其特征在于,所述处理器执行所述程序时还实现以下方法:The monitoring image generation device according to claim 13, wherein the processor further implements the following method when executing the program:
    对所述图像帧及其监视图像进行叠加显示。The image frame and its monitoring image are superimposed and displayed.
  24. 根据权利要求13所述的监视图像生成设备,其特征在于,在将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上之前,所述处理器执行所述程序时还实现以下方法:The monitoring image generation device according to claim 13, wherein the processor executes the sub-monitoring image corresponding to each image column block in the image frame on the corresponding column block of the monitoring image storage space. The program also implements the following methods:
    分别对各个子监视图像进行缩放处理。Respectively perform zoom processing on each sub-monitoring image.
  25. 一种监视图像生成装置,,其特征在于,还包括:A monitoring image generation device, characterized in that it further comprises:
    直方图统计单元,数据处理单元和数据输出单元;Histogram statistical unit, data processing unit and data output unit;
    针对图像帧中的各个图像列块,所述直方图统计单元用于分别各个生成所述图像列块各个列的统计直方图,并将所述统计直方图发送至数据处理单元;其中,所述图像帧被预先划分为多个图像列块;For each image column block in the image frame, the histogram statistical unit is used to generate a statistical histogram of each column of the image column block, and send the statistical histogram to the data processing unit; wherein, the The image frame is pre-divided into multiple image column blocks;
    所述数据处理单元用于根据所述图像列块各个列的统计直方图生成所述图像列块对应的子监视图像,并将所述子监视图像发送至数据输出单元;The data processing unit is configured to generate a sub-monitoring image corresponding to the image column block according to the statistical histogram of each column of the image column block, and send the sub-monitoring image to a data output unit;
    所述数据输出单元用于将图像帧中各个图像列块对应的子监视图像写入监视图像存储空间的对应列块上,以得到所述图像帧的监视图像。The data output unit is used to write the sub-monitoring image corresponding to each image column block in the image frame to the corresponding column block of the monitoring image storage space to obtain the monitoring image of the image frame.
  26. 根据权利要求25所述的监视图像生成装置,其特征在于,所述数据处理单元的数量为多个;The surveillance image generating device according to claim 25, wherein the number of the data processing unit is multiple;
    各个数据处理单元分别用于根据所述图像列块的各个列在其中一个颜色分量上的统计直方图生成所述图像列块在对应颜色分量上的子监视图像。Each data processing unit is respectively configured to generate a sub-monitoring image of the image column block on the corresponding color component according to the statistical histogram of each column of the image column block on one of the color components.
  27. 根据权利要求26所述的监视图像生成装置,其特征在于,所述数据处理单元为RAM。The surveillance image generation device according to claim 26, wherein the data processing unit is a RAM.
  28. 一种监视图像生成系统,其特征在于,包括:A monitoring image generation system is characterized in that it comprises:
    权利要求25至27任意一项所述的监视图像生成装置;以及The monitoring image generating device according to any one of claims 25 to 27; and
    用于存储所述图像帧的存储单元。A storage unit for storing the image frame.
  29. 根据权利要求28所述的监视图像生成系统,其特征在于,所述监视图像生成装置包括第一监视图像生成装置和第二监视图像生成装置;The surveillance image generation system according to claim 28, wherein the surveillance image generation device comprises a first surveillance image generation device and a second surveillance image generation device;
    所述第二监视图像生成装置用于在所述第一监视图像生成装置输出其中一个图像列块对应的子监视图像时,生成下一个图像列块对应的子监视图像。The second monitoring image generating device is used for generating the sub-monitoring image corresponding to the next image column block when the first monitoring image generating device outputs the sub-monitoring image corresponding to one of the image column blocks.
  30. 根据权利要求29所述的监视图像生成系统,其特征在于,还包括:The surveillance image generation system according to claim 29, further comprising:
    数据分发单元;Data distribution unit;
    所述数据分发单元用于从所述存储单元中读取所述图像帧的图像列块,并将所述图像列块分发至所述第一监视图像生成装置或所述第二监视图像生成装置。The data distribution unit is configured to read the image sequence block of the image frame from the storage unit, and distribute the image sequence block to the first surveillance image generation device or the second surveillance image generation device .
  31. 根据权利要求30所述的监视图像生成系统,其特征在于,还包括:The surveillance image generation system according to claim 30, further comprising:
    用于对所述监视图像进行显示的显示单元。A display unit for displaying the monitoring image.
  32. 根据权利要求28所述的监视图像生成系统,其特征在于,所述存储单元为DDR。The surveillance image generation system according to claim 28, wherein the storage unit is a DDR.
  33. 根据权利要求28所述的监视图像生成系统,其特征在于,所述监视图像生成系统基于FPGA实现。The surveillance image generation system according to claim 28, wherein the surveillance image generation system is implemented based on FPGA.
  34. 一种图像处理设备,其特征在于,包括权利要求28至33任意一项所述的监视图像生成系统。An image processing device, characterized by comprising the surveillance image generation system according to any one of claims 28 to 33.
  35. 根据权利要求34所述的图像处理设备,其特征在于,所述图像处理设备为图像监视器或者摄影机。The image processing device according to claim 34, wherein the image processing device is an image monitor or a camera.
PCT/CN2019/103433 2019-08-29 2019-08-29 Monitoring image generation method, apparatus, device, system, and image processing device WO2021035643A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201980031015.5A CN112119631A (en) 2019-08-29 2019-08-29 Monitoring image generation method, device, equipment and system, and image processing equipment
PCT/CN2019/103433 WO2021035643A1 (en) 2019-08-29 2019-08-29 Monitoring image generation method, apparatus, device, system, and image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2019/103433 WO2021035643A1 (en) 2019-08-29 2019-08-29 Monitoring image generation method, apparatus, device, system, and image processing device

Publications (1)

Publication Number Publication Date
WO2021035643A1 true WO2021035643A1 (en) 2021-03-04

Family

ID=73799466

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/103433 WO2021035643A1 (en) 2019-08-29 2019-08-29 Monitoring image generation method, apparatus, device, system, and image processing device

Country Status (2)

Country Link
CN (1) CN112119631A (en)
WO (1) WO2021035643A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023160635A1 (en) * 2022-02-25 2023-08-31 地平线(上海)人工智能技术有限公司 Protection apparatus and method for image data processing module, and electronic device and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1317694A (en) * 2000-03-23 2001-10-17 特克特朗尼克公司 General oscilloscope having indicating ability of digital TV signals
US20020071029A1 (en) * 2000-09-08 2002-06-13 Joachim Zell Image processing
CN101207835A (en) * 2006-12-22 2008-06-25 康佳集团股份有限公司 Monitor for monitoring video signal power level
CN101211315A (en) * 2006-12-28 2008-07-02 英特尔公司 Accessing memory using multi-tiling
CN201491193U (en) * 2009-06-08 2010-05-26 厦门华侨电子股份有限公司 Monitor capable of displaying column diagram type exposure meter for dynamically monitoring image quality
CN101742351A (en) * 2008-11-11 2010-06-16 厦门华侨电子股份有限公司 Method for dynamically monitoring picture quality by using monitor screen to display histogram exposure meter
US20140240517A1 (en) * 2013-02-22 2014-08-28 Phabrix Limited Monitoring Video Waveforms

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104735297B (en) * 2013-12-20 2017-10-10 南京视威电子科技股份有限公司 A kind of broadcast quality monitor and monitoring picture generation method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1317694A (en) * 2000-03-23 2001-10-17 特克特朗尼克公司 General oscilloscope having indicating ability of digital TV signals
US20020071029A1 (en) * 2000-09-08 2002-06-13 Joachim Zell Image processing
CN101207835A (en) * 2006-12-22 2008-06-25 康佳集团股份有限公司 Monitor for monitoring video signal power level
CN101211315A (en) * 2006-12-28 2008-07-02 英特尔公司 Accessing memory using multi-tiling
CN101742351A (en) * 2008-11-11 2010-06-16 厦门华侨电子股份有限公司 Method for dynamically monitoring picture quality by using monitor screen to display histogram exposure meter
CN201491193U (en) * 2009-06-08 2010-05-26 厦门华侨电子股份有限公司 Monitor capable of displaying column diagram type exposure meter for dynamically monitoring image quality
US20140240517A1 (en) * 2013-02-22 2014-08-28 Phabrix Limited Monitoring Video Waveforms

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023160635A1 (en) * 2022-02-25 2023-08-31 地平线(上海)人工智能技术有限公司 Protection apparatus and method for image data processing module, and electronic device and medium

Also Published As

Publication number Publication date
CN112119631A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
US6788309B1 (en) Method and apparatus for generating a video overlay
JP5663009B2 (en) Apparatus for displaying original image by warping or rotating, method thereof, computer program thereof, and recording medium recording the same
JP6652937B2 (en) Multiple display pipelines driving split displays
US7535474B1 (en) System and method for rotating rasterized image data
JPH02208690A (en) Display memory and image processing device with the same
CN100356404C (en) Image information processing circuit and image display apparatus
JP5962328B2 (en) Data transfer device, data transfer method, and semiconductor device
US20060125835A1 (en) DMA latency compensation with scaling line buffer
JP2009177651A (en) Distortion correction device
CN101778226A (en) High-definition image sawtooth-prevention method, device and digital television receiving terminal
US11616895B2 (en) Method and apparatus for converting image data, and storage medium
JPH07287552A (en) Liquid crystal panel driving device
CN115209145A (en) Video compression method, system, device and readable storage medium
WO2021035643A1 (en) Monitoring image generation method, apparatus, device, system, and image processing device
EP0951694B1 (en) Method and apparatus for using interpolation line buffers as pixel look up tables
JP2008304763A (en) Display device
CN104268098A (en) On-chip cache system for transformation on ultrahigh-definition video frame rates
CN105427235A (en) Image browsing method and system
Gong et al. Design of high-speed real-time sensor image processing based on FPGA and DDR3
US7573482B2 (en) Method for reducing memory consumption when carrying out edge enhancement in multiple beam pixel apparatus
CN113658049A (en) Image transposition method, equipment and computer readable storage medium
JP2013195963A (en) Image processing device, integrated circuit apparatus, and image display system
JP4735448B2 (en) Video signal processing device
KR100327376B1 (en) apparatus for data store in digital broadcasting
JP2000284771A (en) Video data processor

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19942713

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19942713

Country of ref document: EP

Kind code of ref document: A1