Image processing method, computer readable medium and system

文档序号:1832029 发布日期:2021-11-12 浏览:6次 中文

阅读说明:本技术 一种图像处理方法、计算机可读介质和系统 (Image processing method, computer readable medium and system ) 是由 陆世祥 黄伟 于 2021-07-29 设计创作,主要内容包括:本申请涉及一种图像处理方法、计算机可读介质和系统,属于图像处理的技术领域,该图像处理方法通过对获取的待拍摄区域图像的灰度方差值进行判断,使得清晰的图像存储于第一存储空间内;使得模糊的图像存储于第二存储空间内;而后再通过对待拍摄区域的光线强度值进行判断,当光线强度值大于光线强度最高阈值时,开启强光抑制模式,而后通过调节规则增强强光抑制模式的强度;使得后期获得图像均为清晰图像。由于获取的待拍摄区域的图像从模糊图像到清晰图像的过程中,使得清晰的图像存储于第一存储空间内,模糊的图像存储于第二存储空间内,从而使得模糊图像和清晰图像分开进行存储,因此缩短了后台人员查看所需图像的时间。(The application relates to an image processing method, a computer readable medium and a system, belonging to the technical field of image processing, wherein the image processing method judges the gray variance value of an acquired image of a region to be shot so as to store a clear image in a first storage space; causing the blurred image to be stored in a second storage space; then judging the light intensity value of the area to be shot, starting the strong light inhibition mode when the light intensity value is greater than the highest threshold of the light intensity, and then enhancing the intensity of the strong light inhibition mode through adjusting rules; so that the images obtained in the later period are all clear images. In the process that the acquired image of the area to be shot is from the blurred image to the clear image, the clear image is stored in the first storage space, and the blurred image is stored in the second storage space, so that the blurred image and the clear image are stored separately, and the time for a background person to check the required image is shortened.)

1. An image processing method, comprising:

acquiring a first image of a region to be shot so as to obtain a first gray scale variance value of the first image;

comparing the first gray variance value with a preset gray variance highest threshold and a preset gray variance lowest threshold respectively, and if the first gray variance value is greater than the gray variance highest threshold, the first image is a clear image and is stored in a first storage space; if the first gray variance value is smaller than the gray variance minimum threshold, the first image is a blurred image, the first image is stored in a second storage space, and a light intensity detection signal is output;

acquiring a light intensity value of an area to be shot based on the light intensity detection signal;

comparing the light intensity value with a preset light intensity highest threshold, and if the light intensity value is greater than the light intensity highest threshold, outputting a strong light inhibition signal;

acquiring a second image of an area to be shot according to a strong light suppression mode based on the strong light suppression signal so as to obtain a second gray variance value of the second image;

comparing the second gray variance value with a gray variance highest threshold and a gray variance lowest threshold respectively, and if the second gray variance value is greater than the gray variance highest threshold, storing the second image in a first storage space; and if the second gray variance value is smaller than the gray variance minimum threshold, storing the second image in a second storage space, and enhancing the intensity of the strong light inhibition mode according to a preset regulation rule.

2. The image processing method according to claim 1, characterized in that the image processing method further comprises:

comparing the light intensity value with a preset light intensity minimum threshold, and outputting a light supplement signal if the light intensity value is smaller than the light intensity minimum threshold;

acquiring a third image of an area to be shot according to a light supplement mode based on the light supplement signal so as to obtain a third gray scale variance value of the third image;

comparing the third gray variance value with a gray variance highest threshold and a gray variance lowest threshold respectively, and if the third gray variance value is greater than the gray variance highest threshold, storing the third image in a first storage space; and if the third gray variance value is smaller than the gray variance minimum threshold, storing the third image in a second storage space, and enhancing the intensity of the light supplement mode according to a preset regulation rule.

3. The image processing method according to claim 2, characterized in that the image processing method further comprises:

and comparing the residual capacity of the second storage space with a preset capacity threshold, and cleaning the image stored in the second storage space if the residual capacity of the second storage space is smaller than the capacity threshold.

4. The image processing method according to claim 1, characterized in that the image processing method further comprises:

acquiring a fourth image of an area to be shot based on the maximum intensity of a preset strong light inhibition mode to obtain a fourth gray scale variance value of the fourth image;

and comparing the fourth gray variance value with a gray variance minimum threshold, if the fourth gray variance value is smaller than the gray variance minimum threshold, storing the fourth image in a second storage space, and outputting first alarm information.

