TWI737333B - Method for monitoring scalp, smart hair dryer and storage medium - Google Patents

Method for monitoring scalp, smart hair dryer and storage medium Download PDF

Info

Publication number
TWI737333B
TWI737333B TW109118704A TW109118704A TWI737333B TW I737333 B TWI737333 B TW I737333B TW 109118704 A TW109118704 A TW 109118704A TW 109118704 A TW109118704 A TW 109118704A TW I737333 B TWI737333 B TW I737333B
Authority
TW
Taiwan
Prior art keywords
head
hair
photo
white
proportion
Prior art date
Application number
TW109118704A
Other languages
Chinese (zh)
Other versions
TW202147175A (en
Inventor
黃彥人
Original Assignee
鴻海精密工業股份有限公司
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 鴻海精密工業股份有限公司 filed Critical 鴻海精密工業股份有限公司
Priority to TW109118704A priority Critical patent/TWI737333B/en
Application granted granted Critical
Publication of TWI737333B publication Critical patent/TWI737333B/en
Publication of TW202147175A publication Critical patent/TW202147175A/en

Links

Images

Abstract

The present invention provides a method for monitoring scalp, which is applied to a smart hair dryer including a photographing device. The method includes: obtaining a plurality of head photos using the photographing device when the smart hair dryer is running; identifying a head region corresponding to each of the plurality of head photos; identifying relevant parameters of each head region based on the head photos corresponding to each head region; and analyzing a scalp condition of each head region based on the relevant parameters of each head region and historical parameters of each head region. The present invention can effectively monitor the scalp. The present invention also provides a smart hair dryer and a storage medium.

Description

監視頭皮的方法、智慧吹風機及儲存介質 Method of monitoring scalp, smart hair dryer and storage medium

本發明涉及影像處理技術領域,具體涉及一種監視頭皮的方法、智慧吹風機及儲存介質。 The invention relates to the technical field of image processing, in particular to a method for monitoring the scalp, a smart hair dryer and a storage medium.

我們常會用鏡子來整理自己的面容,但卻很少用鏡子來觀看自己頭皮的狀況。等到頭皮出現問題例如頭皮紅腫或是發量變得稀疏要開始挽救則往往遲了一步。 We often use mirrors to organize our faces, but we rarely use mirrors to observe the condition of our scalp. When there is a problem with the scalp, such as scalp redness or thinning of hair volume, it is often a step too late to start salvation.

鑒於以上內容,有必要提出一種監視頭皮的方法、智慧吹風機及儲存介質,能夠對頭皮進行有效監視。 In view of the above, it is necessary to propose a method for monitoring the scalp, a smart hair dryer and a storage medium, which can effectively monitor the scalp.

本發明第一方面提供一種監視頭皮的方法,應用於包括拍攝設備的智慧吹風機,所述方法包括:於所述智慧吹風機運行時,利用所述拍攝設備對使用者頭部進行拍攝,獲得多張頭部照片;識別所述多張頭部照片分別所對應的頭部區域;基於每個頭部區域所對應的頭部照片識別所述每個頭部區域的相關參數;及基於所述每個頭部區域的相關參數與該每個頭部區域對應的歷史相關參數分析所述每個頭部區域的頭皮狀況。 The first aspect of the present invention provides a method for monitoring the scalp, which is applied to a smart hair dryer including a photographing device, and the method includes: when the smart hair dryer is running, using the photographing device to photograph a user's head to obtain multiple images Head photos; identify the head regions corresponding to each of the multiple head photos; identify the relevant parameters of each head region based on the head photos corresponding to each head region; and based on each The related parameters of the head region and the historical related parameters corresponding to each head region are used to analyze the scalp condition of each head region.

優選地,該方法還包括:當分析得出任意一個頭部區域的頭皮出現異常時,在所述智慧吹風機的顯示幕上發出相應的提示。 Preferably, the method further includes: when it is found that the scalp of any head area is abnormal, sending out a corresponding prompt on the display screen of the smart hair dryer.

優選地,所述每個頭部區域的相關參數包括:發色參數,所述發色參 數包括頭髮顏色及白髮比例;其中,識別所述每個頭部區域的所述發色參數的步驟包括:預先定義每種顏色所對應的RGB值的取值範圍;根據任意一個頭部區域對應的任意一張頭部照片的圖元點的RGB值確定該任意一張頭部照片的每個圖元點的顏色,以及根據該任意一張頭部照片中與每種顏色所對應的圖元點的總數、該任意一張頭部照片所包括的所有圖元點的總數確定該任意一張頭部照片所包括的每種顏色所占的比例值;將與最大比例值對應的顏色作為該任意一張頭部照片所對應的頭髮顏色;以及將該任意一張頭部照片的白色所占的比例值作為該任意一張頭部照片所對應的白髮比例,由此獲得對應任意一個頭部區域的所有頭部照片中的每張頭部照片所對應的頭髮顏色和白髮比例;根據任意一個頭部區域對應的所有頭部照片中的每張頭部照片所對應的頭髮顏色確定該任意一個頭部區域的頭髮顏色;以及根據任意一個頭部區域對應的所有頭部照片中的每張頭部照片所對應的白髮比例確定該任意一個頭部區域的白髮比例。 Preferably, the relevant parameters of each head region include: hair color parameters, and the hair color parameters The number includes hair color and white hair ratio; wherein, the step of identifying the hair color parameters of each head region includes: predefining the value range of the RGB value corresponding to each color; according to any head region The RGB value of the pixel point of any corresponding head photo determines the color of each pixel point of any head photo, and the image corresponding to each color in the any head photo is determined. The total number of primitive points and the total number of all primitive points included in any one head photo determine the proportion value of each color included in any one head photo; the color corresponding to the maximum proportion value is taken as The hair color corresponding to the any head photo; and the proportion of the white hair of the any head photo is used as the white hair ratio corresponding to the any head photo, thereby obtaining the corresponding one The hair color and white hair ratio corresponding to each head photo in all head photos in the head area; determine according to the hair color corresponding to each head photo in all head photos corresponding to any one head area The hair color of any head region; and the white hair ratio of any head region is determined according to the white hair ratio corresponding to each of all head photos corresponding to any head region.

優選地,所述確定任意一個頭部區域的頭髮顏色包括:基於任意一個頭部區域對應的所有頭部照片中的每張頭部照片所對應的頭髮顏色統計所述任意一個頭部區域所對應的每種頭髮顏色的頻次;及將對應最大頻次的頭髮顏色作為所述任意一個頭部區域的頭髮顏色。 Preferably, the determining the hair color of any one head region includes: counting the hair color corresponding to any one head region based on the hair color corresponding to each of all head photos corresponding to any one head region The frequency of each hair color of the, and the hair color corresponding to the maximum frequency is used as the hair color of any one of the head regions.

優選地,所述每個頭部區域的相關參數包括:頭皮參數,所述頭皮參數包括是否有頭皮屑、頭髮是否出油,及頭皮紅腫程度;其中,識別所述每個頭部區域是否有頭皮屑以及頭髮是否出油的步驟包括:預先定義白色圖元點所對應的RBG值的取值範圍;根據任意一個頭部區域對應的任意一張頭部照片的圖元點的RGB值確定該任意一張頭部照片中的白色圖元點;基於所述任意一張頭部照片中的白色圖元點確定連通區域;統計所述任意一張頭部照片中的每個連通區域所對應的白色圖元點的總數;將白色圖元點的總數小於預設值的連通區域作為所述任意一張頭部照片中的有頭皮屑區域;將白色圖元點的總數大於或者等於所述預設值的連通區域作為所述任意一張頭部照片中頭髮出油的區域; 及當所述任意一個頭部區域對應的所有照片中存在至少一張頭部照片包括頭皮屑區域時,確定所述任意一個頭部區域有頭皮屑;及當所述任意一個頭部區域的所有照片中存在至少一張頭部照片包括頭髮出油的區域時,確定所述任意一個頭部區域發生頭髮出油的情況;其中,識別所述每個頭部區域的頭皮紅腫程度的步驟包括:預先定義紅色圖元點所對應的RBG值的取值範圍;根據任意一個頭部區域對應的任意一張頭部照片的圖元點的RGB值確定該任意一張頭部照片中的紅色圖元點;根據該任意一張頭部照片中的紅色圖元點的總數以及該任意一張頭部照片所包括的所有紅色圖元點的總數計算該任意一張頭部照片的紅色圖元點比例;根據任意一個頭部區域對應的所有頭部照片中的每張頭部照片所對應的紅色圖元點比例確定該任意一個頭部區域的紅色程度。 Preferably, the relevant parameters of each head area include: scalp parameters, the scalp parameters include whether there is dandruff, whether the hair is oily, and the degree of scalp redness; wherein, it is identified whether each head area has The steps of dandruff and whether the hair is oily include: predefining the value range of the RBG value corresponding to the white primitive point; determining the RGB value of the primitive point corresponding to any head area in any head photo The white primitive points in any head photo; the connected areas are determined based on the white primitive points in any head photo; the statistics are calculated for each connected area in the any head photo The total number of white primitive points; the connected area where the total number of white primitive points is less than the preset value is used as the dandruff area in any one of the head photos; the total number of white primitive points is greater than or equal to the predetermined The connected area with a set value is used as the area where the hair is oily in any one of the head photos; And when there is at least one head photo including the dandruff area in all the photos corresponding to the any one head area, it is determined that the any one head area has dandruff; and when all the photos in the any one head area When there is at least one head photo including oily hair areas in the photo, it is determined that any one head area has oily hair; wherein the step of identifying the scalp redness and swelling of each head area includes: Predefine the value range of the RBG value corresponding to the red image element point; determine the red image element in any head photo according to the RGB value of the image element point of any head photo corresponding to any head area Point; calculate the proportion of red pixel points in any one head photo based on the total number of red pixel points in any one head photo and the total number of all red pixel points included in any one head photo ; Determine the redness of any head area according to the proportion of red pixel points corresponding to each head photo in all head photos corresponding to any head area.

優選地,所述每個頭部區域的相關參數包括:發質參數,其中,識別所述每個頭部區域的發質參數的步驟包括:將任意一個頭部區域對應的所有頭部照片轉化為灰度圖像;分別將所每張灰度圖二值化為黑白圖片,由此獲得任意一個頭部區域對應的所有黑白圖片;對所述任意一個頭部區域對應的任意一張黑白圖片統計黑色圖元點的總數;基於所述任意一張黑白圖片的黑色圖元點的總數以及所述任意一張黑白圖片的所有圖元點總數計算所述任意一張黑白圖片的黑色圖元點比例,由此獲得所述任意一個頭部區域對應的每張黑白圖片的黑色圖元點比例;及根據所述任意一個頭部區域對應的每張黑白圖片的黑色圖元點比例確定該任意一個頭部區域的發質參數。 Preferably, the relevant parameters of each head region include: hair quality parameters, wherein the step of identifying the hair quality parameters of each head region includes: converting all head photos corresponding to any one head region Is a grayscale image; each grayscale image is binarized into a black and white image, thereby obtaining all black and white images corresponding to any head region; for any black and white image corresponding to any one head region Count the total number of black primitive points; calculate the black primitive points of any black-and-white picture based on the total number of black primitive points of any black-and-white picture and the total number of all primitive points of any black-and-white picture Ratio, thereby obtaining the proportion of black primitive points of each black-and-white picture corresponding to the any one head region; and determining the any one according to the proportion of black primitive points of each black-and-white picture corresponding to the any one head region Hair quality parameters of the head area.

本發明第二方面提供一種智慧吹風機,所述智慧吹風機包括儲存器和處理器,所述儲存器用於儲存至少一個電腦可讀指令,所述處理器用於執行所述至少一個電腦可讀指令以實現所述的監視頭皮的方法。 A second aspect of the present invention provides a smart hair dryer. The smart hair dryer includes a storage and a processor. The storage is configured to store at least one computer-readable instruction, and the processor is configured to execute the at least one computer-readable instruction to implement The described method of monitoring the scalp.

優選地,所述智慧吹風機的拍攝設備設置在該智慧吹風機的殼體上的風嘴所在位置。 Preferably, the photographing device of the smart hair dryer is arranged at the position where the air nozzle on the casing of the smart hair dryer is located.

優選地,所述拍攝設備設置在三軸穩定器上,所述三軸穩定器收容於所述智慧吹風機的殼體內或者外露於該智慧吹風機的殼體上。 Preferably, the photographing device is arranged on a three-axis stabilizer, and the three-axis stabilizer is housed in or exposed on the housing of the smart hair dryer.

本發明協力廠商面提供一種非易失性可讀儲存介質,所述非易失性可讀儲存介質儲存有至少一個電腦可讀指令,所述至少一個電腦可讀指令被處理器執行時實現所述的監視頭皮的方法。 The third party of the present invention provides a non-volatile readable storage medium, the non-volatile readable storage medium stores at least one computer readable instruction, and when the at least one computer readable instruction is executed by a processor, the The method of monitoring the scalp described above.

本發明實施例中所述的監視頭皮的方法、智慧吹風機及儲存介質,能夠於智慧吹風機吹頭髮的同時實現對頭皮狀況的監視。 The method for monitoring the scalp, the smart hair dryer and the storage medium described in the embodiments of the present invention can realize the monitoring of the scalp condition while the smart hair dryer blows hair.

3:智慧吹風機 3: Smart hair dryer

30:監視頭皮的系統 30: The system that monitors the scalp

31:儲存器 31: Storage

32:處理器 32: processor

33:通訊匯流排 33: Communication bus

34:拍攝設備 34: shooting equipment

35:顯示幕 35: display

36:三軸穩定器 36: Three-axis stabilizer

37:馬達 37: Motor

38:風扇 38: Fan

300:殼體 300: shell

301:獲取模組 301: Get the module

302:執行模組 302: Execution module

為了更清楚地說明本發明實施例或習知技術中的技術方案,下面將對實施例或習知技術描述中所需要使用的附圖作簡單地介紹,顯而易見地,下面描述中的附圖僅僅是本發明的實施例,對於本領域普通技術人員來講,在不付出創造性勞動的前提下,還可以根據提供的附圖獲得其他的附圖。 In order to more clearly describe the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the drawings in the following description are merely It is an embodiment of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on the provided drawings without creative work.

圖1是本發明較佳實施例提供的監視頭皮的系統的運行環境圖。 Fig. 1 is a diagram of the operating environment of a system for monitoring the scalp provided by a preferred embodiment of the present invention.

圖2舉例說明拍攝設備在智慧吹風機上的安裝位置。 Figure 2 illustrates the installation location of the camera on the smart hair dryer.

圖3是本發明較佳實施例提供的監視頭皮的方法的流程圖。 Fig. 3 is a flowchart of a method for monitoring the scalp provided by a preferred embodiment of the present invention.

如下具體實施方式將結合上述附圖進一步說明本發明。 The following specific embodiments will further illustrate the present invention in conjunction with the above-mentioned drawings.

為了能夠更清楚地理解本發明的上述目的、特徵和優點,下面結合附圖和具體實施例對本發明進行詳細描述。需要說明的是,在不衝突的情況下,本發明的實施例及實施例中的特徵可以相互組合。 In order to be able to understand the above objectives, features and advantages of the present invention more clearly, the present invention will be described in detail below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other if there is no conflict.

在下面的描述中闡述了很多具體細節以便於充分理解本發明,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。 In the following description, many specific details are explained in order to fully understand the present invention. The described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

除非另有定義,本文所使用的所有的技術和科學術語與屬於本發明的技術領域的技術人員通常理解的含義相同。本文中在本發明的說明書中所使用的術語只是為了描述具體的實施例的目的,不是旨在於限制本發明。 Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field of the present invention. The terms used in the specification of the present invention herein are only for the purpose of describing specific embodiments, and are not intended to limit the present invention.

參閱圖1所示,是本發明較佳實施例提供的監視頭皮的系統的運行環境圖。 Referring to FIG. 1, it is a diagram of the operating environment of the system for monitoring the scalp provided by the preferred embodiment of the present invention.

本實施例中,監視頭皮的系統30運行於智慧吹風機3中。本實施例中,智慧吹風機3包括,但不限於,儲存器31、處理器32、至少一條通訊匯流排33、拍攝設備34、顯示幕35、馬達37、風扇38。 In this embodiment, the system 30 for monitoring the scalp runs in the smart hair dryer 3. In this embodiment, the smart hair dryer 3 includes, but is not limited to, a storage 31, a processor 32, at least one communication bus 33, a photographing device 34, a display screen 35, a motor 37, and a fan 38.

請同時參閱圖2所示,在一個實施例中,所述拍攝設備34可以設置於所述智慧吹風機3的殼體300上。 Please refer to FIG. 2 at the same time. In one embodiment, the photographing device 34 may be disposed on the housing 300 of the smart hair dryer 3.

在一個實施例中,該拍攝設備34設置在所述智慧吹風機3的殼體300上的風嘴301所在的位置。 In one embodiment, the photographing device 34 is arranged at the position where the air nozzle 301 on the casing 300 of the smart hair dryer 3 is located.

在一個實施例中,所述拍攝設備34可以設置在三軸穩定器36上,以在所述拍攝設備34隨著智慧吹風機3移動對用戶頭部進行拍攝時,減少抖動造成照片模糊的影響。 In one embodiment, the photographing device 34 may be set on the three-axis stabilizer 36 to reduce the effect of blurring caused by shaking when the photographing device 34 moves with the smart hair dryer 3 to photograph the user's head.

在一個實施例中,所述三軸穩定器36收容於所述智慧吹風機3的殼體300內或者外露於該智慧吹風機3的殼體300上。 In one embodiment, the three-axis stabilizer 36 is housed in the casing 300 of the smart hair dryer 3 or exposed on the casing 300 of the smart hair dryer 3.

所述拍攝設備34包括光學鏡頭和CMOS(Complementary Metal Oxide Semiconductor,互補金屬氧化物半導體)感光元件。 The photographing device 34 includes an optical lens and a CMOS (Complementary Metal Oxide Semiconductor, complementary metal oxide semiconductor) photosensitive element.

所述顯示幕35可以為觸摸顯示幕或者非觸摸顯示幕。 The display screen 35 may be a touch display screen or a non-touch display screen.

本領域技術人員應該瞭解,圖1和圖2示出的智慧吹風機的結構並不構成本發明實施例的限定,所述智慧吹風機3還可以包括比圖示更多或更少的其他硬體或者軟體,或者不同的部件佈置。 Those skilled in the art should understand that the structure of the smart hair dryer shown in FIGS. 1 and 2 does not constitute a limitation of the embodiment of the present invention. The smart hair dryer 3 may also include more or less other hardware or Software, or different component arrangements.

在一些實施例中,所述智慧吹風機3包括一種能夠按照事先設定或儲存的電腦可讀指令,自動進行數值計算和/或資訊處理的終端,其硬體包括但不 限於微處理器、專用積體電路、可程式設計閘陣列、數文書處理器及嵌入式設備等。 In some embodiments, the smart hair dryer 3 includes a terminal that can automatically perform numerical calculation and/or information processing according to pre-set or stored computer-readable instructions, and its hardware includes but not Limited to microprocessors, dedicated integrated circuits, programmable gate arrays, digital word processors and embedded devices, etc.

需要說明的是,所述智慧吹風機3僅為舉例,其他現有的或今後可能出現的智慧吹風機如可適應於本發明,也應包含在本發明的保護範圍以內,並以引用方式包含於此。 It should be noted that the smart hair dryer 3 is only an example. If other existing or future smart hair dryers can be adapted to the present invention, they should also be included in the protection scope of the present invention and included here by reference.

在一些實施例中,所述儲存器31用於儲存程式碼和各種資料,例如安裝在所述智慧吹風機3中的監視頭皮的系統30,並在智慧吹風機3的運行過程中實現高速、自動地完成程式或資料的存取。所述儲存器31包括唯讀儲存器(Read-Only Memory,ROM)、可程式設計唯讀儲存器(Programmable Read-Only Memory,PROM)、可抹除可程式設計唯讀儲存器(Erasable Programmable Read-Only Memory,EPROM)、一次可程式設計唯讀儲存器(One-time Programmable Read-Only Memory,OTPROM)、電子抹除式可複寫唯讀儲存器(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、唯讀光碟(Compact Disc Read-Only Memory,CD-ROM)或其他光碟儲存器、磁碟儲存器、磁帶儲存器、或者任何其他能夠用於攜帶或儲存資料的非易失性的可讀儲存介質。 In some embodiments, the storage 31 is used to store program codes and various data, such as the scalp monitoring system 30 installed in the smart hair dryer 3, and realizes high-speed and automatic operation during the operation of the smart hair dryer 3. Complete program or data access. The storage 31 includes a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable Read-Only Memory, PROM), and an erasable programmable read-only memory (Erasable Programmable Read-Only Memory). -Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM) , Compact Disc Read-Only Memory (CD-ROM) or other optical disc storage, magnetic disk storage, tape storage, or any other non-volatile readable storage that can be used to carry or store data medium.

