Disclosure of Invention
In order to solve the problem that the cabinet mouse suffers, the invention provides a rat-proof intelligent cabinet, which determines a sharpening processing strategy for each fragment based on a sequencing result of an average value of Y-channel values of each fragment in an image, wherein different sharpening strengths of each fragment are determined based on a fuzzy strength comparison table; a double-stage filtering mode and a self-adaptive binarization threshold value adjusting mode are adopted, so that the image preprocessing effect is improved; the processing strategy of the image is driven through customized analysis of the image, and comprises the steps of starting median filtering operation of the image when shielding is not confirmed so as to replace the filtered image with the image for output, and wirelessly sending the shielding alarm signal to a remote management server when shielding is confirmed so as to take remote control measures and overcome the shielding problem on site.
According to an aspect of the present invention, there is provided a rat-proof intelligent cabinet, including:
the distance analysis equipment is arranged in the assembling seam of the cabinet, is positioned at one end of the assembling seam, and is used for acquiring distance data of the other end of the assembling seam; and the current capturing device is used for acquiring current image data of the internal environment of the cabinet to obtain a corresponding current high-definition image and outputting the current high-definition image.
More specifically, in the rat-proof intelligent cabinet, the rat-proof intelligent cabinet further comprises:
and the early warning control equipment is connected with the current capturing equipment and used for receiving the current high-definition image, extracting each pixel value of each pixel point in the current high-definition image, calculating a standard deviation based on each pixel value of each pixel point in the current high-definition image, sending a shielding early warning signal when the standard deviation exceeds the limit, and sending a non-shielding prompt signal when the standard deviation does not exceed the limit.
More specifically, in the rat-proof intelligent cabinet, the rat-proof intelligent cabinet further comprises:
the sub-image composition device is connected with the early warning control device and used for extracting each brightness value of each pixel point in the current high-definition image when the shielding early warning signal is received, taking the pixel point with the brightness value smaller than or equal to a preset brightness threshold value as a shielding pixel point, removing an isolated shielding pixel point in the current high-definition image and forming each non-isolated shielding pixel point in the current high-definition image into each shielding sub-image; and the alarm control equipment is connected with the subimage composition equipment and is used for receiving each shielding subimage in the current high-definition image, calculating the number of pixel points occupied by each shielding subimage to serve as the area of the corresponding shielding subimage, eliminating the shielding subimages with the area smaller than or equal to a preset area threshold value, accumulating the areas of the rest shielding subimages to obtain the total shielding area, sending a shielding alarm signal when the total shielding area exceeds the limit, and sending a shielding unconfirmed signal when the total shielding area does not exceed the limit.
More specifically, in the rat-proof intelligent cabinet, the rat-proof intelligent cabinet further comprises:
the decision control device is connected with the alarm control device, is used for starting a median filtering operation on the current high-definition image when receiving the shielding unconfirmed signal so as to replace the current high-definition image with the filtered image for outputting, and is also used for wirelessly sending the shielding alarm signal to a remote management server when receiving the shielding alarm signal; the recursive filtering device is connected with the current capturing device and used for receiving the current high-definition image and performing self-adaptive recursive filtering processing on the current high-definition image to obtain and output a recursive filtering image; the wiener filtering equipment is connected with the recursive filtering equipment and used for receiving the recursive filtering image and executing wiener filtering processing with different dynamics based on the noise amplitude in the recursive filtering image so as to obtain a corresponding wiener filtering image; the intelligent blocking equipment is connected with the wiener filtering equipment and used for receiving the wiener filtering image, determining the fuzzy degree of the wiener filtering image and blocking the wiener filtering image based on the fuzzy degree of the wiener filtering image so as to obtain a plurality of image blocks with the same size; the parameter adjusting device is connected with the intelligent block device and used for receiving the image blocks and executing the following processing to each image block: acquiring a binarization threshold of the image blocks based on an OTSU algorithm, acquiring each binarization threshold of each image block in the neighborhood of the image blocks based on the OTSU algorithm, adjusting the binarization thresholds of the image blocks based on each binarization threshold of each image block in the neighborhood of the image blocks to obtain adjusted thresholds of the image blocks, and outputting the adjusted thresholds of the image blocks; in the parameter adjustment device, adjusting the binarization threshold of the image block based on each binarization threshold of each image block in the image block neighborhood to obtain an adjusted threshold of the image block includes: the higher the matching degree of the image block neighborhood image block and the image block is, the greater the influence degree of the image block neighborhood image block on the binarization threshold value of the image block is; a binarization executing device connected with the parameter adjusting device and used for receiving the plurality of image blocks and the adjusted threshold value corresponding to each image block, performing binarization processing on the image blocks based on the adjusted threshold value corresponding to each image block to obtain binarization blocks, and outputting each binarization block corresponding to each image block; the block combination equipment is connected with the binarization executing equipment and used for receiving each binarization block, combining each binarization block, performing edge fusion on the combined image to obtain a fused image and outputting the fused image as a block combination image; the contrast enhancement device is connected with the block combination device and used for receiving the block combination image and executing contrast enhancement processing on the block combination image to obtain a corresponding processed combination image; the SD memory chip is respectively connected with the fragment sorting equipment and the ambiguity processing equipment, and is used for storing the preset number and storing an ambiguity strength comparison table, wherein the ambiguity strength comparison table stores the strength corresponding to various ambiguities, and the ambiguity strength comparison table takes the ambiguity as an index; the fragment sorting device is connected with the contrast enhancement device and used for receiving the processed combined image and carrying out average value calculation on Y channel values of all fragments of the processed combined image to obtain average values of all Y channel values of all fragments, wherein the fragments are the same in size; the fragment sorting device is further configured to sort the average values of the Y channel values of the fragments, output a plurality of fragments with preset numbers of sequence numbers arranged at the head and a plurality of fragments with preset numbers of sequence numbers arranged at the tail as the fragments to be processed, and output the fragments except the fragments to be processed in the processed combined image as background fragments; in the patch sorting apparatus, performing an average calculation of Y-channel values for respective patches of the processed combined image to obtain respective average values of Y-channel values for the respective patches includes: acquiring a Y channel value of each pixel point of each fragment, sequencing the Y channel values of the pixel points from large to small, and taking the Y channel value of the pixel point with the serial number arranged in the center as an average value of the Y channel values of the corresponding fragments; the ambiguity processing device is connected with the fragment sorting device and is used for receiving the fragments to be processed and the background fragments and executing the following operations for each fragment to be processed: performing corresponding sharpening processing on the fragments to be processed based on the fuzziness of the fragments to be processed to obtain corresponding sharpened fragments; the image reconstruction device is connected with the ambiguity processing device and is used for receiving a plurality of sharpening processing fragments, combining the sharpening processing fragments and the background fragments to obtain a fragment combination image and outputting the fragment combination image; and the quantity comparison device is connected with the image reconstruction device, extracts the sub-image of the mouse body to be detected with the same size as the preset reference mouse body sub-image from the fragment combination image based on the preset reference mouse body sub-image, subtracts the sub-image of the mouse body to be detected and the preset reference mouse body sub-image to obtain a difference image, calculates the quantity of pixels with non-zero pixel values in the difference image, and sends out a mouse body unidentified signal when the quantity of the non-zero pixels is greater than or equal to the first preset pixel quantity threshold value.
More specifically, in the rat-proof intelligent cabinet: the number comparison device is further configured to send a mouse identification signal when the number of non-zero pixels is smaller than the first preset pixel number threshold.
More specifically, in the rat-proof intelligent cabinet: the size of the filtering window used in the median filtering operation is proportional to the total area of occlusion.
More specifically, in the rat-proof intelligent cabinet: in the ambiguity processing device, the greater the ambiguity, the greater the strength of performing corresponding sharpening processing on the fragments to be processed, and the greater the dynamic distribution range of the fragments to be processed, the smaller the ambiguity.
More specifically, in the rat-proof intelligent cabinet: in the intelligent blocking device, the smaller the degree of blur of the wiener filter image is, the larger the number of image blocks obtained by blocking the wiener filter image is.
Detailed Description
The embodiment of the rat-proof type intelligent cabinet of the present invention will be described in detail below.
From cabinet to kitchen, the whole cabinet is at a certain distance from the concept of the whole kitchen, and the products applied in the kitchen are not matched because the high standardization is not achieved and some facilities are not compatible. The whole cabinet represents different design concepts, service quality and life quality, not only considers walls, tops, floors, doors and windows and light, but also comprises furniture and electrical equipment used in the cabinet, and is a wider concept.
The cabinet is composed of three types of floor cabinet, wall cabinet and high cabinet, and has four functions of washing, cooking and storing. The cabinet generally comprises a table top (benchtops), a door panel, a cabinet body, kitchen electricity, a water tank and hardware fittings.
In order to overcome the defects, the invention builds the rat-proof intelligent cabinet, and can effectively solve the corresponding technical problems.
The rat-proof intelligent cabinet shown according to the embodiment of the invention comprises:
the distance analysis equipment is arranged in the assembling seam of the cabinet, is positioned at one end of the assembling seam, and is used for acquiring distance data of the other end of the assembling seam;
and the current capturing device is used for acquiring current image data of the internal environment of the cabinet to obtain a corresponding current high-definition image and outputting the current high-definition image.
Next, the detailed structure of the rat-proof intelligent cabinet of the present invention will be further described.
In the protection against rodents formula intelligent cabinet, still include:
and the early warning control equipment is connected with the current capturing equipment and used for receiving the current high-definition image, extracting each pixel value of each pixel point in the current high-definition image, calculating a standard deviation based on each pixel value of each pixel point in the current high-definition image, sending a shielding early warning signal when the standard deviation exceeds the limit, and sending a non-shielding prompt signal when the standard deviation does not exceed the limit.
In the protection against rodents formula intelligent cabinet, still include:
the sub-image composition device is connected with the early warning control device and used for extracting each brightness value of each pixel point in the current high-definition image when the shielding early warning signal is received, taking the pixel point with the brightness value smaller than or equal to a preset brightness threshold value as a shielding pixel point, removing an isolated shielding pixel point in the current high-definition image and forming each non-isolated shielding pixel point in the current high-definition image into each shielding sub-image;
and the alarm control equipment is connected with the subimage composition equipment and is used for receiving each shielding subimage in the current high-definition image, calculating the number of pixel points occupied by each shielding subimage to serve as the area of the corresponding shielding subimage, eliminating the shielding subimages with the area smaller than or equal to a preset area threshold value, accumulating the areas of the rest shielding subimages to obtain the total shielding area, sending a shielding alarm signal when the total shielding area exceeds the limit, and sending a shielding unconfirmed signal when the total shielding area does not exceed the limit.
In the protection against rodents formula intelligent cabinet, still include:
the decision control device is connected with the alarm control device, is used for starting a median filtering operation on the current high-definition image when receiving the shielding unconfirmed signal so as to replace the current high-definition image with the filtered image for outputting, and is also used for wirelessly sending the shielding alarm signal to a remote management server when receiving the shielding alarm signal;
the recursive filtering device is connected with the current capturing device and used for receiving the current high-definition image and performing self-adaptive recursive filtering processing on the current high-definition image to obtain and output a recursive filtering image;
the wiener filtering equipment is connected with the recursive filtering equipment and used for receiving the recursive filtering image and executing wiener filtering processing with different dynamics based on the noise amplitude in the recursive filtering image so as to obtain a corresponding wiener filtering image;
the intelligent blocking equipment is connected with the wiener filtering equipment and used for receiving the wiener filtering image, determining the fuzzy degree of the wiener filtering image and blocking the wiener filtering image based on the fuzzy degree of the wiener filtering image so as to obtain a plurality of image blocks with the same size;
the parameter adjusting device is connected with the intelligent block device and used for receiving the image blocks and executing the following processing to each image block: acquiring a binarization threshold of the image blocks based on an OTSU algorithm, acquiring each binarization threshold of each image block in the neighborhood of the image blocks based on the OTSU algorithm, adjusting the binarization thresholds of the image blocks based on each binarization threshold of each image block in the neighborhood of the image blocks to obtain adjusted thresholds of the image blocks, and outputting the adjusted thresholds of the image blocks; in the parameter adjustment device, adjusting the binarization threshold of the image block based on each binarization threshold of each image block in the image block neighborhood to obtain an adjusted threshold of the image block includes: the higher the matching degree of the image block neighborhood image block and the image block is, the greater the influence degree of the image block neighborhood image block on the binarization threshold value of the image block is;
a binarization executing device connected with the parameter adjusting device and used for receiving the plurality of image blocks and the adjusted threshold value corresponding to each image block, performing binarization processing on the image blocks based on the adjusted threshold value corresponding to each image block to obtain binarization blocks, and outputting each binarization block corresponding to each image block;
the block combination equipment is connected with the binarization executing equipment and used for receiving each binarization block, combining each binarization block, performing edge fusion on the combined image to obtain a fused image and outputting the fused image as a block combination image;
the contrast enhancement device is connected with the block combination device and used for receiving the block combination image and executing contrast enhancement processing on the block combination image to obtain a corresponding processed combination image;
the SD memory chip is respectively connected with the fragment sorting equipment and the ambiguity processing equipment, and is used for storing the preset number and storing an ambiguity strength comparison table, wherein the ambiguity strength comparison table stores the strength corresponding to various ambiguities, and the ambiguity strength comparison table takes the ambiguity as an index;
the fragment sorting device is connected with the contrast enhancement device and used for receiving the processed combined image and carrying out average value calculation on Y channel values of all fragments of the processed combined image to obtain average values of all Y channel values of all fragments, wherein the fragments are the same in size; the fragment sorting device is further configured to sort the average values of the Y channel values of the fragments, output a plurality of fragments with preset numbers of sequence numbers arranged at the head and a plurality of fragments with preset numbers of sequence numbers arranged at the tail as the fragments to be processed, and output the fragments except the fragments to be processed in the processed combined image as background fragments; in the patch sorting apparatus, performing an average calculation of Y-channel values for respective patches of the processed combined image to obtain respective average values of Y-channel values for the respective patches includes: acquiring a Y channel value of each pixel point of each fragment, sequencing the Y channel values of the pixel points from large to small, and taking the Y channel value of the pixel point with the serial number arranged in the center as an average value of the Y channel values of the corresponding fragments;
the ambiguity processing device is connected with the fragment sorting device and is used for receiving the fragments to be processed and the background fragments and executing the following operations for each fragment to be processed: performing corresponding sharpening processing on the fragments to be processed based on the fuzziness of the fragments to be processed to obtain corresponding sharpened fragments;
the image reconstruction device is connected with the ambiguity processing device and is used for receiving a plurality of sharpening processing fragments, combining the sharpening processing fragments and the background fragments to obtain a fragment combination image and outputting the fragment combination image;
and the quantity comparison device is connected with the image reconstruction device, extracts the sub-image of the mouse body to be detected with the same size as the preset reference mouse body sub-image from the fragment combination image based on the preset reference mouse body sub-image, subtracts the sub-image of the mouse body to be detected and the preset reference mouse body sub-image to obtain a difference image, calculates the quantity of pixels with non-zero pixel values in the difference image, and sends out a mouse body unidentified signal when the quantity of the non-zero pixels is greater than or equal to the first preset pixel quantity threshold value.
In the rat-proof intelligent cabinet: the number comparison device is further configured to send a mouse identification signal when the number of non-zero pixels is smaller than the first preset pixel number threshold.
In the rat-proof intelligent cabinet: the size of the filtering window used in the median filtering operation is proportional to the total area of occlusion.
In the rat-proof intelligent cabinet: in the ambiguity processing device, the greater the ambiguity, the greater the strength of performing corresponding sharpening processing on the fragments to be processed, and the greater the dynamic distribution range of the fragments to be processed, the smaller the ambiguity.
And in the ratproof intelligent cabinet: in the intelligent blocking device, the smaller the degree of blur of the wiener filter image is, the larger the number of image blocks obtained by blocking the wiener filter image is.
In addition, the number comparison device is implemented by a PLD device. Programmable Logic device pld (programmable Logic device) is an important branch of ASIC, and is a semi-custom circuit produced by manufacturers as a general-purpose device, and users can program the device to implement required functions. Programmable Logic array PLA (programmable Logic array), and appeared in the middle of the 70's of the 20 th century, consists of a programmable AND array and a programmable OR array. Programmable Array Logic (PAL) devices, which were introduced first by MMI corporation of the United states in 1977, have become popular because of their flexible design and wide variety of output structures.
The basic structure of a PAL device feeds a programmable and array output product term to an or array, and the logic expression implemented by the PAL device has the form of a sum of products, and thus can describe any boolean transfer function.
PAL devices are built internally of five basic types: (1) a basic array structure; (2) a programmable I/O structure; (3) a register output structure with feedback; (4) an exclusive or structure: (5) an arithmetic functional structure.
By adopting the rat-proof intelligent cabinet, aiming at the technical problem that the cabinet is difficult to solve the internal rat damage in the prior art, the sharpening processing strategy of each fragment is determined based on the sequencing result of the average value of the Y channel values of each fragment in the image, wherein different sharpening strengths of each fragment are determined based on the ambiguity strength comparison table; a double-stage filtering mode and a self-adaptive binarization threshold value adjusting mode are adopted, so that the image preprocessing effect is improved; the processing strategy of the image is driven through customized analysis of the image, and comprises the steps of starting median filtering operation of the image when shielding is not confirmed so as to replace the filtered image with the image for output, and wirelessly sending the shielding alarm signal to a remote management server when shielding is confirmed so as to take remote control measures and overcome the shielding problem on site.
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.