5. The image processing method according to claim 2, characterized in that the image processing method further comprises:

acquiring a fifth image of a region to be shot based on the maximum intensity of a preset light supplement mode to obtain a fifth gray scale variance value of the fifth image;

and comparing the fifth gray variance value with a gray variance minimum threshold, if the fifth gray variance value is smaller than the gray variance minimum threshold, storing the fifth image in a second storage space, and outputting second alarm information.

6. The image processing method according to any one of claims 1 to 5, characterized in that the image processing method further comprises:

acquiring an image of a region to be shot by a camera;

acquiring a temperature value inside the camera;

and comparing the temperature value with a preset temperature threshold value, and if the temperature value is greater than the temperature threshold value, outputting a cooling signal to cool the interior of the camera.

7. The image processing method according to claim 6, wherein the step of obtaining the temperature value inside the camera specifically comprises:

intermittently acquiring the temperature value inside the camera.

8. The image processing method according to claim 7, characterized in that the image processing method further comprises:

and comparing the duration time of the cooling signal with a preset time threshold, and outputting third alarm information if the duration time of the cooling signal is greater than the time threshold.

9. A computer-readable storage medium, in which a computer program is stored which can be loaded by a processor and which executes an image processing method according to any one of claims 1 to 8.

10. An image processing system comprising an image acquisition module (100), a light intensity sensor (120), a strong light suppression module (140), a processing module (110), a controller (130), a first memory (160) and a second memory (170);

the image acquisition module (100) is used for acquiring an image of an area to be shot;

the illumination sensor (120) is used for detecting the light intensity of the area to be shot and outputting a light intensity value;

the processing module (110) is in communication connection with the image acquisition module (100) and is used for obtaining a gray variance value of the image and comparing the gray variance value with a gray variance maximum threshold value and a gray variance minimum threshold value respectively; if the gray variance value is smaller than the gray variance minimum threshold, outputting a light intensity detection signal;

the controller (130) is in communication connection with the processing module (110) and responds to the light intensity detection signal to control the light intensity sensor (120) to be turned on;

the processing module (110) is in communication connection with the illuminance sensor (120) and is configured to compare the light intensity value with a light intensity maximum threshold, and output an intense light suppression signal if the light intensity value is greater than the light intensity maximum threshold;

the controller (130) is in communication connection with the strong light suppression module (140) and is responsive to the strong light suppression signal to control the strong light suppression module (140) to be turned on;

the controller (130) is respectively connected with the first memory (160) and the second memory (170) in a communication mode, and is used for enabling the image with the gray variance value larger than the highest threshold of the gray variance to be stored in the first memory (160) and enabling the image with the gray variance value smaller than the lowest threshold of the gray variance value to be stored in the second memory (170).

Technical Field

The present application relates to the field of image processing technologies, and in particular, to an image processing method, a computer-readable medium, and a system.

Background

At night, the license plate is not clearly grabbed by the camera due to the fact that the brightness of the external light is high, and therefore the related technology generally adopts a strong light inhibition unit to inhibit an external light source. The strong light suppression means that video information of a strong light part in an image is processed by a DSP (digital signal processor), the signal brightness of the video is adjusted to be in a normal range, and the situation that the front contrast and the rear contrast in the same image are too large is avoided.

In view of the above-mentioned related art, the inventor believes that it takes a long time for a back-office worker to view a desired image because a blurred image and a sharp image are included in an image of an area to be photographed captured by a camera before and after strong light suppression, and because the blurred image and the sharp image are mixed.

Disclosure of Invention

In order to shorten the time for background personnel to view a required image, the application provides an image processing method, a computer readable medium and a system.

In a first aspect, the present application provides an image processing method, which adopts the following technical solutions:

an image processing method comprising the steps of:

acquiring a first image of a region to be shot so as to obtain a first gray scale variance value of the first image;

comparing the first gray variance value with a preset gray variance highest threshold and a preset gray variance lowest threshold respectively, and if the first gray variance value is greater than the gray variance highest threshold, the first image is a clear image and is stored in a first storage space; if the first gray variance value is smaller than the gray variance minimum threshold, the first image is a blurred image, the first image is stored in a second storage space, and a light intensity detection signal is output;

acquiring a light intensity value of an area to be shot based on the light intensity detection signal;

comparing the light intensity value with a preset light intensity highest threshold, and if the light intensity value is greater than the light intensity highest threshold, outputting a strong light inhibition signal;

