CN105607660A - Method for controlling consumed shampoo amount by detecting greasy degree of hair - Google Patents

Method for controlling consumed shampoo amount by detecting greasy degree of hair Download PDF

Info

Publication number
CN105607660A
CN105607660A CN201610005887.2A CN201610005887A CN105607660A CN 105607660 A CN105607660 A CN 105607660A CN 201610005887 A CN201610005887 A CN 201610005887A CN 105607660 A CN105607660 A CN 105607660A
Authority
CN
China
Prior art keywords
shampoo
hair
greasy
consumption
decentralization
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.)
Granted
Application number
CN201610005887.2A
Other languages
Chinese (zh)
Other versions
CN105607660B (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

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Cosmetics (AREA)

Abstract

The invention discloses a method for controlling a consumed shampoo amount by detecting a greasy degree of hair. The consumed shampoo amount by can be controlled according to the greasy degree of the hair; a hair shiny standard and a dispersity standard are stored in advance; the hair shiny standard and the dispersity standard are compared with the hair shiny degree and the dispersity degree when the hair is greasy; and according to the comparison results, two consumed shampoo amount values are generated and a weighted average of the two consumed shampoo amount values is obtained based on respective weights, thereby obtaining a proper consumed shampoo amount value in the current greasy mode. On the one hand, convenience is brought for the user consuming the shampoo; and on the other hand, the precise shampoo consumption amount can be obtained based on the analysis of hair pictures and then the shampoo is squeezed out. Therefore, objectives of saving of the shampoo expenditure and environment resource conservation can be achieved.

Description

A kind of greasy degree that detects hair is controlled the method for shampoo consumption
Technical field
The present invention relates to a kind of hair washing householder method, be specifically related to a kind of greasy degree that detects hair and controlThe method of shampoo consumption.
Background technology
When washing hair in a conventional manner, user generally feels manually from Air shampoo bottle, to extrude shampoo according to individual,Or by the shampoo of existing squeezer discharge by pressing, traditional approach is cumbersome on the one hand, smart not on the other handReally, may cause the situation of how to have squeezed or having lacked.
Summary of the invention
In order to overcome the defect of above-mentioned background technology, the invention provides a kind of greasy degree that detects hair and controlThe method of shampoo consumption processed, squeezes out by the contrast greasy state of hair and normal condition control squeezer automaticallyAppropriate shampoo.
In order to solve the problems of the technologies described above of the present invention adopted technical scheme be:
A kind of greasy degree that detects hair is controlled the method for shampoo consumption:
The image of storage hair normal condition in terminal, terminal is obtained the image of the greasy state of hair, and by headThe image of the greasy state of hair oil and the image of normal condition are compared to process and are calculated shampoo consumption;
Terminal transfers to controller by wireless signal by shampoo consumption, controller control squeezer squeeze out withThe corresponding shampoo of shampoo consumption.
Preferably, the image of storage hair normal condition in terminal, terminal is obtained the image of the greasy state of hair,And the image of the image of the greasy state of hair and normal condition is compared and processed the tool that calculates shampoo consumptionBody step is:
Step 1.1, terminal is obtained respectively under hair normal condition, dried photo and the photo of not drying, by notBlowing photo calculates hair brightness value as luminance standard, and by drying, photo calculates the normal decentralization of hairValue is as divergence criteria;
Step 1.2, photo when terminal is obtained the greasy state of hair, calculates the hair brightness value under greasy stateWith decentralization value, be designated as greasy brightness value and greasy decentralization value;
Step 1.3, compares greasy brightness value and luminance standard, determines the first shampoo consumption;
Step 1.4, compares greasy decentralization value and divergence criteria, determines the second shampoo consumption;
Step 1.5, the weighted average of calculating the first shampoo consumption and the second shampoo consumption, weighted average isFor shampoo consumption.
Preferably, the method for calculating hair brightness value is: the photo to the greasy state of hair cream or normal condition entersRow normalized, brightness value H=(r+g+b)/3 or brightness value H=MAX (r, g, b), wherein r is colorIn red component, g is the green component in color, b is the blue component in color
Preferably, the method for calculating hair decentralization value is: to the photo of the greasy state of hair cream or normal conditionCarry out stochastical sampling, obtain the array (x by distance forms between n adjacent hair tip1,x2,..xn-1,xn),Decentralization valueWherein
Preferably, compare greasy brightness value and luminance standard, determine that the concrete grammar of the first shampoo consumption is:Calculate the luminance difference between greasy brightness value and luminance standard, determine the first shampoo consumption according to luminance difference;
Compare greasy decentralization value and divergence criteria, determine that the method for the second shampoo consumption is: calculate greasyDecentralization difference between decentralization value and divergence criteria, determines the second shampoo consumption according to decentralization difference;
In terminal, prestore the first mapping relations table of luminance difference and the first shampoo consumption, and decentralization is poorThe second mapping relations table of value and the second shampoo consumption, the first mapping relations table and the second mapping relations table are to comply withData are determined according to statistics, and the first mapping relations table and the second mapping relations table are stored in the mode of Hash table,First row represents the absolute value of the difference of brightness value or the difference of decentralization value, and what secondary series represented is shampoo consumption.
Preferably, the weight of the first shampoo consumption and the second shampoo consumption is empirical data, is pre-stored in terminal.
Preferably, controller is controlled it and is squeezed out and shampoo consumption phase by controlling the extrusion time of squeezerThe shampoo of answering.
Preferably, extrusion timeWherein, v is shampoo flow velocity, and L is shampoo consumption, and R isShampoo goes out port radius.
Preferably, controller obtains actual extrusion time by the cooperation of timer and pressure sensor, pressesWhen pressure when power sensor sensing flows out shampoo to shampoo outlet, timer triggering timing starts, pressure sensingDevice does not sense that pressure timer timing when shampoo is flowed out in shampoo outlet finishes; Controller calculates actual extrudingThe extrusion time difference of time and suitably extrusion time, and control squeezer and complete corresponding with extrusion time differenceThe extruding action of duration.
Preferably, when controller control squeezer extruding shampoo, simultaneously by alarm reminding user.
Beneficial effect of the present invention is: can, according to the greasy degree of hair, control the use amount of shampoo,Prestore hair brightness standard and divergence criteria, compare brightness and decentralization greasy time, and foundationThe result of comparison generates two shampoo consumptions, obtains the weighted average of two shampoo consumptions according to weight separately,Suitable shampoo consumption while obtaining this greasy degree, and shampoo consumption is pushed by controller control squeezerGo out the shampoo of respective amount, controller is to complete by the control to extrusion time to extruding the control of shampoo amount.This law also can obtain actual extrusion time by the cooperation of pressure sensor and timer, and for this actual squeezingThe pressure time, relatively suitably the time difference of extrusion time deficiency supplied. One aspect of the present invention has facilitated hair washing to useFamily, can be obtained accurate shampoo consumption and be extruded by the issue permit analysis of sheet of enemy on the other hand, has reachedSave the object of hair washing spending and environmental resource.
Brief 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.
Detailed description of the invention
Below in conjunction with drawings and Examples, the present invention is described further.
Embodiment 1, a kind of greasy degree that detects hair is controlled the method for shampoo consumption:
Step 1, the image of storage hair normal condition in terminal, terminal is obtained the image of the greasy state of hair,And the image of the image of the greasy state of hair and normal condition is compared to process calculate shampoo consumption, toolBody step is:
Step 1.1, terminal is obtained respectively under hair normal condition, dried photo and the photo of not drying,Calculate hair brightness value as luminance standard by the photo of not drying, by drying, photo calculates hairNormal decentralization value is as divergence criteria;
Step 1.2, photo when terminal is obtained the greasy state of hair, calculates the hair under greasy stateBrightness value and decentralization value;
In above-mentioned steps 1.1 and step 1.2, calculate under the greasy state of hair cream or normal not blowing stateBrightness value method is: the photo to normal condition is normalized, 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 green in colorColouring component, b is the blue component in color,
In above-mentioned steps 1.1 and step 1.2, calculate the greasy state of hair cream or hair under blowing stateDecentralization value method is: the photo to the greasy state of hair cream or normal condition carries out stochastical sampling, obtainsBy the array (x that between n adjacent hair tip, distance forms1,x2,..xn-1,xn), decentralization value x = S n , Wherein S = Σ i = 1 i = n x i
Step 1.3, compares greasy brightness value and luminance standard, determines the first shampoo consumption, this enforcementThe method of example comparison is the luminance difference of calculating between greasy brightness value and luminance standard, according to luminance differenceValue is determined the first shampoo consumption;
In terminal, prestore the first mapping relations table of luminance difference and the first shampoo consumption, the first mappingRelation table is determined according to statistics.
Step 1.4, compares greasy decentralization value and divergence criteria, determines the second shampoo consumption, thisThe method of embodiment comparison is the decentralization difference of calculating between greasy decentralization value and divergence criteria,Determine the second shampoo consumption according to decentralization difference;
The the second mapping relations table that prestores decentralization difference and the second shampoo consumption in terminal, second reflectsPenetrating relation table determines according to statistics;
Described in step 1.3 and step 1.4, the first mapping relations table and the second mapping relations table are all with HashThe mode of table is stored, and first row represents the absolute value of the difference of brightness value or the difference of decentralization value, secondary seriesWhat represent is shampoo consumption.
Step 1.5, gets the weighted average of the first shampoo consumption and the second shampoo consumption as suitable perfume (or spice)Ripple consumption, the weight of the first shampoo consumption and the second shampoo consumption is empirical data, is pre-stored in terminal.
Step 2, terminal transfers to controller by wireless signal by shampoo consumption, the signal transmission of the present embodimentAdopt Bluetooth communication mode.
Step 3, controller control squeezer squeezes out and the corresponding shampoo of shampoo consumption.
Controller is controlled it by the extrusion time of control squeezer and is squeezed out and shampoo consumption perfume accordinglyRipple.
Extrusion timeWherein, v is shampoo flow velocity, and L is shampoo consumption, and R is shampoo outletRadius.
The present embodiment, according to the greasy degree of hair, is controlled the use amount of shampoo, in mobile phone terminal, hasThe specific region of head just wash the picture when dry, hair picture is for example crown of specific region,Because be easy to identification, be divided into blowing lower and do not dry under, with this picture as a comparison, when user willWhen hair washing, mobile phone terminal scans this region, generates the hair divergent shape information picture under blowing and does not dry downNormal picture, after the APP in mobile phone terminal processes accordingly, produce shampoo consumption information and also pass throughBluetooth sends to the singlechip controller of shampoo squeezer, and single-chip microcomputer is according to shampoo consumption information, the speed of extrudingDegree, the radius of shampoo outlet calculates the needed time, and squeezes out shampoo.
In the time obtaining hair photo, carry out comparison film by the HDR technology of camera on mobile phone terminal and process,To obtain efficient clear photograph, spend a period of time owing to washing hair, therebetween the dirt of air and scalpGrease be attached on hair, make hair decentralization reduce, so decentralization information can be used as hair creamA standard of greasy degree,
Embodiment 2, the present embodiment has increased on the basis of embodiment 1:
Step 4, obtains actual extrusion time and the suitable difference of extrusion time, and supplements with difference crowded accordinglyThe pressure time, make actual backlog reach the suitable shampoo consumption of step 1.5 gained.
Controller obtains actual extrusion time, pressure sensor by the cooperation of timer and pressure sensorWhile sensing pressure when shampoo is flowed out in shampoo outlet, timer triggering timing starts, and pressure sensor is not responded toPressure timer timing while flowing out shampoo to shampoo outlet finishes; Controller calculates actual extrusion time and suitableWhen the extrusion time difference of extrusion time, and control squeezer complete with extrusion time difference corresponding duration squeezePress work.
The prioritization scheme of the present embodiment runs low or when amount ratio is larger, may need extruding repeatedly in shampoo,At this moment the actual situation of extruding of shampoo whether detected by pressure sensor, and trigger or stop timer.In the time that the timer time equated with actual time, stop pushing Air shampoo bottle, and reminding user extruding finishes.
Embodiment 3, the present embodiment has increased controller control squeezer extruding shampoo on the basis of embodiment 2Time, simultaneously by the optimization feature of alarm reminding user.
Should be understood that, for those of ordinary skills, can be improved according to the above descriptionOr conversion, and all these improvement and conversion all should belong to the protection domain of claims of the present invention.

Claims (10)

1. the greasy degree that detects hair is controlled a method for shampoo consumption, it is characterized in that:
The image of storage hair normal condition in terminal, described terminal is obtained the image of the greasy state of hair, andThe image of the image of greasy state described in hair and described normal condition is compared to process and calculate shampoo useAmount;
Described terminal transfers to controller by wireless signal by described shampoo consumption, and described controller control is squeezedDepressor squeezes out and the corresponding shampoo of described shampoo consumption.
2. a kind of greasy degree that detects hair according to claim 1 is controlled the method for shampoo consumption,It is characterized in that, the image of storage hair normal condition in terminal, described terminal is obtained the greasy state of hairImage, and the image of the image of greasy state described in hair and described normal condition is compared to process and calculateThe concrete steps that go out shampoo consumption are:
Step 1.1, terminal is obtained respectively under hair normal condition, dried photo and the photo of not drying, by notBlowing photo calculates hair brightness value as luminance standard, and by drying, photo calculates the normal decentralization of hairValue is as divergence criteria;
Step 1.2, photo when described terminal is obtained the greasy state of hair, calculates hair under greasy state brightDegree value and decentralization value, be designated as greasy brightness value and greasy decentralization value;
Step 1.3, compares described greasy brightness value and described luminance standard, determines the first shampoo consumption;
Step 1.4, compares described greasy decentralization value and described divergence criteria, determines the second shampoo consumption;
Step 1.5, calculates the weighted average of described the first shampoo consumption and described the second shampoo consumption, described inWeighted average is described shampoo consumption.
3. a kind of greasy degree that detects hair according to claim 2 is controlled the method for shampoo consumption,It is characterized in that, the method for calculating hair brightness value is: the photo to the greasy state of hair cream or normal condition entersRow normalized, brightness value H=(r+g+b)/3 or brightness value H=MAX (r, g, b), wherein r is colorIn red component, g is the green component in color, b is the blue component in color;
4. a kind of greasy degree that detects hair according to claim 2 is controlled the method for shampoo consumption,It is characterized in that, the method for calculating hair decentralization value is: to the photo of the greasy state of hair cream or normal conditionCarry out stochastical sampling, obtain the array (x by distance forms between n adjacent hair tip1,x2,..xn-1,xn),Decentralization value x = S n , Wherein S = Σ i = 1 i = n x i .
5. a kind of greasy degree that detects hair according to claim 2 is controlled the method for shampoo consumption,It is characterized in that:
Compare described greasy brightness value and described luminance standard, determine that the concrete grammar of the first shampoo consumption is:Calculate the luminance difference between described greasy brightness value and described luminance standard, determine according to described luminance differenceThe first shampoo consumption;
Compare described greasy decentralization value and described divergence criteria, determine that the method for the second shampoo consumption is:Calculate the decentralization difference between described greasy decentralization value and described divergence criteria, according to described decentralizationDifference is determined the second shampoo consumption;
In described terminal, prestore the first mapping relations table of described luminance difference and described the first shampoo consumption,And the second mapping relations table of described decentralization difference and described the second shampoo consumption, described the first mapping is closedSystem's table and described the second mapping relations table are definite according to statistics, and store in the mode of Hash table,First row represents the absolute value of the difference of brightness value or the difference of decentralization value, and what secondary series represented is shampoo consumption.
6. a kind of greasy degree that detects hair according to claim 2 is controlled the method for shampoo consumption,It is characterized in that: the weight of described the first shampoo consumption and described the second shampoo consumption is empirical data, prestoresIn described terminal.
7. a kind of greasy degree that detects hair according to claim 1 is controlled the method for shampoo consumption,It is characterized in that, described controller is controlled it by the suitable extrusion time of control squeezer and is squeezed out and instituteState the corresponding shampoo of shampoo consumption.
8. a kind of greasy degree that detects hair according to claim 7 is controlled the method for shampoo consumption,It is characterized in that: described suitable extrusion timeWherein, v is shampoo flow velocity, and L is described perfume (or spice)Ripple consumption, R is that shampoo goes out port radius.
9. a kind of greasy degree that detects hair according to claim 7 is controlled the method for shampoo consumption,It is characterized in that: described controller obtains actual extrusion time by the cooperation of timer and pressure sensor,When described pressure sensor senses pressure when shampoo is flowed out in shampoo outlet, timer triggering timing starts, instituteState pressure sensor and do not sense that pressure timer timing when shampoo is flowed out in shampoo outlet finishes; Described controlDevice calculates the extrusion time difference of described actual extrusion time and suitable extrusion time, and controls described squeezerComplete the extruding action with described extrusion time difference corresponding duration.
10. a kind of greasy degree that detects hair according to claim 1 is controlled the side of shampoo consumptionMethod, is characterized in that: when described controller control squeezer extruding shampoo, remind use by alarm simultaneouslyFamily.
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 true CN105607660A (en) 2016-05-25
CN105607660B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108427337A (en) * 2018-01-23 2018-08-21 杭州旭鹏智能箱柜有限公司 A kind of intelligence cover used during hair washing and its operating method

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

Cited By (2)

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

Also Published As

Publication number Publication date
CN105607660B (en) 2018-09-28

Similar Documents

Publication Publication Date Title
CN107277989B (en) Intelligent House Light control method and device
CN110217162A (en) Vehicle atmosphere lamp control method, device, computer readable storage medium and vehicle
CN203151833U (en) LED control system based on human body sensing
CN103501560B (en) Control method, device and system of LED (Light Emitting Diode) lighting equipment
CN104076985B (en) Intelligent switch with adjustable panel backlight colour
CN107635338A (en) A kind of single lamp control method, apparatus and system based on arrowband Internet of Things
CN107036390B (en) The information management and control method of air cooling type refrigerator, device and air cooling type refrigerator
CN106900108B (en) A kind of self-organizing LED scene lamps
CN103971131A (en) Preset facial expression recognition method and device
CN106778623A (en) A kind of terminal screen control method, device and electronic equipment
WO2022262370A1 (en) Method and apparatus for controlling air conditioner, and air conditioner
CN208691588U (en) A kind of high-tech heat indicating paint skill craftwork
CN103200313A (en) Method of converting between normal mode and specific mode of handheld equipment and handheld equipment
CN109005628A (en) Street lamp color temperature adjusting method, street lamp and computer readable storage medium
CN103791591A (en) System for achieving intelligent energy-saving control of air conditioner based on self-adaptive learning
CN105607660A (en) Method for controlling consumed shampoo amount by detecting greasy degree of hair
WO2015192489A1 (en) Photographing method and apparatus of mobile terminal and mobile photographing terminal
CN115039897B (en) Internet of things control method and device suitable for coffee bean production
CN108286795A (en) Water heater and its control method
CN108564913A (en) Brightness adjusting method and related product
US11377830B2 (en) Faucet control system
WO2023123581A1 (en) Lamp effect control method and apparatus, illumination device, electronic device, and storage medium
CN110032351A (en) Screen blue light adjusting method, device, electronic equipment and storage medium
CN204795719U (en) Response lamp system with long -range function that sets up
CN113573441B (en) Method for adjusting brightness of lighting equipment and electronic equipment

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180928

Termination date: 20190105