在一些實施例中,所述至少一個處理器32可以由積體電路組成,例如可以由單個封裝的積體電路所組成,也可以是由多個相同功能或不同功能封裝的積體電路所組成,包括一個或者多個中央處理器(Central Processing unit,CPU)、微處理器、數文書處理晶片、圖形處理器及各種控制晶片的組合等。所述至少一個處理器32是所述智慧吹風機3的控制核心(Control Unit),利用各種介面和線路連接整個智慧吹風機3的各個部件,透過運行或執行儲存在所述儲存器31內的程式或者模組,以及調用儲存在所述儲存器31內的資料,以執行智慧吹風機3的各種功能和處理資料,例如執行監視頭皮的功能(詳見下文中對圖3的描述)。 In some embodiments, the at least one processor 32 may be composed of integrated circuits, for example, may be composed of a single package of integrated circuits, or may be composed of multiple packages of the same function or different functions. , Including one or more central processing units (CPU), microprocessors, digital word processing chips, graphics processors, and various control chips. The at least one processor 32 is the control core (Control Unit) of the smart hair dryer 3, which uses various interfaces and lines to connect the various components of the entire smart hair dryer 3, by running or executing programs stored in the storage 31 or Modules and call the data stored in the storage 31 to perform various functions and process data of the smart hair dryer 3, for example, perform the function of monitoring the scalp (see the description of FIG. 3 below for details).