acquiring a second image of an area to be shot according to a strong light suppression mode based on the strong light suppression signal so as to obtain a second gray variance value of the second image;

comparing the second gray variance value with a gray variance highest threshold and a gray variance lowest threshold respectively, and if the second gray variance value is greater than the gray variance highest threshold, storing the second image in a first storage space; and if the second gray variance value is smaller than the gray variance minimum threshold, storing the second image in a second storage space, and enhancing the intensity of the strong light inhibition mode according to a preset regulation rule.

By adopting the technical scheme, firstly, the obtained first gray scale variance value is judged, and when the first image is a clear image, the first image is stored in a first storage space; when the first image is a blurred image, storing the first image in a second storage space; if the first image is a blurred image, acquiring the light intensity of an area to be shot, and if the light intensity value is greater than the highest light intensity threshold value, indicating that the blurred image is caused by external strong light, outputting a strong light inhibition signal and starting a strong light inhibition mode; then, judging the obtained second gray variance value, and storing the second image in a first storage space when the second image is a clear image to show that the intensity of the strong light inhibition mode is proper at the moment; when the second image is a blurred image, storing the second image in a second storage space, and enhancing the intensity of the strong light inhibition mode by adjusting the rule; then, acquiring an image of a region to be shot, judging the gray variance value of the image, and stopping enhancing the intensity of the strong light inhibition mode when the image is a clear image;

in the process that the acquired image of the area to be shot is from the blurred image to the sharp image, the sharp image is stored in the first storage space, and the blurred image is stored in the second storage space, so that the blurred image and the sharp image are stored separately, and the time for a background person to check the required image is shortened.

Optionally, the image processing method further includes:

comparing the light intensity value with a preset light intensity minimum threshold, and outputting a light supplement signal if the light intensity value is smaller than the light intensity minimum threshold;

acquiring a third image of an area to be shot according to a light supplement mode based on the light supplement signal so as to obtain a third gray scale variance value of the third image;

comparing the third gray variance value with a gray variance highest threshold and a gray variance lowest threshold respectively, and if the third gray variance value is greater than the gray variance highest threshold, storing the third image in a first storage space; and if the third gray variance value is smaller than the gray variance minimum threshold, storing the third image in a second storage space, and enhancing the intensity of the light supplement mode according to a preset regulation rule.

By adopting the technical scheme, the acquired light intensity value of the area to be shot is judged, if the light intensity value is smaller than the light intensity minimum threshold value, the fuzzy image is caused by insufficient external light, so that a light supplement signal is output, and a light supplement mode is started; then, judging the obtained third gray scale variance value, and storing the third image in a first storage space when the third image is a clear image to show that the intensity of the light supplement mode is proper at the moment; when the third image is a blurred image, the third image is stored in a second storage space, and the intensity of the light supplement mode is enhanced through adjusting rules; and then acquiring the image of the area to be shot, judging the gray variance value of the image, and stopping enhancing the intensity of the light supplementing mode when the image is a clear image.

Optionally, the image processing method further includes:

and comparing the residual capacity of the second storage space with a preset capacity threshold, and if the residual capacity is smaller than the capacity threshold, cleaning the image stored in the second storage space.

By adopting the technical scheme, when the remaining capacity of the second storage space is smaller than the capacity threshold, the blurred images stored in the second storage space are more, so that the blurred images need to be cleaned to release the capacity of the second storage space.

Optionally, the image processing method further includes:

acquiring a fourth image of an area to be shot based on the maximum intensity of a preset strong light inhibition mode to obtain a fourth gray scale variance value of the fourth image;

and comparing the fourth gray variance value with a gray variance minimum threshold, if the fourth gray variance value is smaller than the gray variance minimum threshold, storing the fourth image in a second storage space, and outputting first alarm information.

By adopting the technical scheme, after the strong light suppression mode is adjusted to the maximum intensity, if the acquired image of the area to be shot is a blurred image, the strong light suppression mode is useless, so that the camera is judged to be possibly damaged, and first alarm information is output to remind a background manager to overhaul the camera.

Optionally, the image processing method further includes:

acquiring a fifth image of a region to be shot based on the maximum intensity of a preset light supplement mode to obtain a fifth gray scale variance value of the fifth image;

and comparing the fifth gray variance value with a gray variance minimum threshold, if the fifth gray variance value is smaller than the gray variance minimum threshold, storing the fifth image in a second storage space, and outputting second alarm information.

