Invention content
The present invention provides a kind of computer picture recognition formula dredging systems, can be in foreign matter identification, using customization
Image recognition mechanism, to improve the rate of identification operation, it is often more important that, it can detect liquid unsmooth flowing in sanitary ware
In the case of, the concrete condition based on the foreign matter size recognized selects different dredging patterns.
More specifically, the present invention at least has inventive point at following three:
It (1) can be in the case where detecting liquid unsmooth flowing in sanitary ware, based on the specific of the foreign matter size recognized
Situation selects different dredging patterns, to ensure the dredging effect under various stopping states;
(2) being applied in combination by the double-deck recognition mode cuts down the operand of target identification from level to level, to improve identification
The rate of operation;
(3) the homomorphic filtering selection of times mechanism based on the real-time signal-to-noise ratio size of image is established so that filtered figure
As meeting quality requirement.
According to an aspect of the present invention, a kind of computer picture recognition formula sanitary ware dredging system, the system packet are provided
It includes:
Liquid level detection device is arranged in men's sanitary ware, for detecting the liquid height in the men's sanitary ware, to obtain
Real-time level, and when the real-time level is more than or equal to preset height threshold value, send out sanitary ware jam signal;
High-definition camera is arranged in the top of the men's sanitary ware, for clapping the liquid in the men's sanitary ware
It takes the photograph, to obtain sanitary ware liquid image, and exports the sanitary ware liquid image;
Analysis signal-to-noise ratio (SNR) equipment is connect with the high-definition camera, for receiving the sanitary ware liquid image, and to described
Sanitary ware liquid image executes Analysis signal-to-noise ratio (SNR), to obtain and export real-time signal-to-noise ratio;
Filter patterns select equipment, are connect with the Analysis signal-to-noise ratio (SNR) equipment, for receiving the real-time signal-to-noise ratio, and base
The number of continuous homomorphic filtering is executed to the sanitary ware liquid image in the size decision of the real-time signal-to-noise ratio, to obtain simultaneously
Export continuous filtering image, wherein the real-time signal-to-noise ratio is bigger, is filtered to the continuous homomorphism that the sanitary ware liquid image executes
The number of wave is fewer;
Background separation equipment is connect with filter patterns selection equipment, for receiving sanitary ware liquid image, to described clean
Have liquid image and carry out background separation operation, to obtain image after separating background and be exported as foreground image;
Perspective process equipment is connect with the background separation equipment, for receiving the foreground image, and by the foreground
The pixel that gray value is less than or equal to default gray threshold in image will own as initialized pixel point in the foreground image
Initialized pixel point is spliced into initialization fragment;
Channel value analytical equipment is connect with the perspective process equipment, will be described first for receiving the initialization fragment
The R channel values of each pixel in beginningization fragment square, after the summed square of the quadratic sum channel B values of G channel values
As a result extracting operation is carried out, to obtain the operation result of corresponding pixel points.
Specific implementation mode
Embodiment of the present invention will be described in detail below.
Sanitary ware refers in toilet, the ceramics of kitchen application and hardware home equipment.Sanitary ware is mainly by ceramics, glass
The materials such as steel, plastics, artificial marble (agate), stainless steel are made.China sanitary ware quality is pure white, color and luster is soft, structure
Densification, intensity is larger, thermal stability is good.Including:Toilet seat, wash basin, sink, mating sanitary ware etc..Household health
Sanitary ware means the utensil of people's washing or washing implement, toilet bath room and kitchen is used for, such as wash basin, toilet seat, bathtub, sink
Deng, for its configuration discharge aquatic products be known as sanitary ware accessory.
However, the producer of sanitary ware in the prior art only focuses in founding materials and casting technique, and for making
It is not considered with often occurring foreign matters from being blocked situation in the process, leads to the sanitary ware dredging inferior capabilities of sale.
In order to overcome above-mentioned deficiency, the present invention to build a kind of computer picture recognition formula sanitary ware dredging system.
The computer picture recognition formula sanitary ware dredging system shown according to an embodiment of the present invention includes:
Liquid level detection device is arranged in men's sanitary ware, for detecting the liquid height in the men's sanitary ware, to obtain
Real-time level, and when the real-time level is more than or equal to preset height threshold value, send out sanitary ware jam signal;
High-definition camera is arranged in the top of the men's sanitary ware, for clapping the liquid in the men's sanitary ware
It takes the photograph, to obtain sanitary ware liquid image, and exports the sanitary ware liquid image;
Analysis signal-to-noise ratio (SNR) equipment is connect with the high-definition camera, for receiving the sanitary ware liquid image, and to described
Sanitary ware liquid image executes Analysis signal-to-noise ratio (SNR), to obtain and export real-time signal-to-noise ratio;
Filter patterns select equipment, are connect with the Analysis signal-to-noise ratio (SNR) equipment, for receiving the real-time signal-to-noise ratio, and base
The number of continuous homomorphic filtering is executed to the sanitary ware liquid image in the size decision of the real-time signal-to-noise ratio, to obtain simultaneously
Export continuous filtering image, wherein the real-time signal-to-noise ratio is bigger, is filtered to the continuous homomorphism that the sanitary ware liquid image executes
The number of wave is fewer;
Background separation equipment is connect with filter patterns selection equipment, for receiving sanitary ware liquid image, to described clean
Have liquid image and carry out background separation operation, to obtain image after separating background and be exported as foreground image;
Perspective process equipment is connect with the background separation equipment, for receiving the foreground image, and by the foreground
The pixel that gray value is less than or equal to default gray threshold in image will own as initialized pixel point in the foreground image
Initialized pixel point is spliced into initialization fragment;
Channel value analytical equipment is connect with the perspective process equipment, will be described first for receiving the initialization fragment
The R channel values of each pixel in beginningization fragment square, after the summed square of the quadratic sum channel B values of G channel values
As a result extracting operation is carried out, to obtain the operation result of corresponding pixel points;
Crumb data extraction equipment is connect with the channel value analytical equipment, for receiving in the initialization fragment
The operation result of each pixel carries out maximum amplitude analysis, by acquisition to the operation result of multiple pixels of each row
Variation amplitude of the maximum amplitude as respective column exports the variation amplitude of each row in the initialization fragment;
Foreign matter size identification equipment is connect with the crumb data extraction equipment, and being used for will be each in the initialization fragment
The larger half of numerical value is arranged in the variation amplitude of a row splits from the initialization fragment, divides fragment again to form,
To it is described divide again fragment carry out foreign matter target analysis with obtain it is described divide again in fragment each foreign matter target and each
The length of foreign matter target, and exported the length of maximum foreign matter target as foreign matter target size
Strategy decision equipment is connect with the foreign matter size identification equipment, for receiving the foreign matter target size, and is worked as
When the foreign matter target size is less than or equal to pre-set length threshold, automatically cleaning control signal is sent out, when the foreign matter target size
When more than the pre-set length threshold, secondary control signal is sent out;
Self cleaning arrangement is connect with the strategy decision equipment, right for when receiving the automatically cleaning and controlling signal
The men's sanitary ware executes automatically cleaning processing, to remove the foreign matter in the men's sanitary ware, dredges the men's sanitary ware;
Phonetic warning equipment is connect with the self cleaning arrangement, for when receiving the secondary and controlling signal,
It plays in real time and manually dredges corresponding speech play file with request, meanwhile, it also plays in real time corresponding with the men's sanitary ware
Number;
Wherein, the self cleaning arrangement includes presser unit and the unit that cracks, and the presser unit is arranged described men's
On the Flushing nozzle of sanitary ware, for pressurizeing to the flushing water from the Flushing nozzle, the unit that cracks is arranged in institute
It states at the liquid flowing outlet in men's sanitary ware, for carrying out gap extension to the liquid flowing outlet in the men's sanitary ware.
Then, continue to carry out the concrete structure of the computer picture recognition formula sanitary ware dredging system of the present invention further
Explanation.
In the computer picture recognition formula sanitary ware dredging system:
In the crumb data extraction equipment, maximum amplitude point is carried out to the operation result of multiple pixels of each row
Analysis includes:The maximum value and minimum value in the operation result of multiple pixels of each row are obtained, the maximum value is subtracted into institute
Minimum value is stated to obtain the maximum amplitude.
In the computer picture recognition formula sanitary ware dredging system:
The phonetic warning equipment is additionally operable to when receiving the automatically cleaning control signal, automatically into silent mode.
In the computer picture recognition formula sanitary ware dredging system:
The self cleaning arrangement is additionally operable to, when receiving the secondary control signal, not execute to described men's clean
The automatically cleaning of tool is handled.
Meanwhile the computer picture recognition formula sanitary ware dredging method shown according to an embodiment of the present invention includes:
Using liquid level detection device, it is arranged in men's sanitary ware, for detecting the liquid height in the men's sanitary ware, with
Real-time level is obtained, and when the real-time level is more than or equal to preset height threshold value, sends out sanitary ware jam signal;
Using high-definition camera, be arranged in the top of the men's sanitary ware, for the liquid in the men's sanitary ware into
Row shooting, to obtain sanitary ware liquid image, and exports the sanitary ware liquid image;
Using Analysis signal-to-noise ratio (SNR) equipment, it is connect with the high-definition camera, for receiving the sanitary ware liquid image, and it is right
The sanitary ware liquid image executes Analysis signal-to-noise ratio (SNR), to obtain and export real-time signal-to-noise ratio;
Equipment is selected using filter patterns, is connect with the Analysis signal-to-noise ratio (SNR) equipment, for receiving the real-time signal-to-noise ratio,
And determine to execute the sanitary ware liquid image number of continuous homomorphic filtering based on the size of the real-time signal-to-noise ratio, to obtain
It obtains and exports continuous filtering image, wherein the real-time signal-to-noise ratio is bigger, is executed to the sanitary ware liquid image continuous same
The number of state filtering is fewer;
Using background separation equipment, it is connect with filter patterns selection equipment, for receiving sanitary ware liquid image, to institute
It states sanitary ware liquid image and carries out background separation operation, to obtain image after separating background and be exported as foreground image;
Prospect of the application processing equipment is connect with the background separation equipment, for receiving the foreground image, and will be described
Gray value is less than or equal to the pixel of default gray threshold as initialized pixel point in foreground image, will be in the foreground image
All initialized pixel points are spliced into initialization fragment;
It using channel value analytical equipment, is connect with the perspective process equipment, for receiving the initialization fragment, by institute
State the R channel values of each pixel in initialization fragment square, the summed square of the quadratic sum channel B values of G channel values
Result afterwards carries out extracting operation, to obtain the operation result of corresponding pixel points;
It using crumb data extraction equipment, is connect with the channel value analytical equipment, for receiving the initialization fragment
In each pixel operation result, maximum amplitude analysis is carried out to the operation result of multiple pixels of each row, will be obtained
Variation amplitude of the maximum amplitude obtained as respective column exports the variation amplitude of each row in the initialization fragment;
It using foreign matter size identification equipment, connect, is used for the initialization fragment with the crumb data extraction equipment
In each row variation amplitude in the larger half of numerical value arrange and split from the initialization fragment, with form divide again it is broken
Piece carries out foreign matter target analysis to obtain each foreign matter target and each divided again in fragment to the fragment of dividing again
The length of a foreign matter target, and exported the length of maximum foreign matter target as foreign matter target size
Using strategy decision equipment, it is connect with the foreign matter size identification equipment, for receiving the foreign matter target size,
And when the foreign matter target size is less than or equal to pre-set length threshold, automatically cleaning control signal is sent out, when the foreign matter target
When size is more than the pre-set length threshold, secondary control signal is sent out;
It using self cleaning arrangement, is connect with the strategy decision equipment, for receiving the automatically cleaning control signal
When, automatically cleaning processing is executed to the men's sanitary ware, to remove the foreign matter in the men's sanitary ware, dredges the men's sanitary ware;
It using phonetic warning equipment, is connect with the self cleaning arrangement, for receiving the secondary control letter
Number when, in real time play with request manually dredge corresponding speech play file, meanwhile, also in real time play and the men's sanitary ware pair
The number answered;
Wherein, the self cleaning arrangement includes presser unit and the unit that cracks, and the presser unit is arranged described men's
On the Flushing nozzle of sanitary ware, for pressurizeing to the flushing water from the Flushing nozzle, the unit that cracks is arranged in institute
It states at the liquid flowing outlet in men's sanitary ware, for carrying out gap extension to the liquid flowing outlet in the men's sanitary ware.
Then, continue to carry out the specific steps of the computer picture recognition formula sanitary ware dredging method of the present invention further
Explanation.
In the computer picture recognition formula sanitary ware dredging method:
In the crumb data extraction equipment, maximum amplitude point is carried out to the operation result of multiple pixels of each row
Analysis includes:The maximum value and minimum value in the operation result of multiple pixels of each row are obtained, the maximum value is subtracted into institute
Minimum value is stated to obtain the maximum amplitude.
In the computer picture recognition formula sanitary ware dredging method:
The phonetic warning equipment is additionally operable to when receiving the automatically cleaning control signal, automatically into silent mode.
In the computer picture recognition formula sanitary ware dredging method:
The self cleaning arrangement is additionally operable to, when receiving the secondary control signal, not execute to described men's clean
The automatically cleaning of tool is handled.
In addition, image filtering, i.e., press down the noise of target image under conditions of retaining image detail feature as possible
System, is indispensable operation in image preprocessing, and the quality for the treatment of effect will directly influence subsequent image processing and divide
The validity and reliability of analysis.
Not perfect due to imaging system, transmission medium and recording equipment etc., digital picture is in its formation, transmission log mistake
It is often polluted by a variety of noises in journey.In addition, certain links in image procossing when the picture object inputted and are not so good as pre-
Also noise can be introduced when thinking in result images.These noises often show as one and cause the isolated of stronger visual effect on the image
Pixel or block of pixels.Generally, noise signal it is uncorrelated to the object to be studied it occur with useless message form, upset figure
The observable information of picture.For data image signal, psophometer is either large or small extreme value, these extreme values are acted on by plus-minus
On the true gray value of image pixel, cause bright, dim spot to interfere image, greatly reduce picture quality, influence image restoration,
The progress of the subsequent work such as segmentation, feature extraction, image recognition.Construct it is a kind of it is effective inhibit noise filter must take into consideration
Two basic problems:The noise that can be effectively removed in target and background;Meanwhile can protect well image object shape,
Size and specific geometry and topological features.
In common image filtering pattern one is nonlinear filters, it is, in general, that when signal spectrum and noise frequency
When composing aliasing or such as the noise caused by mission nonlinear or there are non-gaussian to make an uproar when containing nonadditivity noise in signal
Sound etc.), traditional linear filter technology, if Fourier converts, while filtering out noise, always blurred picture is thin in some way
Section (such as edge) and then the extraction property reduction for leading to the positioning accuracy and feature as linear character.And nonlinear filter is
Based on a kind of Nonlinear Mapping relationship to input signal, often a certain specific noise approximatively can be mapped as zero and retained
Signal wants feature, thus it can overcome the shortcoming of linear filter to a certain extent.
Computer picture recognition formula sanitary ware dredging system using the present invention lacks foreign matter for sanitary ware in the prior art and dredges
The technical issues of logical ability, first, being applied in combination and establishing based on the real-time signal-to-noise ratio of image by the double-deck recognition mode
The homomorphic filtering selection of times mechanism of size realizes further promotion to image recognition efficiency and precision, particularly important
It is, it can be in the case where detecting liquid unsmooth flowing in sanitary ware, the concrete condition selection based on the foreign matter size recognized
Different dredging patterns promotes the service life of sanitary ware to ensure the dredging effect under various stopping states.
It is understood that although the present invention has been disclosed in the preferred embodiments as above, above-described embodiment not to
Limit the present invention.For any person skilled in the art, without departing from the scope of the technical proposal of the invention,
Many possible changes and modifications all are made to technical solution of the present invention using the technology contents of the disclosure above, or are revised as
With the equivalent embodiment of variation.Therefore, every content without departing from technical solution of the present invention is right according to the technical essence of the invention
Any simple modifications, equivalents, and modifications made for any of the above embodiments still fall within the range of technical solution of the present invention protection
It is interior.