在一些實施例中,所述至少一條通信匯流排33被設置為實現所述儲存器31、所述至少一個處理器32、拍攝設備34,以及顯示幕35等之間的連接通信。 In some embodiments, the at least one communication bus 33 is configured to realize connection and communication among the storage 31, the at least one processor 32, the photographing device 34, the display screen 35, and the like.

儘管未示出,所述智慧吹風機3還可以包括給各個部件供電的電源(比如電池),優選地,電源可以透過電源管理裝置與所述至少一個處理器32邏輯相連,從而透過電源管理裝置實現管理充電、放電、以及功耗管理等功能。電源還可以包括一個或一個以上的直流或交流電源、再充電裝置、電源故障檢測電路、電源轉換器或者逆變器、電源狀態指示器等任意元件。所述智慧吹風機3還可以包括電熱元件、多種感測器、藍牙模組、Wi-Fi模組等,在此不再贅述。 Although not shown, the smart hair dryer 3 may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 32 through a power management device, so as to be realized through the power management device. Manage functions such as charging, discharging, and power management. The power supply may also include one or more DC or AC power supplies, recharging devices, power failure detection circuits, power converters or inverters, power supply status indicators and other arbitrary components. The smart hair dryer 3 may also include an electric heating element, various sensors, a Bluetooth module, a Wi-Fi module, etc., which will not be repeated here.

應該瞭解,所述實施例僅為說明之用,在專利申請範圍上並不受此結構的限制。 It should be understood that the embodiments are only for illustrative purposes, and are not limited by this structure in the scope of the patent application.

在一些實施例中,所述監視頭皮的系統30可以包括多個由程式碼段所組成的功能模組。所述監視頭皮的系統30中的各個程式段的程式碼可以儲存於儲存器(例如智慧吹風機1的儲存器31)中,並由至少一個處理器(例如處理器32)所執行,以實現監視頭皮的功能(詳見下文中對圖3的描述)。 In some embodiments, the scalp monitoring system 30 may include multiple functional modules composed of code segments. The code of each program segment in the scalp monitoring system 30 can be stored in a memory (for example, the memory 31 of the smart hair dryer 1), and executed by at least one processor (for example, the processor 32) to realize monitoring The function of the scalp (see the description of Figure 3 below for details).

本實施例中,所述監視頭皮的系統30根據其所執行的功能,可以被劃分為多個功能模組。所述功能模組可以包括:獲取模組301、執行模組302。本發明所稱的模組是指一種能夠被至少一個處理器(例如處理器32)所執行並且能夠完成固定功能的一系列電腦可讀指令段,其儲存在儲存器(例如智慧吹風機1的儲存器31)中。在本實施例中,關於各模組的功能將在後續的實施例中詳述。 In this embodiment, the system 30 for monitoring the scalp can be divided into multiple functional modules according to the functions it performs. The functional modules may include: an acquisition module 301 and an execution module 302. The module referred to in the present invention refers to a series of computer-readable instruction segments that can be executed by at least one processor (such as the processor 32) and can complete fixed functions, which are stored in a storage (such as the storage of the smart hair dryer 1).器31)中. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

本實施例中,以軟體功能模組的形式實現的集成的單元,可以儲存在一個非易失性可讀取儲存介質中。上述軟體功能模組包括至少一個電腦可讀指令,使得一台智慧吹風機或處理器(processor)透過執行該至少一個電腦可讀指令實現本發明各個實施例的方法的部分,例如圖3所示的監視頭皮的方法。 In this embodiment, the integrated unit implemented in the form of a software function module can be stored in a non-volatile readable storage medium. The above-mentioned software function module includes at least one computer-readable instruction, so that a smart hair dryer or a processor (processor) executes the at least one computer-readable instruction to implement part of the method of each embodiment of the present invention, for example, as shown in FIG. 3 Ways to monitor the scalp.