By adopting the technical scheme, after the light supplement mode is adjusted to the maximum intensity, if the acquired image of the area to be shot is a blurred image, the light supplement mode is useless, so that the camera is judged to be possibly damaged, and second alarm information is output to remind a worker to replace the camera.

Optionally, the image processing method further includes:

acquiring an image of a region to be shot by a camera;

acquiring a temperature value inside the camera;

and comparing the temperature value with a preset temperature threshold value, and if the temperature value is greater than the temperature threshold value, outputting a cooling signal to cool the interior of the camera.

Through adopting above-mentioned technical scheme, because the camera is at the during operation, its inside components and parts can produce the heat, consequently, if the inside temperature value of camera is greater than the temperature threshold value, then can treat the pixel of the regional image of shooing and cause the influence, consequently need judge the temperature value, after the temperature value is greater than the temperature threshold value, output cooling signal to cool down to the camera is inside.

Optionally, the step of obtaining the temperature value inside the camera specifically includes:

intermittently acquiring the temperature value inside the camera.

By adopting the technical scheme, the internal temperature value of the camera is obtained intermittently, and the consumption of the camera to the power supply can be reduced.

Optionally, the image processing method further includes:

and comparing the duration time of the cooling signal with a preset time threshold, and outputting third alarm information if the duration time of the cooling signal is greater than the time threshold.

Through adopting above-mentioned technical scheme, to the inside back of cooling down of camera, if the cooling signal lasts always, and duration has exceeded the time threshold, then explain that inside components and parts are burnt out to judge the camera damage, thereby output third alarm information, overhaul the camera with reminding backstage managers.

A computer readable storage medium storing a computer program that can be loaded by a processor and executes any of the image processing methods described above.

By adopting the technical scheme, the image processing method is presented in the form of computer readable codes and stored in a computer readable medium, and when the processor runs the computer readable codes, the steps of the image processing method are executed to obtain the effect of improving the effective storage space in the camera.

An image processing system comprises an image acquisition module, an illuminance sensor, an intense light suppression module, a processing module, a controller, a first memory and a second memory;

the image acquisition module is used for acquiring an image of an area to be shot;

the illumination sensor is used for detecting the light intensity of an area to be shot and outputting a light intensity value;

the processing module is in communication connection with the image acquisition module and is used for acquiring a gray scale variance value of the image and comparing the gray scale variance value with a gray scale variance maximum threshold value and a gray scale variance minimum threshold value respectively; if the gray variance value is smaller than the gray variance minimum threshold, outputting a light intensity detection signal;

the controller is in communication connection with the processing module and responds to the light intensity detection signal to control the opening of the illuminance sensor;

the processing module is in communication connection with the illuminance sensor and is used for comparing the light intensity value with a light intensity highest threshold value and outputting an intense light suppression signal if the light intensity value is greater than the light intensity highest threshold value;

the controller is in communication connection with the strong light suppression module and responds to the strong light suppression signal to control the strong light suppression module to be started;

the controller is respectively in communication connection with the first memory and the second memory, and is used for enabling the image with the gray variance value larger than the highest threshold of the gray variance value to be stored in the first memory and enabling the image with the gray variance value smaller than the lowest threshold of the gray variance value to be stored in the second memory.

By adopting the technical scheme, the image acquisition module transmits the acquired image of the area to be shot into the processing module, the processing module acquires the gray variance value of the image and judges the gray variance value, and if the gray variance value of the image is greater than the highest threshold of the gray variance, the controller enables the image to be stored in the first memory; if the gray variance value of the image is smaller than the minimum threshold of the gray variance, the controller enables the image to be stored in a second memory, the controller controls a light intensity sensor to be started, the light intensity sensor transmits the obtained light intensity value of the area to be shot into a processing module, and the processing module judges the light intensity value; if the light intensity value is larger than the highest light intensity threshold, the controller controls the strong light inhibition module to be started;

in the process that the acquired image of the area to be shot is from the blurred image to the sharp image, the sharp image is stored in the first storage space, and the blurred image is stored in the second storage space, so that the blurred image and the sharp image are stored separately, and the time for a background person to check the required image is shortened.

In summary, the present application includes at least one of the following beneficial technical effects:

1. in the process that the acquired image of the area to be shot is from the blurred image to the clear image, the clear image is stored in the first storage space, and the blurred image is stored in the second storage space, so that the blurred image and the clear image are stored separately, and the time for a background person to check the required image is shortened.

Drawings

