CN105607660B - A method of the greasy degree of hair is detected to control shampoo dosage - Google Patents

A method of the greasy degree of hair is detected to control shampoo dosage Download PDF

Info

Publication number
CN105607660B
CN105607660B CN201610005887.2A CN201610005887A CN105607660B CN 105607660 B CN105607660 B CN 105607660B CN 201610005887 A CN201610005887 A CN 201610005887A CN 105607660 B CN105607660 B CN 105607660B
Authority
CN
China
Prior art keywords
shampoo
hair
greasy
dosage
degree
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201610005887.2A
Other languages
Chinese (zh)
Other versions
CN105607660A (en
Inventor
褚明超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Feixun Data Communication Technology Co Ltd
Original Assignee
Shanghai Feixun Data Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201610005887.2A priority Critical patent/CN105607660B/en
Publication of CN105607660A publication Critical patent/CN105607660A/en
Application granted granted Critical
Publication of CN105607660B publication Critical patent/CN105607660B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05DSYSTEMS FOR CONTROLLING OR REGULATING NON-ELECTRIC VARIABLES
    • G05D7/00Control of flow
    • G05D7/06Control of flow characterised by the use of electric means
    • G05D7/0617Control of flow characterised by the use of electric means specially adapted for fluid materials
    • G05D7/0623Control of flow characterised by the use of electric means specially adapted for fluid materials characterised by the set value given to the control element

Abstract

The invention discloses a kind of greasy degree of detection hair come the method that controls shampoo dosage, it can be according to the greasy degree of hair, to control the usage amount of shampoo, prestore hair brightness standard and divergence criteria, brightness when comparing greasy and dispersion degree, and two shampoo dosages are generated according to the result of comparison, the weighted average of two shampoo dosages is obtained according to respective weight, obtains shampoo dosage appropriate when the greasy degree.One aspect of the present invention facilitates hair washing user, and the analysis for the piece that on the other hand can be issued permit by enemy obtains accurate shampoo dosage and squeezes out, and has achieved the purpose that save hair washing spending and environmental resource.

Description

A method of the greasy degree of hair is detected to control shampoo dosage
Technical field
The present invention relates to a kind of hair washing householder methods, and in particular to it is a kind of detection hair greasy degree come control shampoo use The method of amount.
Background technology
Shampoo, Huo Zhetong are generally squeezed out from Air shampoo bottle according to individual's feeling manually when user washes hair in a conventional manner Existing squeezer discharge by pressing shampoo is crossed, traditional approach is on the one hand cumbersome, on the other hand inaccurate, is likely to result in crowded more Or the case where having lacked.
Invention content
In order to overcome the defect of above-mentioned background technology, the present invention provides a kind of greasy degree of detection hair to control shampoo The method of dosage squeezes out appropriate shampoo automatically by the greasy state of comparison hair and normal condition control squeezer.
In order to solve the above-mentioned technical problem used technical solution of the invention is:
A method of the greasy degree of hair is detected to control shampoo dosage:
The image of storage hair normal condition, terminal obtain the image of the greasy state of hair in terminal, and hair is greasy The image of state is compared processing with the image of normal condition and calculates shampoo dosage;
Shampoo dosage is transmitted to controller by terminal by wireless signal, and controller control squeezer is squeezed out to be used with shampoo Measure corresponding shampoo.
Preferably, in terminal storage hair normal condition image, terminal obtains the image of the greasy state of hair, and by head The image of the greasy state of hair oil be compared with the image of normal condition processing calculate shampoo dosage the specific steps are:
Step 1.1, terminal obtains dried under hair normal condition photo and photo of not drying respectively, passes through photograph of not drying Piece calculates hair brightness value as luminance standard, normally disperses angle value by photo calculating hair of having dried and is used as dispersion scale It is accurate;
Step 1.2, photo when terminal obtains hair greasy state, calculates hair brightness value and the dispersion under greasy state Angle value is denoted as greasy brightness value and greasy dispersion angle value;
Step 1.3, greasy brightness value and luminance standard are compared, determines the first shampoo dosage;
Step 1.4, greasy dispersion angle value and divergence criteria are compared, determines the second shampoo dosage;
Step 1.5, the weighted average of the first shampoo dosage and the second shampoo dosage is calculated, weighted average is shampoo Dosage.
Preferably, the method for calculating hair brightness value is:Normalizing is carried out to the photo of the greasy state of hair cream or normal condition Change is handled, and brightness value H=(r+g+b)/3 or brightness value H=MAX (r, g, b), wherein r are the red component in color, and g is face Green component in color, b are the blue component in color.
Preferably, the method for calculating hair dispersion angle value is:To the photo of the greasy state of hair cream or normal condition carry out with Machine samples, and acquirement is by the array (x that distance forms between n adjacent hair tips1, x2... xn-1, xn), then disperse angle value Wherein
Preferably, comparing greasy brightness value and luminance standard, determine that the specific method of the first shampoo dosage is:It calculates greasy Luminance difference between brightness value and luminance standard determines the first shampoo dosage according to luminance difference;
Greasy dispersion angle value and divergence criteria are compared, the method for determining the second shampoo dosage is:Calculate greasy dispersion degree Dispersion degree difference between value and divergence criteria determines the second shampoo dosage according to dispersion degree difference;
The first mapping table and dispersion degree difference and the of luminance difference and the first shampoo dosage are prestored in terminal Second mapping table of two shampoo dosages, the first mapping table and the second mapping table are determined according to statistical data , the first mapping table and the second mapping table are stored in a manner of Hash table, and first row indicates the difference of brightness value or divides The absolute value of the difference of divergence value, what secondary series indicated is shampoo dosage.
Preferably, the weight of the first shampoo dosage and the second shampoo dosage is empirical data, it is pre-stored in terminal.
Preferably, controller by control squeezer extrusion time come control its squeeze out it is corresponding with shampoo dosage fragrant Wave.
Preferably, extrusion timeWherein, v is shampoo flow velocity, and L is shampoo dosage, and R exports for shampoo Radius.
Preferably, controller obtains actual extrusion time, pressure sensing by the cooperation of timer and pressure sensor Timer triggering timing starts when device senses pressure when shampoo outlet outflow shampoo, and pressure sensor is not sensed by shampoo and goes out Pressure timer timing when mouth outflow shampoo terminates;When the extruding of the controller practical extrusion time of calculating and appropriate extrusion time Between difference, and control squeezer and complete to act with the extruding of extrusion time difference corresponding duration.
Preferably, when controller control squeezer squeezes shampoo, while user is reminded by alarm.
The beneficial effects of the present invention are:Can be according to the greasy degree of hair, to control the usage amount of shampoo, prestore hair Brightness standard and divergence criteria, brightness when comparing greasy and dispersion degree, and generate two according to the result of comparison Shampoo dosage obtains the weighted average of two shampoo dosages according to respective weight, obtains shampoo appropriate when the greasy degree Dosage, and shampoo dosage is controlled into the shampoo that squeezer squeezes out corresponding amount by controller, controller is to squeezing out shampoo amount Control is by being completed to the control of extrusion time.This law can also be obtained practical by the cooperation of pressure sensor and timer Extrusion time, and supplied for the practical extrusion time relatively appropriate extrusion time insufficient time difference.A side of the invention Face facilitates hair washing user, and the analysis for the piece that on the other hand can be issued permit by enemy obtains accurate shampoo dosage and squeezes out, and reaches The purpose for saving hair washing spending and environmental resource is arrived.
Description of the drawings
Fig. 1 is the flow chart of the embodiment of the present invention 1;
Fig. 2 is the flow chart of the embodiment of the present invention 2.
Specific implementation mode
The present invention is described further with reference to the accompanying drawings and examples.
Embodiment 1, a method of the greasy degree of hair is detected to control shampoo dosage:
Step 1, in terminal storage hair normal condition image, terminal obtains the image of the greasy state of hair, and by head The image of the greasy state of hair oil is compared processing with the image of normal condition and calculates shampoo dosage, the specific steps are:
Step 1.1, terminal obtains dried under hair normal condition photo and photo of not drying respectively, passes through photograph of not drying Piece calculates hair brightness value as luminance standard, normally disperses angle value by photo calculating hair of having dried and is used as dispersion scale It is accurate;
Step 1.2, photo when terminal obtains hair greasy state, calculates hair brightness value and the dispersion under greasy state Angle value;
The brightness value method under the greasy state of hair cream or normal non-blowing state is calculated in above-mentioned steps 1.1 and step 1.2 For:The photo of normal condition is normalized, then brightness value H=(r+g+b)/3 or brightness value H=MAX (r, g, b), Wherein r is the red component in color, and g is the green component in color, and b is the blue component in color.
The dispersion angle value side of the greasy state of hair cream or hair under blowing state is calculated in above-mentioned steps 1.1 and step 1.2 Method is:Stochastical sampling is carried out to the photo of the greasy state of hair cream or normal condition, is obtained by distance between n adjacent hair tips Array (the x of composition1, x2... xn-1, xn), then disperse angle valueWherein
Step 1.3, greasy brightness value and luminance standard are compared, determines the first shampoo dosage, the method that the present embodiment compares For the luminance difference for calculating between greasy brightness value and luminance standard, the first shampoo dosage is determined according to luminance difference;
Prestore the first mapping table of luminance difference and the first shampoo dosage in terminal, the first mapping table be according to Data determine according to statistics.
Step 1.4, greasy dispersion angle value and divergence criteria are compared, determines the second shampoo dosage, what the present embodiment compared Method is the dispersion degree difference calculated between greasy dispersion angle value and divergence criteria, and the second shampoo is determined according to dispersion degree difference Dosage;
The second mapping table of dispersion degree difference and the second shampoo dosage is prestored in terminal, the second mapping table is It is determined according to statistical data;
First mapping table and the second mapping table are deposited in a manner of Hash table described in step 1.3 and step 1.4 Storage, first row indicates the difference of brightness value or disperses the absolute value of the difference of angle value, and what secondary series indicated is shampoo dosage.
Step 1.5, take the weighted average of the first shampoo dosage and the second shampoo dosage as appropriate shampoo dosage, first The weight of shampoo dosage and the second shampoo dosage is empirical data, is pre-stored in terminal.
Step 2, shampoo dosage is transmitted to controller by terminal by wireless signal, and the signal transmission of the present embodiment is using blue Tooth communication mode.
Step 3, controller control squeezer squeezes out shampoo corresponding with shampoo dosage.
Controller squeezes out shampoo corresponding with shampoo dosage by controlling the extrusion time of squeezer to control it.
Extrusion timeWherein, v is shampoo flow velocity, and L is shampoo dosage, and R is shampoo exit radius.
The present embodiment has in mobile phone terminal on head according to the greasy degree of hair to control the usage amount of shampoo The picture of specific region just washed when head is dried, hair picture is such as crown of specific region, because readily identifying, point Lower and under not drying to dry, as a comparison with this picture, when user will wash hair, mobile phone terminal scans the region, gives birth to At the hair divergent shape information picture under blowing and the normal picture under not drying, the APP in mobile phone terminal is located accordingly After reason, generates shampoo dosage information and be sent to the singlechip controller of shampoo squeezer by bluetooth, microcontroller is according to shampoo The radius of dosage information, the speed of extruding, shampoo outlet calculates the required time, and squeezes out shampoo.
When obtaining hair photo, photo is handled using the HDR technologies of camera on mobile phone terminal, to obtain height Clear photograph is imitated, a period of time has been spent due to washing hair, the dirt of air and the grease of scalp are attached on hair therebetween, So that the dispersion degree of hair reduces, so dispersion degree information can be used as a standard of the greasy degree of hair,
Embodiment 2, the present embodiment increase on the basis of embodiment 1:
Step 4, when obtaining the difference of practical extrusion time and appropriate extrusion time, and supplementing squeeze corresponding with difference Between, to make practical backlog reach the shampoo dosage appropriate obtained by step 1.5.
Controller obtains actual extrusion time by the cooperation of timer and pressure sensor, and pressure sensor senses Timer triggering timing starts when shampoo exports pressure when flowing out shampoo, and it is fragrant that pressure sensor is not sensed by shampoo outlet outflow Pressure timer timing when wave terminates;Controller calculates the extrusion time difference of practical extrusion time and appropriate extrusion time, And it controls the extruding that squeezer is completed with extrusion time difference corresponding duration and acts.
The prioritization scheme of the present embodiment is when shampoo runs low or dosage is bigger, it may be necessary to squeeze repeatedly, at this moment lead to Whether over-pressed force snesor detects the practical extrusion situation of shampoo, and triggers or stop timer.When the timer time and very When equal between in real time, stop squeezing Air shampoo bottle, and reminds user to squeeze and terminate.
Embodiment 3, when the present embodiment increases controller control squeezer extruding shampoo on the basis of embodiment 2, together When by alarm remind user optimization feature.
It should be understood that for those of ordinary skills, it can be modified or changed according to the above description, And all these modifications and variations should all belong to the protection domain of appended claims of the present invention.

Claims (10)

1. a kind of greasy degree of detection hair is come the method that controls shampoo dosage, it is characterised in that:
The image of storage hair normal condition, the terminal obtain the image of the greasy state of hair in terminal, and will be described in hair The image of greasy state is compared processing with the image of the normal condition and calculates shampoo dosage;
The shampoo dosage is transmitted to controller by the terminal by wireless signal, and the controller control squeezer squeezes out Shampoo corresponding with the shampoo dosage.
2. a kind of greasy degree of detection hair according to claim 1 is come the method that controls shampoo dosage, feature exists In the image of storage hair normal condition in terminal, the terminal obtains the image of the greasy state of hair, and will be oily described in hair The image of greasy state be compared with the image of the normal condition processing calculate shampoo dosage the specific steps are:
Step 1.1, terminal obtains dried under hair normal condition photo and photo of not drying respectively, passes through photo meter of not drying Hair brightness value is calculated as luminance standard, angle value is normally disperseed by photo calculating hair of having dried and is used as divergence criteria;
Step 1.2, the photo when terminal obtains hair greasy state, calculates hair brightness value and the dispersion under greasy state Angle value is denoted as greasy brightness value and greasy dispersion angle value;
Step 1.3, the greasy brightness value and the luminance standard are compared, determines the first shampoo dosage;
Step 1.4, the greasy dispersion angle value and the divergence criteria are compared, determines the second shampoo dosage;
Step 1.5, the weighted average of the first shampoo dosage and the second shampoo dosage, the weighted average are calculated The as described shampoo dosage.
3. a kind of greasy degree of detection hair according to claim 2 is come the method that controls shampoo dosage, feature exists In the method for calculating hair brightness value is:The photo of the greasy state of hair cream or normal condition is normalized, brightness value H=(r+g+b)/3 or brightness value H=MAX (r, g, b), wherein r are the red component in color, and g is the green point in color Amount, b are the blue component in color.
4. a kind of greasy degree of detection hair according to claim 2 is come the method that controls shampoo dosage, feature exists In the method for calculating hair dispersion angle value is:Stochastical sampling is carried out to the photo of the greasy state of hair cream or normal condition, obtain by Array (the x that distance forms between n adjacent hair tips1, x2... xn-1, xn), then disperse angle valueWherein
5. a kind of greasy degree of detection hair according to claim 2 is come the method that controls shampoo dosage, feature exists In:
The greasy brightness value and the luminance standard are compared, determines that the specific method of the first shampoo dosage is:Calculate the oil Luminance difference between greasy brightness value and the luminance standard determines the first shampoo dosage according to the luminance difference;
The greasy dispersion angle value and the divergence criteria are compared, the method for determining the second shampoo dosage is:Calculate the oil Dispersion degree difference between greasy dispersion angle value and the divergence criteria determines that the second shampoo is used according to the dispersion degree difference Amount;
Prestored in the terminal luminance difference and the first shampoo dosage the first mapping table and described point Second mapping table of divergence difference and the second shampoo dosage, first mapping table and second mapping are closed It is that table is determined according to statistical data, and is stored in a manner of Hash table, first row indicates the difference or dispersion angle value of brightness value Absolute value of the difference, secondary series indicate be shampoo dosage.
6. a kind of greasy degree of detection hair according to claim 2 is come the method that controls shampoo dosage, feature exists In:The weight of the first shampoo dosage and the second shampoo dosage is empirical data, is pre-stored in the terminal.
7. a kind of greasy degree of detection hair according to claim 1 is come the method that controls shampoo dosage, feature exists In, the controller by control the appropriate extrusion time of squeezer control its squeeze out it is corresponding fragrant with the shampoo dosage Wave.
8. a kind of greasy degree of detection hair according to claim 7 is come the method that controls shampoo dosage, feature exists In:The appropriate extrusion timeWherein, v is shampoo flow velocity, and L is the shampoo dosage, and R exports for shampoo Radius.
9. a kind of greasy degree of detection hair according to claim 7 is come the method that controls shampoo dosage, feature exists In:The controller obtains actual extrusion time, the pressure sensor sense by the cooperation of timer and pressure sensor Timer triggering timing starts when should arrive pressure when shampoo is flowed out in shampoo outlet, and the pressure sensor is not sensed by shampoo and goes out Mouthful outflow shampoo when pressure when timer when terminate;The controller calculates the practical extrusion time and appropriate extruding The extrusion time difference of time, and control the extruding that the squeezer is completed with the extrusion time difference corresponding duration and act.
10. a kind of greasy degree of detection hair according to claim 1 is come the method that controls shampoo dosage, feature exists In:When the controller control squeezer squeezes shampoo, while user is reminded by alarm.
CN201610005887.2A 2016-01-05 2016-01-05 A method of the greasy degree of hair is detected to control shampoo dosage Expired - Fee Related CN105607660B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610005887.2A CN105607660B (en) 2016-01-05 2016-01-05 A method of the greasy degree of hair is detected to control shampoo dosage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610005887.2A CN105607660B (en) 2016-01-05 2016-01-05 A method of the greasy degree of hair is detected to control shampoo dosage

Publications (2)

Publication Number Publication Date
CN105607660A CN105607660A (en) 2016-05-25
CN105607660B true CN105607660B (en) 2018-09-28

Family

ID=55987656

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610005887.2A Expired - Fee Related CN105607660B (en) 2016-01-05 2016-01-05 A method of the greasy degree of hair is detected to control shampoo dosage

Country Status (1)

Country Link
CN (1) CN105607660B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108427337B (en) * 2018-01-23 2020-08-11 杭州旭鹏智能箱柜有限公司 Intelligent hair washing cap and operation method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1821715A (en) * 2006-03-22 2006-08-23 东华大学 Novel hair online measuring integrated device
CN103902794A (en) * 2012-12-26 2014-07-02 比亚迪股份有限公司 Mobile terminal and method for shooting wound picture through mobile terminal to process injuries
CN104010555A (en) * 2011-11-04 2014-08-27 奥普卫生用品Ip有限公司 Dispenser and contaminant sensor
CN104203058A (en) * 2012-02-08 2014-12-10 新璞修人有限公司 Liquid dispensing units
WO2015070294A2 (en) * 2013-11-15 2015-05-21 Carlo Mark Jozef Jeunen Dispenser
CN105198023A (en) * 2015-10-28 2015-12-30 小米科技有限责任公司 Method for controlling produced water of water purifier, apparatus thereof, and water purifier

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1821715A (en) * 2006-03-22 2006-08-23 东华大学 Novel hair online measuring integrated device
CN104010555A (en) * 2011-11-04 2014-08-27 奥普卫生用品Ip有限公司 Dispenser and contaminant sensor
CN104203058A (en) * 2012-02-08 2014-12-10 新璞修人有限公司 Liquid dispensing units
CN103902794A (en) * 2012-12-26 2014-07-02 比亚迪股份有限公司 Mobile terminal and method for shooting wound picture through mobile terminal to process injuries
WO2015070294A2 (en) * 2013-11-15 2015-05-21 Carlo Mark Jozef Jeunen Dispenser
CN105198023A (en) * 2015-10-28 2015-12-30 小米科技有限责任公司 Method for controlling produced water of water purifier, apparatus thereof, and water purifier

Also Published As

Publication number Publication date
CN105607660A (en) 2016-05-25

Similar Documents

Publication Publication Date Title
CN104468912B (en) A kind of control method and its display terminal of mobile terminal screen brightness
CN103152476B (en) Mobile phone capable of detecting skin state and use method thereof
CN104615248B (en) The method and apparatus for determining input information
US8880865B2 (en) System, method and apparatus for causing a device to enter an active mode
CN105609085B (en) A kind of screen luminance adjustment method and mobile terminal
CN105607660B (en) A method of the greasy degree of hair is detected to control shampoo dosage
CN107036390B (en) The information management and control method of air cooling type refrigerator, device and air cooling type refrigerator
CN108701214A (en) Image processing method, device and equipment
CN108732975A (en) Hand cleanser follower goes out hydraulic control method, apparatus and hand cleanser follower
CN110528234A (en) A kind of method of adjustment clothes hanger height, Intellective airer and control equipment
CN108245018B (en) Water dispenser and control method thereof
CN104267817B (en) Method of intelligently adjusting screen and smart screen
CN104978163B (en) The sound-volume control system and its method for controlling volume of electronic device
CN111568185A (en) Control method of water dispenser, water dispenser and computer readable storage medium
CN109934077A (en) A kind of image-recognizing method and electronic equipment
CN107550197B (en) A kind of drinking-water quantity measuring method of the Intelligent water cup with handle part
CN101893481A (en) Method and system for testing and determining color attribute
CN111568236A (en) Water dispenser control method, water dispenser and computer readable storage medium
CN106664771B (en) Determining system and method are occupied for improving
CN206777257U (en) Flavouring automatic blanking device
CN105184359B (en) A kind of ball counting device and its method of counting
CN110111545A (en) Disinfection room warning system and method based on signal detection
CN109551937A (en) Smart pen, smart pen system, smart pen control method, device and storage medium
CN209690166U (en) A kind of intelligent soup ladle
CN208537939U (en) Hand cleanser follower

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180928

Termination date: 20190105

CF01 Termination of patent right due to non-payment of annual fee