CN108833791B - Shooting method and device - Google Patents

Shooting method and device Download PDF

Info

Publication number
CN108833791B
CN108833791B CN201810939687.3A CN201810939687A CN108833791B CN 108833791 B CN108833791 B CN 108833791B CN 201810939687 A CN201810939687 A CN 201810939687A CN 108833791 B CN108833791 B CN 108833791B
Authority
CN
China
Prior art keywords
special effect
image
dimensional
selection operation
target
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
CN201810939687.3A
Other languages
Chinese (zh)
Other versions
CN108833791A (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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810939687.3A priority Critical patent/CN108833791B/en
Publication of CN108833791A publication Critical patent/CN108833791A/en
Application granted granted Critical
Publication of CN108833791B publication Critical patent/CN108833791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides a shooting method and a shooting device, relates to the technical field of terminals, and aims to solve the problem that the effect of a special effect added in the shooting process is poor in the prior art. The method comprises the following steps: acquiring a preview image; constructing a three-dimensional model of the face of the target person in real time according to the preview image; receiving a first selection operation input by a user, wherein the first selection operation is a selection operation of a target special effect; and responding to the first selection operation, adding the target special effect on the three-dimensional model of the face of the target person to generate a three-dimensional special effect image, and displaying a two-dimensional special effect image generated according to the three-dimensional special effect image. Embodiments of the present invention are useful for the taking of photographs and/or videos.

Description

Shooting method and device
Technical Field
The invention relates to the technical field of terminals, in particular to a shooting method and a shooting device.
Background
With the development of terminal technology, the functions of terminal devices such as mobile phones and personal palm computers are not only more and more but also more and more powerful, wherein a high-definition and personalized shooting mode has become the development trend of the terminal devices.
At present, when a photo or a video is shot, a user can add special effects to the shot photo or video by adding a sticker to a shot object at a proper position, changing the local size ratio of the shot object and the like, so that the interestingness of shooting the photo or the video is increased. For example: and adding cartoon ear stickers at the top of the head of the shot person. For another example: the nose of the photographed person is enlarged. However, since the face information of the photographic subject acquired by the terminal device is not comprehensive enough, accurate face segmentation and three-dimensional measurement with appropriate precision cannot be achieved, the face of the photographic subject may be stretched and deformed in the process of adding a special effect to the photographic subject by the terminal device, and the effect of adding the special effect is poor.
Disclosure of Invention
The embodiment of the invention provides a shooting method and a shooting device, which are used for solving the problem that the effect of a special effect added in the shooting process is poor in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a shooting method, including:
acquiring a preview image;
constructing a three-dimensional model of the face of the target person in real time according to the preview image;
receiving a first selection operation input by a user, wherein the first selection operation is a selection operation of a target special effect;
in response to the first selection operation, adding the target special effect on a three-dimensional model of the face of the target person to generate a three-dimensional special effect image;
and displaying a two-dimensional special effect image generated according to the three-dimensional special effect image.
In a second aspect, an embodiment of the present invention provides a terminal device, including:
an image acquisition unit configured to acquire a preview image;
the model building unit is used for building a three-dimensional model of the face of the target person in real time according to the preview image;
the system comprises a user input unit, a first selection unit and a second selection unit, wherein the user input unit is used for receiving a first selection operation input by a user, and the first selection operation is a selection operation of a target special effect;
and the display unit is used for responding to the first selection operation, adding the target special effect on the three-dimensional model of the face of the target person to generate a three-dimensional special effect image, and displaying a two-dimensional special effect image generated according to the three-dimensional special effect image.
In a third aspect, an embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the shooting method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the shooting method according to the first aspect.
According to the shooting method provided by the embodiment of the invention, the preview image is firstly obtained, the three-dimensional model of the face of the target person is built in real time according to the preview image, then the selection operation of the target special effect input by a user is received, the target special effect is added on the three-dimensional model of the face of the target person in response to the selection operation of the target special effect to generate the three-dimensional special effect image, and the two-dimensional special effect image generated according to the three-dimensional special effect image is displayed.
Drawings
Fig. 1 is a schematic diagram of a possible structure of a communication system according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of a photographing method according to an embodiment of the present invention;
FIG. 3 is a second flowchart illustrating steps of a photographing method according to an embodiment of the present invention;
FIG. 4 is a third flowchart illustrating steps of a photographing method according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating a fourth step of the photographing method according to the embodiment of the present invention;
fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship; in the formula, the character "/" indicates that the preceding and following related objects are in a relationship of "division". The term "plurality" herein means two or more, unless otherwise specified.
For the convenience of clearly describing the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first", "second", and the like are used to distinguish the same items or similar items with basically the same functions or actions, and those skilled in the art can understand that the words "first", "second", and the like do not limit the quantity and execution order.
In the embodiments of the present invention, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion. In the embodiments of the present invention, the meaning of "a plurality" means two or more unless otherwise specified.
Because the face information of the shot object acquired by the terminal device is not comprehensive enough, accurate face segmentation and three-dimensional measurement with proper precision cannot be achieved, the face of the shot object is stretched and deformed in the process of adding a special effect to the shot object by the terminal device, and the effect of adding the special effect is very undesirable.
In order to solve the problem, embodiments of the present invention provide a shooting method and apparatus, in which a preview image is first obtained, a three-dimensional model of the face of a target person is constructed in real time according to the preview image, then receiving a selection operation of a target special effect input by a user, adding the target special effect on a three-dimensional model of the face of the target person in response to the selection operation of the target special effect to generate a three-dimensional special effect image, and displaying a two-dimensional special effect image generated according to the three-dimensional special effect image, since the two-dimensional effect image displayed in the embodiment of the present invention is generated from the three-dimensional effect image, the human face segmentation and the three-dimensional measurement with higher precision can be more accurately carried out in the three-dimensional image, compared with the prior art, the embodiment of the invention can avoid or reduce the stretching deformation of the face of the target person, thereby improving the effect of special effect added in the shooting process.
The privacy protection method provided by the embodiment of the application can be applied to electronic equipment, and the electronic equipment can be electronic equipment with an operating system. The operating system may be an Android (Android) operating system, an iOS operating system, or other possible operating systems, which is not limited in the embodiments of the present application.
Next, a software environment to which the privacy protection method provided by the embodiment of the present application is applied is introduced by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present application. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present application, a developer may develop a software program that implements the method for quickly starting an application program provided in the embodiment of the present application based on the system architecture of the android operating system shown in fig. 2, so that the method for quickly starting an application program may operate based on the android operating system shown in fig. 1. Namely, the processor or the electronic device can implement the method for rapidly starting the application program provided by the embodiment of the application program by running the software program in the android operating system.
The electronic device for implementing the privacy protection method may be a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA), a smart watch, a smart bracelet, or may be other types of electronic devices, which is not limited in the embodiment of the present application.
The first embodiment,
An embodiment of the present invention provides a shooting method, and specifically, referring to fig. 2, the shooting method may include the following steps:
and S21, acquiring a preview image.
The preview image in the embodiment of the present invention is image data acquired before the main shooting is performed. The preview image is generally displayed on the terminal device to assist the user in checking whether the current shooting area is the area that the user wants to shoot, so as to adjust the shooting area.
In the embodiment of the present invention, the acquired preview image may be a two-Dimensional image acquired by acquiring an image through a conventional camera, or may also be a three-Dimensional image acquired by acquiring an image through a three-Dimensional (3D) depth camera.
And S22, constructing a three-dimensional model of the face of the target person in real time according to the preview image.
Specifically, when the preview image acquired in step S21 is a two-dimensional image, a three-dimensional model of the face of the target person can be obtained by calculating the face image of the target person acquired from different angles and a specific algorithm. For example, the algorithm for calculating the three-dimensional model of the face of the target person may be a convolutional neural network algorithm. When the preview image acquired in step S21 is a three-dimensional image, the three-dimensional model of the face of the target person can be acquired by only performing accurate measurement on the acquired three-dimensional image.
And S23, receiving a first selection operation input by a user.
The first selection operation is a selection operation of a target special effect.
Specifically, the first selection operation in this embodiment of the application may be a click operation performed by a user on a target person, or a gravity sensing direction adjustment operation performed by the user on the electronic device, or a voice instruction input by the user, or a specific gesture input by the user.
In some embodiments of the present application, the specific gesture may be any one of a single-tap gesture, a slide gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-tap gesture.
S24, responding to the first selection operation, adding the target special effect on the face three-dimensional model of the target person to generate a three-dimensional special effect image. And displaying a two-dimensional special effect image generated according to the three-dimensional special effect image.
For example: the user selects the special effect of changing the nose of the target person into the pig nose through the first selection operation, then the nose of the target person is changed into the pig nose on the three-dimensional model of the face of the target person to generate a three-dimensional special effect image, and finally the two-dimensional special effect image generated according to the three-dimensional special effect image is displayed.
And S25, displaying the two-dimensional special effect image generated according to the three-dimensional special effect image.
According to the shooting method provided by the embodiment of the invention, the preview image is firstly obtained, the three-dimensional model of the face of the target person is built in real time according to the preview image, then the selection operation of the target special effect input by a user is received, the target special effect is added on the three-dimensional model of the face of the target person in response to the selection operation of the target special effect to generate the three-dimensional special effect image, and the two-dimensional special effect image generated according to the three-dimensional special effect image is displayed.
In some cases, a user may take a picture of multiple characters at the same time and add a special effect to one or more of the characters, however, in the prior art, when adding a special effect, the user who wants to add a special effect cannot be selected, and thus, only the special effect can be added to all the users or the special effect added by all the users can be cancelled. In view of the above problem, referring to fig. 3, the photographing method according to an embodiment of the present invention further includes, before the step S22 (building the three-dimensional model of the face of the target person in real time from the preview image),:
and S31, displaying the preview image.
That is, the preview image acquired in real time is displayed through the screen.
And S32, receiving a second selection operation input by the user.
Wherein the second operation is a selection operation of at least one person in the preview image.
Optionally, the second selection operation in this embodiment of the application may be a click operation performed by the user on the target person, or a gravity sensing direction adjustment operation performed by the user on the electronic device, or a voice instruction input by the user, or a specific gesture input by the user.
In some embodiments of the present application, the specific gesture may be any one of a single-tap gesture, a slide gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, and a double-tap gesture.
S33, determining the at least one person as the target person in response to the second operation.
In the embodiment of the present invention, there may be one or a plurality of target persons, some persons in the preview image, or all persons in the preview image.
In the above embodiment, the user may input a selection operation on at least one person in the displayed preview image, so as to determine the selected at least one person as a person to which the special effect is to be added.
Further optionally, after the step S33 (determining the at least one person as the target person), the shooting method according to the embodiment of the present invention further includes:
highlighting the target person in a preset manner.
For example, the target person may be highlighted by increasing the overall brightness of the target person.
Of course, on the basis of the above embodiments, the embodiments of the present invention may also highlight the target person in other manners, such as: the target person is highlighted by outlining the target person, and the like, which is not limited in the implementation of the present invention, so that the target person can be highlighted.
Optionally, as shown in fig. 4, after step S24 (displaying a two-dimensional special effect image generated according to the three-dimensional special effect image), the shooting method according to the embodiment of the present invention further includes:
and S41, receiving the shooting operation input by the user.
For example, a virtual key for triggering shooting may be displayed on an interface displaying a two-dimensional special effect image generated from the three-dimensional special effect image, and the shooting operation input by the user may be a click operation on the virtual key for triggering shooting.
In addition, it should be noted that, in the embodiment of the present invention, the shooting operation input by the user may be a shooting operation for triggering to take a picture, or may also be a shooting operation for triggering to take a video, that is, the shooting operation may be input by the user to trigger the terminal device to take a picture, or may also be input by the user to trigger the terminal device to take a video.
And S42, responding to the shooting operation, and saving the two-dimensional special effect image.
When the shooting operation input by the user in step S41 is a shooting operation for triggering shooting of a picture, the step S42 of saving the two-dimensional special effect image specifically includes: when the shooting operation input by the user in step S41 is to trigger the shooting operation of the shot video, the step S42 of saving the two-dimensional special effect image specifically includes: and storing the two-dimensional special effect image generated according to the three-dimensional special effect image in real time.
Further, as shown in fig. 5, the implementation manner of displaying the two-dimensional special effect image generated from the three-dimensional special effect image in step S24 may specifically be:
and S51, acquiring a projection image of the three-dimensional special effect image at a preset angle.
For example, the preset angle may be determined according to a position relationship between the terminal device and the target user.
And S52, displaying the projection image of the three-dimensional special effect image at a preset angle as the two-dimensional special effect image.
Of course, on the basis of the above embodiment, the embodiment of the present invention may also calculate the three-dimensional special effect image through a specific algorithm, so as to generate the two-dimensional special effect image.
Still another embodiment of the present invention provides a terminal device, and specifically, as shown in fig. 6, the terminal device 600 includes:
an image acquisition unit 61 for acquiring a preview image;
a model construction unit 62 for constructing a three-dimensional model of the face of the target person in real time from the preview image;
a user input unit 63, configured to receive a first selection operation input by a user, where the first selection operation is a selection operation on a target special effect;
a display unit 64 configured to generate a three-dimensional special effect image by adding the target special effect to the three-dimensional model of the face of the target person in response to the first selection operation, and display a two-dimensional special effect image generated from the three-dimensional special effect image.
Optionally, the display unit 64 is further configured to display the preview image acquired by the image acquiring unit 61;
the user receiving unit 63 is further configured to receive a second selection operation input by the user, where the second selection operation is a selection operation on at least one person in the preview image;
the model building unit 62 is further configured to determine the at least one character as the target character in response to the second operation.
Optionally, the display unit 64 is further configured to highlight the target person in a preset manner after the model construction unit 62 determines the at least one person as the target person.
Optionally, the user input unit 63 is further configured to receive a shooting operation input by a user;
the image acquisition unit 61 saves the two-dimensional special effect image in response to the photographing operation received by the user input unit.
Optionally, the display unit 64 is specifically configured to acquire a projection image of the three-dimensional special effect image at a preset angle, and display the projection image of the three-dimensional special effect image at the preset angle as the two-dimensional special effect image.
The terminal device provided by the embodiment of the invention firstly obtains the preview image, constructs the three-dimensional model of the face of the target person in real time according to the preview image, then receives the selection operation of the target special effect input by the user, adds the target special effect on the three-dimensional model of the face of the target person in response to the selection operation of the target special effect to generate the three-dimensional special effect image, and displays the two-dimensional special effect image generated according to the three-dimensional special effect image.
Fig. 7 is a schematic diagram of a hardware structure of a terminal device for implementing an embodiment of the present invention, where the terminal device 700 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 7 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
An input unit 104 for acquiring a preview image;
a processor 110, configured to construct a three-dimensional model of the face of the target person in real time according to the preview image;
a user input unit 107 for receiving a first selection operation input by a user, the first selection operation being a selection operation on a target special effect;
a display unit 106 configured to generate a three-dimensional special effect image by adding the target special effect to the three-dimensional model of the face of the target person in response to the first selection operation, and display a two-dimensional special effect image generated from the three-dimensional special effect image.
The terminal device provided by the embodiment of the invention firstly obtains the preview image, constructs the three-dimensional model of the face of the target person in real time according to the preview image, then receives the selection operation of the target special effect input by the user, adds the target special effect on the three-dimensional model of the face of the target person in response to the selection operation of the target special effect to generate the three-dimensional special effect image, and displays the two-dimensional special effect image generated according to the three-dimensional special effect image.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal device 700 further comprises at least one sensor 105, such as light sensors, motion sensors and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the terminal device 700 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in multiple directions (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 7, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 700 or may be used to transmit data between the terminal apparatus 700 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the terminal device, connects various parts of the entire terminal device using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal device. Processor 110 may include one or more processing units; preferably, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal device 700 may further include a power supply 111 (such as a battery) for supplying power to the plurality of components, and preferably, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 700 includes some functional modules that are not shown, and are not described in detail herein.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements multiple processes of the shooting method in the foregoing embodiments, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network-side device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (7)

1. A photographing method, characterized by comprising:
acquiring a preview image;
constructing a three-dimensional model of the face of the target person in real time according to the preview image;
receiving a first selection operation input by a user, wherein the first selection operation is a selection operation of a target special effect;
in response to the first selection operation, adding the target special effect on a three-dimensional model of the face of the target person to generate a three-dimensional special effect image;
displaying a two-dimensional special effect image generated according to the three-dimensional special effect image;
the displaying a two-dimensional special effect image generated from the three-dimensional special effect image includes:
acquiring a projection image of the three-dimensional special effect image at a preset angle, wherein the preset angle is determined according to the position relation between the terminal equipment and a target user;
displaying the projection image of the three-dimensional special effect image at the preset angle as the two-dimensional special effect image;
before constructing a three-dimensional model of a target object from the preview image, the method further comprises:
displaying the preview image;
receiving a second selection operation input by a user, wherein the second selection operation is a selection operation on at least one person in the preview image;
in response to the second selection operation, determining the at least one person as the target person.
2. The method of claim 1, wherein after determining the at least one person as the target person, the method further comprises:
highlighting the target person in a preset manner.
3. The method of claim 1, wherein after displaying the two-dimensional special effects image generated from the three-dimensional special effects image, the method further comprises:
receiving shooting operation input by a user;
and responding to the shooting operation, and saving the two-dimensional special effect image.
4. A terminal device, comprising:
an image acquisition unit configured to acquire a preview image;
the model building unit is used for building a three-dimensional model of the face of the target person in real time according to the preview image;
the system comprises a user input unit, a first selection unit and a second selection unit, wherein the user input unit is used for receiving a first selection operation input by a user, and the first selection operation is a selection operation of a target special effect;
a display unit configured to add the target special effect on a three-dimensional model of the face of the target person to generate a three-dimensional special effect image in response to the first selection operation, and display a two-dimensional special effect image generated from the three-dimensional special effect image;
the display unit is specifically configured to acquire a projected image of the three-dimensional special effect image at a preset angle, and display the projected image of the three-dimensional special effect image at the preset angle as the two-dimensional special effect image, where the preset angle is determined according to a position relationship between a terminal device and a target user;
the display unit is also used for displaying the preview image acquired by the image acquisition unit;
the user input unit is further used for receiving a second selection operation input by a user, wherein the second selection operation is a selection operation on at least one person in the preview image;
the model building unit is further configured to determine the at least one character as the target character in response to the second selection operation.
5. The terminal device according to claim 4, wherein the display unit is further configured to highlight the target person in a preset manner after the model construction unit determines the at least one person as the target person.
6. The terminal device of claim 4,
the user input unit is also used for receiving shooting operation input by a user;
the image acquisition unit responds to the shooting operation received by the user input unit and saves the two-dimensional special effect image.
7. A terminal device, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the shooting method according to any one of claims 1 to 3.
CN201810939687.3A 2018-08-17 2018-08-17 Shooting method and device Active CN108833791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810939687.3A CN108833791B (en) 2018-08-17 2018-08-17 Shooting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810939687.3A CN108833791B (en) 2018-08-17 2018-08-17 Shooting method and device

Publications (2)

Publication Number Publication Date
CN108833791A CN108833791A (en) 2018-11-16
CN108833791B true CN108833791B (en) 2021-08-06

Family

ID=64150276

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810939687.3A Active CN108833791B (en) 2018-08-17 2018-08-17 Shooting method and device

Country Status (1)

Country Link
CN (1) CN108833791B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109769091B (en) * 2019-02-22 2020-09-18 维沃移动通信有限公司 Image shooting method and mobile terminal
CN110310318B (en) * 2019-07-03 2022-10-04 北京字节跳动网络技术有限公司 Special effect processing method and device, storage medium and terminal
CN111163264B (en) * 2019-12-31 2022-02-01 维沃移动通信有限公司 Information display method and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107580209A (en) * 2017-10-24 2018-01-12 维沃移动通信有限公司 Take pictures imaging method and the device of a kind of mobile terminal
CN108062791A (en) * 2018-01-12 2018-05-22 北京奇虎科技有限公司 A kind of method and apparatus for rebuilding human face three-dimensional model

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101021952A (en) * 2007-03-23 2007-08-22 北京中星微电子有限公司 Method and apparatus for realizing three-dimensional video special efficiency
KR100914847B1 (en) * 2007-12-15 2009-09-02 한국전자통신연구원 Method and apparatus for creating 3d face model by using multi-view image information
CN101763656B (en) * 2010-01-28 2012-03-28 北京航空航天大学 Construction and display control method for floor and house division model of three-dimensional urban building
CN106570822B (en) * 2016-10-25 2020-10-16 宇龙计算机通信科技(深圳)有限公司 Face mapping method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107580209A (en) * 2017-10-24 2018-01-12 维沃移动通信有限公司 Take pictures imaging method and the device of a kind of mobile terminal
CN108062791A (en) * 2018-01-12 2018-05-22 北京奇虎科技有限公司 A kind of method and apparatus for rebuilding human face three-dimensional model

Also Published As

Publication number Publication date
CN108833791A (en) 2018-11-16

Similar Documents

Publication Publication Date Title
US20220279116A1 (en) Object tracking method and electronic device
CN109743498B (en) Shooting parameter adjusting method and terminal equipment
CN109525874B (en) Screen capturing method and terminal equipment
CN110062105B (en) Interface display method and terminal equipment
CN109032445B (en) Screen display control method and terminal equipment
CN108763317B (en) Method for assisting in selecting picture and terminal equipment
CN111142991A (en) Application function page display method and electronic equipment
CN109085968B (en) Screen capturing method and terminal equipment
CN109032486B (en) Display control method and terminal equipment
CN109922265B (en) Video shooting method and terminal equipment
CN111010523B (en) Video recording method and electronic equipment
WO2021057290A1 (en) Information control method and electronic device
CN109241832B (en) Face living body detection method and terminal equipment
CN111031234B (en) Image processing method and electronic equipment
CN109901761B (en) Content display method and mobile terminal
US20220286622A1 (en) Object display method and electronic device
CN110830713A (en) Zooming method and electronic equipment
CN108833791B (en) Shooting method and device
CN110866465A (en) Control method of electronic equipment and electronic equipment
CN111124231B (en) Picture generation method and electronic equipment
CN109104573B (en) Method for determining focusing point and terminal equipment
CN110012151B (en) Information display method and terminal equipment
CN109189514B (en) Terminal device control method and terminal device
CN109361864B (en) Shooting parameter setting method and terminal equipment
CN109117037B (en) Image processing method and terminal equipment

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