Fig. 1 is a block diagram illustrating a flow of strong light suppression in the image processing method of the present application.

Fig. 2 is a block diagram of a light supplement process in the image processing method of the present application.

Fig. 3 is a block diagram of a flow of outputting first alarm information in the image processing method of the present application.

Fig. 4 is a block diagram of a flow of outputting second alarm information in the image processing method of the present application.

FIG. 5 is a block diagram of a process for clearing the second storage space in the image processing method of the present application.

Fig. 6 is a block diagram of a flow of outputting third alarm information in the image processing method of the present application.

Fig. 7 is a block diagram of the configuration of the image processing system.

Description of reference numerals: 100. an image acquisition module; 110. a processing module; 120. a light intensity sensor; 130 a controller; 140. a strong light suppression module; 150. a light supplement module; 160. a first memory; 170. a second memory; 180. a temperature sensor; 190. a motor; 200. a timing module; 300. and an alarm module.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

The present application is described in further detail below with reference to figures 1-7.

Referring to fig. 1, an embodiment of the present application provides an image processing method, which may include the following steps S101 to S107:

s101, acquiring a first image of a region to be shot to obtain a first gray scale variance value of the first image;

the first image of the area to be shot is an image acquired in real time. For example, taking a snapshot of a license plate as an example, the image of the region to be photographed is an image in a region around the license plate acquired by a camera.

S102, comparing the first gray variance value with a preset gray variance highest threshold and a preset gray variance lowest threshold respectively, and if the first gray variance value is larger than the gray variance highest threshold, the first image is a clear image and is stored in a first storage space; if the first gray variance value is smaller than the threshold value of the lowest gray variance, the first image is a blurred image, the first image is stored in a second storage space, and a light intensity detection signal is output;

judging whether the acquired image of the area to be shot is clear or not, wherein a gray variance algorithm is adopted; taking the gray average value of all pixels of the image of the area to be shot as a reference, calculating the difference of the gray value of each pixel point, calculating the sum of squares, then standardizing by using the total number of the pixels, and representing the average degree of the gray change of the image; the larger the average degree of the gray scale change, i.e., the larger the gray scale variance value, the sharper the image, and the smaller the average degree of the gray scale change, i.e., the smaller the gray scale variance value, the more blurred the image.

S103, acquiring a light intensity value of the area to be shot based on the light intensity detection signal;

s104, comparing the light intensity value with a preset light intensity highest threshold, and outputting a strong light inhibition signal if the external light intensity value is greater than the light intensity highest threshold;

s105, acquiring a second image of the area to be shot according to the strong light suppression mode based on the strong light suppression signal to obtain a second gray variance value of the second image;

after the strong light inhibition mode is started, the camera is switched from the common mode to the strong light inhibition mode; the second image is an image after strong light suppression.

S106, comparing the second gray variance value with a gray variance highest threshold and a gray variance lowest threshold respectively, and storing the second image in a first storage space if the second gray variance value is greater than the gray variance highest threshold; if the second gray variance value is smaller than the gray variance minimum threshold, storing the second image in a second storage space, and enhancing the intensity of the strong light inhibition mode according to a preset regulation rule;

the implementation of an adjustment rule of the highlight suppression mode is as follows:

setting a strong light inhibition mode comprising 1 st gear-5 th gear, wherein the processing capability of a strong light part in an image of a region to be shot is weakest in the 1 st gear, namely the intensity of the strong light inhibition mode is minimum; the processing capability of the strong light part in the image of the 5 th-order area to be shot is strongest, namely the intensity of the strong light inhibition mode is the maximum. After the strong light inhibition mode is started, the default is 1 grade, the intensity of the strong light inhibition mode is enhanced each time, and 1 grade is added on the basis of the previous grade; for example, the first time the intensity of the strong light suppression mode is enhanced, the strong light suppression mode is the 2 nd gear, the second time the intensity of the strong light suppression mode is enhanced, and the strong light suppression mode is the 3 rd gear.

And S107, repeating the step S105 and the step 106, and ending the adjustment of the intensity of the strong light inhibition mode if the gray variance value of the image of the area to be shot is greater than the highest threshold of the gray variance.

Referring to fig. 2, the image processing method further includes steps S108-S111;

s108, comparing the light intensity value with a preset light intensity minimum threshold value, and outputting a light supplement signal if the light intensity value is smaller than the light intensity minimum threshold value;

s109, acquiring a third image of the area to be shot according to a light supplementing mode based on the light supplementing signal so as to obtain a third gray scale variance value of the third image;

