Disclosure of Invention
The invention has at least the following four key inventions:
(1) before the filtering operation is carried out on the image, analyzing the edge definition in the image to determine the edge high-frequency component which needs to be reserved in the filtering operation, and realizing the self-adaptive filtering processing based on the image content;
(2) by controlling the self-adaptive switching of the resolution/frame rate of each image acquisition unit, the power consumption of the acquisition units is reduced while the moving object is not lost and the imaging quality of the moving object is ensured, the waste of power resources is avoided, and the cruising ability of the tracking system is ensured;
(3) performing shape error analysis operation on the alpha mean value filtering image, wherein the shape error analysis is performed on each brightness value of the alpha mean value filtering image to reduce the data operation amount;
(4) and under the condition that the shape error does not meet the requirement, adopting a shape correction device to execute image shape correction processing to obtain a shape correction image with the shape error reaching the standard.
According to an aspect of the present invention, there is provided a mode switching platform based on a field environment, the platform including:
the switch control equipment is connected with the acupuncture point laser instrument and is used for closing the acupuncture point laser instrument when the received filtering output image has the human body shape which is operated illegally, otherwise, the switch control equipment keeps the opening mode of the acupuncture point laser instrument;
in the switch control equipment, the body shape of the illegal operation human body is a preset human body pattern, and the body shape of the illegal operation human body is one or more;
the self-adaptive resolution acquisition equipment is arranged at the working position of the acupuncture point laser instrument and comprises a mode switching unit, a motion detection unit and a plurality of image acquisition units, wherein the plurality of image acquisition units respectively acquire image data of the working environment of the acupuncture point laser instrument at different angles to output a plurality of sub-angle images, the default working mode of each image acquisition unit is a low resolution acquisition mode, the motion detection unit is respectively connected with the plurality of image acquisition units and is used for detecting whether a moving object exists in the sub-angle images shot by each image acquisition unit, the mode switching unit is connected with the motion detection unit and is also respectively connected with the plurality of image acquisition units and is used for switching the working mode of the image acquisition unit into the high resolution acquisition mode when receiving that a moving object exists in one image acquisition unit, switching the working mode of the image acquisition unit to a low resolution acquisition mode;
the self-adaptive resolution acquisition equipment outputs an image obtained by combining one or more sub-angle images with a moving object in the plurality of sub-angle images as a field reference image;
the automatic restoration device is connected with the self-adaptive resolution acquisition device and used for receiving the field reference image, equally dividing the field reference image into blocks with the corresponding block sizes based on the distance between the signal-to-noise ratio level of the field reference image and a preset lower limit signal-to-noise ratio level, selecting corresponding restoration processing with different strengths for each block based on the degradation degree of the block to obtain restored blocks, and combining the obtained restored blocks to obtain a combined restored image; in the automatic restoration device, the farther the snr level of the live reference image is from a preset lower snr level, the larger the corresponding block into which the live reference image is equally divided, and in the automatic restoration device, the larger the degradation degree of the block is for each block, the larger the selected restoration processing strength is;
the alpha mean filtering device is connected with the automatic restoration device and is used for receiving the combined restoration image and executing alpha mean filtering processing on the combined restoration image to obtain a corresponding alpha mean filtering image;
and the shape error analysis equipment is connected with the alpha mean value filtering equipment and used for receiving the alpha mean value filtering image and executing shape error analysis operation on the alpha mean value filtering image so as to obtain the shape error of the alpha mean value filtering image to be used as a reference shape error to be output.
Detailed Description
Embodiments of the field environment based mode switching platform of the present invention will be described in detail below.
The general operation process of the laser therapeutic apparatus is as follows: 1. the method comprises the steps of firstly opening a water circulation system, checking whether water flow is smooth or not, and if the water circulation system has a fault, not starting the water circulation system. 2. The patient takes the proper position and the acupoint area or part is exposed. 3. And after checking whether each button is at zero position, switching on the power supply, sequentially starting the low-voltage switch and the high-voltage switch, and adjusting to the optimal working current of the laser. 4. The laser is slowly adjusted as required for treatment. For example, laser moxibustion, a defocusing lens is used, and the power density is adjusted to 100-200 mW/cm. The stratum corneum may be thicker than a little but preferably over 250 mW/cm. The irradiation distance is 150-200 cm, which is suitable for local comfort and warm feeling, and the treatment is not overheated for 10-15 min each time. For scar moxibustion, a focusing lens is used, and the power density is 250-477 mW/cm. 5. After the treatment is finished, the buttons are turned off in the reverse order of turning on the machine. However, it should be noted that the water circulation is not closed within 15min of the unit being shut down.
In order to overcome the defects of the acupuncture point laser instrument in the prior art, the invention builds a mode switching platform based on a field environment.
The mode switching platform based on the field environment according to the embodiment of the invention comprises:
the switch control equipment is connected with the acupuncture point laser instrument and is used for closing the acupuncture point laser instrument when the received filtering output image has the human body shape which is operated illegally, otherwise, the switch control equipment keeps the opening mode of the acupuncture point laser instrument;
in the switch control equipment, the body shape of the illegal operation human body is a preset human body pattern, and the body shape of the illegal operation human body is one or more;
the self-adaptive resolution acquisition equipment is arranged at the working position of the acupuncture point laser instrument and comprises a mode switching unit, a motion detection unit and a plurality of image acquisition units, wherein the plurality of image acquisition units respectively acquire image data of the working environment of the acupuncture point laser instrument at different angles to output a plurality of sub-angle images, the default working mode of each image acquisition unit is a low resolution acquisition mode, the motion detection unit is respectively connected with the plurality of image acquisition units and is used for detecting whether a moving object exists in the sub-angle images shot by each image acquisition unit, the mode switching unit is connected with the motion detection unit and is also respectively connected with the plurality of image acquisition units and is used for switching the working mode of the image acquisition unit into the high resolution acquisition mode when receiving that a moving object exists in one image acquisition unit, switching the working mode of the image acquisition unit to a low resolution acquisition mode;
the self-adaptive resolution acquisition equipment outputs an image obtained by combining one or more sub-angle images with a moving object in the plurality of sub-angle images as a field reference image;
the automatic restoration device is connected with the self-adaptive resolution acquisition device and used for receiving the field reference image, equally dividing the field reference image into blocks with the corresponding block sizes based on the distance between the signal-to-noise ratio level of the field reference image and a preset lower limit signal-to-noise ratio level, selecting corresponding restoration processing with different strengths for each block based on the degradation degree of the block to obtain restored blocks, and combining the obtained restored blocks to obtain a combined restored image; in the automatic restoration device, the farther the snr level of the live reference image is from a preset lower snr level, the larger the corresponding block into which the live reference image is equally divided, and in the automatic restoration device, the larger the degradation degree of the block is for each block, the larger the selected restoration processing strength is;
the alpha mean filtering device is connected with the automatic restoration device and is used for receiving the combined restoration image and executing alpha mean filtering processing on the combined restoration image to obtain a corresponding alpha mean filtering image;
the shape error analysis equipment is connected with the alpha mean value filtering equipment and used for receiving the alpha mean value filtering image and executing shape error analysis operation on the alpha mean value filtering image so as to obtain a shape error of the alpha mean value filtering image to be used as a reference shape error to be output;
in the shape error analysis apparatus, performing a shape error analysis operation on the alpha mean filtered image to obtain a shape error of the alpha mean filtered image as a reference shape error output includes: obtaining each brightness value of each pixel point in the alpha mean value filtering image, forming a brightness image by each brightness value, determining the shape error of the brightness image and outputting the shape error as the reference shape error;
the parameter comparison equipment is connected with the shape error analysis equipment and used for receiving the reference shape error and comparing the reference shape error with a shape error threshold value so as to send a first comparison instruction when the reference shape error is larger than or equal to the shape error threshold value and send a second comparison instruction when the reference shape error is smaller than the shape error threshold value;
the shape correcting device is respectively connected with the parameter comparison device and the shape error analysis device, and is used for executing image shape correction processing on the alpha mean value filtering image to obtain a shape correcting image when the first comparison instruction is received, and is also used for outputting the alpha mean value filtering image as a shape correcting image when the second control instruction is received;
the edge detection device is connected with the shape correction device and used for receiving the shape correction image and carrying out edge detection on the shape correction image so as to obtain each edge pixel point and each non-edge pixel point in the shape correction image;
the mean value analysis equipment is connected with the edge detection equipment, and is used for carrying out mean value calculation on each edge pixel point in the shape correction image to obtain an edge mean value and carrying out mean value calculation on each non-edge pixel point in the shape correction image to obtain a non-edge mean value;
the mode selection device is connected with the mean value analysis device and used for acquiring the edge mean value and the non-edge mean value, calculating the result of dividing the edge mean value by the non-edge mean value to be used as a mode reference value, sending a first mode selection signal when the mode reference value does not exceed a limit quantity, and sending a second mode selection signal when the mode reference value exceeds the limit quantity;
the first filtering device is respectively connected with the mode selection device and the edge detection device and is used for transforming the shape correction image from a spatial domain to a frequency domain when receiving the first mode selection signal, setting high-frequency components which are larger than a preset cut-off frequency in the transformed signal to be zero and reserving other frequency components to obtain a processed signal, and performing inverse transformation from the frequency domain to the spatial domain on the processed signal to obtain a first filtering image;
second filtering means, respectively connected to the mode selection means and the edge detection means, for transforming the shape-corrected image from a spatial domain to a frequency domain when receiving the second mode selection signal, reducing a high-frequency component greater than a preset cutoff frequency in the transformed signal to be one-N of an original value and other frequency components to be preserved to obtain a processed signal, and performing inverse transformation from the frequency domain to the spatial domain on the processed signal to obtain a second filtered image, where N is an integer and is inversely proportional to the mode reference value;
and the filtering output device is respectively connected with the switch control device, the first filtering device and the second filtering device, and is used for taking the first filtering image or the second filtering image as a filtering output image and outputting the filtering output image.
Next, the detailed structure of the field environment-based mode switching platform of the present invention will be further described.
In the field environment based mode switching platform: the first filtering device includes a spatial domain transform unit for transforming the shape correction image from a spatial domain to a frequency domain upon receiving the first mode selection signal, a frequency domain transform unit for setting a high frequency component greater than a preset cutoff frequency in the transformed signal to zero and other frequency components to remain to obtain a processed signal, and a cutoff processing unit for inverse-transforming the processed signal from the frequency domain to the spatial domain to obtain a first filtered image.
In the field environment based mode switching platform: each image acquisition unit performs image data acquisition with 960 × 540 resolution when the operation mode is the low resolution acquisition mode.
In the field environment based mode switching platform: when the working mode is a high-resolution acquisition mode, each image acquisition unit acquires image data at 1920 × 1080 resolution.
In the field environment based mode switching platform: when the working mode of each image acquisition unit is a low-resolution acquisition mode, acquiring image data at a low frame rate: when the working mode of each image acquisition unit is a high-resolution acquisition mode, image data acquisition is carried out at a high frame rate.
In the field environment based mode switching platform: when the working mode of each image acquisition unit is a low-resolution acquisition mode, acquiring image data at a frame rate of 10 frames per second; when the working mode is the high-resolution acquisition mode, each image acquisition unit acquires image data at a frame rate of 50 frames per second.
In the field environment-based mode switching platform, the method further comprises: and the signal-to-noise ratio improving device is connected with the automatic restoration device and is used for performing signal-to-noise ratio improving operation on the field reference image when the signal-to-noise ratio level of the field reference image is less than the preset lower-limit signal-to-noise ratio level before the automatic restoration device performs automatic restoration on the field reference image, replacing the field reference image with the field reference image subjected to the signal-to-noise ratio improving operation and inputting the field reference image into the automatic restoration device, and not performing the signal-to-noise ratio improving operation on the field reference image when the signal-to-noise ratio level of the field reference image is greater than or equal to the preset lower-limit.
In the field environment-based mode switching platform, the method further comprises: and the DRAM storage device is connected with the automatic recovery device and is used for pre-storing the preset lower limit signal-to-noise ratio grade.
In the field environment-based mode switching platform, the method further comprises: and the mains supply conversion equipment is connected with the mains supply input interface and is used for converting the received mains supply voltage into the power supply voltages respectively required by the first filtering equipment, the second filtering equipment, the edge detection equipment, the mean value analysis equipment, the mode selection equipment and the filtering output equipment.
In addition, dram (dynamic Random Access memory), which is a dynamic Random Access memory, is the most common system memory. DRAM can hold data only for a short time. To retain data, DRAM uses capacitive storage, so must be refreshed (refresh) once at intervals, and if the memory cells are not refreshed, the stored information is lost. (shutdown will lose data). Dynamic RAM is also comprised of a number of basic memory cells multiplexed by row and column address pins.
The structure of the DRAM is simple and efficient, and each bit only needs one transistor and one capacitor. However, the capacitance inevitably has leakage phenomenon, which causes data error if the charge is insufficient, and therefore, the capacitance must be periodically refreshed (precharged), which is also a big feature of the DRAM. Moreover, the charging and discharging of the capacitor requires a process, and the refresh frequency cannot be raised infinitely (frequency barrier), which results in that the frequency of the DRAM can easily reach the upper limit, and even if the advanced process is supported, the effect is very small. With the advancement of technology and the desire of people to overclock, these frequency barriers are being solved slowly.
By adopting the mode switching platform based on the field environment, aiming at the technical problem that the acupuncture point laser instrument in the prior art is lack of an illegal operation alarming mechanism, the filtering output equipment is used for taking the first filtering image or the second filtering image as a filtering output image and outputting the filtering output image; the switch control equipment is connected with the acupuncture point laser instrument and is used for closing the acupuncture point laser instrument when the human body shape of illegal operation exists in the filtering output image, and otherwise, keeping the opening mode of the acupuncture point laser instrument; in the switch control equipment, the body shape of the illegal operation human body is a preset human body pattern, and the body shape of the illegal operation human body is one or more; thereby solving the technical problem.
It is to be understood that while the present invention has been described in conjunction with the preferred embodiments thereof, it is not intended to limit the invention to those embodiments. It will be apparent to those skilled in the art from this disclosure that many changes and modifications can be made, or equivalents modified, in the embodiments of the invention without departing from the scope of the invention. Therefore, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention are still within the scope of the protection of the technical solution of the present invention, unless the contents of the technical solution of the present invention are departed.