Summary of the invention
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 where, the concrete condition based on the foreign matter size recognized selects different dredging modes.
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 modes, to guarantee 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, to improve identification from level to level
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, issue sanitary ware jam signal;
The top of the men's sanitary ware is arranged in high-definition camera, 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, connect with the Analysis signal-to-noise ratio (SNR) equipment, for receiving the real-time signal-to-noise ratio, and base
Determine the number that continuous homomorphic filtering is executed to the sanitary ware liquid image, in the size 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, filters to the continuous homomorphism that the sanitary ware liquid image executes
The number of wave is fewer;
Background separation equipment is connect, for receiving sanitary ware liquid image, to described clean with filter patterns selection equipment
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 prospect
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 value of each of beginningization fragment pixel square, after the summed square of the quadratic sum channel B value of G channel value
As a result extracting operation is carried out, to obtain the operation result of corresponding pixel points.
Specific embodiment
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 is soft, structure
Densification, intensity is larger, thermal stability is good.It include: 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 has built 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, issue sanitary ware jam signal;
The top of the men's sanitary ware is arranged in high-definition camera, 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, connect with the Analysis signal-to-noise ratio (SNR) equipment, for receiving the real-time signal-to-noise ratio, and base
Determine the number that continuous homomorphic filtering is executed to the sanitary ware liquid image, in the size 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, filters to the continuous homomorphism that the sanitary ware liquid image executes
The number of wave is fewer;
Background separation equipment is connect, for receiving sanitary ware liquid image, to described clean with filter patterns selection equipment
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 prospect
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 value of each of beginningization fragment pixel square, after the summed square of the quadratic sum channel B value of G channel value
As a result extracting operation is carried out, to obtain the operation result of corresponding pixel points;
Crumb data extract 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 to the operation result of multiple pixels of each column, by acquisition
Variation amplitude of the maximum amplitude as respective column exports the variation amplitude of each column in the initialization fragment;
Foreign matter size identification equipment is connect with the crumb data extract equipment, and being used for will be each in the initialization fragment
The biggish half of numerical value is arranged in the variation amplitude of a column 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 in fragment again 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, issues automatically cleaning and control signal, when the foreign matter target size
When greater than the pre-set length threshold, issues secondary and control signal;
Self cleaning arrangement is connect with the strategy decision equipment, right for when receiving automatically cleaning control 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 secondary control signal,
It plays in real time and manually dredges corresponding voice played 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 specific structure of computer picture recognition formula sanitary ware dredging system of the invention further
Explanation.
In the computer picture recognition formula sanitary ware dredging system:
In the crumb data extract equipment, maximum amplitude point is carried out to the operation result of multiple pixels of each column
Analysis includes: the maximum value and minimum value in the operation result for obtain multiple pixels of each column, and the maximum value is subtracted 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 also used 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 also used to not execute when receiving the secondary control signal 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, issues sanitary ware jam signal;
Using high-definition camera, the top of the men's sanitary ware is set, 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 the number that continuous homomorphic filtering is executed to the sanitary ware liquid image is determined 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, executes 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 initialization each of the fragment R channel value of pixel square, the summed square of the quadratic sum channel B value of G channel value
Result afterwards carries out extracting operation, to obtain the operation result of corresponding pixel points;
It using crumb data extract 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 column, will be obtained
Variation amplitude of the maximum amplitude obtained as respective column exports the variation amplitude of each column in the initialization fragment;
It using foreign matter size identification equipment, connect, is used for the initialization fragment with the crumb data extract equipment
In each column variation amplitude in the biggish 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 the fragment of dividing again to obtain each foreign matter target and each divided in fragment 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, issues automatically cleaning and control signal, when the foreign matter target
When size is greater than the pre-set length threshold, issues secondary and control signal;
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 voice played 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 computer picture recognition formula sanitary ware dredging method of the invention further
Explanation.
In the computer picture recognition formula sanitary ware dredging method:
In the crumb data extract equipment, maximum amplitude point is carried out to the operation result of multiple pixels of each column
Analysis includes: the maximum value and minimum value in the operation result for obtain multiple pixels of each column, and the maximum value is subtracted 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 also used 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 also used to not execute when receiving the secondary control signal 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 minutia as far 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 formed at it, transmission log mistake
The often pollution 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 on the image and cause the isolated of stronger visual effect
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.The filter for constructing a kind of effectively inhibition noise must be taken 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.
One of common image filtering mode is nonlinear filter, it is, in general, that when signal spectrum and noise frequency
When composing aliasing or such as the noise as 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.
Using computer picture recognition formula sanitary ware dredging system of the invention, lacks foreign matter for sanitary ware in the prior art and dredge
The technical issues of logical ability, firstly, 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 modes promotes the service life of sanitary ware to guarantee 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, anything that does not depart from the technical scheme of the invention are 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.