Disclosure of Invention
The invention needs to have the following two key points:
(1) on the basis of customized image processing, the number of existing objects of the preview image is analyzed, and an edge sharpening strategy for a non-preview image is determined based on an analysis result, so that the self-adaptive level of image processing is improved;
(2) and carrying out differentiation processing on the background area and the foreground area in the image for multiple times, and also carrying out brightness normalization processing on the spliced image after the differentiation processing, so that the mean square error of the whole brightness value of each image area is smaller than a limited amount, thereby reducing the brightness difference among the image areas.
According to an aspect of the present invention, there is provided an automated field data processing system, the system comprising:
the data acquisition equipment is connected with the image sensor of the camera and used for acquiring a preview image currently output by the camera;
the background detection device is connected with the data acquisition device and is used for receiving the preview image and carrying out background detection on the preview image so as to acquire a detected background sub-image and a foreground sub-image of the preview image after the background sub-image is removed;
a differentiation interpolation device connected to the background detection device for receiving the foreground sub-image and the background sub-image, performing L anczos interpolation of 8 × 8 pixel neighborhood on the foreground sub-image to obtain a first sub-image, and performing L anczos interpolation of 16 × 16 pixel neighborhood on the background sub-image to obtain a second sub-image;
the secondary processing device is connected with the differentiation interpolation device and is used for executing bilateral filtering processing on the received first sub-image to obtain a bilateral filtering sub-image and executing no bilateral filtering processing on the received second sub-image;
the signal combination equipment is connected with the secondary processing equipment and is used for carrying out image signal combination on the received bilateral filtering sub-image and the second sub-image so as to obtain and output a corresponding signal combination image;
and the normalization processing device is connected with the signal combination device and is used for executing brightness normalization processing on the signal combination image to obtain and output a brightness processing image.
According to another aspect of the invention, an automatic field data processing method is further provided, and the method comprises the steps of using an automatic field data processing system as described above for carrying out quantity analysis on the existing objects on the preview image based on customized image processing, and determining an edge sharpening strategy on the non-preview image based on the analysis result.
The automatic field data processing system has reliable logic and convenient use. Due to the fact that the number of the existing objects is analyzed for the preview image, the edge sharpening strategy for the non-preview image is determined based on the analysis result, and therefore the adaptive level of image processing is improved.
Detailed Description
An embodiment of the automated field data processing system of the present invention will be described in detail below.
The 21 st century is an information-filled era, and images serve as visual bases for human perception of the world and are important means for human to acquire information, express information and transmit information. Digital image processing, i.e. processing images by a computer, has not been developed for a long time. Image processing technology originated in the 20 th century, when a photograph was transmitted from london, england, to new york, usa via submarine cables, and digital compression technology was used. Firstly, the digital image processing technology can help people to know the world more objectively and accurately, a human vision system can help people to obtain more than 3/4 information from the outside, and images and figures are carriers of all visual information, although the discrimination of human eyes is high and thousands of colors can be recognized, in many cases, the images are blurred or even invisible to the human eyes, and the blurred or even invisible images can be made to be clear and bright through the image enhancement technology.
In a computer, images can be divided into four basic types of binary images, grayscale images, index images and true color RGB images according to the number of colors and grays. Most image processing software supports these four types of images.
Currently, when image shooting is performed, a user wants to perform edge sharpening on an image more frequently as more objects are in the shot image content, so as to deepen the boundary between the objects and improve the contrast of the whole image.
In order to overcome the defects, the invention builds an automatic field data processing system, and can effectively solve the corresponding technical problem.
An automated field data processing system shown according to an embodiment of the present invention includes:
the data acquisition equipment is connected with the image sensor of the camera and used for acquiring a preview image currently output by the camera;
the background detection device is connected with the data acquisition device and is used for receiving the preview image and carrying out background detection on the preview image so as to acquire a detected background sub-image and a foreground sub-image of the preview image after the background sub-image is removed;
a differentiation interpolation device connected to the background detection device for receiving the foreground sub-image and the background sub-image, performing L anczos interpolation of 8 × 8 pixel neighborhood on the foreground sub-image to obtain a first sub-image, and performing L anczos interpolation of 16 × 16 pixel neighborhood on the background sub-image to obtain a second sub-image;
the secondary processing device is connected with the differentiation interpolation device and is used for executing bilateral filtering processing on the received first sub-image to obtain a bilateral filtering sub-image and executing no bilateral filtering processing on the received second sub-image;
the signal combination equipment is connected with the secondary processing equipment and is used for carrying out image signal combination on the received bilateral filtering sub-image and the second sub-image so as to obtain and output a corresponding signal combination image;
the normalization processing device is connected with the signal combination device and used for executing brightness normalization processing on the signal combination image to obtain and output a brightness processing image;
in the normalization processing device, performing luminance normalization processing on the signal combined image includes: making a mean square error of overall luminance values of respective image regions in the signal combination image smaller than a limit amount;
the object detection device is connected with the normalization processing device and used for executing object identification action on the received brightness processing image so as to obtain the number of objects in the brightness processing image, wherein the objects are human bodies or various objects different from the image background in the brightness processing image;
the instruction triggering device is connected with the object detection device and used for determining the corresponding edge sharpening degree according to the number of the objects in the brightness processing image, and the less the number of the objects in the brightness processing image is, the lower the determined corresponding edge sharpening degree is;
and the sharpening execution device is respectively connected with the instruction triggering device and the image sensor of the camera and is used for executing edge sharpening processing of a determined edge sharpening degree on a non-preview image output by the image sensor of the camera so as to output an obtained corresponding sharpened processed image as an output image of the camera.
Next, the detailed configuration of the automated field data processing system of the present invention will be further described.
The automatic field data processing system can further comprise:
and the bilinear interpolation device is connected with the data acquisition device and used for receiving the preview image and executing bilinear interpolation processing on the preview image so as to obtain and output a corresponding bilinear interpolation image.
The automatic field data processing system can further comprise:
and the band-elimination filtering equipment is connected with the bilinear interpolation equipment and is used for receiving the bilinear interpolation image and executing band-elimination filtering processing on the bilinear interpolation image so as to obtain and output a corresponding band-elimination filtering image.
The automatic field data processing system can further comprise:
and the area detection device is connected with the band-elimination filtering device and is used for receiving the band-elimination filtering image and outputting an image area with an object in the band-elimination filtering image as an object sub-image, wherein one or more image areas with the object in the band-elimination filtering image are provided.
The automatic field data processing system can further comprise:
and the adaptive enhancement device is connected with the area detection device and is used for executing image enhancement processing based on logarithmic transformation on each object sub-image in the band-elimination filtering image and executing smoothing processing on an image area of a non-object sub-image in the band-elimination filtering image so as to obtain and output an adaptive enhancement image corresponding to the band-elimination filtering image.
In the automated field data processing system:
the adaptive enhancing apparatus includes a data enhancing unit for performing an image enhancement process based on a logarithmic transformation on each object sub-image in the band-stop filtered image.
In the automated field data processing system:
the adaptive enhancement apparatus includes a data smoothing unit for performing smoothing processing on an image area of a non-object sub-image in the band-stop filtered image.
The automatic field data processing system can further comprise:
and the color correction device is respectively connected with the background detection device and the self-adaptive enhancement device and is used for executing color correction processing on the received self-adaptive enhancement image to obtain a corresponding instant correction image and replacing the preview image with the instant correction image and sending the instant correction image to the background detection device.
The automatic field data processing system can further comprise:
the IIC data bus is respectively connected with the self-adaptive enhancement equipment and the color correction equipment and is used for respectively providing control instructions for the self-adaptive enhancement equipment and the color correction equipment;
the self-adaptive enhancement equipment comprises an SDRAM storage unit, and is used for receiving and temporarily storing the self-adaptive enhancement image.
Meanwhile, in order to overcome the defects, the invention also builds an automatic field data processing method, which comprises the steps of using the automatic field data processing system for analyzing the number of the existing objects of the preview image on the basis of customized image processing, and determining the edge sharpening strategy of the non-preview image on the basis of the analysis result.
In addition, the SDRAM: synchronous Dynamic Random Access Memory, wherein synchronization refers to that a Synchronous clock is required for Memory work, and internal command sending and data transmission are based on the Synchronous clock; dynamic means that the memory array needs to be refreshed continuously to ensure that data is not lost; random means that data are not stored linearly and sequentially, but data are read and written by freely appointing addresses. The clock frequency of the SDR SDRAM is the frequency of data storage. The operating voltage of the SDRAM is 3.3V.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
Although the present invention has been described with reference to the above embodiments, it should be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the spirit and scope of the invention. Therefore, the protection scope of the present invention should be subject to the scope defined by the claims of the present application.