在進一步的實施例中,結合圖1,所述至少一個處理器32可執行所述智慧吹風機3的操作裝置以及安裝的各類應用程式(如所述的監視頭皮的系統30)、程式碼等,例如,上述的各個模組。 In a further embodiment, in conjunction with FIG. 1, the at least one processor 32 can execute the operating device of the smart hair dryer 3 and various installed applications (such as the scalp monitoring system 30), program codes, etc. , For example, the various modules mentioned above.

所述儲存器31中儲存有程式碼,且所述至少一個處理器32可調用所述儲存器31中儲存的程式碼以執行相關的功能。例如,圖1中所述監視頭皮的系統30的各個模組是儲存在所述儲存器31中的程式碼,並由所述至少一個處理器32所執行,從而實現所述各個模組的功能以達到監視頭皮的目的(詳見下文中對圖3的描述)。 Program codes are stored in the storage 31, and the at least one processor 32 can call the program codes stored in the storage 31 to perform related functions. For example, each module of the scalp monitoring system 30 in FIG. 1 is a program code stored in the memory 31 and executed by the at least one processor 32, thereby realizing the functions of the respective modules In order to achieve the purpose of monitoring the scalp (see the description of Figure 3 below for details).

在本發明的一個實施例中,所述儲存器31儲存一個或多個電腦可讀指令,所述一個或多個電腦可讀指令被所述至少一個處理器32所執行以實現監視頭皮的目的。具體地,所述至少一個處理器32對上述電腦可讀指令的具體實現方法詳見下文中對圖3的描述。 In an embodiment of the present invention, the storage 31 stores one or more computer-readable instructions, and the one or more computer-readable instructions are executed by the at least one processor 32 to achieve the purpose of monitoring the scalp . Specifically, the specific implementation method of the at least one processor 32 to the above-mentioned computer-readable instructions is detailed in the description of FIG. 3 below.

參閱圖3所示,為本發明較佳實施例提供的監視頭皮的方法的流程圖。 Refer to FIG. 3, which is a flowchart of a method for monitoring the scalp according to a preferred embodiment of the present invention.

在本實施例中,所述監視頭皮的方法可以應用於智慧吹風機3中,對於需要監視頭皮的智慧吹風機3,可以直接在智慧吹風機3上集成本發明的方法所提供的用於監視頭皮的功能,或者以軟體開發套件(Software Development Kit,SDK)的形式運行在智慧吹風機3上。 In this embodiment, the method for monitoring the scalp can be applied to the smart hair dryer 3. For the smart hair dryer 3 that needs to monitor the scalp, the function for monitoring the scalp provided by the method of the present invention can be directly integrated on the smart hair dryer 3. , Or run on the Smart Hair Dryer 3 in the form of a Software Development Kit (SDK).

如圖3所示,所述監視頭皮的方法具體包括以下步驟,根據不同的需求,該流程圖中步驟的順序可以改變,某些步驟可以省略。 As shown in FIG. 3, the method for monitoring the scalp specifically includes the following steps. According to different needs, the order of the steps in the flowchart can be changed, and some steps can be omitted.

步驟S1、獲取模組301於所述智慧吹風機3運行時,利用所述拍攝設備34對使用者頭部進行拍攝,獲得多張頭部照片。 Step S1: When the smart hair dryer 3 is running, the acquisition module 301 uses the photographing device 34 to photograph the head of the user to obtain multiple head photographs.

需要說明的是,所述智慧吹風機3運行時可以是指馬達37帶動風扇38運轉時。當然,所述智慧吹風機3也可以在沒有驅動馬達37的時候,控制所述拍攝設備34拍攝頭部照片。 It should be noted that the operation of the smart blower 3 may refer to the operation of the fan 38 driven by the motor 37. Of course, the smart hair dryer 3 can also control the photographing device 34 to take head shots when there is no driving motor 37.

步驟S2、執行模組302識別所述多張頭部照片分別所對應的頭部區域。 Step S2: The execution module 302 recognizes the head regions corresponding to the multiple head photos respectively.

在一個實施例中,執行模組302可以利用影像分析演算法例如範本匹配法、機器學習演算法來區分每張照片所對應的頭部區域。 In one embodiment, the execution module 302 can use an image analysis algorithm such as a template matching method and a machine learning algorithm to distinguish the head region corresponding to each photo.

在一個實施例中,所述頭部區域分為頭頂部位、後腦杓、前額、兩側。 In one embodiment, the head area is divided into the top of the head, the back of the head, the forehead, and both sides.

舉例而言,所述執行模組302可以收集對應每個頭部區域的預設數量的樣本照片;基於該對應每個頭部區域的預設數量的樣本照片訓練一個頭部區域識別模型;由此,所述執行模組302利用該頭部區域識別模型即可識別出每張照片所對應的頭部區域。 For example, the execution module 302 may collect a preset number of sample photos corresponding to each head region; train a head region recognition model based on the preset number of sample photos corresponding to each head region; Therefore, the execution module 302 can use the head region recognition model to recognize the head region corresponding to each photo.

步驟S3、執行模組302基於每個頭部區域所對應的頭部照片識別所述每個頭部區域的相關參數。 Step S3: The execution module 302 recognizes the relevant parameters of each head region based on the head photo corresponding to each head region.

在一個實施例中,所述每個頭部區域的相關參數包括發色參數。其中,所述發色參數包括頭髮顏色及白髮比例。 In one embodiment, the related parameters of each head region include hair color parameters. Wherein, the hair color parameters include hair color and white hair ratio.

在一個實施例中,執行模組302識別所述每個頭部區域的所述發色參數的步驟包括(a1)-(a4): In one embodiment, the step of the execution module 302 identifying the hair color parameter of each head region includes (a1)-(a4):

(a1)預先定義每種顏色所對應的RGB值的取值範圍。 (a1) Predefine the range of RGB values corresponding to each color.

(a2)根據任意一個頭部區域對應的任意一張頭部照片的每個圖元點的RGB值確定該任意一張頭部照片的每個圖元點的顏色,以及根據該任意一張頭部照片中與每種顏色所對應的圖元點的總數、該任意一張頭部照片所包括的所有圖元點的總數確定該任意一張頭部照片所包括的每種顏色所占的比例值。 (a2) Determine the color of each pixel point of any head photo according to the RGB value of each pixel point of any head photo corresponding to any head area, and according to the any head photo The total number of pixel points corresponding to each color in a photo, and the total number of all pixel points included in any one head photo determine the proportion of each color included in any one head photo value.

舉例而言,假設頭頂部位對應的照片A中,與黑色對應的圖元點的總數為T1,照片A所包括的圖元點的總數為T,那麼照片A所包括的黑色所占的比例值為T1/T。 For example, suppose that in photo A corresponding to the top of the head, the total number of pixel points corresponding to black is T1, and the total number of pixel points included in photo A is T, then the proportion of black included in photo A is Is T1/T.

(a3)將該任意一張頭部照片所包括的所有顏色分別所占的比例值中,與最大比例值對應的顏色作為該任意一張頭部照片所對應的頭髮顏色;以及將該任意一張頭部照片的白色所占的比例值作為該任意一張頭部照片所對應的白髮比例,由此獲得對應任意一個頭部區域的所有頭部照片中的每張頭部照片所對應的頭髮顏色和白髮比例。 (a3) Among the ratio values of all the colors included in the any one head photo, the color corresponding to the largest ratio value is used as the hair color corresponding to the any one head photo; and the any one The proportion of white hair in a head photo is taken as the proportion of white hair corresponding to any one head photo, thereby obtaining the corresponding head photo in all head photos corresponding to any head area Hair color and gray hair ratio.

舉例而言,假設頭頂部位對應的照片A所包括的黑色所占的比例值為90%、白色所占的比例值為5%、灰色所占的比例值為5%,那麼與最大比例值90%對應的顏色(即黑色)則作為該照片A所對應的頭髮顏色,該照片A的白色所占的比例值5%作為該照片A所對應的白髮比例。(a4)根據任意一個頭部區域對應的所有頭部照片中的每張頭部照片所對應的頭髮顏色確定該任意一個頭部區域的頭髮顏色;以及根據任意一個頭部區域對應的所有頭部照片中的每張頭部照片所對應的白髮比例確定該任意一個頭部區域的白髮比例。 For example, assuming that the photo A corresponding to the top of the head includes the proportion of black in 90%, the proportion of white is 5%, and the proportion of gray is 5%, then the maximum proportion is 90%. The color corresponding to% (ie, black) is used as the hair color corresponding to the photo A, and the proportion of white hair in the photo A is 5% as the proportion of white hair corresponding to the photo A. (a4) Determine the hair color of any head region according to the hair color corresponding to each head photo in all head photos corresponding to any head region; and determine the hair color of any head region according to all heads corresponding to any head region The proportion of white hair corresponding to each head photo in the photo determines the proportion of white hair in any one head region.