after the light supplement mode is started, the camera is switched from the common mode to the light supplement mode; the third image is the image after the light supplement. The light supplement is implemented by responding to a light supplement signal and controlling an infrared LED (light emitting diode) arranged in the camera to be turned on.

S110, comparing the third gray variance value with a gray variance highest threshold and a gray variance lowest threshold respectively, and storing the third image in a first storage space if the third gray variance value is greater than the gray variance highest threshold; if the third gray variance value is smaller than the gray variance minimum threshold, storing the third image in a second storage space, and enhancing the intensity of the light supplement mode according to a preset regulation rule;

the implementation of an adjustment rule of the light supplement mode is as follows:

setting the light supplement mode to include 1-5, wherein the light supplement effect of the 1 st gear is the weakest, namely the intensity of the light supplement mode is the smallest; the 5-gear light supplement effect is strongest, namely the intensity of the light supplement mode is maximum; after the light supplement mode is started, the default is 1 gear, the intensity of the light supplement mode is enhanced each time, and 1 gear is added on the basis of the previous gear; for example, the intensity of the light supplement mode is enhanced for the first time, the light supplement mode is in the 2-gear, the intensity of the light supplement mode is enhanced for the second time, and the light supplement mode is in the 3-gear.

And S111, repeating the step S109 and the step S110, and ending the adjustment of the intensity of the light supplement mode if the gray variance value of the image of the area to be shot is greater than the highest gray variance threshold value.

Referring to fig. 3, based on step S107, the image processing method further includes steps S201 to S202:

s201, acquiring a fourth image of a region to be shot based on the maximum intensity of a preset strong light inhibition mode to obtain a fourth gray scale variance value of the fourth image;

the maximum intensity of the preset strong light inhibition mode refers to that when the strong light mode is in a 5-gear position; the fourth image refers to an image of the area to be photographed, which is acquired when the intensity of the strong light mode is in the 5 th notch.

S202, comparing the fourth gray variance value with a gray variance minimum threshold, if the fourth gray variance value is smaller than the gray variance minimum threshold, storing the fourth image in a second storage space, and outputting first alarm information;

when the strong light suppression mode is in the maximum intensity, if the acquired fourth gray variance value is still smaller than the gray variance minimum threshold value, the fourth image is still a blurred image, the strong light suppression mode does not have an effect, and the camera is possibly damaged, so that a background manager is reminded to overhaul the camera by outputting first alarm information.

Referring to fig. 4, based on step S111, the image processing method further includes steps S301 to S302:

s301, acquiring a fifth image of the area to be shot based on the maximum intensity of a preset light supplement mode to obtain a fifth gray scale variance value of the fifth image;

the preset maximum intensity of the light supplement mode refers to that the light supplement mode is in a 5-gear position; the fifth image is an image of the region to be photographed, which is acquired when the intensity of the fill-in mode is in the 5 th gear.

S302, comparing the fifth gray variance value with a gray variance minimum threshold, if the fifth gray variance value is smaller than the gray variance minimum threshold, storing the fifth image in a second storage space, and outputting second alarm information;

when the light supplement mode is in the maximum intensity, if the acquired fifth gray variance value is still smaller than the gray variance minimum threshold value, the fifth image is still a blurred image, the light supplement mode does not have an effect, and the camera is possibly damaged, so that a backstage manager is reminded to overhaul the camera by outputting second alarm information.

Referring to fig. 5, in order to clean up the image in the second storage space in time, the capacity in the second storage space is released; the image processing method further includes:

s401, comparing the residual capacity of the second storage space with a preset capacity threshold, and if the residual capacity is smaller than the capacity threshold, cleaning the image stored in the second storage space;

for example, when the total capacity of the second storage space is set to 120G, the capacity threshold is set to 5G, and when the remaining capacity of the second storage space is 4G, 4G <5G, the image stored in the second storage space is subjected to the shredding cleaning. The crushing and cleaning method is the same as the method for automatically cleaning garbage in a computer.

Referring to fig. 6, in order to extend the lifespan of the camera, the image processing method further includes steps S501 to S502:

s501, acquiring a temperature value inside a camera;

as an embodiment of obtaining the internal temperature value of the camera, the internal temperature value of the camera may be obtained intermittently by a timer built in the camera or a self-contained timing unit built in the controller. For example, setting the time of the timer or the timing unit to 3 minutes means that the temperature value inside the camera is acquired every 3 minutes.

