TWI769692B - Image processing method, computer device and storage medium - Google Patents

Image processing method, computer device and storage medium Download PDF

Info

Publication number
TWI769692B
TWI769692B TW110104330A TW110104330A TWI769692B TW I769692 B TWI769692 B TW I769692B TW 110104330 A TW110104330 A TW 110104330A TW 110104330 A TW110104330 A TW 110104330A TW I769692 B TWI769692 B TW I769692B
Authority
TW
Taiwan
Prior art keywords
user
area
scalp
image processing
coordinate
Prior art date
Application number
TW110104330A
Other languages
Chinese (zh)
Other versions
TW202232441A (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 TW110104330A priority Critical patent/TWI769692B/en
Application granted granted Critical
Publication of TWI769692B publication Critical patent/TWI769692B/en
Publication of TW202232441A publication Critical patent/TW202232441A/en

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

The present application provides an image processing method. The method includes obtaining a user head portrait taken by a camera; identifying a hair region and a scalp region from the user head portrait; calculating a proportion of the scalp region based on the hair region and the scalp region; comparing the proportion of the scalp area with a preset value to determine whether the user is bald; processing the scalp area using hair color in the hair area when it is determined that the user is bald. The present application also provides a computer device for realizing the image processing method. The present application can automatically detect baldness and supplement the original hair color in scalp area.

Description

影像處理方法、電腦裝置及儲存介質 Image processing method, computer device and storage medium

本發明涉及影像處理技術領域,具體涉及一種影像處理方法、電腦裝置。 The present invention relates to the technical field of image processing, in particular to an image processing method and a computer device.

現今社會生存壓力大,以致很多人年紀輕輕就開始大量掉發,禿頂。因此,部分使用者在和他人視頻通訊時,會因禿頂造成自信心不足。 The living pressure of today's society is so great that many people start to lose a lot of hair and go bald at a young age. Therefore, some users will have low self-confidence due to baldness when they communicate with others via video.

鑒於以上內容,有必要提出一種影像處理方法、電腦裝置,可以自動偵測圖像或視頻中人物的禿頭區域,並補上原發色以生成補全後的圖像或視頻,維護使用者形象,從而使得人們在視訊時不會因禿頂被拍攝到而產生心理問題。 In view of the above, it is necessary to propose an image processing method and a computer device, which can automatically detect the bald areas of the characters in the images or videos, and supplement the original hair color to generate the completed images or videos, so as to maintain the user's image. , so that people will not have psychological problems due to the baldness being photographed during the video.

所述影像處理方法包括:獲取攝像頭拍攝的使用者頭像;從所述使用者頭像中識別頭髮區域和頭皮區域;基於所述頭髮區域和頭皮區域計算所述頭皮區域所占比例;基於所述頭皮區域所占比例與預設值的比較確定使用者是否禿頭;及當確定使用者禿頭時,對所述頭皮區域作補色處理,獲得經過補色處理後的使用者頭像。 The image processing method includes: acquiring a user's avatar photographed by a camera; identifying a hair area and a scalp area from the user's avatar; calculating the proportion of the scalp area based on the hair area and the scalp area; The comparison between the proportion of the area and the preset value determines whether the user is bald; and when it is determined that the user is bald, complementary color processing is performed on the scalp area to obtain the user's avatar after the complementary color processing.

優選地,該方法還包括:將經過補色處理後的使用者頭像傳輸到其他終端。 Preferably, the method further includes: transmitting the user's avatar after the complementary color processing to other terminals.

優選地,所述從所述使用者頭像中識別使用者的頭髮區域和頭皮區 域包括:利用人臉檢測演算法從所述使用者頭像中確定人臉框的座標;基於所述人臉框的座標確定一個初始位置;及基於所述初始位置、所述使用者頭像中的每個圖元點的座標、以及每個圖元點的RGB值確定所述頭髮區域和頭皮區域。 Preferably, said identifying the user's hair area and scalp area from the user's avatar The domain includes: using a face detection algorithm to determine the coordinates of the face frame from the user's avatar; determining an initial position based on the coordinates of the face frame; and based on the initial position, the user's avatar in the The coordinates of each primitive point, and the RGB value of each primitive point determine the hair area and scalp area.

優選地,所述人臉框由四個座標點所確定,該四個座標點分別為第一座標P1(Xmin,Ymax),第二座標P2(Xmax,Ymax),第三座標P3(Xmin,Ymin),第四座標P4(Xmax,Ymin),其中,Xmax是指所述人臉框在所述使用者頭像中所對應的最大X座標,Xmin是指所述人臉框在所述使用者頭像中所對應的最小X座標為,Ymax是指所述人臉框在所述使用者頭像中所對應的最大Y座標,Ymin是指所述人臉框在所述使用者頭像中所對應的最小Y座標;所述初始位置是指在所述使用者頭像中,基於第五座標P5(X5,Y5)和第六座標P6(X6,Y6)所構成的直線所在的位置,其中,X5=Xmin,Y5=Ymax+a;X6=Xmax,Y6=Ymax+a,a為預設值;其中,所述頭髮區域所包括的每個圖元點的縱座標大於Y5和Y6,該頭髮區域所包括的每個圖元點的RGB值屬於第一預設範圍;其中,所述頭皮區域所包括的每個圖元點的縱座標大於Y5和Y6,該頭皮區域所包括的每個圖元點的RGB值屬於第二預設範圍;其中,所述第一預設範圍與所述第二預設範圍沒有交集。 Preferably, the face frame is determined by four coordinate points, and the four coordinate points are respectively the first coordinate P1 (Xmin, Ymax), the second coordinate P2 (Xmax, Ymax), and the third coordinate P3 (Xmin, Ymin), the fourth coordinate P4 (Xmax, Ymin), wherein Xmax refers to the maximum X coordinate corresponding to the face frame in the user's avatar, and Xmin refers to the face frame in the user's avatar. The minimum X coordinate corresponding to the avatar is, Ymax refers to the maximum Y coordinate corresponding to the face frame in the user avatar, and Ymin refers to the face frame corresponding to the user avatar. The minimum Y coordinate; the initial position refers to the position of the straight line formed by the fifth coordinate P5 (X5, Y5) and the sixth coordinate P6 (X6, Y6) in the user avatar, where X5= Xmin, Y5=Ymax+a; X6=Xmax, Y6=Ymax+a, a is a preset value; wherein, the ordinate of each primitive point included in the hair area is greater than Y5 and Y6, and the hair area is The RGB value of each primitive point included belongs to the first preset range; wherein, the ordinate of each primitive point included in the scalp area is greater than Y5 and Y6, and each primitive point included in the scalp area is The RGB values of , belong to a second preset range; wherein, the first preset range and the second preset range have no intersection.

優選地,所述基於所述頭髮區域和頭皮區域計算所述頭皮區域所占比例包括:計算所述頭髮區域所占圖元點總數T1;計算所述頭皮區域所占圖元點總數T2;及計算所述頭皮區域所占比例P,其中,P=T2/(T1+T2)*100%。 Preferably, the calculating the proportion of the scalp area based on the hair area and the scalp area includes: calculating the total number T1 of primitive points occupied by the hair area; calculating the total number T2 of primitive points occupied by the scalp area; and Calculate the proportion P of the scalp area, where P=T2/(T1+T2)*100%.

優選地,所述對所述頭皮區域作補色處理包括:將所述頭皮區域的每個圖元點的RGB值設置為所述第一預設範圍內的任意一個值。 Preferably, performing complementary color processing on the scalp area includes: setting the RGB value of each primitive point of the scalp area to any value within the first preset range.

優選地,所述對所述頭皮區域作補色處理包括:計算所述頭髮區域的所有圖元點的RGB值的平均值;及將所述頭皮區域的每個圖元點的RGB值設置為所述平均值。 Preferably, performing complementary color processing on the scalp area includes: calculating the average value of RGB values of all primitive points in the hair area; and setting the RGB value of each primitive point in the scalp area to the said average.

優選地,所述對所述頭皮區域作補色處理包括:利用輪廓提取演算 法提取所述頭皮區域所對應的輪廓;根據所述輪廓的形狀和大小從所述頭髮區域複製圖像;及將所複製的圖像填充到所述頭皮區域。 Preferably, performing complementary color processing on the scalp area includes: using contour extraction calculation extracting a contour corresponding to the scalp area; copying an image from the hair area according to the shape and size of the contour; and filling the copied image into the scalp area.

所述電腦裝置包括儲存器和處理器,所述儲存器用於儲存至少一個指令,所述處理器用於執行所述至少一個指令時實現所述影像處理方法。 The computer device includes a memory and a processor, the memory is used for storing at least one instruction, and the processor is used for implementing the image processing method when executing the at least one instruction.

所述電腦可讀儲存介質儲存有至少一個指令,所述至少一個指令被處理器執行時實現所述影像處理方法。 The computer-readable storage medium stores at least one instruction, and the at least one instruction implements the image processing method when executed by the processor.

相較於習知技術,本發明提供的影像處理方法、電腦裝置, Compared with the prior art, the image processing method and computer device provided by the present invention,

可以自動偵測圖像或視頻中人物的禿頭區域,並補上原發色以生成補全後的圖像或視頻,維護使用者形象,從而使得人們在視訊時不會因禿頂被拍攝到而產生心理問題。 It can automatically detect the bald areas of the characters in the images or videos, and fill in the original hair color to generate the completed images or videos, so as to maintain the user's image, so that people will not be affected by the baldness being photographed during the video. produce psychological problems.

3:電腦裝置 3: Computer device

30:影像處理系統 30: Image processing system

301:獲取模組 301: Get Mods

302:執行模組 302: Execute the module

31:儲存器 31: Storage

32:處理器 32: Processor

33:攝像頭 33: Camera

5:使用者頭像 5: User avatar

51:人臉框 51: face frame

52:頭髮區域 52: Hair Area

53:頭皮區域 53: Scalp Area

P1、P2、P3、P4、P5、P6:座標點 P1, P2, P3, P4, P5, P6: coordinate points

S1~S6:步驟 S1~S6: Steps

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

圖1是本發明較佳實施例提供的影像處理方法的流程圖 1 is a flowchart of an image processing method provided by a preferred embodiment of the present invention

圖2舉例說明人臉框。 Figure 2 illustrates a face frame.

圖3是本發明較佳實施例提供的影像處理系統的功能模組圖。 FIG. 3 is a functional module diagram of an image processing system provided by a preferred embodiment of the present invention.

圖4是本發明較佳實施例提供的電腦裝置的結構圖。 FIG. 4 is a structural diagram of a computer device according to a preferred embodiment of the present invention.

為了能夠更清楚地理解本發明的上述目的、特徵和優點,下面結合附圖和具體實施例對本發明進行詳細描述。需要說明的是,在不衝突的情況下,本發明的實施例及實施例中的特徵可以相互組合。 In order to more clearly understand the above objects, features and advantages of the present invention, 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 may be combined with each other under the condition of no conflict.

在下面的描述中闡述了很多具體細節以便於充分理解本發明,所描述的實施例僅僅是本發明一部分實施例,而不是全部的實施例。基於本發明中的實施例,本領域普通技術人員在沒有做出創造性勞動前提下所獲得的所有其他實施例,都屬於本發明保護的範圍。 In the following description, many specific details are set forth in order to facilitate a full understanding of the present invention, and the described embodiments are only some, but not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts 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 one of ordinary skill in the art to which this invention belongs. The terms used herein in the description of the present invention are for the purpose of describing specific embodiments only, and are not intended to limit the present invention.

圖1是本發明較佳實施例提供的影像處理方法的流程圖。 FIG. 1 is a flowchart of an image processing method provided by a preferred embodiment of the present invention.

在本實施例中,所述影像處理方法可以應用於電腦裝置中,對於需要進行影像處理的電腦裝置,可以直接在電腦裝置上集成本發明的方法所提供的用於影像處理的功能,或者以軟體開發套件(Software Development Kit,SDK)的形式運行在電腦裝置上。 In this embodiment, the image processing method can be applied to a computer device. For a computer device that needs to perform image processing, the image processing function provided by the method of the present invention can be directly integrated on the computer device, or the computer device can be used for image processing. The form of software development kit (Software Development Kit, SDK) runs on the computer device.

如圖1所示,所述影像處理方法具體包括以下步驟,根據不同的需求,該流程圖中步驟的順序可以改變,某些步驟可以省略。 As shown in FIG. 1 , the image processing method specifically includes the following steps. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

步驟S1、電腦裝置獲取攝像頭拍攝的使用者頭像。 In step S1, the computer device acquires the user's avatar photographed by the camera.

在一個實施例中,所述攝像頭即時對使用者進行拍攝。所述電腦裝置獲取所述攝像頭所拍攝的視頻。所述使用者頭像可以是指所述攝像頭所拍攝的視頻的任意一幀所對應的圖像。 In one embodiment, the camera shoots the user in real time. The computer device acquires the video shot by the camera. The user avatar may refer to an image corresponding to any frame of the video captured by the camera.

步驟S2、電腦裝置從所述使用者頭像中識別頭髮區域和頭皮區域。 Step S2, the computer device identifies the hair area and the scalp area from the user's avatar.

在一個實施例中,所述從所述使用者頭像中識別使用者的頭髮區域和頭皮區域包括(a1)-(a3): In one embodiment, the identifying the user's hair area and scalp area from the user avatar includes (a1)-(a3):

(a1)利用人臉檢測演算法從所述使用者頭像中確定人臉框的座標。 (a1) Using a face detection algorithm to determine the coordinates of the face frame from the user's avatar.

在一個實施例中,所述人臉框由四個座標點所確定,該四個座標點分別為第一座標P1(Xmin,Ymax),第二座標P2(Xmax,Ymax),第三座標P3(Xmin,Ymin),第四座標P4(Xmax,Ymin),其中,Xmax是指所 述人臉框在所述使用者頭像中所對應的最大X座標,Xmin是指所述人臉框在所述使用者頭像中所對應的最小X座標為,Ymax是指所述人臉框在所述使用者頭像中所對應的最大Y座標,Ymin是指所述人臉框在所述使用者頭像中所對應的最小Y座標。 In one embodiment, the face frame is determined by four coordinate points, and the four coordinate points are respectively the first coordinate P1 (Xmin, Ymax), the second coordinate P2 (Xmax, Ymax), and the third coordinate P3 (Xmin, Ymin), the fourth coordinate P4 (Xmax, Ymin), where Xmax refers to the The maximum X coordinate corresponding to the face frame in the user avatar, Xmin refers to the minimum X coordinate corresponding to the face frame in the user avatar, and Ymax refers to the face frame in the The maximum Y coordinate corresponding to the user avatar, and Ymin refers to the minimum Y coordinate corresponding to the face frame in the user avatar.

例如,參閱圖2所示,人臉框51在使用者頭像5中由於第一座標P1,第二座標P2,第三座標P3,第四座標P4確定。 For example, referring to FIG. 2 , the face frame 51 is determined by the first coordinate P1 , the second coordinate P2 , the third coordinate P3 , and the fourth coordinate P4 in the user avatar 5 .

(a2)基於所述人臉框的座標確定一個初始位置。 (a2) Determine an initial position based on the coordinates of the face frame.

在一個實施例中,所述初始位置是指在所述使用者頭像中,基於第五座標P5(X5,Y5)和第六座標P6(X6,Y6)所構成的直線所在的位置,其中,X5=Xmin,Y5=Ymax+a;X6=Xmax,Y6=Ymax+a,a為預設值,例如a等於5釐米。 In one embodiment, the initial position refers to a position in the user's avatar based on a straight line formed by the fifth coordinate P5 (X5, Y5) and the sixth coordinate P6 (X6, Y6), wherein, X5=Xmin, Y5=Ymax+a; X6=Xmax, Y6=Ymax+a, a is the default value, for example, a is equal to 5 cm.

(a3)基於所述初始位置、所述使用者頭像中的每個圖元點的座標、以及每個圖元點的RGB值確定所述頭髮區域和頭皮區域。 (a3) Determine the hair area and scalp area based on the initial position, the coordinates of each primitive point in the user's avatar, and the RGB value of each primitive point.

在一個實施例中,所述頭髮區域所包括的每個圖元點的縱座標大於Y5和Y6,該頭髮區域所包括的每個圖元點的RGB屬於第一預設範圍。即所述頭髮區域所包括的每個圖元點的縱座標均位於所述初始位置之上。例如,仍然參閱圖2所述,電腦裝置確定頭髮區域52。 In one embodiment, the ordinate of each primitive point included in the hair region is greater than Y5 and Y6, and the RGB of each primitive point included in the hair region belongs to a first preset range. That is, the ordinate of each primitive point included in the hair region is located above the initial position. For example, still referring to FIG. 2 , the computerized device determines the hair region 52 .

在一個實施例中,該第一預設範圍可以是與純黑色及淺黑色對應的RGB值的範圍。 In one embodiment, the first preset range may be a range of RGB values corresponding to pure black and light black.

在一個實施例中,所述頭皮區域所包括的每個圖元點的縱座標大於Y5和Y6,該頭皮區域所包括的每個圖元點的RGB值屬於第二預設範圍。即所述頭皮區域所包括的每個圖元點的縱座標均位於所述初始位置之上。例如,仍然參閱圖2所述,電腦裝置確定頭皮區域53。 In one embodiment, the ordinate of each primitive point included in the scalp area is greater than Y5 and Y6, and the RGB value of each primitive point included in the scalp area belongs to the second preset range. That is, the ordinate of each primitive point included in the scalp area is located above the initial position. For example, still referring to FIG. 2 , the computerized device determines the scalp area 53 .

在一個實施例中,該第一預設範圍可以是與純膚色及淺膚色對應的RGB值的範圍。 In one embodiment, the first preset range may be a range of RGB values corresponding to pure skin tones and light skin tones.

在一個實施例中,所述第一預設範圍與所述第二預設範圍沒有交集。 In one embodiment, the first preset range and the second preset range have no intersection.

步驟S3、電腦裝置基於所述頭髮區域和頭皮區域計算所述頭皮區域所占比例。 Step S3, the computer device calculates the proportion of the scalp area based on the hair area and the scalp area.

在一個實施例中,所述基於所述頭髮區域和頭皮區域計算所述頭皮區域所占比例包括:計算所述頭髮區域所占圖元點總數T1;計算所述頭皮區域所占圖元點總數T2;及計算所述頭皮區域所占比例P,其中,P=T2/(T1+T2)*100%。 In one embodiment, the calculating the proportion of the scalp area based on the hair area and the scalp area includes: calculating the total number T1 of primitive points occupied by the hair area; calculating the total number of primitive points occupied by the scalp area T2; and calculating the proportion P of the scalp area, where P=T2/(T1+T2)*100%.

步驟S4、電腦裝置基於所述頭皮區域所占比例與預設值(例如20%)的比較確定使用者是否禿頭。當確定使用者禿頭時,執行步驟S5。當確定沒有使用者禿頭時,執行步驟S6。 Step S4, the computer device determines whether the user is bald based on the comparison of the proportion of the scalp area with a preset value (eg, 20%). When it is determined that the user is bald, step S5 is performed. When it is determined that no user is bald, step S6 is performed.

在一個實施例中,當所述頭皮區域所占比例大於等於所述預設值時,電腦裝置確定所述使用者禿頭。當所述頭皮區域所占比例小於所述預設值時,電腦裝置確定所述使用者沒有禿頭。 In one embodiment, when the proportion of the scalp area is greater than or equal to the preset value, the computer device determines that the user is bald. When the proportion of the scalp area is less than the preset value, the computer device determines that the user is not bald.

步驟S5、當確定使用者禿頭時,電腦裝置對所述頭皮區域作補色處理,獲得經過補色處理後的使用者頭像。 Step S5, when it is determined that the user is bald, the computer device performs complementary color processing on the scalp area to obtain the user's avatar after the complementary color processing.

在第一實施例中,所述對所述頭皮區域作補色處理包括:將所述頭皮區域的每個圖元點的RGB值設置為所述第一預設範圍內的任意一個值。 In the first embodiment, the performing complementary color processing on the scalp area includes: setting the RGB value of each primitive point of the scalp area to any value within the first preset range.

在第二實施例中,所述對所述頭皮區域作補色處理包括:計算所述頭髮區域的所有圖元點的RGB值的平均值;及將所述頭皮區域的每個圖元點的RGB值設置為所述平均值。 In the second embodiment, performing complementary color processing on the scalp area includes: calculating the average value of RGB values of all primitive points in the hair area; and converting the RGB values of each primitive point in the scalp area The value is set to the average value.

在第三實施例中,所述對所述頭皮區域作補色處理包括:利用輪廓提取演算法提取所述頭皮區域所對應的輪廓;根據所述輪廓的形狀和大小從所述頭髮區域複製圖像;及將所複製的圖像填充到所述頭皮區域。 In the third embodiment, performing complementary color processing on the scalp area includes: extracting an outline corresponding to the scalp area by using an outline extraction algorithm; copying an image from the hair area according to the shape and size of the outline ; and filling the copied image into the scalp area.

在一個實施例中,所複製的圖像的形狀與所述輪廓的形狀相同,所複製的圖像的大小與所述輪廓的大小相同。 In one embodiment, the shape of the copied image is the same as the shape of the contour, and the size of the copied image is the same as the size of the contour.

步驟S6、電腦裝置將使用者頭像傳輸到其他終端。 Step S6, the computer device transmits the user's avatar to other terminals.

需要說明的是,當流程是從步驟S5執行到步驟S6時,在步驟S6中,則電腦裝置是將經過補色處理後的使用者頭像傳輸到所述其他終端。當流程是從步驟S4執行到步驟S6時,在步驟S6中,則電腦裝置是將步驟S1中所獲取的使用者頭像傳輸到所述其他終端。 It should be noted that, when the process is performed from step S5 to step S6, in step S6, the computer device transmits the user's avatar after the complementary color processing to the other terminal. When the process is performed from step S4 to step S6, in step S6, the computer device transmits the user avatar acquired in step S1 to the other terminal.

該其他終端可以是電腦、手機、平板電腦等設備。 The other terminal may be a computer, a mobile phone, a tablet computer, or other equipment.

需要說明的是,當是在視頻通訊時,則可以包括步驟S6。如果只是利用電腦裝置拍攝照片,並進行禿頭區域作補色處理則可以不包括步驟S6。 It should be noted that, when it is in video communication, step S6 may be included. Step S6 may not be included if only a computer device is used to take a photo, and the bald area is subjected to complementary color processing.

此外,根據本發明的上述步驟可以看出,當所述電腦裝置與該其他終端進行視頻通訊時,由於電腦裝置可以對攝像頭所捕捉的每幀圖像進行禿頭判斷,並當確定禿頭時,會對禿頭作補色處理,使得禿頭區域可以與頭髮區域相同。由此可以避免攝像頭拍攝到的禿頭圖像直接傳送到其他終端。 In addition, according to the above steps of the present invention, it can be seen that when the computer device performs video communication with the other terminal, because the computer device can perform baldness judgment on each frame of image captured by the camera, and when baldness is determined, it will Complementary color treatment for baldness so that the bald area can be the same as the hairy area. In this way, the bald head image captured by the camera can be prevented from being directly transmitted to other terminals.

上述圖1詳細介紹了本發明的影像處理方法,下面結合圖3和圖4,對實現所述影像處理方法的軟體系統的功能模組以及實現所述影像處理方法的硬體裝置架構進行介紹。 1 describes the image processing method of the present invention in detail, and the functional modules of the software system for implementing the image processing method and the hardware device architecture for implementing the image processing method are introduced below with reference to FIG. 3 and FIG. 4 .

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

參閱圖3所示,是本發明較佳實施例提供的影像處理系統的模組圖。 Referring to FIG. 3 , it is a module diagram of an image processing system provided by a preferred embodiment of the present invention.

在一些實施例中,所述影像處理系統30運行於電腦裝置3中。所述影像處理系統30可以包括多個由程式碼段所組成的功能模組。所述影像處理系統30中的各個程式段的程式碼可以儲存於電腦裝置3的儲存器31中,並由至少一個處理器32所執行,以實現影像處理功能(詳見圖2描述)。 In some embodiments, the image processing system 30 runs in the computer device 3 . The image processing system 30 may include a plurality of functional modules composed of program code segments. The program codes of each program segment in the image processing system 30 can be stored in the memory 31 of the computer device 3 and executed by at least one processor 32 to realize the image processing function (see description in FIG. 2 for details).

本實施例中,所述影像處理系統30根據其所執行的功能,可以被劃分為多個功能模組。所述功能模組可以包括:獲取模組301、執行模組302。本發明所稱的模組是指一種能夠被至少一個處理器所執行並且能夠完成固定 功能的一系列電腦程式段,其儲存在儲存器中。在本實施例中,關於各模組的功能將在後續的實施例中詳述。 In this embodiment, the image processing system 30 can be divided into a plurality of functional modules according to the functions performed by the image processing system 30 . The function modules may include: an acquisition module 301 and an execution module 302 . The module referred to in the present invention refers to a module that can be executed by at least one processor and can be fixed A series of computer program segments for functions, which are stored in memory. In this embodiment, the functions of each module will be described in detail in subsequent embodiments.

具體地,獲取模組301可以用於獲取攝像頭拍攝的使用者頭像。執行模組302可以用於從所述使用者頭像中識別頭髮區域和頭皮區域。執行模組302還可以用於基於所述頭髮區域和頭皮區域計算所述頭皮區域所占比例;基於所述頭皮區域所占比例與預設值的比較確定使用者是否禿頭;及當確定使用者禿頭時,對所述頭皮區域作補色處理,獲得經過補色處理後的使用者頭像;以及將經過補色處理後的使用者頭像傳輸到其他終端。 Specifically, the obtaining module 301 may be used to obtain the user's avatar photographed by the camera. Execution module 302 may be used to identify hair and scalp regions from the user avatar. The execution module 302 may also be used to calculate the proportion of the scalp area based on the hair area and the scalp area; determine whether the user is bald based on the comparison of the proportion of the scalp area and a preset value; and when determining whether the user is bald When the head is bald, the scalp area is subjected to complementary color processing to obtain the user's avatar after the complementary color processing; and the user's avatar subjected to the complementary color processing is transmitted to other terminals.

參閱圖4所示,為本發明較佳實施例提供的電腦裝置的結構示意圖。在本發明較佳實施例中,所述電腦裝置3包括儲存器31、至少一個處理器32、攝像頭33。本領域技術人員應該瞭解,圖4示出的電腦裝置的結構並不構成本發明實施例的限定,既可以是匯流排型結構,也可以是星形結構,所述電腦裝置3還可以包括比圖示更多或更少的其他硬體或者軟體,或者不同的部件佈置。 Referring to FIG. 4 , it is a schematic structural diagram of a computer device according to a preferred embodiment of the present invention. In a preferred embodiment of the present invention, the computer device 3 includes a storage 31 , at least one processor 32 , and a camera 33 . Those skilled in the art should understand that the structure of the computer device shown in FIG. 4 does not constitute a limitation of the embodiments of the present invention. It may be a bus-bar structure or a star structure. The computer device 3 may also include More or less other hardware or software, or different component arrangements are shown.

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

需要說明的是,所述電腦裝置3僅為舉例,其他現有的或今後可能出現的電子產品如可適應於本發明,也應包含在本發明的保護範圍以內,並以引用方式包含於此。 It should be noted that the computer device 3 is only an example, and other existing or future electronic products that can be adapted to the present invention should also be included within the protection scope of the present invention, and are incorporated herein 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 image processing system 30 installed in the computer device 3 , and realize high-speed and automatic completion during the operation of the computer device 3 . Access to programs or data. The storage 31 includes a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (Erasable Programmable Read Only Memory), and a Programmable Read-Only Memory (PROM). -Only Memory, EPROM), one-time programmable read-only memory (One-time Programmable Read-Only Memory (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical discs Storage, disk storage, tape storage, or any other computer-readable storage medium that can be used to carry or store data.

在一些實施例中,所述至少一個處理器32可以由積體電路組成,例如可以由單個封裝的積體電路所組成,也可以是由多個相同功能或不同功能封裝的積體電路所組成,包括一個或者多個中央處理器(Central Processing unit,CPU)、微處理器、數位訊號處理晶片、圖形處理器及各種控制晶片的組合等。所述至少一個處理器32是所述電腦裝置3的控制核心(Control Unit),利用各種介面和線路連接整個電腦裝置3的各個部件,透過運行或執行儲存在所述儲存器31內的程式或者模組,以及調用儲存在所述儲存器31內的資料,以執行電腦裝置3的各種功能和處理資料,例如執行影像處理的功能。 In some embodiments, the at least one processor 32 may be composed of an integrated circuit, for example, may be composed of a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions , including one or more central processing units (Central Processing Units, CPUs), microprocessors, digital signal processing chips, graphics processors and combinations of various control chips. The at least one processor 32 is the control core (Control Unit) of the computer device 3, and uses various interfaces and lines to connect the various components of the entire computer device 3, by running or executing the program stored in the storage 31 or module, and call the data stored in the storage 31 to execute various functions of the computer device 3 and process data, such as the function of image processing.

儘管未示出,所述電腦裝置3還可以包括給各個部件供電的電源(比如電池),優選的,電源可以透過電源管理裝置與所述至少一個處理器32邏輯相連,從而透過電源管理裝置實現管理充電、放電、以及功耗管理等功能。電源還可以包括一個或一個以上的直流或交流電源、再充電裝置、電源故障檢測電路、電源轉換器或者逆變器、電源狀態指示器等任意元件。所述電腦裝置3還可以包括多種感測器、藍牙模組、Wi-Fi模組等,在此不再贅述。 Although not shown, the computer device 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 the power management device, so as to realize the realization through the power management device. Manage functions such as charging, discharging, and power management. The power supply may also include one or more of a DC or AC power source, a recharging device, a power failure detection circuit, a power converter or inverter, a power supply status indicator, or any other element. The computer device 3 may also include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described herein again.

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

上述以軟體功能模組的形式實現的集成的單元,可以儲存在一個電腦可讀取儲存介質中。上述軟體功能模組儲存在一個儲存介質中,包括若干指令用以使得一台電腦裝置(可以是伺服器、個人電腦等)或處理器(processor)執行本發明各個實施例所述方法的部分。 The above-mentioned integrated units implemented in the form of software function modules can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, and includes several instructions for causing a computer device (which may be a server, a personal computer, etc.) or a processor (processor) to execute parts of the methods described in various embodiments of the present invention.

在進一步的實施例中,結合圖3,所述至少一個處理器32可執行所述電腦裝置3的操作裝置以及安裝的各類應用程式(如所述的影像處理系統30)、程式碼等,例如,上述的各個模組。 In a further embodiment, referring to FIG. 3 , the at least one processor 32 can execute the operating device of the computer device 3 and various installed applications (such as the image processing system 30 ), program codes, etc., For example, the above-mentioned modules.

所述儲存器31中儲存有程式碼,且所述至少一個處理器32可調用所述儲存器31中儲存的程式碼以執行相關的功能。例如,圖3中所述的各個模組是儲存在所述儲存器31中的程式碼,並由所述至少一個處理器32所執行,從而實現所述各個模組的功能以達到影像處理的目的。 The storage 31 stores program codes, and the at least one processor 32 can call the program codes stored in the storage 31 to execute related functions. For example, each module described in FIG. 3 is a program code stored in the storage 31 and executed by the at least one processor 32, so as to realize the functions of the various modules to achieve image processing. Purpose.

在本發明的一個實施例中,所述儲存器31儲存一個或多個指令(即至少一個指令),所述至少一個指令被所述至少一個處理器32所執行以實現圖1所示的影像處理的目的。 In one embodiment of the present invention, the storage 31 stores one or more instructions (ie, at least one instruction), and the at least one instruction is executed by the at least one processor 32 to realize the image shown in FIG. 1 . the purpose of processing.

在本發明所提供的幾個實施例中,應該理解到,所揭露的裝置和方法,可以透過其它的方式實現。例如,以上所描述的裝置實施例僅僅是示意性的,例如,所述模組的劃分,僅僅為一種邏輯功能劃分,實際實現時可以有另外的劃分方式。 In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and other division methods may be used 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 can be located in one place or distributed to multiple networks. on the unit. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

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

對於本領域技術人員而言,顯然本發明不限於上述示範性實施例的細節,而且在不背離本發明的精神或基本特徵的情況下,能夠以其他的具體形式實現本發明。因此,無論從哪一點來看,均應將實施例看作是示範性的,而且是非限制性的,本發明的範圍由所附請求項而不是上述說明限定,因此旨在 將落在請求項的等同要件的含義和範圍內的所有變化涵括在本發明內。不應將請求項中的任何附圖標記視為限制所涉及的請求項。此外,顯然“包括”一詞不排除其他單元或,單數不排除複數。裝置請求項中陳述的多個單元或裝置也可以由一個單元或裝置透過軟體或者硬體來實現。第一,第二等詞語用來表示名稱,而並不表示任何特定的順序。 It will be apparent to those skilled in the art that the present invention is not limited to the details of the above-described exemplary embodiments, but that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the embodiments are to be regarded in all respects as illustrative and not restrictive, the scope of the invention being defined by the appended claims rather than by the foregoing description, and it is therefore intended that All changes that come within the meaning and range of equivalents of the claims are intended to be embraced within the present invention. Any reference sign in a claim shall not be construed as limiting the claim to which it relates. Furthermore, it is clear that the word "comprising" does not exclude other units or, and the singular does not exclude the plural. Multiple units or means stated in the device claim may also be implemented by one unit or means through software or hardware. The terms first, second, etc. are used to denote names and do not denote any particular 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 substitutions can be made without departing from the spirit and scope of the technical solutions of the present invention.

S1~S6:步驟 S1~S6: Steps

Claims (9)

一種影像處理方法,其中,所述方法包括:獲取攝像頭拍攝的使用者頭像;利用人臉檢測演算法從所述使用者頭像中確定人臉框的座標,所述人臉框由四個座標點所確定,所述四個座標點包括第一座標P1(Xmin,Ymax),第二座標P2(Xmax,Ymax),第三座標P3(Xmin,Ymin),第四座標P4(Xmax,Ymin),其中,Xmax為所述人臉框在所述使用者頭像中所對應的最大X座標,Xmin為所述人臉框在所述使用者頭像中所對應的最小X座標,Ymax為所述人臉框在所述使用者頭像中所對應的最大Y座標,Ymin為所述人臉框在所述使用者頭像中所對應的最小Y座標;基於所述人臉框的座標確定一個初始位置,所述初始位置為在所述使用者頭像中,基於第五座標P5(X5,Y5)和第六座標P6(X6,Y6)所構成的直線所在的位置,其中,X5=Xmin,Y5=Ymax+a;X6=Xmax,Y6=Ymax+a,a為預設值;及基於所述初始位置、所述使用者頭像中的每個圖元點的座標、以及每個圖元點的RGB值確定頭髮區域和頭皮區域;基於所述頭髮區域和頭皮區域計算所述頭皮區域所占比例;基於所述頭皮區域所占比例與預設值的比較確定使用者是否禿頭;及當確定使用者禿頭時,對所述頭皮區域作補色處理,獲得經過補色處理後的使用者頭像。 An image processing method, wherein the method comprises: acquiring a user's avatar photographed by a camera; using a face detection algorithm to determine the coordinates of a face frame from the user's avatar, the face frame is composed of four coordinate points It is determined that the four coordinate points include a first coordinate P1 (Xmin, Ymax), a second coordinate P2 (Xmax, Ymax), a third coordinate P3 (Xmin, Ymin), and a fourth coordinate P4 (Xmax, Ymin), Wherein, Xmax is the maximum X coordinate corresponding to the face frame in the user avatar, Xmin is the minimum X coordinate corresponding to the face frame in the user avatar, and Ymax is the face The maximum Y coordinate corresponding to the frame in the user avatar, Ymin is the minimum Y coordinate corresponding to the face frame in the user avatar; an initial position is determined based on the coordinates of the face frame, so The initial position is the position of the straight line formed by the fifth coordinate P5 (X5, Y5) and the sixth coordinate P6 (X6, Y6) in the user's avatar, wherein X5=Xmin, Y5=Ymax+ a; X6=Xmax, Y6=Ymax+a, a is a preset value; and determined based on the initial position, the coordinates of each primitive point in the user avatar, and the RGB value of each primitive point a hair area and a scalp area; calculating the proportion of the scalp area based on the hair area and the scalp area; determining whether the user is bald based on the comparison of the proportion of the scalp area and a preset value; and when it is determined that the user is bald , performing complementary color processing on the scalp area to obtain the user's avatar after the complementary color treatment. 如請求項1所述的影像處理方法,其中,該方法還包括:將經過補色處理後的使用者頭像傳輸到其他終端。 The image processing method according to claim 1, wherein the method further comprises: transmitting the user's avatar after the complementary color processing to other terminals. 如請求項1所述的影像處理方法,其中,所述頭髮區域所包括的每個圖元點的縱座標大於Y5和Y6,該頭髮區域所包括的每個圖元點的RGB值屬於第一預設範圍; 其中,所述頭皮區域所包括的每個圖元點的縱座標大於Y5和Y6,該頭皮區域所包括的每個圖元點的RGB值屬於第二預設範圍;其中,所述第一預設範圍與所述第二預設範圍沒有交集。 The image processing method according to claim 1, wherein the ordinate of each primitive point included in the hair region is greater than Y5 and Y6, and the RGB value of each primitive point included in the hair region belongs to the first preset range; Wherein, the ordinate of each primitive point included in the scalp area is greater than Y5 and Y6, and the RGB value of each primitive point included in the scalp area belongs to the second preset range; wherein, the first preset The set range has no intersection with the second preset range. 如請求項1所述的影像處理方法,其中,所述基於所述頭髮區域和頭皮區域計算所述頭皮區域所占比例包括:計算所述頭髮區域所占圖元點總數T1;計算所述頭皮區域所占圖元點總數T2;及計算所述頭皮區域所占比例P,其中,P=T2/(T1+T2)*100%。 The image processing method according to claim 1, wherein calculating the proportion of the scalp area based on the hair area and the scalp area comprises: calculating the total number T1 of primitive points occupied by the hair area; calculating the scalp area The total number of primitive points T2 occupied by the area; and the proportion P occupied by the scalp area is calculated, wherein, P=T2/(T1+T2)*100%. 如請求項4所述的影像處理方法,其中,所述對所述頭皮區域作補色處理包括:將所述頭皮區域的每個圖元點的RGB值設置為所述第一預設範圍內的任意一個值。 The image processing method according to claim 4, wherein the performing complementary color processing on the scalp area comprises: setting the RGB value of each primitive point of the scalp area to a value within the first preset range any value. 如請求項4所述的影像處理方法,其中,所述對所述頭皮區域作補色處理包括:計算所述頭髮區域的所有圖元點的RGB值的平均值;及將所述頭皮區域的每個圖元點的RGB值設置為所述平均值。 The image processing method according to claim 4, wherein the performing complementary color processing on the scalp area comprises: calculating the average value of RGB values of all primitive points in the hair area; The RGB value of each primitive point is set to the average value. 如請求項4所述的影像處理方法,其中,所述對所述頭皮區域作補色處理包括:利用輪廓提取演算法提取所述頭皮區域所對應的輪廓;根據所述輪廓的形狀和大小從所述頭髮區域複製圖像;及將所複製的圖像填充到所述頭皮區域。 The image processing method according to claim 4, wherein performing complementary color processing on the scalp area comprises: extracting a contour corresponding to the scalp area by using a contour extraction algorithm; copying an image of the hair region; and filling the scalp region with the copied image. 一種電腦裝置,其中,所述電腦裝置包括儲存器和處理器,所述儲存器用於儲存至少一個指令,所述處理器用於執行所述至少一個指令時實現如請求項1至7中任意一項所述影像處理方法。 A computer device, wherein the computer device includes a storage and a processor, the storage is used to store at least one instruction, and the processor is configured to implement any one of claim 1 to 7 when executing the at least one instruction The image processing method. 一種電腦可讀儲存介質,其中,所述電腦可讀儲存介質儲存有至少一個指令,所述至少一個指令被處理器執行時實現如請求項1至7中任意一項所述影像處理方法。 A computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, and when the at least one instruction is executed by a processor, implements the image processing method according to any one of claim 1 to 7.
TW110104330A 2021-02-04 2021-02-04 Image processing method, computer device and storage medium TWI769692B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110104330A TWI769692B (en) 2021-02-04 2021-02-04 Image processing method, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110104330A TWI769692B (en) 2021-02-04 2021-02-04 Image processing method, computer device and storage medium

Publications (2)

Publication Number Publication Date
TWI769692B true TWI769692B (en) 2022-07-01
TW202232441A TW202232441A (en) 2022-08-16

Family

ID=83439413

Family Applications (1)

Application Number Title Priority Date Filing Date
TW110104330A TWI769692B (en) 2021-02-04 2021-02-04 Image processing method, computer device and storage medium

Country Status (1)

Country Link
TW (1) TWI769692B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI532006B (en) * 2014-07-18 2016-05-01 再生機器人公司 Method and system of simulating hair on 3d model
US9931169B2 (en) * 2013-03-15 2018-04-03 Restoration Robotics, Inc. Systems and methods for planning hair transplantation
US10013642B2 (en) * 2015-07-30 2018-07-03 Restoration Robotics, Inc. Systems and methods for hair loss management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9931169B2 (en) * 2013-03-15 2018-04-03 Restoration Robotics, Inc. Systems and methods for planning hair transplantation
TWI532006B (en) * 2014-07-18 2016-05-01 再生機器人公司 Method and system of simulating hair on 3d model
US10013642B2 (en) * 2015-07-30 2018-07-03 Restoration Robotics, Inc. Systems and methods for hair loss management

Also Published As

Publication number Publication date
TW202232441A (en) 2022-08-16

Similar Documents

Publication Publication Date Title
TWI701605B (en) Living body detection method, device and computer readable storage medium
JP6914377B2 (en) Voice dialogue methods, devices, smart robots and computer readable storage media
CN107437272B (en) Interactive entertainment method and device based on augmented reality and terminal equipment
CN108304265A (en) EMS memory management process, device and storage medium
CN112991494A (en) Image generation method and device, computer equipment and computer readable storage medium
CN110648296A (en) Pupil color correction method, correction device, terminal device and storage medium
EP3476119A1 (en) Method for controlling multi-filed of view image and electronic device for supporting the same
CN115661912B (en) Image processing method, model training method, electronic device, and readable storage medium
CN110051319A (en) Adjusting method, device, equipment and the storage medium of eyeball tracking sensor
CN108494996A (en) Image processing method, device, storage medium and mobile terminal
TWI769692B (en) Image processing method, computer device and storage medium
US20190371039A1 (en) Method and smart terminal for switching expression of smart terminal
CN109040612B (en) Image processing method, device and equipment of target object and storage medium
CN114863502A (en) Image processing method, computer device and storage medium
CN115565647A (en) Terminal device, image processing method and storage medium
CN113763517B (en) Facial expression editing method and electronic equipment
WO2022011621A1 (en) Face illumination image generation apparatus and method
CN114663570A (en) Map generation method and device, electronic device and readable storage medium
CN110232011B (en) Method and device for testing performance of terminal equipment
CN111444979A (en) Face-lifting scheme recommendation method, cloud device and storage medium
CN218071604U (en) Camera head
CN114449714B (en) Light color adjustment method and device based on visual recognition and electronic equipment
CN110135333A (en) Making-up guidance method, apparatus, terminal and computer readable storage medium
TWI803334B (en) Method for optimizing depth estimation model and detecting object distance, and related equipment
CN113793252B (en) Image processing method, device, chip and module equipment thereof