在一個實施例中,所述確定任意一個頭部區域的頭髮顏色包括:基於任意一個頭部區域對應的所有頭部照片中的每張頭部照片所對應的頭髮顏色統計所述任意一個頭部區域所對應的每種頭髮顏色的頻次;及將對應最大頻次的頭髮顏色作為所述任意一個頭部區域的頭髮顏色。 In one embodiment, the determining the hair color of any head region includes: counting the hair color corresponding to each head photo in all head photos corresponding to any head region. The frequency of each hair color corresponding to the region; and the hair color corresponding to the maximum frequency is used as the hair color of any one head region.

舉例而言,假設頭頂部位對應的照片A、照片B、照片C;其中,在步驟(a3)中確定照片A所對應的頭髮顏色為黑色、照片B所對應的頭髮顏色為黑色、照片C所對應的頭髮顏色為白色,即黑色的頻次為兩次,白色的頻次為1次,那麼頭頂部位對應的顏色即為黑色。 For example, suppose the photo A, photo B, and photo C corresponding to the top of the head; among them, in step (a3), it is determined that the hair color corresponding to photo A is black, the hair color corresponding to photo B is black, and the hair color corresponding to photo C is The corresponding hair color is white, that is, the frequency of black is twice, and the frequency of white is 1, then the color corresponding to the top of the head is black.

在一個實施例中,所述確定任意一個頭部區域的白髮比例包括:將任意一個頭部區域對應的所有頭部照片中的每張頭部照片所對應的白髮比例進行大小排序;將大小居中的白髮比例作為所述任意一個頭部區域的白髮比例。 In one embodiment, the determining the proportion of white hair in any one head region includes: sorting the proportion of white hair corresponding to each of all the head photos corresponding to any one head region; The proportion of white hair in the middle size is used as the proportion of white hair in any one head region.

舉例而言,假設頭頂部位對應三張頭部照片A、照片B、照片C;該三張頭部照片分別所對應的白髮比例為5%、15%、25%,則將大小居中的白髮比例(即15%)作為所述頭頂部位的白髮比例。 For example, suppose that the top position of the head corresponds to three head photos A, photo B, and photo C; the three head photos correspond to 5%, 15%, and 25% of white hair, respectively. The hair ratio (ie 15%) is taken as the ratio of white hair at the top of the head.

需要說的是,當無法從該多張頭部照片分別所對應的白髮比例中確定大小居中的白髮比例時,則取居中的白髮比例的平均值作為所述頭頂部位的白髮比例。 What needs to be said is that when the proportion of white hair in the middle size cannot be determined from the proportions of white hair corresponding to each of the multiple head photos, then the average of the proportion of white hair in the middle is taken as the proportion of white hair in the top of the head. .

舉例而言,假設頭頂部位對應四張頭部照片,該四張頭部照片分別所對應的白髮比例為5%、15%、25%、45%,則將大小居中的兩個白髮比例(即15%和25%)的平均值(即20%)作為所述頭頂部位的白髮比例。 For example, suppose that the top position of the head corresponds to four head photos, and the proportions of gray hair corresponding to the four head photos are 5%, 15%, 25%, and 45%. The average value (ie, 20%) of (ie 15% and 25%) is used as the proportion of gray hair at the top of the head.

在一個實施例中,所述每個頭部區域的相關參數還包括頭皮參數。其中,所述頭皮參數包括是否有頭皮屑、頭髮是否出油,及頭皮紅腫程度。 In one embodiment, the related parameters of each head region further include scalp parameters. Wherein, the scalp parameters include whether there is dandruff, whether the hair is oily, and the degree of scalp redness and swelling.

在一個實施例中,所述執行模組302識別所述每個頭部區域是否有頭皮屑以及頭髮是否出油的步驟包括(b1)-(b6): In one embodiment, the step of the execution module 302 identifying whether there is dandruff and whether the hair is oily in each head area includes (b1)-(b6):

(b1)預先定義白色圖元點所對應的RBG值的取值範圍。 (b1) Predefine the value range of the RBG value corresponding to the white image element point.

(b2)根據任意一個頭部區域對應的任意一張頭部照片的每個圖元點的RGB值確定該任意一張頭部照片中的白色圖元點。 (b2) Determine the white image element point in any head photo according to the RGB value of each image element point of any head photo corresponding to any head area.

(b3)基於所述任意一張頭部照片中的白色圖元點確定連通區域。 (b3) Determine the connected area based on the white primitive points in any one of the head photos.

本實施例中,所述連通區域是指由連續的白色圖元點所構成的區域。 In this embodiment, the connected area refers to an area formed by continuous white primitive points.

(b4)統計所述任意一張頭部照片中的每個連通區域所對應的白色圖元點的總數。 (b4) Count the total number of white primitive points corresponding to each connected area in any one of the head photos.

(b5)將白色圖元點的總數小於預設值(例如2)的連通區域作為所述任意一張頭部照片中的有頭皮屑區域;將白色圖元點的總數大於或者等於所述預設值的連通區域作為所述任意一張頭部照片中頭髮出油的區域。 (b5) The connected area where the total number of white primitive points is less than the preset value (for example, 2) is used as the dandruff area in any one of the head photos; the total number of white primitive points is greater than or equal to the preset value (for example, 2); The connected area of the set value is used as the oily area of the hair in any one of the head photos.

(b6)當所述任意一個頭部區域對應的所有照片中存在至少一張頭部照片包括頭皮屑區域時,確定所述任意一個頭部區域有頭皮屑;及當所述任意一個頭部區域的所有照片中存在至少一張頭部照片包括頭髮出油的區域時,確定所述任意一個頭部區域發生頭髮出油的情況。 (b6) When there is at least one head photo including a dandruff area in all photos corresponding to any one head region, it is determined that any one head region has dandruff; and when the any one head region has dandruff; and When there is at least one head photo in all the photos including oily hair area, it is determined that hair oily occurs in any one head area.

在一個實施例中,所述執行模組302識別所述每個頭部區域的頭皮紅腫程度的步驟包括(c1)-(c4): In one embodiment, the step of the execution module 302 identifying the degree of redness and swelling of the scalp of each head region includes (c1)-(c4):

(c1)預先定義紅色圖元點所對應的RBG值的取值範圍。 (c1) Predefine the value range of the RBG value corresponding to the red image element point.

(c2)根據任意一個頭部區域對應的任意一張頭部照片的每個圖元點的RGB值確定該任意一張頭部照片中的紅色圖元點。 (c2) Determine the red image element point in any head photo according to the RGB value of each image element point of any head photo corresponding to any head area.

(c3)根據該任意一張頭部照片中的紅色圖元點的總數以及該任意一張頭部照片所包括的所有紅色圖元點的總數計算該任意一張頭部照片的紅色圖元點比例。 (c3) Calculate the red pixel points of any head photo based on the total number of red pixel points in any one head photo and the total number of all red pixel points included in any one head photo Proportion.

舉例而言,假設頭頂部位對應的照片A中,紅色圖元點的總數為T2,照片A所包括的圖元點的總數為T,那麼照片A所包括的紅色圖元點所占的比例值為T2/T。 For example, suppose that in the photo A corresponding to the top of the head, the total number of red pixel points is T2, and the total number of pixel points included in the photo A is T, then the proportion value of the red pixel points included in the photo A For T2/T.

(c4)根據任意一個頭部區域對應的所有頭部照片中的每張頭部照片所對應的紅色圖元點比例確定該任意一個頭部區域的紅色程度。 (c4) Determine the redness of any head region according to the proportion of red pixel points corresponding to each head photo in all head photos corresponding to any head region.

本實施例中,所述執行模組302將該任意一個頭部區域對應的所有頭部照片中的每張頭部照片所對應的紅色圖元點比例進行大小排序;及將大小居中的紅色圖元點比例作為所述任意一個頭部區域的紅腫程度。 In this embodiment, the execution module 302 sorts the proportions of the red pixel points corresponding to each of all the head photos corresponding to any one of the head regions; and the red image with the center size The ratio of meta points is used as the degree of redness and swelling of any one head region.

舉例而言,假設頭頂部位對應三張頭部照片,該三張頭部照片分別所對應的紅色圖元點比例為5%、15%、25%,則將大小居中的紅色圖元點比例(即15%)作為所述頭頂部位的紅腫程度。 For example, suppose that the top position of the head corresponds to three head photos, and the proportions of red pixel points corresponding to the three head photos are 5%, 15%, and 25% respectively, then the proportion of the red pixel points in the middle size ( That is, 15%) as the degree of redness and swelling at the top of the head.

需要說的是,當頭頂部位對應多張頭部照片,無法從該多張頭部照片分別所對應的紅色圖元點比例中確定大小居中的紅色圖元點比例時,則取居中的兩個紅色圖元點比例的平均值作為所述頭頂部位的紅腫程度。 What needs to be said is that when the top of the head corresponds to multiple head photos, and the ratio of the red pixel points corresponding to the multiple head photos cannot be determined from the ratio of the red pixel points corresponding to the multiple head photos, the two centered red pixel points are selected. The average of the proportions of red pixel points is used as the degree of redness and swelling at the top of the head.