As another embodiment for acquiring the temperature value inside the camera, the temperature value inside the camera may be acquired in real time.

It should be noted that step S501 may precede any step, and is not required.

S502, comparing the temperature value with a preset temperature threshold value, and if the temperature value is greater than the temperature threshold value, outputting a cooling signal to cool the interior of the camera.

One cooling method is as follows:

the protective housing is installed on the outer wall of the camera through bolts, the camera is arranged in the protective housing, and the lens of the camera is arranged outside the protective housing. The side wall and the lower wall of the protective shell are both provided with airflow holes; the motor is installed to the protective housing inner wall, and the motor output shaft is fixed with mini fan coaxially. The motor is started after receiving the cooling signal, so that the mini fan is controlled to cool the camera.

Wherein, the mini fan refers to a fan capable of rotating between the protective case and the camera.

Certainly, in other cooling modes, an air inlet hole can be formed in the upper wall of the camera so as to further cool the components inside the camera; the camera can also be cooled by adopting a water cooling or water circulation cooling mode.

Based on step S502, the image processing method further includes:

s503, comparing the duration time of the cooling signal with a preset time threshold, and outputting third alarm information if the duration time of the cooling signal is greater than the time threshold;

after cooling down the camera inside, if the cooling signal lasts always, and duration has exceeded the time threshold, the motor rotates always promptly, then explains that the inside components and parts of camera are burnt out to judge the camera damage, thereby output third alarm information, overhaul the camera with reminding the backstage managers.

The principle of the embodiment of the present embodiment is as follows:

firstly, judging a first gray scale variance value; if the first image is a clear image, storing the first image in a first storage space; if the first image is a blurred image, storing the first image in a second storage space;

if the first image is a blurred image, acquiring a light intensity value of an area to be shot, and if the light intensity value is greater than a light intensity maximum threshold, outputting a strong light inhibition signal to enable the camera to be switched from a common mode to a strong light inhibition mode;

then acquiring a second image, and judging a second gray variance value; if the second image is a clear image, storing the second image in a first storage space; if the second image is a blurred image, storing the second image in a second storage space, and enhancing the intensity of the strong light inhibition mode through adjusting rules;

after the intensity of the strong light inhibition mode is enhanced, the image of the area to be shot is obtained again, the gray scale variance value of the image is judged, if the image is a clear image, the adjustment of the intensity of the strong light inhibition mode is finished, and therefore the image of the area to be shot, which is obtained in the later stage of the camera, is a clear image.

Based on the above-mentioned image processing method embodiments, a second embodiment of the present application provides a computer-readable storage medium, in which a computer program capable of being loaded by a processor and executing any of the above-mentioned image processing methods is stored.

The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device including one or more available media integrated servers, data centers, and the like. Among other things, the available media may be magnetic media (e.g., floppy disks, hard disks, magnetic tape), optical media (e.g., DVDs), or semiconductor media (e.g., solid state disks).

Referring to fig. 7, a third embodiment of the present application further provides an image processing system, which may include: the image processing device comprises an image acquisition module 100, a processing module 110, a light intensity sensor 120, a strong light suppression module 140, a light supplement module 150, a controller 130, a first memory 160 and a second memory 170.

The image acquisition module 100 is used for acquiring an image of an area to be shot; wherein, the image capturing module 100 is a camera.

A light intensity sensor 120 for detecting the light intensity of the region to be photographed and outputting a light intensity value;

the processing module 110 is in communication connection with the image acquisition module 100, and is configured to obtain a gray variance value of the image, and compare the gray variance value with a gray variance maximum threshold and a gray variance minimum threshold, respectively; if the gray variance value is smaller than the gray variance minimum threshold, outputting a light intensity detection signal;

the controller 130 is communicatively connected to the processing module 110, and is responsive to the light intensity detection signal to control the light intensity sensor 120 to turn on.

The processing module 110 is in communication connection with the illuminance sensor 120, and is configured to compare the light intensity value with a light intensity maximum threshold value to output an intense light suppression signal, and compare the light intensity value with a light intensity minimum threshold value to output a light supplement signal.

The controller 130 is in communication connection with the strong light suppression module 140 and the light supplement module 150, and responds to the strong light suppression signal to control the strong light suppression module 140 to be turned on; responding to the light supplement signal to control the light supplement module 150 to be started;

the highlight suppression module 140 is a highlight suppression chip in the camera, and the light supplement module 150 is an infrared LED lamp control circuit installed in the camera.

