Disclosure of Invention
The invention has at least the following three key points:
(1) a targeted detection mechanism is set, and once the finger target is found to be too close to the face target, a false injury early warning signal is sent out and parents nearby are notified wirelessly, so that the situation that the fingers of the baby accidentally injure the face of the baby is avoided;
(2) on the basis of wavelet processing, determining a corresponding complexity grade based on the mean square error of each pixel value of each pixel point of an image, and improving the precision of complexity grade judgment;
(3) different interpolation processing equipment is selected to perform interpolation processing on the image to be processed based on the specific complexity of the image to be processed, so that the intelligent level of image processing is improved.
According to an aspect of the present invention, there is provided a real-time target distance measuring method, the method including using a real-time target distance measuring system to send a warning signal of accidental injury and wirelessly notify parents of the vicinity when a finger target is found to be too close to a facial target, the real-time target distance measuring system including: the full-color image pickup equipment is arranged on the baby crib and used for carrying out full-color image pickup operation on the baby crib so as to obtain and output a corresponding full-color imaging image; the wavelet processing equipment is arranged on the baby crib, connected with the full-color camera equipment and used for receiving the full-color imaging image and executing wavelet filtering processing on the full-color imaging image to obtain a wavelet processing image.
More specifically, in the target distance real-time measurement system, the system further includes: and the complexity detection device is connected with the wavelet processing device and used for receiving the wavelet processing image and detecting the complexity of the wavelet processing image so as to obtain the corresponding complexity level.
More specifically, in the target distance real-time measurement system: in the complexity detection device, a corresponding complexity level is determined based on a mean square error of each pixel value of each pixel point of the wavelet processed image.
More specifically, in the target distance real-time measurement system: in the complexity detection apparatus, determining a corresponding complexity level based on a mean square error of respective pixel values of respective pixel points of the wavelet processed image includes: the larger the mean square error, the higher the corresponding complexity level is determined.
More specifically, in the target distance real-time measurement system, the system further includes: the target identification device is connected with the contrast enhancement device and used for extracting each finger target in the contrast enhancement image based on the finger imaging characteristics and extracting the face target in the contrast enhancement image based on the face imaging characteristics; the alarm driving device is connected with the target identification device and used for sending a accidental injury early warning signal when a finger target is too close to a face target in the contrast enhanced image, or sending a distance normal signal; in the alarm driving device, in the contrast-enhanced image, when there is a finger target too close to a face target, the sending a accidental injury warning signal includes: and in the contrast enhanced image, when the image area where the finger target is positioned is overlapped with the image area where the face target is positioned, judging that the finger target and the face target are too close.
According to still another aspect of the present invention, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed, implements the steps of the target distance real-time measurement method as described above.
The method for measuring the target distance in real time and the storage medium have the advantages of visual data and convenient operation. Due to the fact that the targeted detection mechanism is arranged, once the finger target is found to be too close to the face target, the early warning signal of accidental injury is sent out, and parents nearby are informed wirelessly, so that the situation that the fingers of the baby injure the face of the baby by mistake is avoided.
Detailed Description
Embodiments of the present invention will be described in detail below.
The target detection, also called target extraction, is an image segmentation based on target geometry and statistical characteristics, which combines the segmentation and identification of targets into one, and the accuracy and real-time performance of the method are important capabilities of the whole system. Especially, in a complex scene, when a plurality of targets need to be processed in real time, automatic target extraction and identification are particularly important.
With the development of computer technology and the wide application of computer vision principle, the real-time tracking research on the target by using the computer image processing technology is more and more popular, and the dynamic real-time tracking and positioning of the target has wide application value in the aspects of intelligent traffic systems, intelligent monitoring systems, military target detection, surgical instrument positioning in medical navigation operations and the like.
At present, the baby is owing to lack autonomic consciousness, under the state that the hand is not wrapped, touches face and fish tail face very easily between unconsciousness, for this action of taking precautions against, adopts the mode of wrapping baby's hand in the quilt when the baby sleeps usually, however this kind of mode has retrained the baby freedom and has leaded to the baby weak point of dispelling the heat, causes diseases such as eczema easily.
In order to overcome the defects, the invention builds a real-time target distance measuring method, which comprises the steps of using a real-time target distance measuring system to send out a accidental injury early warning signal when a finger target is found to be too close to a face target, and wirelessly informing nearby parents. The real-time target distance measuring system can effectively solve the corresponding technical problem.
The real-time target distance measuring system shown according to the embodiment of the invention comprises:
the full-color image pickup equipment is arranged on the baby crib and used for carrying out full-color image pickup operation on the baby crib so as to obtain and output a corresponding full-color imaging image;
the wavelet processing equipment is arranged on the baby crib, connected with the full-color camera equipment and used for receiving the full-color imaging image and executing wavelet filtering processing on the full-color imaging image to obtain a wavelet processing image.
Next, the detailed structure of the target distance real-time measurement system of the present invention will be further described.
The real-time target distance measuring system may further include:
and the complexity detection device is connected with the wavelet processing device and used for receiving the wavelet processing image and detecting the complexity of the wavelet processing image so as to obtain the corresponding complexity level.
In the target distance real-time measurement system:
in the complexity detection device, a corresponding complexity level is determined based on a mean square error of each pixel value of each pixel point of the wavelet processed image.
In the target distance real-time measurement system:
in the complexity detection apparatus, determining a corresponding complexity level based on a mean square error of respective pixel values of respective pixel points of the wavelet processed image includes: the larger the mean square error, the higher the corresponding complexity level is determined.
The real-time target distance measuring system may further include:
the target identification device is connected with the contrast enhancement device and used for extracting each finger target in the contrast enhancement image based on the finger imaging characteristics and extracting the face target in the contrast enhancement image based on the face imaging characteristics;
the alarm driving device is connected with the target identification device and used for sending a accidental injury early warning signal when a finger target is too close to a face target in the contrast enhanced image, or sending a distance normal signal;
in the alarm driving device, in the contrast-enhanced image, when there is a finger target too close to a face target, the sending a accidental injury warning signal includes: in the contrast enhanced image, when the image area where the finger target is located is overlapped with the image area where the face target is located, judging that the finger target and the face target are too close;
the MCU control device is connected with the complexity detection device, is used for controlling the nearest neighbor interpolation device to enter a working mode from a sleep mode when receiving the complexity level exceeding, and controlling the bilinear interpolation device to enter the sleep mode from the working mode, and is also used for controlling the nearest neighbor interpolation device to enter the sleep mode from the working mode and controlling the bilinear interpolation device to enter the working mode from the sleep mode when receiving the complexity level not exceeding;
the nearest neighbor interpolation device is connected with the wavelet processing device and is used for executing nearest neighbor interpolation processing on the received wavelet processing image in the working mode so as to obtain and output a corresponding dynamic interpolation image;
the bilinear interpolation device is connected with the wavelet processing device and used for executing bilinear interpolation processing on the received wavelet processing image under the working mode so as to obtain and output a corresponding dynamic interpolation image;
the nearest neighbor interpolation device is also used for not executing nearest neighbor interpolation processing on the received wavelet processing image when entering the sleep mode;
the bilinear interpolation device is also used for not executing bilinear interpolation processing on the received wavelet processing image when entering the sleep mode;
the contrast enhancement device is respectively connected with the nearest neighbor interpolation device and the bilinear interpolation device and is used for carrying out contrast enhancement processing on the dynamic interpolation image output by the nearest neighbor interpolation device or the bilinear interpolation device so as to obtain a corresponding contrast enhancement image;
the WIFI communication equipment is connected with the alarm driving equipment and used for wirelessly forwarding the accidental injury early warning signal to a handheld terminal of a parent nearby when the accidental injury early warning signal is received;
the FLASH memory chip is respectively connected with the contrast enhancement equipment, the nearest neighbor interpolation equipment and the bilinear interpolation equipment and is used for temporarily storing the contrast enhancement image;
the complexity detection device is also internally provided with a ROM memory and a RAM memory, and the RAM memory is used for receiving and storing the complexity level.
The real-time target distance measuring system may further include:
the image restoration device is connected with the full-color image pickup device and used for receiving the full-color imaging image;
the image restoration device is also used for equally dividing the full-color imaging image into blocks with corresponding block sizes based on the distance between the average brightness of the full-color imaging image and a preset brightness range central value;
the image restoration device is further configured to select, for each block, corresponding image restoration with different strengths based on the image degradation degree of the block to obtain restored blocks, and to stitch the obtained restored blocks to obtain a restored stitched image;
the image restoration device is also connected with the wavelet processing device and used for sending the restored spliced image to the wavelet processing device in place of the full-color imaging image.
In the target distance real-time measurement system:
the preset brightness range is a brightness range limited by a preset brightness upper threshold and a preset brightness lower threshold, and the preset brightness upper threshold is larger than the preset brightness lower threshold;
wherein, in the image restoration apparatus, the closer the full-color imaged image average luminance is to the preset luminance range center value, the larger the corresponding block into which the full-color imaged image is equally divided.
In the target distance real-time measurement system:
in the image restoration device, for each block, the greater the degree of image degradation of the block, the greater the strength of selected image restoration;
and the FLASH storage chip is also connected with the image restoration equipment and is used for pre-storing the preset brightness range.
Meanwhile, in order to overcome the above disadvantages, the present invention further provides a computer readable storage medium, which stores a computer program, wherein the computer program, when executed, implements the steps of the target distance real-time measurement method as described above.
In addition, the term Wavelet (Wavelet) is a small waveform as the name implies. By "small" it is meant that he has attenuating properties; the term "wave" refers to its wave nature, the amplitude of which is in the form of an oscillation between positive and negative phases. Compared with Fourier transform, the wavelet transform is a local analysis of time (space) frequency, and the wavelet transform gradually refines signals (functions) in a multi-scale mode through telescopic translation operation, finally achieves time subdivision at high frequency and frequency subdivision at low frequency, can automatically adapt to the requirement of time-frequency signal analysis, can focus on any details of signals, solves the problem of difficulty of Fourier transform, and becomes a major breakthrough in a scientific method following the Fourier transform. Wavelet transforms have been known as "mathematical microscopes". The application of wavelet analysis is closely coupled with the theoretical study of wavelet analysis. He has achieved remarkable achievements in the field of the scientific and technical information industry. Electronic information technology is an important area of six high and new technologies, and its important aspect is image and signal processing. Nowadays, signal processing has become an important part of the modern scientific and technical work, and the purpose of signal processing is: accurate analysis, diagnosis, encoding compression and quantization, fast transfer or storage, accurate reconstruction (or recovery). From a mathematical point of view, the signal and image processing can be considered as signal processing (the image can be considered as a two-dimensional signal) together, and can be attributed to the signal processing problem in many applications of many analyses in wavelet analysis. For signals whose properties are stable and invariant over time, the ideal tool for processing remains fourier analysis. However, most of the signals in practical applications are unstable, and a tool particularly suitable for unstable signals is wavelet analysis.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: Read-Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.