舉例而言,假設頭頂部位對應四張頭部照片,該四張頭部照片分別所對應的紅色圖元點比例為5%、15%、25%、45%,則將大小居中的兩個紅色圖元點比例(即15%和25%)的平均值(即20%)作為所述頭頂部位的紅腫程度。 For example, suppose that the top position of the head corresponds to four head photos, and the proportions of red pixel points corresponding to the four head photos are 5%, 15%, 25%, and 45%. The average value (ie 20%) of the ratio of pixel points (ie 15% and 25%) is used as the degree of redness and swelling at the top of the head.

在一個實施中,所述每個頭部區域的相關參數還包括發質參數。其中,所述執行模組302識別所述每個頭部區域的發質參數的步驟包括(d1)-(d5): In an implementation, the related parameters of each head region further include hair quality parameters. Wherein, the steps of the execution module 302 identifying the hair quality parameters of each head region include (d1)-(d5):

(d1)將任意一個頭部區域對應的所有頭部照片轉化為灰度圖像。 (d1) Convert all head photos corresponding to any head region into grayscale images.

(d2)分別將每張灰度圖二值化為黑白圖片,由此獲得任意一個頭部區域對應的所有黑白圖片。 (d2) Binarize each grayscale image into a black and white image, thereby obtaining all black and white images corresponding to any head region.

(d3)對所述任意一個頭部區域對應的任意一張黑白圖片統計黑色圖元點的總數。 (d3) Count the total number of black primitive points for any black and white picture corresponding to any one of the head regions.

(d4)基於所述任意一張黑白圖片的黑色圖元點的總數以及所述任意一張黑白圖片的所有圖元點總數計算所述任意一張黑白圖片的黑色圖元點比例,由此獲得所述任意一個頭部區域對應的每張黑白圖片的黑色圖元點比例。 (d4) Calculate the proportion of black primitive points of any black-and-white picture based on the total number of black primitive points of any black-and-white picture and the total number of all primitive points of any black-and-white picture, thereby obtaining The proportion of black pixel points of each black-and-white picture corresponding to any one of the head regions.

(d5)根據所述任意一個頭部區域對應的每張黑白圖片的黑色圖元點比例確定該任意一個頭部區域的發質參數。 (d5) Determine the hair quality parameter of any one head region according to the proportion of black pixel points of each black and white picture corresponding to the any one head region.

在一個實施例中,所述執行模組302將該任意一個頭部區域的所有黑白圖片中的每張黑白圖片的黑色圖元點比例進行大小排序;及將大小居中的黑色圖元點比例作為所述任意一個頭部區域的發質參數。 In one embodiment, the execution module 302 sorts the proportions of black primitives of each black-and-white picture in all black-and-white pictures of any head region; and takes the proportion of black primitives with the middle size as The hair quality parameter of any one of the head regions.

舉例而言,假設頭頂部位對應三張頭部照片,該三張頭部照片分別所對應的黑色圖元點比例為65%、75%、95%,則將大小居中的黑色圖元點比例(即75%)作為所述頭頂部位的發質參數。 For example, suppose that the top position of the head corresponds to three head photos, and the proportions of black pixel points corresponding to the three head photos are 65%, 75%, and 95%, then the proportion of black pixel points in the middle size ( That is, 75%) as the hair quality parameter at the top of the head.

需要說的是,當頭頂部位對應多張頭部照片,無法從該多張頭部照片分別所對應的黑色圖元點比例中確定大小居中的黑色圖元點比例時,則取居中的兩個黑色圖元點比例的平均值作為所述頭頂部位的發質參數。 What needs to be said is that when the top position of the head corresponds to multiple head photos, and the ratio of black pixel points in the middle size cannot be determined from the ratios of black pixel points corresponding to the multiple head photos, then the two centered ones are taken. The average value of the proportion of black pixel points is used as the hair quality parameter of the top position of the head.

舉例而言,假設頭頂部位對應四張頭部照片,該四張頭部照片分別所對應的紅色圖元點比例為65%、75%、95%、99%,則將大小居中的兩個黑色圖元點比例(即75%、95%)的平均值(即85%)作為所述頭頂部位的發質參數。 For example, suppose that the top position of the head corresponds to four head photos, and the proportions of the red pixel points corresponding to the four head photos are 65%, 75%, 95%, and 99% respectively, then the two black ones in the middle of the size The average value (that is, 85%) of the ratio of pixel points (that is, 75%, 95%) is used as the hair quality parameter at the top of the head.

在一個實施例中,所述執行模組302還將所述每個頭部區域的所述相關參數連同所述智慧吹風機3的當前的系統時間儲存到所述儲存器31中。 In one embodiment, the execution module 302 also stores the relevant parameters of each head area and the current system time of the smart hair dryer 3 in the storage 31.

在一個實施例中,所述執行模組302還將所述每個頭部區域的所述相關參數連同所述智慧吹風機3的當前的系統時間發送到一個外部設備例如一台電腦裝置。 In one embodiment, the execution module 302 also sends the relevant parameters of each head area together with the current system time of the smart hair dryer 3 to an external device such as a computer device.

步驟S4、執行模組302基於所述每個頭部區域的相關參數與該每個頭部區域對應的歷史相關參數分析所述每個頭部區域的頭皮狀況。 Step S4: The execution module 302 analyzes the scalp condition of each head region based on the related parameters of each head region and the historical related parameters corresponding to each head region.

在一個實施例中,所述每個頭部區域對應的歷史相關參數可以儲存在所述儲存器31中。 In one embodiment, the historical related parameters corresponding to each head region may be stored in the storage 31.

具體地,所述基於所述每個頭部區域的相關參數與該每個頭部區域對應的歷史相關參數分析所述每個頭部區域的頭皮狀況也即是將每種相關參數進行比較,根據比較結果來確定所述每個頭部區域的頭皮是否出現異常。 Specifically, the analyzing the scalp condition of each head region based on the related parameters of each head region and the historical related parameters corresponding to each head region is to compare each related parameter, According to the comparison result, it is determined whether the scalp of each head region is abnormal.

在一個實施例中,當分析得出任意一個頭部區域的頭皮出現異常時,執行模組302在所述智慧吹風機的顯示幕35上發出相應的提示(例如,可以在該顯示幕35上顯示文本資訊提示使用者某個頭部區域的頭皮出現異常)。 In one embodiment, when the analysis shows that the scalp of any head area is abnormal, the execution module 302 sends out a corresponding prompt on the display screen 35 of the smart hair dryer (for example, it may be displayed on the display screen 35). The text message reminds the user that there is an abnormality in the scalp of a certain head area).

舉例而言,假設與時間2020年1月1日對應的頭頂部位的發質參數為99%,若當前所計算得出的發質參數為75%,兩者之間的差值大於20%,則可以發出相應的提示,例如在顯示幕35上顯示發質參數降低較快,需對頭皮保養。 For example, suppose that the hair quality parameter at the top of the head corresponding to the time January 1, 2020 is 99%. If the currently calculated hair quality parameter is 75%, the difference between the two is greater than 20%, Corresponding prompts can be issued, for example, it is displayed on the display screen 35 that the hair quality parameters decrease relatively quickly, and maintenance of the scalp is required.

需要說明的是,在本發明所提供的幾個實施例中,應該理解到,所揭露的非易失性可讀儲存介質,裝置和方法,可以透過其它的方式實現。例如,以上所描述的裝置實施例僅僅是示意性的,例如,所述模組的劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式。 It should be noted that in the several embodiments provided by the present invention, it should be understood that the disclosed non-volatile readable storage medium, device, and method can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

所述作為分離部件說明的模組可以是或者也可以不是物理上分開的,作為模組顯示的部件可以是或者也可以不是物理單元,即可以位於一個地方,或者也可以分佈到多個網路單元上。可以根據實際的需要選擇其中的部分或者全部模組來實現本實施例方案的目的。 The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed to multiple networks Unit. Some or all of the modules may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.

另外,在本發明各個實施例中的各功能模組可以集成在一個處理單元中,也可以是各個單元單獨物理存在,也可以兩個或兩個以上單元集成在一個單元中。上述集成的單元既可以採用硬體的形式實現,也可以採用硬體加軟體功能模組的形式實現。 In addition, the functional modules in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be realized either in the form of hardware, or in the form of hardware plus software functional modules.

