Feed robot and method based on image procossing
The present invention is Application No. 201710091418.1, the applying date to be on 2 21st, 2017, entitled " be based on
The divisional application of the patent of the feed robot and method of image procossing ".
Technical field
The present invention relates to image processing field, more particularly to a kind of feed robot and method based on image procossing.
Background technology
Done detailed literature record at first for closestool is Chinese Northern Song Dynasty OUYANG xiu《Resign from office and return home record two》In " wood
Nightstool ",《Ci yuan》In it is construed to " wooden closestool ".The closestool that Ancient Chinese Folk uses is a kind of circle wood with cover
Bucket, is smeared with tung oil or first-class waterproof red paint.
1596, beerage John Ha Lingdun invented first practical closestool --- and one has water tank and bath
The wooden seat of valve.
1778, Britain's inventor's Joseph's cloth Lame improved the design of water closet, employed as controlled water tank
In water-carrying capacity three ball valves, and U-bend etc..
19th century, British government make laws, it is specified that must all install appropriate sewage disposal machine people, horse per building house
Bucket just starts to greatly improve.
1861, one pipeliner Thomas Ke Laipa of Britain invented a set of advanced water-saving flushing robot, gave up
Thing discharge just initially enters modernization period.
1885, the patent that Thomas's soil prestige good fortune obtains first full ceramic bowl in Britain, there is number every year thereafter
The patent of ten improvement is granted.The new ceramic factory (predecessor of Tangshan Ceramics Factory) of opening opened by Englishman in Tangshan produces within 1914
Chinese first ceramic bowl.
19th century, sixties water closet started American-European prevailing, to pass to the Asian countries such as Japan, South Korea later.
As can be seen here, closestool is with a long history, and its basic structure is shaped already, however, people can still run into when in use
Perplex below:When closestool blocks, chocking-up degree and plugging material inside closestool are not known, therefore, when being dredged,
Selection scheme one by one of having to goes to carry out artificial treatment, immediately so, it is also possible to do not realize the effect of dredging.
The content of the invention
In order to solve the above problems, the invention provides a kind of feed robot and method based on image procossing, first
The dredging material that various dredging dynamics differ is pre-stored in the different receiving spaces in toilet main body, secondly, determines average water
Flow velocity degree and target tamper type are that blocked state determines key element, again, using high-precision sensor and image recognition apparatus
Above-mentioned key element is accurately detected, and the dredging material that needs and dredging material needed for automatically opening up are determined according to testing result
The receiving space at place, so as to realize the automatic dredging of closestool.
According to an aspect of the present invention, there is provided a kind of feed robot based on image procossing, the robot include:
Storage device, it is different for the different types of pipe-dredging agent of different chemical components to be placed on closestool in advance
Receiving space in;
Starter is rinsed, for the water inside cistern to be released to be carried out to the seat inner space of closestool automatically
Rinse;
Average current detection means, the water velocity for the seat inner space to closestool are detected in real time, are obtained
Real-time water velocity, and the average current velocity in this flushing process is calculated based on real-time water velocity;
Type determination device, it is connected with the average current detection means, for determining to release based on average current velocity
The type for the pipe-dredging agent put;
Automatic releasing device, it is connected with the type determination device, for certain type of pipe-dredging agent to be discharged into
The seat inner space of closestool is to realize the dredging of pipeline in the seat inner space to closestool;
Wherein, various types of pipe-dredging agents all include:Sodium hydroxide, sodium dichloro cyanurate, sodium hypochlorite, winestone
Acid, Nekal BX-78, bentonite and essence, the different chemical components of pipe-dredging agent are the dispensing percentage of sodium hydroxide not
Together, the number of dispensing percentage of various types of pipe-dredging agents based on sodium hydroxide is divided into weak property pipe-dredging agent, one
As pipe-dredging agent, strong pipe dredging agent and fast siphunculus pipeline dredging agent.
More specifically, in the feed robot based on image procossing, the type determination device specifically includes:
Data acquisition unit, for carrying out high-definition image data acquisition to the seat inner space of closestool to obtain high definition number
Word image;
First filter unit, it is connected with the data acquisition unit, filter is kept for carrying out edge to high-definition digital image
Ripple obtains the first filtering image to remove the salt-pepper noise or impulsive noise in high-definition digital image;
Second filter unit, it is connected with first filter unit, for being carried out to the first filtering image at gaussian filtering
Reason obtains the second filtering image, the Gaussian noise includes maximum amplitude value to remove the Gaussian noise in the first filtering image
Significantly angle value Gaussian noise and maximum amplitude value more than predetermined amplitude value are less than or equal to the amplitude value Gauss of predetermined amplitude value
Noise;
Binarization unit, it is connected with the second filter unit, for carrying out binary conversion treatment to the second filtering image to obtain
Binary image;
Object matching unit, is connected with binarization unit, is handled for carrying out object matching to binary image to determine
The type of tamper in binary image simultaneously includes two-value as the output of target tamper type, the object matching processing
The reference pattern for changing image and all kinds tamper carries out form fit to determine the tamper in binary image one by one
Type;
Type determining units, it is connected respectively with average current detection means and object matching unit, for based on average water
Flow velocity degree and target tamper type determine the type for the pipe-dredging agent to be discharged, wherein, average current velocity is smaller, it is determined that
The dispensing percentage of sodium hydroxide is bigger in the pipe-dredging agent of type, and corrosion difficulty is bigger corresponding to target tamper type,
The dispensing percentage of sodium hydroxide is bigger in certain type of pipe-dredging agent, when average current velocity is more than default current threshold value
When, certain type of pipe-dredging agent is nothing;
Wherein, it is described that gaussian filtering process is carried out to the first filtering image to remove the Gaussian noise in the first filtering image
Including:Adaptive recursive filtering processing is carried out to the first filtering image to remove amplitude value Gaussian noise to obtain median filter
Image, Wiener filtering processing is carried out to middle filtering image with remove significantly angle value Gaussian noise to obtain the second filtering image;
Wherein, all kinds tamper includes greasy dirt, dish leaf, tealeaves, hair, toilet paper, excrement, rubbish from cooking, plastics
Bag and cloth.
More specifically, in the feed robot based on image procossing, the automatic releasing device specifically includes:
Switch element, the opening for receiving space where opening certain type of pipe-dredging agent are determined with automatic release
The pipe-dredging agent of type;
Wherein, when certain type of pipe-dredging agent be without when, switch element does not open any type of pipe-dredging agent
The opening of place receiving space, send artificial flushing signal.
More specifically, in the feed robot based on image procossing, in addition to:
Washing time determining device, is connected with automatic releasing device, for determining to need manually based on average current velocity
The number of flushing;
Display device, it is connected respectively with automatic releasing device and washing time determining device, for showing that artificial flushing is believed
Number while, display needs the number of artificial flushing, to realize the prompting to closestool user.
More specifically, in the feed robot based on image procossing, in addition to:
Dose measuring systems, for detecting the present dose of each receiving space inner tube pipeline dredging agent;
Dosage warning device, is connected with dose measuring systems, the present dose for the pipe-dredging agent when a certain type
During less than preset dose, underdosage alarm signal is sent, to remind closestool user to add the pipe-dredging agent of respective type.
According to another aspect of the present invention, there is provided a kind of material supply method based on image procossing, methods described bag
Include:
The different types of pipe-dredging agent of different chemical components is placed into receiving space different on closestool in advance;
Water inside cistern is released automatically and is rinsed with the seat inner space to closestool;
The water velocity of the seat inner space of closestool is detected in real time, obtains real-time water velocity, and based on real
When water velocity calculate average current velocity in this flushing process;
The type for the pipe-dredging agent to be discharged is determined based on average current velocity;
Certain type of pipe-dredging agent is discharged into the seat inner space of closestool to realize inside the seat to closestool
The dredging of pipeline in space;
Wherein, various types of pipe-dredging agents all include:Sodium hydroxide, sodium dichloro cyanurate, sodium hypochlorite, winestone
Acid, Nekal BX-78, bentonite and essence, the different chemical components of pipe-dredging agent are the dispensing percentage of sodium hydroxide not
Together, the number of dispensing percentage of various types of pipe-dredging agents based on sodium hydroxide is divided into weak property pipe-dredging agent, one
As pipe-dredging agent, strong pipe dredging agent and fast siphunculus pipeline dredging agent.
More specifically, in the material supply method based on image procossing, it is described to be determined based on average current velocity
The type for the pipe-dredging agent to be discharged specifically includes following steps:
High-definition image data acquisition is carried out to obtain high-definition digital image to the seat inner space of closestool;To high-definition digital
Image carries out holding edge filter to remove the salt-pepper noise or impulsive noise in high-definition digital image, obtains the first filtering figure
Picture;
Gaussian filtering process is carried out to the first filtering image to remove the Gaussian noise in the first filtering image, obtains second
Filtering image, the Gaussian noise include the significantly angle value Gaussian noise and amplitude peak that maximum amplitude value exceedes predetermined amplitude value
Amplitude value Gaussian noise of the value less than or equal to predetermined amplitude value;Binary conversion treatment is carried out to the second filtering image to obtain two-value
Change image;
Object matching processing is carried out to binary image to determine the type of the tamper in binary image and be used as mesh
Mark the output of tamper type, the object matching processing include by the reference pattern of binary image and all kinds tamper by
One carries out form fit to determine the type of the tamper in binary image;
The type for the pipe-dredging agent to be discharged is determined based on average current velocity and target tamper type, wherein, put down
Equal water velocity is smaller, and the dispensing percentage of sodium hydroxide is bigger in certain type of pipe-dredging agent, target tamper type
Corresponding corrosion difficulty is bigger, and the dispensing percentage of sodium hydroxide is bigger in certain type of pipe-dredging agent, works as average current
When speed is more than default current threshold value, certain type of pipe-dredging agent is nothing;
Wherein, it is described that gaussian filtering process is carried out to the first filtering image to remove the Gaussian noise in the first filtering image
Including:Adaptive recursive filtering processing is carried out to the first filtering image to remove amplitude value Gaussian noise to obtain median filter
Image, Wiener filtering processing is carried out to middle filtering image with remove significantly angle value Gaussian noise to obtain the second filtering image;
Wherein, all kinds tamper includes greasy dirt, dish leaf, tealeaves, hair, toilet paper, excrement, rubbish from cooking, plastics
Bag and cloth.
More specifically, in the material supply method based on image procossing, it is described by certain type of pipe-dredging
Agent is discharged into the seat inner space of closestool to realize that it is following that the dredging of pipeline in the seat inner space to closestool specifically includes
Step:
The opening of receiving space is dredged with discharging certain type of pipeline automatically where opening certain type of pipe-dredging agent
Obstruction-removing prescription;
Wherein, when certain type of pipe-dredging agent be without when, do not open and accommodate where any type of pipe-dredging agent
The opening in space, send artificial flushing signal.
More specifically, in the material supply method based on image procossing, certain type of pipeline is dredged described
Obstruction-removing prescription is discharged into the seat inner space of closestool to realize in the seat inner space to closestool after the dredging of pipeline, the side
Method is further comprising the steps of:
Determine to need the number of artificial flushing based on average current velocity;While showing artificial flushing signal, display needs
The number of artificial flushing is wanted, to realize the prompting to closestool user.
More specifically, in the material supply method based on image procossing, it is further comprising the steps of:Detect each appearance
Receive the present dose of space inner tube pipeline dredging agent;
When the present dose of the pipe-dredging agent of a certain type is less than preset dose, underdosage alarm signal is sent,
To remind closestool user to add the pipe-dredging agent of respective type.
It can to sum up draw, key inventive of the invention point is:
First, prestored the dredging material that various dredging dynamics differ, and is alarmed when dredging material deficiency;
Secondly, the blocked state inside closestool is accurately detected, and based on the suitable dredging material of blocked state selection;
Again, release suitable dredging material and carry out automatic dredging, whole process need not be participated in manually, realize closestool
The full-automation of dredging.
Brief description of the drawings
Embodiment of the present invention is described below with reference to accompanying drawing, wherein:
Fig. 1 is the block diagram of the feed robot based on image procossing according to embodiment of the present invention.
Fig. 2 is the step flow chart of the material supply method based on image procossing according to embodiment of the present invention.
Reference:1 storage device;2 rinse starter;3 average current detection means;4 type determination devices;5 certainly
Dynamic release device.
Embodiment
The embodiment of the feed robot based on image procossing of the present invention is carried out specifically below with reference to accompanying drawings
It is bright.
The appearance of closestool brings many convenience, however, when stopping state occurs in closestool, these conveniences are complete
It is converted into perplexing.People need to use one's brains, artificial to carry out the normal one by one of scheme according to the limited stopping state that oneself is observed
Know.
Common dredging scheme has:
1st, a manual dredge (thing of appearance picture root spring) is bought to debris shop, dredged manually;
2nd, mop method:Mop is placed on closestool mouth first, then discharged water, ensures that water floods mop.Then with forcing pier
Cloth, it is filled in closestool mouth as far as possible, finally mop lifted with most fast speed, such action repeatedly, the east in closestool
West will be come out by suck-back;
3rd, one section of longer plastic water pipe is looked for, one is connected to water, and one is filled in closestool mouth, then closestool mouth is used broken
The thing of cloth etc is blocked, and then opens running water, can so utilize hydraulic pressure dredging pipeline;
If the 4, closestool is blocked by hard thing, first inhaled with closestool and dirt carried down, discharged water while carry, make in toilet bowl
Only clear water, is then stained with water with towel dry, looks for one piece small border, that small mirror e.g. cosmetically, a torch,
Small mirror is put into the bottommost of toilet seat, and the angle for adjusting light source and mirror can see a part inside pipeline, generally small
Thing can be stuck in pipeline most the inside and want downward corner, look for a proper iron wire, being stuck in pocket-handkerchief with iron wire enters
Row solves.
5th, the dredging company or dredging worker for finding specialty are manually dredged.
As can be seen here, all purge operations are required for manually being observed, and manually carry out selection dredging material and experience personally
Parent for ground dredged, on the one hand, take time and effort, on the other hand, it is easy to touch by dredged during dirt, it is more crucial
If scheme is not right, blockage problem can not be solved, and closestool can not be continuing with, and the live and work to user is brought not
Just.
In order to overcome above-mentioned deficiency, the present invention has built a kind of feed robot and method based on image procossing, taken
Full automatic dredging material dredge the correct selection of material and automatic leakage dredging, while is judging that material need not be dredged
In the case of material, it is determined that needing the number of artificial flushing, and artificial flushing and washing time will be needed to notify in time to user,
So as to avoid dredging the waste of material.
Fig. 1 be according to embodiment of the present invention based on image procossing feed robot block diagram, institute
Stating robot includes:
Storage device, it is different for the different types of pipe-dredging agent of different chemical components to be placed on closestool in advance
Receiving space in;
Starter is rinsed, for the water inside cistern to be released to be carried out to the seat inner space of closestool automatically
Rinse;
Average current detection means, the water velocity for the seat inner space to closestool are detected in real time, are obtained
Real-time water velocity, and the average current velocity in this flushing process is calculated based on real-time water velocity;
Type determination device, it is connected with the average current detection means, for determining to release based on average current velocity
The type for the pipe-dredging agent put;
Automatic releasing device, it is connected with the type determination device, for certain type of pipe-dredging agent to be discharged into
The seat inner space of closestool is to realize the dredging of pipeline in the seat inner space to closestool;
Wherein, various types of pipe-dredging agents all include:Sodium hydroxide, sodium dichloro cyanurate, sodium hypochlorite, winestone
Acid, Nekal BX-78, bentonite and essence, the different chemical components of pipe-dredging agent are the dispensing percentage of sodium hydroxide not
Together, the number of dispensing percentage of various types of pipe-dredging agents based on sodium hydroxide is divided into weak property pipe-dredging agent, one
As pipe-dredging agent, strong pipe dredging agent and fast siphunculus pipeline dredging agent.
Then, continue to carry out further the concrete structure of the feed robot based on image procossing of the present invention
It is bright.
In the robot, the type determination device specifically includes:
Data acquisition unit, for carrying out high-definition image data acquisition to the seat inner space of closestool to obtain high definition number
Word image;
First filter unit, it is connected with the data acquisition unit, filter is kept for carrying out edge to high-definition digital image
Ripple obtains the first filtering image to remove the salt-pepper noise or impulsive noise in high-definition digital image;
Second filter unit, it is connected with first filter unit, for being carried out to the first filtering image at gaussian filtering
Reason obtains the second filtering image, the Gaussian noise includes maximum amplitude value to remove the Gaussian noise in the first filtering image
Significantly angle value Gaussian noise and maximum amplitude value more than predetermined amplitude value are less than or equal to the amplitude value Gauss of predetermined amplitude value
Noise;
Binarization unit, it is connected with the second filter unit, for carrying out binary conversion treatment to the second filtering image to obtain
Binary image;
Object matching unit, is connected with binarization unit, is handled for carrying out object matching to binary image to determine
The type of tamper in binary image simultaneously includes two-value as the output of target tamper type, the object matching processing
The reference pattern for changing image and all kinds tamper carries out form fit to determine the tamper in binary image one by one
Type;
Type determining units, it is connected respectively with average current detection means and object matching unit, for based on average water
Flow velocity degree and target tamper type determine the type for the pipe-dredging agent to be discharged, wherein, average current velocity is smaller, it is determined that
The dispensing percentage of sodium hydroxide is bigger in the pipe-dredging agent of type, and corrosion difficulty is bigger corresponding to target tamper type,
The dispensing percentage of sodium hydroxide is bigger in certain type of pipe-dredging agent, when average current velocity is more than default current threshold value
When, certain type of pipe-dredging agent is nothing;
Wherein, it is described that gaussian filtering process is carried out to the first filtering image to remove the Gaussian noise in the first filtering image
Including:Adaptive recursive filtering processing is carried out to the first filtering image to remove amplitude value Gaussian noise to obtain median filter
Image, Wiener filtering processing is carried out to middle filtering image with remove significantly angle value Gaussian noise to obtain the second filtering image;
Wherein, all kinds tamper includes greasy dirt, dish leaf, tealeaves, hair, toilet paper, excrement, rubbish from cooking, plastics
Bag and cloth.
In the robot, the automatic releasing device specifically includes:
Switch element, the opening for receiving space where opening certain type of pipe-dredging agent are determined with automatic release
The pipe-dredging agent of type;
Wherein, when certain type of pipe-dredging agent be without when, switch element does not open any type of pipe-dredging agent
The opening of place receiving space, send artificial flushing signal.
In the robot, in addition to:
Washing time determining device, is connected with automatic releasing device, for determining to need manually based on average current velocity
The number of flushing;
Display device, it is connected respectively with automatic releasing device and washing time determining device, for showing that artificial flushing is believed
Number while, display needs the number of artificial flushing, to realize the prompting to closestool user.
In the robot, in addition to:
Dose measuring systems, for detecting the present dose of each receiving space inner tube pipeline dredging agent;
Dosage warning device, is connected with dose measuring systems, the present dose for the pipe-dredging agent when a certain type
During less than preset dose, underdosage alarm signal is sent, to remind closestool user to add the pipe-dredging agent of respective type.
Fig. 2 is the step flow chart of the material supply method based on image procossing according to embodiment of the present invention,
Methods described includes:
The different types of pipe-dredging agent of different chemical components is placed into receiving space different on closestool in advance;
Water inside cistern is released automatically and is rinsed with the seat inner space to closestool;
The water velocity of the seat inner space of closestool is detected in real time, obtains real-time water velocity, and based on real
When water velocity calculate average current velocity in this flushing process;
The type for the pipe-dredging agent to be discharged is determined based on average current velocity;
Certain type of pipe-dredging agent is discharged into the seat inner space of closestool to realize inside the seat to closestool
The dredging of pipeline in space;
Wherein, various types of pipe-dredging agents all include:Sodium hydroxide, sodium dichloro cyanurate, sodium hypochlorite, winestone
Acid, Nekal BX-78, bentonite and essence, the different chemical components of pipe-dredging agent are the dispensing percentage of sodium hydroxide not
Together, the number of dispensing percentage of various types of pipe-dredging agents based on sodium hydroxide is divided into weak property pipe-dredging agent, one
As pipe-dredging agent, strong pipe dredging agent and fast siphunculus pipeline dredging agent.
Then, continue to carry out further the idiographic flow of the material supply method based on image procossing of the present invention
It is bright.
In methods described, it is described based on average current velocity determine the pipe-dredging agent to be discharged type specifically include with
Lower step:
High-definition image data acquisition is carried out to obtain high-definition digital image to the seat inner space of closestool;To high-definition digital
Image carries out holding edge filter to remove the salt-pepper noise or impulsive noise in high-definition digital image, obtains the first filtering figure
Picture;
Gaussian filtering process is carried out to the first filtering image to remove the Gaussian noise in the first filtering image, obtains second
Filtering image, the Gaussian noise include the significantly angle value Gaussian noise and amplitude peak that maximum amplitude value exceedes predetermined amplitude value
Amplitude value Gaussian noise of the value less than or equal to predetermined amplitude value;Binary conversion treatment is carried out to the second filtering image to obtain two-value
Change image;
Object matching processing is carried out to binary image to determine the type of the tamper in binary image and be used as mesh
Mark the output of tamper type, the object matching processing include by the reference pattern of binary image and all kinds tamper by
One carries out form fit to determine the type of the tamper in binary image;
The type for the pipe-dredging agent to be discharged is determined based on average current velocity and target tamper type, wherein, put down
Equal water velocity is smaller, and the dispensing percentage of sodium hydroxide is bigger in certain type of pipe-dredging agent, target tamper type
Corresponding corrosion difficulty is bigger, and the dispensing percentage of sodium hydroxide is bigger in certain type of pipe-dredging agent, works as average current
When speed is more than default current threshold value, certain type of pipe-dredging agent is nothing;
Wherein, it is described that gaussian filtering process is carried out to the first filtering image to remove the Gaussian noise in the first filtering image
Including:Adaptive recursive filtering processing is carried out to the first filtering image to remove amplitude value Gaussian noise to obtain median filter
Image, Wiener filtering processing is carried out to middle filtering image with remove significantly angle value Gaussian noise to obtain the second filtering image;
Wherein, all kinds tamper includes greasy dirt, dish leaf, tealeaves, hair, toilet paper, excrement, rubbish from cooking, plastics
Bag and cloth.
It is described that certain type of pipe-dredging agent is discharged into the seat inner space of closestool to realize pair in methods described
The dredging of pipeline specifically includes following steps in the seat inner space of closestool:
The opening of receiving space is dredged with discharging certain type of pipeline automatically where opening certain type of pipe-dredging agent
Obstruction-removing prescription;
Wherein, when certain type of pipe-dredging agent be without when, do not open and accommodate where any type of pipe-dredging agent
The opening in space, send artificial flushing signal.
In methods described, certain type of pipe-dredging agent is discharged into the seat inner space of closestool to realize described
After dredging to pipeline in the seat inner space of closestool, methods described is further comprising the steps of:
Determine to need the number of artificial flushing based on average current velocity;While showing artificial flushing signal, display needs
The number of artificial flushing is wanted, to realize the prompting to closestool user.
It is further comprising the steps of in methods described:
Detect the present dose of each receiving space inner tube pipeline dredging agent;
When the present dose of the pipe-dredging agent of a certain type is less than preset dose, underdosage alarm signal is sent,
To remind closestool user to add the pipe-dredging agent of respective type.
In addition, it can also include in the robot:CDMA passes through equipment, respectively with automatic releasing device and washing time
Determining device connects, for by artificial flushing signal and needing the number of artificial flushing to be wirelessly transmitted to the shifting that closestool user holds
Dynamic terminal.
In addition, it can also comprise the following steps in methods described:
By artificial flushing signal and the number of artificial flushing is needed to be wirelessly transmitted to the mobile terminal that closestool user holds.
Using the feed robot and method based on image procossing of the present invention, for closestool dredging demand in the prior art
The technical problem that manual operation is participated in the overall process, by the accurate detection to closestool blocked state, dredging the prestoring of material, dredge
Lead to coping style when material customizes selection mechanism and need not dredge material to complete the full-automatic dredging of closestool, meanwhile,
Carry out timely dosage also when dredging material deficiency to alarm, so as to improve the intelligent level of whole closestool.
It is understood that although the present invention is disclosed as above with preferred embodiment, but above-described embodiment and it is not used to
Limit the present invention.For any those skilled in the art, without departing from the scope of the technical proposal of the invention,
Many possible changes and modifications are all 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 change.Therefore, every content without departing from technical solution of the present invention, the technical spirit pair according to the present invention
Any simple modifications, equivalents, and modifications made for any of the above embodiments, still fall within the scope of technical solution of the present invention protection
It is interior.