The controller 130 is respectively connected to the first memory 160 and the second memory 170 in communication, and is configured to store the image with the gray variance value larger than the highest threshold of the gray variance in the first memory 160, and store the image with the gray variance value smaller than the lowest threshold of the gray variance value in the second memory 170.

It should be noted that the processing module 110, the illuminance sensor 120, the strong light suppression module 140, the light supplement module 150, the controller 130, the first memory 160, and the second memory 170 are all integrated in the camera; the processing module 110 may be a processing unit inside the controller 130, or may be a separate processor.

The image processing system further includes: an alarm module 300, a temperature sensor 180, a motor 190, and a timing module 200.

The temperature sensor 180 is used for detecting the temperature in the camera; and is mounted inside the camera.

The processing module 110 is in communication connection with the temperature sensor 180, and is configured to compare a temperature value in the camera with a temperature threshold value; and when the temperature value is greater than the temperature threshold value, outputting a cooling signal.

The timing module 200 is in communication connection with the temperature sensor 180 and is configured to control the temperature sensor 180 to intermittently detect the temperature in the camera.

The controller 130 is communicatively coupled to the motor 190 and is responsive to the temperature decrease signal to control the motor 190 to activate.

The processing module 110 is in communication connection with the strong light suppression module 140 and the light supplement module 150, respectively, and is configured to determine a gray scale variance value of an image of a region to be photographed when the strong light suppression mode reaches a maximum intensity; if the gray variance value of the image of the area to be shot is smaller than the gray variance minimum threshold, the processing module 110 outputs first alarm information; if the light supplement mode reaches the maximum intensity, the processing module 110 determines a gray scale variance value of the image of the region to be photographed; if the gray variance value of the image in the area to be photographed is smaller than the gray variance minimum threshold, the processing module 110 outputs second alarm information.

The controller 130 is in communication connection with the alarm module 300, responds to the cooling signal, and judges the duration of the cooling signal so as to output third alarm information, and the alarm module 300 responds to the third alarm information to alarm; the controller 130 responds to the first alarm information or the second alarm information to control the alarm module 300 to alarm.

The alarm module 300 may be an audible and visual alarm, or an intelligent terminal. When the alarm module 300 is an audible and visual alarm, the audible and visual alarm is installed in the background monitoring room. When the alarm module 300 is an intelligent terminal, the intelligent terminal may be an intelligent display device such as a smart phone or a computer of a background manager.

In addition, when the camera is a vehicle-mounted camera, and when the alarm module 300 is an audible and visual alarm, the audible and visual alarm can be installed in a vehicle; when the alarm module 300 is an intelligent terminal, the intelligent terminal may be an intelligent mobile display device such as a smart phone, a notebook computer or an intelligent watch of a vehicle owner.

The principle of the embodiment of the present embodiment is as follows:

firstly, an image acquisition module 100 acquires an image of an area to be shot, and a processing module 110 acquires a gray scale variance value of the image and judges the gray scale variance value; the controller 130 stores the sharp image in the first storage space and stores the blurred image in the second storage space;

when the image is a blurred image, the controller 130 controls the illuminance sensor 120 to detect the light intensity of the area to be photographed; when the light intensity value is greater than the maximum light intensity threshold, the controller 130 controls the strong light suppression module 140 to be turned on; when the light intensity value is smaller than the light intensity minimum threshold, the controller 130 controls the light supplement module 150 to be turned on;

after the strong light suppression module 140 or the light supplement module 150 is turned on, the image acquisition module 100 acquires the image of the region to be photographed again, the processing module 110 determines the gray variance value of the image again, and when the image of the region to be photographed is a clear image, the clear image is stored in the first storage space; when the image of the area to be shot is a blurred image, the blurred image is stored in a second storage space, and the gear of a strong light inhibition mode or a light supplement mode is increased;

then, the image acquisition module 100 acquires the image of the area to be shot again, the processing module 110 determines the gray variance value of the image of the area to be shot, and when the image of the area to be shot is a clear image, the adjustment of the gear of the strong light inhibition mode or the light supplement mode is completed.

The foregoing is a preferred embodiment in its own right and not intended to limit the scope of the application, and any feature disclosed in this specification (including the abstract and drawings) may be replaced by alternative features serving equivalent or similar purposes, unless expressly stated otherwise. That is, unless expressly stated otherwise, each feature is only an example of a generic series of equivalent or similar features.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种图像处理方法、装置、电子设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!