對於本領域技術人員而言,顯然本發明不限於上述示範性實施例的細節,而且在不背離本發明的精神或基本特徵的情況下,能夠以其他的具體形式實現本發明。因此,無論從哪一點來看,均應將實施例看作是示範性的,而且 是非限制性的,本發明的範圍由所附請求項而不是上述說明限定,因此旨在將落在請求項的等同要件的含義和範圍內的所有變化涵括在本發明內。不應將請求項中的任何附圖標記視為限制所涉及的請求項。此外,顯然“包括”一詞不排除其他單元或,單數不排除複數。裝置請求項中陳述的多個單元或裝置也可以由一個單元或裝置透過軟體或者硬體來實現。第一,第二等詞語用來表示名稱,而並不表示任何特定的順序。 For those skilled in the art, it is obvious that the present invention is not limited to the details of the above exemplary embodiments, and the present invention can be implemented in other specific forms without departing from the spirit or basic characteristics of the present invention. Therefore, regardless of the point of view, the embodiments should be regarded as exemplary, and It is non-limiting, and the scope of the present invention is defined by the appended claims rather than the above description. Therefore, it is intended that all changes falling within the meaning and scope of equivalent elements of the claims are included in the present invention. Any reference signs in the request shall not be regarded as the request item involved in the restriction. In addition, it is obvious that the word "including" does not exclude other elements or the singular number does not exclude the plural number. Multiple units or devices stated in the device request item can also be implemented by one unit or device through software or hardware. Words such as first and second are used to denote names, but do not denote any specific order.

最後應說明的是,以上實施例僅用以說明本發明的技術方案而非限制,儘管參照較佳實施例對本發明進行了詳細說明,本領域的普通技術人員應當理解,可以對本發明的技術方案進行修改或等同替換,而不脫離本發明技術方案的精神和範圍。 Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be Modifications or equivalent replacements are made without departing from the spirit and scope of the technical solution of the present invention.

Claims (8)

一種監視頭皮的方法,應用於包括拍攝設備的智慧吹風機,其中,所述方法包括:利用所述拍攝設備對使用者頭部進行拍攝,獲得多張頭部照片;識別所述多張頭部照片分別所對應的頭部區域;基於每個頭部區域所對應的頭部照片識別所述每個頭部區域的相關參數,其中,所述每個頭部區域的相關參數包括:發色參數,所述發色參數包括頭髮顏色及白髮比例;其中,識別所述每個頭部區域的所述發色參數的步驟包括:預先定義每種顏色所對應的RGB值的取值範圍;根據任意一個頭部區域對應的任意一張頭部照片的圖元點的RGB值確定該任意一張頭部照片的每個圖元點的顏色,以及根據該任意一張頭部照片中與每種顏色所對應的圖元點的總數、該任意一張頭部照片所包括的所有圖元點的總數確定該任意一張頭部照片所包括的每種顏色所占的比例值;將該任意一張頭部照片所包括的所有顏色分別所占的比例值中,與最大比例值對應的顏色作為該任意一張頭部照片所對應的頭髮顏色;以及將該任意一張頭部照片的白色所占的比例值作為該任意一張頭部照片所對應的白髮比例,由此獲得對應任意一個頭部區域的所有頭部照片中的每張頭部照片所對應的頭髮顏色和白髮比例;根據任意一個頭部區域對應的所有頭部照片中的每張頭部照片所對應的頭髮顏色確定該任意一個頭部區域的頭髮顏色;以及根據任意一個頭部區域對應的所有頭部照片中的每張頭部照片所對應的白髮比例確定該任意一個頭部區域的白髮比例;及基於所述每個頭部區域的相關參數與該每個頭部區域對應的歷史相關參數分析所述每個頭部區域的頭皮狀況。 A method for monitoring the scalp is applied to a smart hair dryer including a photographing device, wherein the method includes: using the photographing device to photograph a user's head to obtain multiple head photos; and identifying the multiple head photos Respectively corresponding head regions; identifying the relevant parameters of each head region based on the head photos corresponding to each head region, wherein the relevant parameters of each head region include: hair color parameters, The hair color parameters include hair color and white hair ratio; wherein, the step of identifying the hair color parameters of each head region includes: predefining the value range of the RGB value corresponding to each color; The RGB value of the pixel point of any head photo corresponding to a head area determines the color of each pixel point of any head photo, and according to the color and each color in any head photo The total number of corresponding image element points and the total number of all image element points included in any one head photo determine the proportion value of each color included in any one head photo; Among the proportion values of all the colors included in the head photo, the color corresponding to the largest proportion value is used as the hair color corresponding to any one head photo; and the white color of any one head photo occupies As the proportion of white hair corresponding to any one head photo, the hair color and proportion of white hair corresponding to each head photo in all head photos corresponding to any one head area are thus obtained; according to Determine the hair color of any head region according to the hair color of each head photo in all head photos corresponding to any head region; and determine the hair color of any head region according to each head photo The proportion of white hair corresponding to one head photo determines the proportion of white hair in any one head region; and analyzing each head region based on the related parameters of each head region and the historical related parameters corresponding to each head region. The condition of the scalp in each head area. 如請求項1所述的監視頭皮的方法,其中,所述確定任意一個頭部區域的頭髮顏色包括:基於任意一個頭部區域對應的所有頭部照片中的每張頭部照片所對應的頭髮顏色統計所述任意一個頭部區域所對應的每種頭髮顏色的頻次;及將對應最 大頻次的頭髮顏色作為所述任意一個頭部區域的頭髮顏色,其中,所述最大頻次的頭髮顏色是指,在所述任意一個頭部區域對應的所有頭部照片所對應的頭髮顏色中,出現次數最多的一種頭髮顏色;所述確定任意一個頭部區域的白髮比例包括:將任意一個頭部區域對應的所有頭部照片中的每張頭部照片所對應的白髮比例進行大小排序;將大小居中的白髮比例作為所述任意一個頭部區域的白髮比例,所述大小居中的白髮比例是指,在所述任意一個頭部區域對應的所有頭部照片所對應的白髮比例中,排列在最中間的白髮比例。 The method for monitoring the scalp according to claim 1, wherein the determining the hair color of any one head region includes: based on the hair corresponding to each head photo among all the head photos corresponding to any one head region The color counts the frequency of each hair color corresponding to any one of the head regions; and will correspond to the most frequent The hair color with high frequency is used as the hair color of any one head region, where the hair color with the highest frequency refers to the hair color corresponding to all head photos corresponding to any one head region, The hair color that appears most frequently; the determining the proportion of white hair in any one head region includes: sorting the proportion of white hair corresponding to each of all head photos corresponding to any one head region. ; The proportion of white hair in the middle size is taken as the proportion of white hair in any one head region, and the proportion of white hair in the middle size refers to the white hair corresponding to all head photos corresponding to any one head region Among the hair proportions, the proportion of gray hair that is arranged in the middle. 如請求項1所述的監視頭皮的方法,其中,所述每個頭部區域的相關參數還包括:頭皮參數,所述頭皮參數包括是否有頭皮屑、頭髮是否出油,及頭皮紅腫程度;其中,識別所述每個頭部區域是否有頭皮屑以及頭髮是否出油的步驟包括:預先定義白色圖元點所對應的RBG值的取值範圍;根據任意一個頭部區域對應的任意一張頭部照片的圖元點的RGB值確定該任意一張頭部照片中的白色圖元點;基於所述任意一張頭部照片中的白色圖元點確定連通區域;統計所述任意一張頭部照片中的每個連通區域所對應的白色圖元點的總數;將白色圖元點的總數小於預設值的連通區域作為所述任意一張頭部照片中的有頭皮屑區域;將白色圖元點的總數大於或者等於所述預設值的連通區域作為所述任意一張頭部照片中頭髮出油的區域;及當所述任意一個頭部區域對應的所有照片中存在至少一張頭部照片包括頭皮屑區域時,確定所述任意一個頭部區域有頭皮屑;及當所述任意一個頭部區域的所有照片中存在至少一張頭部照片包括頭髮出油的區域時,確定所述任意一個頭部區域發生頭髮出油的情況;其中,識別所述每個頭部區域的頭皮紅腫程度的步驟包括:預先定義紅色圖元點所對應的RBG值的取值範圍; 根據任意一個頭部區域對應的任意一張頭部照片的圖元點的RGB值確定該任意一張頭部照片中的紅色圖元點;根據該任意一張頭部照片中的紅色圖元點的總數以及該任意一張頭部照片所包括的所有紅色圖元點的總數計算該任意一張頭部照片的紅色圖元點比例;根據任意一個頭部區域對應的所有頭部照片中的每張頭部照片所對應的紅色圖元點比例確定該任意一個頭部區域的紅色程度,其中,將該任意一個頭部區域對應的所有頭部照片中的每張頭部照片所對應的紅色圖元點比例進行大小排序;將大小居中的紅色圖元點比例作為所述任意一個頭部區域的紅腫程度,其中,所述大小居中的紅色圖元點比例是指,在所述任意一個頭部區域對應的所有頭部照片所對應的紅色圖元點比例中,排列在最中間的紅色圖元點比例。 The method for monitoring the scalp according to claim 1, wherein the relevant parameters of each head region further include: scalp parameters, and the scalp parameters include whether there is dandruff, whether the hair is oily, and the degree of scalp redness; Wherein, the step of identifying whether each head area has dandruff and whether the hair is oily includes: predefining the value range of the RBG value corresponding to the white pixel point; according to any one piece corresponding to any one head area The RGB values of the primitive points of the head photo determine the white primitive points in any one head photo; determine the connected areas based on the white primitive points in the any one head photo; count the any one The total number of white primitive points corresponding to each connected region in the head photo; connect regions with the total number of white primitive points less than the preset value as the dandruff area in any one of the head photos; The connected area whose total number of white primitive points is greater than or equal to the preset value is used as the oily hair area in any one head photo; and when there is at least one of all photos corresponding to any one head area When a photo of the head includes an area of dandruff, it is determined that any one of the head areas has dandruff; and when there is at least one photo of the head in all the photos of any one of the head areas including an area with oily hair, Determining the occurrence of oily hair in any one of the head regions; wherein the step of identifying the degree of redness and swelling of the scalp in each head region includes: predefining the value range of the RBG value corresponding to the red pixel point; Determine the red pixel point in any head photo according to the RGB value of the pixel point of any head photo corresponding to any head area; according to the red pixel point in any head photo Calculate the proportion of red pixel points of any one head photo and the total number of all red pixel points included in any one head photo; according to each head photo corresponding to any one head area The proportion of red pixel points corresponding to a head photo determines the redness of any head area, where the red image corresponding to each head photo in all head photos corresponding to the any head area The proportion of the element point is sorted by size; the proportion of the red element point in the middle size is taken as the degree of redness and swelling of any one of the head regions, wherein the proportion of the red element point in the middle size refers to the proportion of the red element point in the any head Among the proportions of red pixel points corresponding to all the head photos corresponding to the area, the proportion of the red pixel points arranged in the middle. 如請求項1所述的監視頭皮的方法,其中,所述每個頭部區域的相關參數還包括:發質參數,其中,識別所述每個頭部區域的發質參數的步驟包括:將任意一個頭部區域對應的所有頭部照片轉化為灰度圖像;分別將所每張灰度圖二值化為黑白圖片,由此獲得任意一個頭部區域對應的所有黑白圖片;對所述任意一個頭部區域對應的任意一張黑白圖片統計黑色圖元點的總數;基於所述任意一張黑白圖片的黑色圖元點的總數以及所述任意一張黑白圖片的所有圖元點總數計算所述任意一張黑白圖片的黑色圖元點比例,由此獲得所述任意一個頭部區域對應的每張黑白圖片的黑色圖元點比例;及根據所述任意一個頭部區域對應的每張黑白圖片的黑色圖元點比例確定該任意一個頭部區域的發質參數,其中,將該任意一個頭部區域的所有黑白圖片中的每張黑白圖片的黑色圖元點比例進行大小排序;將大小居中的黑色圖元點比例作為所述任意一個頭部區域的發質參數。 The method for monitoring the scalp according to claim 1, wherein the relevant parameters of each head region further include: hair quality parameters, wherein the step of identifying the hair quality parameters of each head region includes: All head photos corresponding to any head region are converted into grayscale images; each grayscale image is binarized into black and white images, thereby obtaining all black and white images corresponding to any head region; Count the total number of black primitive points in any black-and-white picture corresponding to any head region; calculate based on the total number of black primitive points in any black-and-white picture and the total number of all primitive points in any black-and-white picture The proportion of black primitive points of any one of the black-and-white pictures, thereby obtaining the proportion of black primitive points of each black-and-white picture corresponding to the any one head region; The black pixel point ratio of the black and white picture determines the hair quality parameter of the any head region, wherein the black pixel point ratio of each black and white picture in all black and white pictures in the any head region is sorted by size; The proportion of black graphic element points in the middle size is used as the hair quality parameter of any one head region. 一種智慧吹風機,其中,所述智慧吹風機包括儲存器和處理器,所述儲存器用於儲存至少一個電腦可讀指令,所述處理器用於執行所述至少一 個電腦可讀指令以實現請求項1-4中任意一項所述的監視頭皮的方法。 A smart hair dryer, wherein the smart hair dryer includes a storage and a processor, the storage is used to store at least one computer-readable instruction, and the processor is used to execute the at least one A computer-readable instruction to implement the method for monitoring the scalp described in any one of request items 1-4. 如請求項5所述的智慧吹風機,其中,所述智慧吹風機的拍攝設備設置在該智慧吹風機的殼體上的風嘴所在位置。 The smart hair dryer according to claim 5, wherein the photographing device of the smart hair dryer is set at the position of the air nozzle on the casing of the smart hair dryer. 如請求項6所述的智慧吹風機,其中,所述拍攝設備設置在三軸穩定器上,所述三軸穩定器收容於所述智慧吹風機的殼體內或者外露於該智慧吹風機的殼體上。 The smart hair dryer according to claim 6, wherein the photographing device is provided on a three-axis stabilizer, and the three-axis stabilizer is housed in or exposed on the casing of the smart hair dryer. 一種非易失性可讀儲存介質,其中,所述非易失性可讀儲存介質儲存有至少一個電腦可讀指令,所述至少一個電腦可讀指令被處理器執行時實現請求項1-4中任意一項所述的監視頭皮的方法。 A non-volatile readable storage medium, wherein the non-volatile readable storage medium stores at least one computer readable instruction, and when the at least one computer readable instruction is executed by a processor, the request items 1-4 are realized The method of monitoring the scalp described in any one of.
TW109118704A 2020-06-03 2020-06-03 Method for monitoring scalp, smart hair dryer and storage medium TWI737333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109118704A TWI737333B (en) 2020-06-03 2020-06-03 Method for monitoring scalp, smart hair dryer and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109118704A TWI737333B (en) 2020-06-03 2020-06-03 Method for monitoring scalp, smart hair dryer and storage medium

