CN111259696B - Method and device for displaying image - Google Patents

Method and device for displaying image Download PDF

Info

Publication number
CN111259696B
CN111259696B CN201811458458.6A CN201811458458A CN111259696B CN 111259696 B CN111259696 B CN 111259696B CN 201811458458 A CN201811458458 A CN 201811458458A CN 111259696 B CN111259696 B CN 111259696B
Authority
CN
China
Prior art keywords
color
image
face
information
feature information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811458458.6A
Other languages
Chinese (zh)
Other versions
CN111259696A (en
Inventor
朱祥祥
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201811458458.6A priority Critical patent/CN111259696B/en
Publication of CN111259696A publication Critical patent/CN111259696A/en
Application granted granted Critical
Publication of CN111259696B publication Critical patent/CN111259696B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification
    • G06T5/77
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/56Extraction of image or video features relating to colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • G06T2207/30201Face

Abstract

The embodiment of the application discloses a method and a device for displaying images. One embodiment of the method comprises the following steps: dividing the acquired face image to be processed into at least one face area image; for a face area image in the at least one face area image, acquiring and displaying face feature information of the face area image, wherein the face feature information is used for identifying the name of the face area image and color information corresponding to the face area image; and responding to the first selection signal of the face characteristic information in at least one piece of face characteristic information corresponding to the at least one face area image, and acquiring a color replacement image of the face area image corresponding to the face characteristic information. The embodiment improves the efficiency of information acquisition by the user.

Description

Method and device for displaying image
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a method and a device for displaying images.
Background
The face pack not only can protect the face skin, but also can adjust the face color, and the visual effect of the face is improved. In general, a user may try out possible cosmetics of various colors according to their own facial features until determining to fit their own cosmetics.
Disclosure of Invention
The embodiment of the application provides a method and a device for displaying images.
In a first aspect, an embodiment of the present application provides a method for displaying an image, the method including: dividing the acquired face image to be processed into at least one face area image; for a face area image in the at least one face area image, acquiring and displaying face feature information of the face area image, wherein the face feature information is used for identifying the name of the face area image and color information corresponding to the face area image; and responding to the first selection signal of the face characteristic information in at least one piece of face characteristic information corresponding to the at least one face area image, and acquiring a color replacement image of the face area image corresponding to the face characteristic information.
In some embodiments, the acquiring and displaying the face feature information of the face area image includes: and detecting color values of a plurality of pixel points on the face area image, and taking the average value of the plurality of color values as the color information of the face area image.
In some embodiments, the acquiring the color replacement image of the face area image corresponding to the face feature information includes: displaying at least one piece of color display information corresponding to the face feature information, wherein the color display information is used for indicating to display a designated color on a face area image corresponding to the face feature information; and responding to the detection of a second selection signal corresponding to the color display information in the at least one piece of color display information, and rendering a face area image corresponding to the face feature information through a specified color corresponding to the color display information to obtain a color replacement image.
In some embodiments, the above method further comprises: and responding to the detection of the scoring signal, acquiring the current color information of the face region image in the at least one face region image, and importing at least one piece of current color information into a scoring model to obtain a color matching score, wherein the scoring model is used for determining the color matching score according to the matching relation between the color information of the face region image.
In some embodiments, the above method further comprises: in response to detecting the third query signal corresponding to the color replacement image, displaying item information corresponding to color display information of the color replacement image, the item information including at least one of: item name, item volume, item color.
In a second aspect, an embodiment of the present application provides an apparatus for displaying an image, the apparatus comprising: a face region image acquisition unit configured to divide an acquired face image to be processed into at least one face region image; a face feature information obtaining unit configured to obtain and display face feature information of a face region image in the at least one face region image, the face feature information being used for identifying a name of the face region image and color information corresponding to the face region image; and a color replacement image display unit configured to acquire a color replacement image of a face area image corresponding to the face feature information in response to detection of a first selection signal of the face feature information in at least one piece of face feature information corresponding to the at least one face area image.
In some embodiments, the face feature information obtaining unit includes: the face feature information acquisition subunit is configured to detect color values of a plurality of pixel points on the face area image, and take the average value of the plurality of color values as the color information of the face area image.
In some embodiments, the color replacement image display unit includes: a color display information display subunit configured to display at least one piece of color display information corresponding to the face feature information, the color display information being used for indicating to display a specified color on the face area image corresponding to the face feature information; and a color replacement image display subunit, in response to detecting the second selection signal corresponding to the color display information in the at least one piece of color display information, configured to render the face area image corresponding to the face feature information through the designated color corresponding to the color display information, so as to obtain a color replacement image.
In some embodiments, the apparatus further comprises: and the scoring unit is used for responding to the detection of the scoring signal, and is configured to acquire the current color information of the face region image in the at least one face region image, import at least one piece of current color information into a scoring model to obtain a color matching score, and the scoring model is used for determining the color matching score according to the matching relation among the color information of the face region image.
In some embodiments, the apparatus further comprises: an article information display unit configured to display article information of color display information of a corresponding color replacement image in response to detection of a third query signal of the corresponding color replacement image, the article information including at least one of: item name, item volume, item color.
In a third aspect, an embodiment of the present application provides a server, including: one or more processors; and a memory having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to perform the method for displaying an image of the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer readable medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the method for displaying an image of the first aspect described above.
The method and the device for displaying the image provided by the embodiment of the application divide the acquired face image to be processed into at least one face area image; then, acquiring and displaying face characteristic information of the face area image, wherein the face characteristic information is used for identifying the name of the face area image and the color information corresponding to the face area image; and finally, responding to the first selection signal of the face characteristic information in at least one piece of face characteristic information corresponding to the at least one face area image, and displaying the color replacement image of the face area image corresponding to the face characteristic information. According to the technical scheme, the color replacement image is displayed on the face area image, so that the effect of the face area image after color replacement can be conveniently and effectively displayed, and the information acquisition efficiency of a user is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which an embodiment of the present application may be applied;
FIG. 2 is a flow chart of one embodiment of a method for displaying an image according to the present application;
FIG. 3 is a schematic illustration of one application scenario of a method for displaying images according to the present application;
FIG. 4 is a flow chart of yet another embodiment of a method for displaying an image in accordance with the present application;
FIG. 5 is a schematic diagram of an embodiment of an apparatus for displaying images according to the present application;
FIG. 6 is a schematic diagram of a computer system suitable for use with a server implementing an embodiment of the application.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be noted that, for convenience of description, only the portions related to the present application are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 of a method for displaying an image or an apparatus for displaying an image to which embodiments of the present application may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 via the network 104 using the terminal devices 101, 102, 103 to receive or send messages or the like. Various image processing applications such as an image acquisition application, a light detection application, an exposure control application, an image brightness adjustment application, an image editing application, an image transmission application, and the like may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices having a display screen and supporting image display, including but not limited to smartphones, tablet computers, laptop and desktop computers, and the like. When the terminal devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. Which may be implemented as multiple software or software modules (e.g., to provide distributed services), or as a single software or software module, without limitation.
The server 105 may be a server that provides various services, for example, a server that processes the face images to be processed sent from the terminal devices 101, 102, 103. The server may analyze and so on the received data such as the face image to be processed, and display the color replacement image according to the detected selection signal. After that, the server 105 may transmit the color replacement image to the terminal devices 101, 102, 103.
It should be noted that, the method for displaying an image provided by the embodiment of the present application is generally performed by the server 105, and accordingly, the device for displaying an image is generally disposed in the server 105.
The server may be hardware or software. When the server is hardware, the server may be implemented as a distributed server cluster formed by a plurality of servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules (for example, to provide a distributed service), or may be implemented as a single software or software module, which is not specifically limited herein.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for displaying an image in accordance with the present application is shown. The method for displaying an image includes the steps of:
step 201, dividing the acquired face image to be processed into at least one face area image.
In the present embodiment, the execution subject of the method for displaying an image (for example, the terminal devices 101, 102, 103 or the server 105 shown in fig. 1) may receive a face image to be processed from a terminal with which a user performs image acquisition by a wired connection manner or a wireless connection manner. The face image to be processed of the application can be acquired in a normal illumination environment instead of in a dark or bright environment. Thus, the real face condition of the user corresponding to the face image to be processed can be reflected as truly as possible. It should be noted that the wireless connection may include, but is not limited to, 3G/4G connections, wiFi connections, bluetooth connections, wiMAX connections, zigbee connections, UWB (ultra wideband) connections, and other now known or later developed wireless connection means.
In practice, the selection of cosmetics is often a cumbersome process. The user needs to select cosmetics that may be suitable for the user from among a plurality of cosmetics. Moreover, each attempt requires a complicated and time-consuming process of applying and removing makeup, resulting in inefficiency in the user's selection of cosmetics.
After the execution subject acquires the face image to be processed, the execution subject can divide the face image to be processed into at least one face region image. The image of the face to be processed typically also includes images other than the face (which may be, for example, a coat, hair, hat, etc.). The execution subject may determine a face image of the face images to be processed. Then, the execution subject may further determine the image positions corresponding to the facial features such as nose, eyebrow, mouth, etc. on the facial image by face recognition or the like. Finally, the executing body divides the face image to be processed into at least one face area image according to the image positions corresponding to the nose, the eyebrows, the mouth and the like on the face image. At least one face region image. Each of the face area images includes one image of the nose, eyebrows, mouth, and the like. For example, the face region image may include only an image corresponding to the left eye.
Step 202, for a face area image in the at least one face area image, acquiring and displaying face feature information of the face area image.
After the face area image is obtained, the executing main body can determine the face characteristics in the face area image in a face recognition mode and the like to obtain the name corresponding to the face area image. And then detecting the color information in the face area image to obtain the color information of the face area image of the face area. And combining the name and the color information of the face region image to form face characteristic information. That is, the above-described face feature information may be used to identify the name of the face region image and color information corresponding to the face region image. And then, the execution main body can display the face characteristic information so that the user can further operate according to the face characteristic information.
In some optional implementations of this embodiment, the acquiring and displaying the face feature information of the face area image may include: and monitoring color values of a plurality of pixel points on the face area image, and taking the average value of the plurality of color values as the color information of the face area image.
The face region image may be a planar image having a certain area. In order to obtain the color information of the region more accurately, the execution subject may uniformly set a plurality of pixel points as color reference points in the face region image. The executing body may then detect the color value (which may be an RGB value, for example) of each color reference point in a variety of ways. And then, executing the main body to calculate the average value of the color values of the color datum points, and taking the average value of the color values as the color information of the face area image. The color information can be represented by RGB (Red for R, green for G, blue for B) values, or the like. For example, if the face feature corresponding to a face region image is a nose, the corresponding name may be "nose" and the color information may be "light brown" (RGB values may be 255, 125, 64). The face feature information may be: { nose; light brown, RGB:255, 125, 64}. It should be noted that, the selection of the color reference points may be different for different face area images. For example, when the face feature in the face region image is a nose, the image region corresponding to the nose is not suitable as the selection region of the color reference point.
Step 203, in response to detecting a first selection signal of face feature information in at least one piece of face feature information corresponding to the at least one face region image, acquiring a color replacement image of the face region image corresponding to the face feature information.
Each face region image can acquire corresponding face feature information, namely, how many face region images have the corresponding face feature information. After the face characteristic information is displayed, the user can select the face characteristic information according to the needs of the user. That is, the execution subject may detect the first selection signal with the face feature information. The first selection signal may be a signal detected by a user clicking a screen position where the face feature information is displayed, or the like. At this time, the execution subject may display a color replacement image of the face region image corresponding to the face feature information.
In some optional implementations of this embodiment, the acquiring a color replacement image of a face area image corresponding to the face feature information may include the following steps:
first, at least one piece of color display information corresponding to the face feature information is displayed.
In order to provide a plurality of selectable colors to the user, at least one piece of color display information corresponding to the face feature information may be displayed after the first selection signal is detected. The color display information may be used to indicate that a specified color is displayed on the face area image corresponding to the face feature information. The designated color may be the color of an existing item corresponding to the face feature. The color display information may be an image and a text description provided with a specified color. This written description is used to explain the specified colors. For example, if the face feature is a mouth, the color display information may include an image of the lipstick color and a name describing the lipstick color.
And a second step of responding to a second selection signal corresponding to the color display information in the at least one piece of color display information, and rendering a face area image corresponding to the face feature information through a designated color corresponding to the color display information to obtain a color replacement image.
After displaying at least one color display information, the user can select one color display information from the at least one color display information by selecting or clicking or the like. At this time, the execution body may detect the corresponding second selection signal when one piece of color display information is selected. And then, the execution main body can render the face area image corresponding to the face characteristic information through the appointed color corresponding to the color display information to obtain a color replacement image. Also taking the above as an example, the execution body displays a plurality of pieces of color display information of the corresponding mouths. For selecting one from these color display information. The execution body may render the face region image of the corresponding mouth with a specified color corresponding to the color display information selected by the user, thereby obtaining a color replacement image of the corresponding mouth.
In some optional implementations of the present embodiment, the method of the present embodiment may further include: and responding to the detection of the scoring signal, acquiring the current color information of the face region image in the at least one face region image, and importing at least one piece of current color information into a scoring model to obtain a color matching score.
The application may also display scoring buttons. When the user wants to know the effect of the current color of the face region image, the color matching effect of each region of the face at the moment can be checked by clicking a designated scoring button and the like. The execution subject may import the current color information of each face region image into the scoring model to obtain a color matching score. The scoring model may be used to determine a color matching score according to a matching relationship between color information of the face region image. The executing body may use a variety of existing scoring models to obtain color matching scores. The execution subject may also obtain sample color matching scores between sample color information of the plurality of face region images and sample color information of the corresponding plurality of face region images. And inputting the sample color information and the sample color matching score into an intelligent model to obtain a scoring model. The details are not described here in detail.
Further, the execution subject may further obtain recommended color information according to color information of the face area image. Specifically, the executing body may query color matching score based on the color information of the face region image, so as to provide recommended color information of the face region image in the other face region images.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for displaying an image according to the present embodiment. In the application scenario of fig. 3, a user acquires a face image of the user himself via the terminal device 102, and sends the face image to the server 105 via the network 104. The server 105 acquires the face image to be processed, and obtains at least one corresponding face region image. Then, the server 105 acquires face feature information of each face area image: { nose; light brown, RGB:255 125, 64}; { eyebrow; black, RGB:0,5,0}; and (3) the same. When the user selects face feature information corresponding to the nose: { nose; light brown, RGB:255 After 125, 64, the subject acquires a color replacement image of the face area image corresponding to the nose.
The method provided by the embodiment of the application comprises the steps of firstly dividing an acquired face image to be processed into at least one face area image; then, acquiring and displaying face characteristic information of the face area image, wherein the face characteristic information is used for identifying the name of the face area image and the color information corresponding to the face area image; and finally, responding to the first selection signal of the face characteristic information in at least one piece of face characteristic information corresponding to the at least one face area image, and displaying the color replacement image of the face area image corresponding to the face characteristic information. According to the technical scheme, the color replacement image is displayed on the face area image, so that the effect of the face area image after color replacement can be conveniently and effectively displayed, and the information acquisition efficiency of a user is improved.
With further reference to fig. 4, a flow 400 of yet another embodiment of a method for displaying an image is shown. The flow 400 of the method for displaying an image comprises the steps of:
step 401, dividing the acquired face image to be processed into at least one face area image.
In the present embodiment, the execution subject of the method for displaying an image (for example, the terminal devices 101, 102, 103 or the server 105 shown in fig. 1) may receive a face image to be processed from a terminal with which a user performs image acquisition by a wired connection manner or a wireless connection manner. The content of step 401 is the same as that of step 201, and will not be described in detail here.
Step 402, for a face region image in the at least one face region image, acquiring and displaying face feature information of the face region image.
The content of step 402 is the same as that of step 202, and will not be described in detail here.
Step 403, in response to detecting a first selection signal of face feature information in at least one piece of face feature information corresponding to the at least one face region image, acquiring a color replacement image of the face region image corresponding to the face feature information.
The content of step 403 is the same as that of step 203, and will not be described in detail here.
In response to detecting the third query signal corresponding to the color replacement image, item information corresponding to color display information of the color replacement image is displayed, step 404.
After displaying the color replacement image, the execution subject may display a confirm button. When the user is satisfied with the current color information or the overall display effect of each face area image, a third query signal can be sent by clicking a confirmation button or the like. At this time, the user may display the item information of the color display information corresponding to the color replacement image. The execution subject may query color display information of the color replacement image, and query a designated color corresponding to the color display information, and further query article information corresponding to the designated color. Wherein the article information includes at least one of: item name, item volume, item color.
With further reference to fig. 5, as an implementation of the method shown in the above figures, the present application provides an embodiment of an apparatus for displaying an image, which corresponds to the method embodiment shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 5, the apparatus 500 for displaying an image of the present embodiment may include: a face region image acquisition unit 501, a face feature information acquisition unit 502, and a color replacement image display unit 503. Wherein the face region image obtaining unit 501 is configured to divide the obtained face image to be processed into at least one face region image; a face feature information obtaining unit 502, configured to obtain and display face feature information of a face region image in the at least one face region image, where the face feature information is used to identify a name of the face region image and color information corresponding to the face region image; the color replacement image display unit 503 is configured to acquire a color replacement image of a face area image corresponding to the face feature information in response to detecting a first selection signal of the face feature information in at least one piece of face feature information corresponding to the at least one face area image.
In some optional implementations of this embodiment, the face feature information obtaining unit 502 may include: a face feature information obtaining subunit (not shown in the figure) is configured to detect color values of a plurality of pixel points on the face area image, and take an average value of the plurality of color values as color information of the face area image.
In some optional implementations of the present embodiment, the color replacement image display unit 503 may include: a color display information display subunit (not shown in the figure) and a color replacement image display subunit (not shown in the figure). Wherein the color display information display subunit is configured to display at least one piece of color display information corresponding to the face feature information, and the color display information is used for indicating to display a specified color on the face area image corresponding to the face feature information; and a color replacement image display subunit, in response to detecting the second selection signal corresponding to the color display information in the at least one piece of color display information, configured to render the face area image corresponding to the face feature information through the designated color corresponding to the color display information, so as to obtain a color replacement image.
In some optional implementations of this embodiment, the apparatus 500 for displaying an image may further include: a scoring unit (not shown in the figure), in response to detecting the scoring signal, configured to obtain current color information of a face region image in the at least one face region image, and import at least one piece of current color information into a scoring model to obtain a color matching score, where the scoring model is used to determine the color matching score according to a matching relationship between the color information of the face region image.
In some optional implementations of this embodiment, the apparatus 500 for displaying an image may further include: an article information display unit (not shown in the figure) configured to display article information of color display information of the corresponding color replacement image in response to detection of the third query signal of the corresponding color replacement image, the article information including at least one of: item name, item volume, item color.
The embodiment also provides a server, including: one or more processors; and a memory having one or more programs stored thereon, which when executed by the one or more processors, cause the one or more processors to perform the method for displaying an image described above.
The present embodiment also provides a computer-readable medium having stored thereon a computer program which, when executed by a processor, implements the above-described method for displaying an image.
Referring now to FIG. 6, there is illustrated a schematic diagram of a computer system 600 suitable for use with a server (e.g., server 105 of FIG. 1) for implementing an embodiment of the present application. The server illustrated in fig. 6 is merely an example, and should not be construed as limiting the functionality and scope of use of embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a Central Processing Unit (CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 602 or a program loaded from a storage section 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the system 600 are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. The above-described functions defined in the method of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 601.
The computer readable medium of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented in software or in hardware. The described units may also be provided in a processor, for example, described as: a processor includes a face region image acquisition unit, a face feature information acquisition unit, and a color replacement image display unit. The names of these units do not constitute limitations on the unit itself in some cases, and for example, the color replacement image display unit may also be described as "a unit that displays a color replacement image corresponding to a face area image".
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: dividing the acquired face image to be processed into at least one face area image; for a face area image in the at least one face area image, acquiring and displaying face feature information of the face area image, wherein the face feature information is used for identifying the name of the face area image and color information corresponding to the face area image; and responding to the first selection signal of the face characteristic information in at least one piece of face characteristic information corresponding to the at least one face area image, and acquiring a color replacement image of the face area image corresponding to the face characteristic information.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application referred to in the present application is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the inventive concept described above. Such as the above-mentioned features and the technical features disclosed in the present application (but not limited to) having similar functions are replaced with each other.

Claims (10)

1. A method for displaying an image, comprising:
dividing the acquired face image to be processed into at least one face area image;
for a face area image in the at least one face area image, acquiring and displaying face feature information of the face area image, wherein the face feature information is used for identifying the name of the face area image and color information corresponding to the face area image;
the step of obtaining a color replacement image of the face region image corresponding to the face feature information in response to detecting a first selection signal of the face feature information in at least one piece of face feature information corresponding to the at least one face region image includes: displaying at least one piece of color display information corresponding to the face feature information, wherein the color display information is used for indicating to display a specified color on a face area image corresponding to the face feature information, the color display information is an image and a text description which are matched with the specified color, and the text description is used for analyzing and explaining the specified color; and responding to the detection of a second selection signal corresponding to the color display information in the at least one piece of color display information, and rendering a face area image corresponding to the face feature information through a specified color corresponding to the color display information to obtain a color replacement image.
2. The method according to claim 1, wherein the acquiring and displaying the face feature information of the face area image includes:
and detecting color values of a plurality of pixel points on the face area image, and taking the average value of the plurality of color values as the color information of the face area image.
3. The method of claim 1, wherein the method further comprises:
and responding to the detection of the scoring signal, acquiring current color information of the face region image in the at least one face region image, and importing at least one piece of current color information into a scoring model to obtain a color matching score, wherein the scoring model is used for determining the color matching score according to the matching relation between the color information of the face region image.
4. A method according to any one of claims 1 to 3, wherein the method further comprises:
in response to detecting the third query signal corresponding to the color replacement image, displaying item information corresponding to color display information of the color replacement image, the item information including at least one of: item name, item volume, item color.
5. An apparatus for displaying an image, comprising:
a face region image acquisition unit configured to divide an acquired face image to be processed into at least one face region image;
a face feature information obtaining unit configured to obtain and display face feature information of a face region image in the at least one face region image, the face feature information being used for identifying a name of the face region image and color information corresponding to the face region image;
a color replacement image display unit configured to acquire a color replacement image of a face area image corresponding to face feature information in response to detection of a first selection signal of the face feature information in at least one piece of face feature information corresponding to the at least one face area image; the color replacement image display unit includes: a color display information display subunit configured to display at least one piece of color display information corresponding to the face feature information, where the color display information is used to instruct to display a specified color on a face area image corresponding to the face feature information, the color display information is an image and a text description configured with the specified color, and the text description is used to parse the specified color; and the color replacement image display subunit is used for responding to the detection of the second selection signal corresponding to the color display information in the at least one piece of color display information and is configured to render the face area image corresponding to the face feature information through the appointed color corresponding to the color display information so as to obtain a color replacement image.
6. The apparatus according to claim 5, wherein the face feature information acquisition unit includes:
the face feature information acquisition subunit is configured to detect color values of a plurality of pixel points on the face area image, and take the average value of the plurality of color values as the color information of the face area image.
7. The apparatus of claim 5, wherein the apparatus further comprises:
and the scoring unit is used for responding to the detection of the scoring signal, and is configured to acquire the current color information of the face region image in the at least one face region image, import at least one piece of current color information into a scoring model to obtain a color matching score, and the scoring model is used for determining the color matching score according to the matching relation among the color information of the face region image.
8. The apparatus according to any one of claims 5 to 7, wherein the apparatus further comprises:
an article information display unit configured to display article information of color display information of a corresponding color replacement image in response to detection of a third query signal of the corresponding color replacement image, the article information including at least one of: item name, item volume, item color.
9. A server, comprising:
one or more processors;
a memory having one or more programs stored thereon,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-4.
10. A computer readable medium on which a computer program is stored, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1 to 4.
CN201811458458.6A 2018-11-30 2018-11-30 Method and device for displaying image Active CN111259696B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811458458.6A CN111259696B (en) 2018-11-30 2018-11-30 Method and device for displaying image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811458458.6A CN111259696B (en) 2018-11-30 2018-11-30 Method and device for displaying image

Publications (2)

Publication Number Publication Date
CN111259696A CN111259696A (en) 2020-06-09
CN111259696B true CN111259696B (en) 2023-08-29

Family

ID=70953648

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811458458.6A Active CN111259696B (en) 2018-11-30 2018-11-30 Method and device for displaying image

Country Status (1)

Country Link
CN (1) CN111259696B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104380339A (en) * 2013-04-08 2015-02-25 松下电器(美国)知识产权公司 Image processing device, image processing method, and program, capable of virtual reproduction of makeup application state
KR101720016B1 (en) * 2015-10-16 2017-03-27 광운대학교 산학협력단 A clothing fitting system with a mirror display by using salient points and the method thereof
CN106682632A (en) * 2016-12-30 2017-05-17 百度在线网络技术(北京)有限公司 Method and device for processing face images
CN107220960A (en) * 2017-05-27 2017-09-29 无限极(中国)有限公司 One kind examination cosmetic method, system and equipment
CN108053365A (en) * 2017-12-29 2018-05-18 百度在线网络技术(北京)有限公司 For generating the method and apparatus of information
CN108804975A (en) * 2017-04-27 2018-11-13 丽宝大数据股份有限公司 Lip gloss guidance device and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201217721D0 (en) * 2012-10-03 2012-11-14 Holition Ltd Video image processing
JP6368919B2 (en) * 2013-08-30 2018-08-08 パナソニックIpマネジメント株式会社 Makeup support device, makeup support method, and makeup support program
FR3053509B1 (en) * 2016-06-30 2019-08-16 Fittingbox METHOD FOR OCCULATING AN OBJECT IN AN IMAGE OR A VIDEO AND ASSOCIATED AUGMENTED REALITY METHOD

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104380339A (en) * 2013-04-08 2015-02-25 松下电器(美国)知识产权公司 Image processing device, image processing method, and program, capable of virtual reproduction of makeup application state
KR101720016B1 (en) * 2015-10-16 2017-03-27 광운대학교 산학협력단 A clothing fitting system with a mirror display by using salient points and the method thereof
CN106682632A (en) * 2016-12-30 2017-05-17 百度在线网络技术(北京)有限公司 Method and device for processing face images
CN108804975A (en) * 2017-04-27 2018-11-13 丽宝大数据股份有限公司 Lip gloss guidance device and method
CN107220960A (en) * 2017-05-27 2017-09-29 无限极(中国)有限公司 One kind examination cosmetic method, system and equipment
CN108053365A (en) * 2017-12-29 2018-05-18 百度在线网络技术(北京)有限公司 For generating the method and apparatus of information

Also Published As

Publication number Publication date
CN111259696A (en) 2020-06-09

Similar Documents

Publication Publication Date Title
CN107909065B (en) Method and device for detecting face occlusion
CN107622240B (en) Face detection method and device
CN108197618B (en) Method and device for generating human face detection model
CN109344752B (en) Method and apparatus for processing mouth image
WO2019100282A1 (en) Face skin color recognition method, device and intelligent terminal
CN108280413B (en) Face recognition method and device
CN107679466B (en) Information output method and device
CN109472264B (en) Method and apparatus for generating an object detection model
EP3598386A1 (en) Method and apparatus for processing image
CN110298850B (en) Segmentation method and device for fundus image
CN110472558B (en) Image processing method and device
WO2020056901A1 (en) Method and device for processing image
CN108462832A (en) Method and device for obtaining image
CN110211030A (en) Image generating method and device
CN109241930B (en) Method and apparatus for processing eyebrow image
CN108038473B (en) Method and apparatus for outputting information
CN114842120A (en) Image rendering processing method, device, equipment and medium
CN108197563B (en) Method and device for acquiring information
CN108921138B (en) Method and apparatus for generating information
CN107247657B (en) Method, device and system for displaying webpage coordinate click rate
CN112819767A (en) Image processing method, apparatus, device, storage medium, and program product
CN111259696B (en) Method and device for displaying image
CN109523564B (en) Method and apparatus for processing image
CN112132000B (en) Living body detection method, living body detection device, computer readable medium and electronic equipment
CN115512447A (en) Living body detection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant