CN109246345B - Beautiful pupil shooting method and device, storage medium and mobile terminal - Google Patents
Beautiful pupil shooting method and device, storage medium and mobile terminal Download PDFInfo
- Publication number
- CN109246345B CN109246345B CN201811236908.7A CN201811236908A CN109246345B CN 109246345 B CN109246345 B CN 109246345B CN 201811236908 A CN201811236908 A CN 201811236908A CN 109246345 B CN109246345 B CN 109246345B
- Authority
- CN
- China
- Prior art keywords
- pupil
- image
- preset
- beautiful
- area
- 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
Links
- 210000001747 pupil Anatomy 0.000 title claims abstract description 262
- 238000000034 method Methods 0.000 title claims abstract description 63
- 239000002537 cosmetic Substances 0.000 claims abstract description 30
- 230000001960 triggered effect Effects 0.000 claims abstract description 20
- 230000000694 effects Effects 0.000 claims abstract description 15
- 239000011521 glass Substances 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 9
- 238000006073 displacement reaction Methods 0.000 claims description 8
- 230000006870 function Effects 0.000 claims description 7
- 239000003086 colorant Substances 0.000 claims description 6
- 230000003796 beauty Effects 0.000 abstract description 28
- 230000002093 peripheral effect Effects 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 230000001934 delay Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000010897 surface acoustic wave method Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 229920000742 Cotton Polymers 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 235000013399 edible fruits Nutrition 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000036651 mood Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 239000004984 smart glass Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/50—Constructional details
- H04N23/54—Mounting of pick-up tubes, electronic image sensors, deviation or focusing coils
-
- G06T3/04—
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/02—Constructional features of telephone sets
- H04M1/0202—Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
- H04M1/026—Details of the structure or mounting of specific components
- H04M1/0264—Details of the structure or mounting of specific components for a camera module assembly
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/57—Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
Abstract
The embodiment of the application discloses a beautiful pupil shooting method, a device, a storage medium and a terminal, wherein the method comprises the following steps: first, a preset cosmetic pupil image is acquired. Then, when a photographing instruction is triggered, a preset beautiful pupil image is output. And finally, acquiring a front shot image. Compared with the situation that a user needs to wear the beauty pupil manually to shoot the beauty pupil image, the beauty pupil shooting method provided by the embodiment of the application can map the beauty pupil image to the eyes of the user by outputting the beauty pupil image, so that the beauty pupil effect is realized, the user can shoot the image with the beauty pupil effect without wearing the beauty pupil, and the shooting efficiency is improved.
Description
Technical Field
The embodiment of the application relates to the technical field of mobile terminals, in particular to a beautiful pupil shooting method and device, a storage medium and a mobile terminal.
Background
At present, the photographing function becomes a standard configuration of most mobile terminals, and a terminal user can easily and quickly realize photographing operation through a portable mobile terminal. With the popularization of the beauty pupil, more and more users wear the beauty pupil before taking a picture to play a role in beautifying. However, the wearing of the cosmetic pupil not only damages eyes but also delays time, and the photographing efficiency is low.
Disclosure of Invention
The embodiment of the application provides a beautiful pupil shooting method, a device, a storage medium and a mobile terminal, which can improve the white balance restoration degree of an image.
In a first aspect, an embodiment of the present application provides a method for beautifying pupil, including:
acquiring a preset beautiful pupil image;
when a photographing instruction is triggered, outputting the preset beautiful pupil image;
and acquiring a front shot image.
In a second aspect, an embodiment of the present application provides a cosmetic pupil photographing device, including:
the beautiful pupil acquisition module is used for acquiring a preset beautiful pupil image;
the output module is used for outputting the preset beautiful pupil image acquired by the beautiful pupil acquisition module when a photographing instruction is triggered;
and the image acquisition module is used for acquiring the front photographing image.
In a third aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the beautiful pupil photographing method according to the present application.
In a fourth aspect, an embodiment of the present application provides a mobile terminal, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor executes the computer program to implement the beautiful pupil photographing method according to the embodiment of the present application.
According to the beautiful pupil shooting scheme provided in the embodiment of the application, firstly, a preset beautiful pupil image is obtained; then, when a photographing instruction is triggered, outputting the preset beautiful pupil image; and finally, acquiring a front shot image. By adopting the technical scheme, the beautiful pupil image can be mapped to the eyes of the user by outputting the beautiful pupil image, so that the beautiful pupil effect is realized, the user can shoot the image with the beautiful pupil effect without wearing the beautiful pupil, and the shooting efficiency is improved.
Drawings
Fig. 1 is a schematic flowchart of a beautiful pupil photographing method according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of another american pupil photographing method according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of another american pupil photographing method according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another american pupil photographing method according to an embodiment of the present disclosure;
fig. 5 is a schematic flowchart of another american pupil photographing method according to an embodiment of the present disclosure;
fig. 6 is a schematic flowchart of another american pupil photographing method according to an embodiment of the present disclosure;
fig. 7 is a block diagram of a structure of an american pupil photographing device according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a mobile terminal according to an embodiment of the present application.
Detailed Description
The technical scheme of the invention is further explained by the specific implementation mode in combination with the attached drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the steps as a sequential process, many of the steps can be performed in parallel, concurrently or simultaneously. In addition, the order of the steps may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
At present, the photographing function becomes a standard configuration of most mobile terminals, and a terminal user can easily and quickly realize photographing operation through a portable mobile terminal. With the popularization of the beauty pupil, more and more users wear the beauty pupil before taking a picture to play a role in beautifying. However, the wearing of the cosmetic pupil not only damages eyes but also delays time, and the photographing efficiency is low.
The embodiment of the application provides a beautiful pupil shooting method, which comprises the steps of firstly, obtaining a preset beautiful pupil image; when a photographing instruction is triggered, outputting the preset beautiful pupil image; and then, a front-mounted photographed image is acquired, the beautiful pupil image can be output during photographing, so that the beautiful pupil image appears in eyes of a user through a light reflection principle, and the user can obtain a beautiful pupil effect during photographing without wearing a beautiful pupil. The specific scheme is as follows:
fig. 1 is a schematic flowchart of a beautiful pupil shooting method provided in an embodiment of the present application, where the method is suitable for a case where a terminal is used to take a portrait, especially a case where the terminal is used to take a self-portrait. The method can be executed by a mobile terminal with a photographing function, the mobile terminal can be a smart phone, a tablet computer, wearable equipment (a smart watch or smart glasses) and the like, and the method specifically comprises the following steps:
and step 110, acquiring a preset beautiful pupil image.
A plurality of spare preset cosmetic pupil images may be stored locally. And determining a preset beautiful pupil image according to user selection, wherein the preset beautiful pupil image is mapped to the eyes of the user by the user to form a beautiful pupil pattern.
Optionally, a standby preset beautiful pupil image is obtained according to the use habit of the user and recommended to the user.
And 120, outputting a preset beautiful pupil image when a photographing instruction is triggered.
The user clicks on the photograph button to trigger a photograph instruction. When a photographing instruction is triggered, outputting a preset beautiful pupil image on a screen so that the preset beautiful pupil image is mapped to a travel beautiful pupil effect in the eyes of a user.
Alternatively, a projection device may be provided on the terminal screen side. And detecting through cotton cloth to obtain the eye coordinates in the human face. And projecting the cosmetic pupil image to a glasses coordinate corresponding area through a projection device.
Optionally, outputting the preset cosmetic pupil image includes: and acquiring the ambient color temperature and the portrait color temperature. And determining the color temperature of the preset beautiful pupil image according to the environment color temperature and the portrait color temperature.
The ambient color temperature is used to represent the color mood of the current environment. The portrait color temperature is used to represent the color temperature of the portrait area. When the preset beautiful pupil image is displayed on the screen, the color temperature of the portrait may be changed due to the preset beautiful pupil image output by the screen, thereby causing color temperature interference. Based on this, the color temperature of the preset beautiful pupil image can be determined according to the environment color temperature and the portrait color temperature, so that the preset beautiful pupil image displayed in the screen can be consistent with the environment color temperature, and the portrait color temperature has higher reduction degree.
And step 130, acquiring a front shot image.
And acquiring a photographed image through the front camera. Optionally, the pre-shot image may be filtered, for example, to eliminate noise in the image.
The beautiful pupil shooting method provided by the embodiment of the application comprises the steps of firstly, obtaining a preset beautiful pupil image. Then, when a photographing instruction is triggered, a preset beautiful pupil image is output. And finally, acquiring a front shot image. Compared with the situation that a user needs to wear the beauty pupil manually to shoot the beauty pupil image, the beauty pupil shooting method provided by the embodiment of the application can map the beauty pupil image to the eyes of the user by outputting the beauty pupil image, so that the beauty pupil effect is realized, the user can shoot the image with the beauty pupil effect without wearing the beauty pupil, and the shooting efficiency is improved.
Fig. 2 is a schematic flow chart of another american pupil photographing method provided in an embodiment of the present application, which, as a further description of the above embodiment, includes the following steps:
and step 210, acquiring a preset beautiful pupil image.
The first area is used as a main output area of the screen, and the second area is a reduced image in the corner of the screen. The first area may be the same as the screen and the second area may be superimposed on the first area. Displayed in a rectangular shape in the upper left or right corner of the screen. Preferably, the display is in a corner of the screen towards the front facing camera.
And step 230, outputting the acquired portrait image in a second area, wherein the area of the first area is larger than that of the second area.
The portrait image is a preview frame image. Further, the display brightness of the first area is smaller than that of the second area.
And 240, outputting a preset beautiful pupil image when a photographing instruction is triggered.
And step 250, acquiring a front shot image.
According to the beautiful pupil shooting method provided by the embodiment of the application, the preset beautiful pupil image can be displayed in the first area on the preview interface, and the reduced preview frame image is displayed in the second area, so that a user can obtain the preview frame image while obtaining the beautiful pupil effect.
Fig. 3 is a schematic flow chart of another american pupil photographing method provided in an embodiment of the present application, which, as a further description of the above embodiment, includes the following steps:
and step 310, acquiring a preset cosmetic pupil image.
And 320, outputting a preset beautiful pupil image in the first area in a preview stage.
And step 330, acquiring a pupil image of the portrait.
Because the colors of the pupils of people of different races are different, the preset beautiful pupil image can be adjusted according to the different colors and areas of the pupils.
And step 340, displaying the pupil image in the second area.
Because the final mapping effect of the preset beautiful pupil image is mainly reflected on the pupil, the pupil image in the preview frame image can be locally enlarged, and a user can acquire the beautiful pupil image mapped by the pupil through the second area, so that the pupil image can be more accurately set. For example, the brightness, size, position, color, contrast, etc. of the pupil image is altered. Wherein the area of the first region is larger than that of the second region.
And step 350, outputting a preset beautiful pupil image when a photographing instruction is triggered.
And step 360, acquiring a front shot image.
According to the beautiful pupil shooting method provided by the embodiment of the application, the magnified pupil image can be displayed through the second area, so that a user can more accurately set the preset beautiful pupil image, and the shooting efficiency is further improved.
Fig. 4 is a schematic flow chart of another american pupil photographing method provided in an embodiment of the present application, which, as a further description of the above embodiment, includes the following steps:
and step 410, acquiring a preset cosmetic pupil image.
In step 420, in the preview stage, a preset beautiful pupil image is output in the first area.
And 430, acquiring the position information of the beautiful pupil pattern in the pupil according to the preview frame image.
And acquiring a beautiful pupil pattern in the preview frame image. The relative position of the cosmetic pupil pattern in the pupil is detected.
And step 440, determining displacement prompt information of the terminal according to the position information.
And if the central point of the pupil pattern is not matched with the pupil central point, generating displacement prompt information. And if the central point of the fruit pupil pattern is matched with the pupil central point, prompting a pupil pattern matching indication. The displacement prompt information can be indicated by an arrow, so that a user can adjust the terminal angle and the distance between the terminal and the face according to the arrow indication, and the pupil center is matched with the pupil pattern central point.
And step 450, outputting the acquired portrait image in a second area, wherein the area of the first area is larger than that of the second area.
And step 470, acquiring a pre-shot image.
The beautiful pupil shooting method provided by the embodiment of the application can generate displacement prompt information according to the relative position of the beautiful pupil pattern in the pupil, so that a user can more accurately map the beautiful pupil pattern to the pupil, and the shooting efficiency is improved.
Fig. 5 is a schematic flow chart of another american pupil photographing method provided in an embodiment of the present application, which, as a further description of the above embodiment, includes the following steps:
and step 510, acquiring a preset beautiful pupil image.
And step 520, detecting whether the user wears the glasses or not according to the preview frame image.
When a user wears glasses, a preset cosmetic pupil image displayed on a screen is reflected by the glasses, resulting in interference with a photographing effect. Whether the user wears the glasses can be determined by adjusting the comparison.
And step 530, if the user wears the glasses, outputting prompt information so that the user can remove the glasses.
And 540, outputting a preset beautiful pupil image in the first area in a preview stage.
And 550, outputting the acquired portrait image in a second area, wherein the area of the first area is larger than that of the second area.
And step 560, outputting the preset beautiful pupil image when the photographing instruction is triggered.
And step 570, acquiring the front shot image.
The beautiful pupil shooting method provided by the embodiment of the application can be used for carrying out glasses detection when the portrait is shot, avoids interference caused by the preset beautiful pupil image displayed in the glasses reflection screen, and improves the shooting quality.
Fig. 6 is a schematic flow chart of another american pupil photographing method provided in an embodiment of the present application, which, as a further description of the foregoing embodiment, includes the following steps:
and step 610, acquiring a preset beautiful pupil image.
And step 620, when a photographing instruction is triggered, acquiring the pupil color according to the preview frame image.
And step 630, determining color information of the preset beautiful pupil image according to the color of the pupil.
The color of the cosmetic pupil image reflected off the pupil may change due to the pupil color. For example, if the user's glasses are blue and the user wants the beautiful pupil color to be green, and if a preset beautiful pupil image of green is displayed, the reflected beautiful pupil image is cyan, not green. Therefore, according to the pupil color and the target pupil color desired by the user, the color information of the preset beautiful pupil image can be determined, for example, the color information of the preset beautiful pupil image is yellow in the above example. And after yellow is mapped into a blue pupil, the reflected preset beautiful pupil image is green.
And step 640, outputting a preset beautiful pupil image according to the color information.
And step 650, acquiring a pre-shot image.
The beautiful pupil shooting device provided by the embodiment of the application can determine the color information of the preset beautiful pupil image according to the color of the pupil of the user, so that the beautiful pupil image can be more accurately provided for the user, and the shooting efficiency is improved.
Fig. 7 is a block diagram of a configuration of an american pupil photographing device according to an embodiment of the present disclosure, where the device may be implemented by software and/or hardware, and is generally integrated in a mobile terminal having a photographing function, and may execute the american pupil photographing method according to the foregoing embodiments. As shown in fig. 7, the apparatus includes: a cosmetic pupil acquisition module 710, an output module 720 and an image acquisition module 730.
A beautiful pupil obtaining module 710, configured to obtain a preset beautiful pupil image;
an output module 720, configured to output the preset beautiful pupil image acquired by the beautiful pupil acquiring module 710 when a photographing instruction is triggered;
and an image obtaining module 730, configured to obtain the pre-shot image.
Further, the output module 720 is configured to, after acquiring the preset beautiful pupil image, output the preset beautiful pupil image in the first area in a preview stage;
and outputting the acquired portrait image in a second region, wherein the area of the first region is larger than that of the second region.
Further, the output module 720 is configured to output the acquired portrait image in the second area, and includes:
acquiring a pupil image of a portrait;
and displaying the pupil image in the second area.
Further, the output module 720 is configured to, after outputting the preset cosmetic pupil image in the first region, include:
acquiring position information of a beautiful pupil pattern in the pupil according to the preview frame image;
and determining displacement prompt information of the terminal according to the position information.
Further, the output module 720 is configured to detect whether the user wears glasses according to the preview frame image after the preset cosmetic pupil image is acquired;
and if the user wears the glasses, outputting prompt information so that the user can remove the glasses.
Further, the output module 720 is configured to:
acquiring pupil colors according to the preview frame image;
determining color information of the preset beautiful pupil image according to the pupil color;
and outputting the preset beautiful pupil image according to the color information.
Further, the output module 720 is configured to:
acquiring an ambient color temperature and a portrait color temperature;
and determining the color temperature of the preset pupil image according to the environment color temperature and the portrait color temperature.
In the beautiful pupil photographing device provided in the embodiment of the application, first, the beautiful pupil acquiring module 710 acquires a preset beautiful pupil image. Then, the output module 720 outputs the preset beautiful pupil image when the photographing instruction is triggered. Finally, the image obtaining module 730 obtains the pre-shot image. Compared with the situation that a user needs to wear the beauty pupil manually to shoot the beauty pupil image, the beauty pupil shooting method provided by the embodiment of the application can map the beauty pupil image to the eyes of the user by outputting the beauty pupil image, so that the beauty pupil effect is realized, the user can shoot the image with the beauty pupil effect without wearing the beauty pupil, and the shooting efficiency is improved.
The device can execute the methods provided by all the embodiments of the application, and has corresponding functional modules and beneficial effects for executing the methods. For details of the technology not described in detail in this embodiment, reference may be made to the methods provided in all the foregoing embodiments of the present application.
Fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 8, the terminal may include: a housing (not shown), a memory 801, a Central Processing Unit (CPU) 802 (also called a processor, hereinafter referred to as CPU), a computer program stored in the memory 801 and operable on the processor 802, a circuit board (not shown), and a power circuit (not shown). The circuit board is arranged in a space enclosed by the shell; the CPU802 and the memory 801 are provided on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the terminal; the memory 801 is used for storing executable program codes; the CPU802 executes a program corresponding to the executable program code by reading the executable program code stored in the memory 801.
The terminal further comprises: peripheral interface 803, RF (Radio Frequency) circuitry 805, audio circuitry 806, speakers 811, power management chip 808, input/output (I/O) subsystem 809, touch screen 812, other input/control devices 810, and external port 804, which communicate over one or more communication buses or signal lines 807.
It should be understood that the illustrated terminal device 800 is merely one example of a terminal, and that the terminal device 800 may have more or fewer components than shown in the figures, may combine two or more components, or may have a different configuration of components. The various components shown in the figures may be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and/or application specific integrated circuits.
The following describes in detail a terminal device provided in this embodiment, where the terminal device is a smart phone as an example.
A memory 801, the memory 801 being accessible by the CPU802, the peripheral interface 803, and the like, the memory 801 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other volatile solid state storage devices.
A peripheral interface 803, said peripheral interface 803 allowing input and output peripherals of the device to be connected to the CPU802 and the memory 801.
I/O subsystem 809, which I/O subsystem 809 may connect input and output peripherals on the device, such as touch screen 812 and other input/control devices 810, to peripheral interface 803. The I/O subsystem 809 may include a display controller 8091 and one or more input controllers 8092 for controlling other input/control devices 810. Where one or more input controllers 8092 receive electrical signals from or transmit electrical signals to other input/control devices 810, other input/control devices 810 may include physical buttons (push buttons, rocker buttons, etc.), dials, slide switches, joysticks, click wheels. It is worth noting that the input controller 8092 may be connected to any of the following: a keyboard, an infrared port, a USB interface, and a pointing device such as a mouse.
The touch screen 812 may be a resistive type, a capacitive type, an infrared type, or a surface acoustic wave type, according to the operating principle of the touch screen and the classification of media for transmitting information. The touch screen 812 may be classified by installation method: external hanging, internal or integral. Classified according to technical principles, the touch screen 812 may be: a vector pressure sensing technology touch screen, a resistive technology touch screen, a capacitive technology touch screen, an infrared technology touch screen, or a surface acoustic wave technology touch screen.
A touch screen 812, which touch screen 812 is an input interface and an output interface between the user terminal and the user, displays visual output to the user, which may include graphics, text, icons, video, and the like. Optionally, the touch screen 812 sends an electrical signal (e.g., an electrical signal of the touch surface) triggered by the user on the touch screen to the processor 802.
The display controller 8091 in the I/O subsystem 809 receives electrical signals from the touch screen 812 or sends electrical signals to the touch screen 812. The touch screen 812 detects a contact on the touch screen, and the display controller 8091 converts the detected contact into an interaction with a user interface object displayed on the touch screen 812, that is, implements a human-computer interaction, and the user interface object displayed on the touch screen 812 may be an icon for running a game, an icon networked to a corresponding network, or the like. It is worth mentioning that the device may also comprise a light mouse, which is a touch sensitive surface that does not show visual output, or an extension of the touch sensitive surface formed by the touch screen.
The RF circuit 805 is mainly used to establish communication between the smart speaker and a wireless network (i.e., a network side), and implement data reception and transmission between the smart speaker and the wireless network. Such as sending and receiving short messages, e-mails, etc.
The audio circuit 806 is mainly used to receive audio data from the peripheral interface 803, convert the audio data into an electric signal, and transmit the electric signal to the speaker 811.
And the power management chip 808 is used for supplying power and managing power to the hardware connected with the CPU802, the I/O subsystem and the peripheral interface.
In this embodiment, the cpu802 is configured to:
acquiring a preset beautiful pupil image;
when a photographing instruction is triggered, outputting the preset beautiful pupil image;
and acquiring a front shot image.
Further, after acquiring the preset cosmetic pupil image, the method includes:
in a preview stage, outputting the preset beautiful pupil image in a first area;
and outputting the acquired portrait image in a second region, wherein the area of the first region is larger than that of the second region.
Further, the outputting the acquired portrait image in the second area includes:
acquiring a pupil image of a portrait;
and displaying the pupil image in the second area.
Further, after outputting the preset cosmetic pupil image in the first region, the method includes:
acquiring position information of a beautiful pupil pattern in the pupil according to the preview frame image;
and determining displacement prompt information of the terminal according to the position information.
Further, after acquiring the preset cosmetic pupil image, the method includes:
detecting whether a user wears glasses or not according to the preview frame image;
and if the user wears the glasses, outputting prompt information so that the user can remove the glasses.
Further, the outputting the preset beautiful pupil image includes:
acquiring pupil colors according to the preview frame image;
determining color information of the preset beautiful pupil image according to the pupil color;
and outputting the preset beautiful pupil image according to the color information.
Further, the outputting the preset beautiful pupil image includes:
acquiring an ambient color temperature and a portrait color temperature;
and determining the color temperature of the preset pupil image according to the environment color temperature and the portrait color temperature.
Embodiments of the present application further provide a storage medium containing terminal device executable instructions, which when executed by a terminal device processor, are configured to perform a method for calibrating white balance of an image, the method including:
acquiring a preset beautiful pupil image;
when a photographing instruction is triggered, outputting the preset beautiful pupil image;
and acquiring a front shot image.
Further, after acquiring the preset cosmetic pupil image, the method includes:
in a preview stage, outputting the preset beautiful pupil image in a first area;
and outputting the acquired portrait image in a second region, wherein the area of the first region is larger than that of the second region.
Further, the outputting the acquired portrait image in the second area includes:
acquiring a pupil image of a portrait;
and displaying the pupil image in the second area.
Further, after outputting the preset cosmetic pupil image in the first region, the method includes:
acquiring position information of a beautiful pupil pattern in the pupil according to the preview frame image;
and determining displacement prompt information of the terminal according to the position information.
Further, after acquiring the preset cosmetic pupil image, the method includes:
detecting whether a user wears glasses or not according to the preview frame image;
and if the user wears the glasses, outputting prompt information so that the user can remove the glasses.
Further, the outputting the preset beautiful pupil image includes:
acquiring pupil colors according to the preview frame image;
determining color information of the preset beautiful pupil image according to the pupil color;
and outputting the preset beautiful pupil image according to the color information.
Further, the outputting the preset beautiful pupil image includes:
acquiring an ambient color temperature and a portrait color temperature;
and determining the color temperature of the preset pupil image according to the environment color temperature and the portrait color temperature.
The computer storage media of the embodiments of the present application may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: 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.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. 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, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
Of course, the storage medium provided in the embodiments of the present application and containing the computer-executable instructions is not limited to the application recommendation operation described above, and may also perform related operations in the cosmetic pupil photographing method provided in any embodiments of the present application.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims (9)
1. The utility model provides a beautiful pupil shooting method which is characterized in that, is applied to the mobile terminal with the function of shooing, including:
acquiring a preset beautiful pupil image;
when a photographing instruction is triggered, outputting the preset beautiful pupil image so that the preset beautiful pupil image is mapped to the eyes of a user to form a beautiful pupil effect;
acquiring a front shot image;
after acquiring the preset cosmetic pupil image, the method comprises the following steps:
in a preview stage, outputting the preset beautiful pupil image in a first area;
outputting the acquired portrait image in a second area, wherein the area of the first area is larger than that of the second area; the first area is the same as the screen, and the second area is superposed on the first area and displayed at the corner of the screen which tends to the front camera;
the outputting of the preset beautiful pupil image includes: acquiring an ambient color temperature and a portrait color temperature; and determining the color temperature of a preset pupil image according to the environment color temperature and the portrait color temperature.
2. The cosmetic pupil photographing method according to claim 1, wherein the outputting the acquired portrait image in the second area includes:
acquiring a pupil image of a portrait;
and displaying the pupil image in the second area.
3. The cosmetic pupil photographing method according to claim 1, comprising, after outputting the preset cosmetic pupil image in a first region:
acquiring position information of a beautiful pupil pattern in the pupil according to the preview frame image;
and determining displacement prompt information of the terminal according to the position information.
4. The cosmetic pupil photographing method according to claim 1, comprising, after acquiring the preset cosmetic pupil image:
detecting whether a user wears glasses or not according to the preview frame image;
and if the user wears the glasses, outputting prompt information so that the user can remove the glasses.
5. The beautiful pupil photographing method according to any one of claims 1 to 4, wherein the outputting the preset beautiful pupil image includes:
acquiring pupil colors according to the preview frame image;
determining color information of the preset beautiful pupil image according to the pupil color;
and outputting the preset beautiful pupil image according to the color information.
6. The beautiful pupil photographing method according to any one of claims 1 to 4, wherein the outputting the preset beautiful pupil image includes:
acquiring an ambient color temperature and a portrait color temperature;
and determining the color temperature of the preset pupil image according to the environment color temperature and the portrait color temperature.
7. The utility model provides a beautiful pupil shoots device which characterized in that is applied to the mobile terminal who has the function of shooing, includes:
the beautiful pupil acquisition module is used for acquiring a preset beautiful pupil image;
the output module is used for outputting the preset beautiful pupil image acquired by the beautiful pupil acquisition module when a photographing instruction is triggered so that the preset beautiful pupil image is mapped to the eyes of a user to form a beautiful pupil effect;
the image acquisition module is used for acquiring a front photographing image;
the output module is further used for outputting the preset beautiful pupil image in a first area in a preview stage; outputting the acquired portrait image in a second area, wherein the area of the first area is larger than that of the second area; the first area is the same as the screen, and the second area is superposed on the first area and displayed at the corner of the screen which tends to the front camera;
the output module is also used for acquiring the ambient color temperature and the portrait color temperature; and determining the color temperature of a preset pupil image according to the environment color temperature and the portrait color temperature.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the cosmetic pupil photographing method according to any one of claims 1 to 6.
9. A mobile terminal, characterized by comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the cosmetic pupil photographing method according to any one of claims 1-6 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811236908.7A CN109246345B (en) | 2018-10-23 | 2018-10-23 | Beautiful pupil shooting method and device, storage medium and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811236908.7A CN109246345B (en) | 2018-10-23 | 2018-10-23 | Beautiful pupil shooting method and device, storage medium and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109246345A CN109246345A (en) | 2019-01-18 |
CN109246345B true CN109246345B (en) | 2021-06-08 |
Family
ID=65081418
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811236908.7A Active CN109246345B (en) | 2018-10-23 | 2018-10-23 | Beautiful pupil shooting method and device, storage medium and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109246345B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106709781A (en) * | 2016-12-05 | 2017-05-24 | 姚震亚 | Personal image design and collocation purchasing device and method |
CN107343143A (en) * | 2017-06-30 | 2017-11-10 | 广东欧珀移动通信有限公司 | A kind of image processing method, device, terminal and computer-readable recording medium |
CN107566717A (en) * | 2017-08-08 | 2018-01-09 | 维沃移动通信有限公司 | A kind of image pickup method, mobile terminal and computer-readable recording medium |
CN107845057A (en) * | 2017-09-25 | 2018-03-27 | 维沃移动通信有限公司 | One kind is taken pictures method for previewing and mobile terminal |
CN107862274A (en) * | 2017-10-31 | 2018-03-30 | 广东欧珀移动通信有限公司 | U.S. face method, apparatus, electronic equipment and computer-readable recording medium |
CN108257084A (en) * | 2018-02-12 | 2018-07-06 | 北京中视广信科技有限公司 | A kind of automatic cosmetic method of lightweight face based on mobile terminal |
CN108564531A (en) * | 2018-05-08 | 2018-09-21 | 麒麟合盛网络技术股份有限公司 | A kind of image processing method and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2012181688A (en) * | 2011-03-01 | 2012-09-20 | Sony Corp | Information processing device, information processing method, information processing system, and program |
KR101545883B1 (en) * | 2012-10-30 | 2015-08-20 | 삼성전자주식회사 | Method for controlling camera of terminal and terminal thereof |
CN103049175B (en) * | 2013-01-22 | 2016-08-10 | 华为终端有限公司 | Preview screen rendering method, device and terminal |
-
2018
- 2018-10-23 CN CN201811236908.7A patent/CN109246345B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106709781A (en) * | 2016-12-05 | 2017-05-24 | 姚震亚 | Personal image design and collocation purchasing device and method |
CN107343143A (en) * | 2017-06-30 | 2017-11-10 | 广东欧珀移动通信有限公司 | A kind of image processing method, device, terminal and computer-readable recording medium |
CN107566717A (en) * | 2017-08-08 | 2018-01-09 | 维沃移动通信有限公司 | A kind of image pickup method, mobile terminal and computer-readable recording medium |
CN107845057A (en) * | 2017-09-25 | 2018-03-27 | 维沃移动通信有限公司 | One kind is taken pictures method for previewing and mobile terminal |
CN107862274A (en) * | 2017-10-31 | 2018-03-30 | 广东欧珀移动通信有限公司 | U.S. face method, apparatus, electronic equipment and computer-readable recording medium |
CN108257084A (en) * | 2018-02-12 | 2018-07-06 | 北京中视广信科技有限公司 | A kind of automatic cosmetic method of lightweight face based on mobile terminal |
CN108564531A (en) * | 2018-05-08 | 2018-09-21 | 麒麟合盛网络技术股份有限公司 | A kind of image processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109246345A (en) | 2019-01-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107484231B (en) | Screen parameter adjusting method, device, terminal and computer readable storage medium | |
WO2014084224A1 (en) | Electronic device and line-of-sight input method | |
JP6105953B2 (en) | Electronic device, line-of-sight input program, and line-of-sight input method | |
CN109040524B (en) | Artifact eliminating method and device, storage medium and terminal | |
KR20160061133A (en) | Method for dispalying image and electronic device thereof | |
CN110225237B (en) | Image acquisition method and device and mobile terminal | |
CN110769313B (en) | Video processing method and device and storage medium | |
CN111028144B (en) | Video face changing method and device and storage medium | |
WO2022134632A1 (en) | Work processing method and apparatus | |
CN108665510B (en) | Rendering method and device of continuous shooting image, storage medium and terminal | |
CN111142838A (en) | Audio playing method and device, computer equipment and storage medium | |
CN112581358A (en) | Training method of image processing model, image processing method and device | |
CN109120864B (en) | Light supplement processing method and device, storage medium and mobile terminal | |
CN110677713B (en) | Video image processing method and device and storage medium | |
CN111389015A (en) | Method and device for determining game props and storage medium | |
CN109089137B (en) | Stuck detection method and device | |
CN109040729B (en) | Image white balance correction method and device, storage medium and terminal | |
CN111192072A (en) | User grouping method and device and storage medium | |
CN109561291A (en) | Color temperature compensating method, device, storage medium and mobile terminal | |
CN111897465B (en) | Popup display method, device, equipment and storage medium | |
CN113613028A (en) | Live broadcast data processing method, device, terminal, server and storage medium | |
CN110152309B (en) | Voice communication method, device, electronic equipment and storage medium | |
CN109117466B (en) | Table format conversion method, device, equipment and storage medium | |
CN109246345B (en) | Beautiful pupil shooting method and device, storage medium and mobile terminal | |
CN110891181B (en) | Live broadcast picture display method and device, storage medium and terminal |
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 |