Publications (2)

Publication Number Publication Date
TWI737333B true TWI737333B (en) 2021-08-21
TW202147175A TW202147175A (en) 2021-12-16

Family

ID=78283301

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109118704A TWI737333B (en) 2020-06-03 2020-06-03 Method for monitoring scalp, smart hair dryer and storage medium

Country Status (1)

Country Link
TW (1) TWI737333B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200930806A (en) * 2008-01-15 2009-07-16 Univ China Medical Hair cleansing composition
TW201701821A (en) * 2015-07-03 2017-01-16 美科實業有限公司 Scalp inspection system and scalp inspection method
TW201714602A (en) * 2015-10-29 2017-05-01 Hair O'right Int Corp Scalp clean compositions

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200930806A (en) * 2008-01-15 2009-07-16 Univ China Medical Hair cleansing composition
TW201701821A (en) * 2015-07-03 2017-01-16 美科實業有限公司 Scalp inspection system and scalp inspection method
TW201714602A (en) * 2015-10-29 2017-05-01 Hair O'right Int Corp Scalp clean compositions

Also Published As

Publication number Publication date
TW202147175A (en) 2021-12-16

Similar Documents

Publication Publication Date Title
TWI709919B (en) Auto insurance image processing method, device, server and system
US8792685B2 (en) Presenting image subsets based on occurrences of persons satisfying predetermined conditions
JP4907621B2 (en) Video processing apparatus and method and recording medium therefor
WO2014051246A1 (en) Method and apparatus for inferring facial composite
US8295610B1 (en) Feature scaling for face detection
US20200019788A1 (en) Computer system, resource arrangement method thereof and image recognition method thereof
TWI737333B (en) Method for monitoring scalp, smart hair dryer and storage medium
CN113761974B (en) Scalp monitoring method, intelligent hair dryer and storage medium
JP2019132668A (en) Elongation determination device, elongation determination method, and computer program
WO2019000746A1 (en) Method for switching text color of control, and system, electronic device and storage medium
JPH1166301A (en) Method and device for classifying color image and record medium recorded with this method
TWI649697B (en) Image recognition module expansion box and its expansion use method
US20060115172A1 (en) Face enhancement in a digital video
US20210406584A1 (en) Method and device for determining region to be cleaned, dust cleaning apparatus, terminal for controlling cleaning robot, and storage medium
US20190206089A1 (en) Backdrop color detection
CN115278217A (en) Image picture detection method and device, electronic equipment and storage medium
CN110263885B (en) Method and device for checking projector fault, terminal equipment and storage medium
CN112115792B (en) Entrance and exit information statistics system, method and computer equipment
US20210018766A1 (en) Display optimization associated with a try on device for virtual sampling of a wearable accessory therethrough
US11893791B2 (en) Pre-processing image frames based on camera statistics
JPH11286377A (en) Elevator control method and its device
CN106227353A (en) A kind of operating mode control method and system
CN115601606B (en) Store state detection method, device, equipment and storage medium
CN110245618A (en) 3D identification device and method
WO2021097830A1 (en) Method and apparatus for identifying object information, computer device, and storage medium