WO2018113203A1 - Photographing method and mobile terminal - Google Patents

Photographing method and mobile terminal Download PDF

Info

Publication number
WO2018113203A1
WO2018113203A1 PCT/CN2017/087472 CN2017087472W WO2018113203A1 WO 2018113203 A1 WO2018113203 A1 WO 2018113203A1 CN 2017087472 W CN2017087472 W CN 2017087472W WO 2018113203 A1 WO2018113203 A1 WO 2018113203A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
mobile terminal
shooting
window
stage
Prior art date
Application number
PCT/CN2017/087472
Other languages
French (fr)
Chinese (zh)
Inventor
徐涛
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2018113203A1 publication Critical patent/WO2018113203A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof

Definitions

  • the present application relates to the field of mobile terminals, and more particularly, to a photographing method and a mobile terminal.
  • group photo shooting usually needs to be done by a third party. For example, ask someone to help with shooting, shooting with the selfie stick, or shooting with the camera or mobile phone “delay for a few seconds”.
  • the present application provides a photographing method and a mobile terminal, which can complete a photographing of a photograph without assisting by a third party, thereby improving the photographing experience of the user.
  • the present application provides a photographing method, the method comprising: acquiring, by a mobile terminal, a first user instruction, starting a photographing application according to a first user instruction, and opening a viewfinder window; and acquiring, by the mobile terminal, a second user instruction, for the first shooting window
  • the first object presented in the first stage performs the first stage of shooting, and obtains a first image, where the first shooting window is the first part of the framing window;
  • the mobile terminal acquires the third user instruction, and performs the second object in the second shooting window.
  • a second image is obtained, and the second shooting window is a second part of the framing window; the mobile terminal generates a group image of the first object and the second object according to the first image and the second image.
  • the method further includes: continuously displaying the first image in the framing window of the mobile terminal, where The position occupied by the first image in the framing window is different in the position occupied by the second shooting window in the framing window.
  • the mobile terminal acquires a third user instruction, and performs a second stage of shooting on the second object presented in the second shooting window to obtain a second image, including: the mobile terminal is in the background of the second object.
  • the second object is captured in the second object presented in the second shooting window to obtain a second image.
  • the mobile terminal device performs the second stage of shooting on the second object presented in the second shooting window if the background image of the second object and the background image of the first object satisfy the splicing condition.
  • the method further includes: the mobile terminal performing face recognition on the first object and the second object to determine a face position of the first object and a face position of the second object; and determining, by the mobile terminal, a face position of the second object Does not coincide with the face position of the first object.
  • the mobile terminal determines that the background image of the second object and the background image of the first object do not satisfy the splicing condition, the method further includes: the mobile terminal presents the first prompt information, the first prompt The information is used to prompt to adjust the background image of the second object.
  • the mobile terminal determines a face position of the second object and a face part of the first object In the case of coincidence, the method further includes: the mobile terminal presents the second prompt information, and the second prompt information is used to prompt to adjust the position of the face of the second object in the second shooting window.
  • the method further includes: the mobile terminal acquiring the adjusted face position of the second object; and the mobile terminal performing the second stage shooting on the second object presented in the second shooting window, The method includes: after determining that the adjusted face position of the second object does not coincide with the face position of the first object, performing the second stage on the adjusted second object presented in the second shooting window Shoot and get the second image.
  • the mobile terminal obtains a group image of the first object and the second object according to the first image and the second image, including: the mobile terminal acquires a fourth user instruction, and according to the fourth user instruction The first image and the second image are spliced to generate a group image of the first object and the second object.
  • the application provides a mobile terminal, where the mobile terminal includes a memory and a processor.
  • the memory is used to store computer program instructions (or code).
  • the processor is operative to execute instructions stored in the memory, and when the instructions are executed, the processor performs the method of any of the first aspect or the first aspect of the first aspect.
  • the present application provides a computer readable storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform any of the first aspect or any possible implementation of the first aspect The method in the way.
  • the photographing method provided by the present application completes the photographing of the respective photographing personnel by dividing the photographing photographing process into the first stage and the second stage. Subsequent splicing processing of the images taken by the group members respectively produces a group image. Therefore, it is possible to complete the group photographing without the assistance of a third party (for example, by means of a selfie stick, asking for help, etc.), thereby improving the user's photographing experience.
  • FIG. 1 is a schematic flowchart of a photographing method 100 provided by the present application.
  • FIG. 2 is a schematic diagram of opening a viewfinder window after the mobile terminal starts the photographing application.
  • Figure 3 is a schematic diagram of the first stage of shooting.
  • Figure 4 is a schematic diagram of the second stage of shooting.
  • Figure 5 is a schematic illustration of a group image.
  • Figure 6 is another schematic view of the first stage of shooting.
  • Figure 7 is another schematic view of the second stage of shooting.
  • Fig. 8 is another schematic diagram of a group image.
  • FIG. 9 is a schematic diagram of a face recognition technique applied to a group photographing in the embodiment of the present application.
  • FIG. 10 is a schematic diagram of adding a group photographing mode in a photographing application of a mobile terminal.
  • FIG. 11 is another schematic flowchart of a photographing method provided by the present application.
  • FIG. 12 is a schematic structural diagram of a mobile terminal provided by the present application.
  • FIG. 1 is a schematic flowchart of a photographing method 100 provided by the present application. Method 100 can be performed by a mobile terminal.
  • the mobile terminal acquires a first user instruction, starts a photographing application according to the first user instruction, and opens a viewfinder window.
  • the first user instruction is an instruction input by the user for launching the photographing application. After the camera application is launched, the viewfinder window is automatically opened.
  • the photographing includes two stages, and the following is respectively recorded as the first stage and the second stage.
  • the first phase corresponds to the following step 120
  • the second phase corresponds to the following step 130.
  • the two phases are described in detail below.
  • the first stage is a first stage
  • the mobile terminal acquires a second user instruction, and performs a first stage of shooting on the first object presented in the first shooting window to obtain a first image, where the first shooting window is the first part of the framing window.
  • step 110 after the photo application is launched, the viewfinder window is opened.
  • FIG. 2 is a schematic diagram of opening a viewfinder window after the mobile terminal starts the photographing application. Options such as “photo”, “panoramic”, “video”, etc. may also be displayed on the display screen of the mobile terminal. After the user clicks "Photos", the user enters the first stage of shooting.
  • Figure 3 is a schematic diagram of the first stage of shooting.
  • the first shooting window is a part of the framing window, which is recorded as the first part of the framing window.
  • the first shooting window is located on the left side of the framing window.
  • the first shooting window may also be located in the middle or the right side of the framing window.
  • the technical solution of the embodiment of the present application is directed to shooting "photographed".
  • the first stage is the process of shooting a part of the at least two objects.
  • the second stage is a process of photographing the remaining objects other than the subjects involved in the first stage of shooting.
  • the first stage is to shoot one of the objects
  • the second stage is to shoot the other
  • the group photo is taken to obtain the group image of the two objects.
  • the example is explained.
  • the process of taking a group photo is similar when there are more than two people participating in the group photo.
  • the mobile terminal acquires a third user instruction, and performs a second stage of shooting on the second object presented in the second shooting window to obtain a second image, where the second shooting window is a second part of the framing window.
  • the second stage is the process of taking a second object.
  • the second object is an object other than the first object among the objects participating in the group photographing.
  • the second object is also at least one.
  • the second object together with the first object constitutes an object that participates in taking a photo (or, a group photo).
  • Figure 4 is a schematic diagram of the second stage of shooting. As shown in FIG. 4, the second shooting window is also a part of the framing window, which is recorded as the second part of the framing window.
  • the mobile terminal continuously displays the first image captured in the first stage.
  • the first shooting window is presented to the user in the first stage of the mobile terminal in capturing the first object.
  • the second shooting window is presented to the user by the mobile terminal in the second phase of capturing the second object.
  • the first shooting window and the second shooting window may respectively occupy different positions of the framing window.
  • the size of the first shooting window and the second shooting window may be the same or different.
  • the mobile terminal determines whether the background image of the first object in the first image and the background image of the second object in the second shooting window satisfy the condition for splicing the image ( That is, the splicing condition).
  • the shooting of the second object is completed to obtain a second image.
  • a group image of the first object and the second object is obtained.
  • the mobile terminal presents the prompt information to the user to prompt the user to adjust the position of the second object, the backlight of the second object, and the like, thereby satisfying the splicing condition, and finally completing the group photo.
  • the second phase of the shooting process will be described in detail below.
  • the splicing condition mentioned in the embodiment of the present application refers to a condition that two images can be spliced.
  • two images that are stitched need to have overlapping portions.
  • the image stitching technology has been relatively mature, and the specific implementation can refer to the prior art.
  • the mobile terminal generates a group image of the first object and the second object according to the first image and the second image.
  • the mobile terminal completes the shooting of all the objects participating in the group.
  • the mobile terminal performs splicing processing on the first image and the second image to obtain a group photo of the first object and the second object.
  • FIG. 5 is a schematic diagram of a group image.
  • the first phase and the second phase are sequential in time sequence. Therefore, in a possible implementation manner, in the first stage, when the mobile terminal presents the first shooting window to the user, only the first shooting window may be presented instead of the second shooting window. In another possible implementation manner, when the mobile terminal presents the first shooting window to the user in the first stage, the second shooting window may be presented at the same time. However, the second shooting window is not available. It should be understood that the fact that the shooting window is not available here means that the shooting window is in a non-framing state.
  • the mobile terminal acquires the third user instruction, if it is determined that the background image of the second object and the background image of the first object satisfy the image splicing condition, the second object presented in the second shooting window is captured, and obtained Second image.
  • the group image in the embodiment of the present application is obtained by separately photographing at least two objects participating in the group photographing, and then performing stitching processing on the separately photographed images. Therefore, the first image obtained by capturing the first object and the second image obtained by capturing the second object need to satisfy the condition of splicing (hereinafter referred to as splicing condition). To put it another way, the background image when the first object is photographed and the background image when the second image is taken only satisfy the splicing condition, and then the splicing of the image can be performed later, thereby obtaining a group image.
  • splicing condition the condition of splicing
  • the mobile terminal after the shooting of the first stage is completed, when the second stage of shooting is performed, the mobile terminal automatically detects whether the background image of the second object and the background image of the previous first object satisfy the splicing condition. And, when the splicing condition is satisfied, the shooting of the second object is completed.
  • the mobile terminal determines that the background image of the second object and the background image of the first object do not satisfy the splicing condition
  • the mobile terminal presents the first prompt information, where the first prompt information is used to prompt to adjust the background image of the second object until the first The background image of the two objects and the background image of the first object satisfy the splicing condition.
  • the first object is referred to as user #A
  • the second object is referred to as user #B.
  • User #A takes the phone to complete the shooting of User #B.
  • the user #A exchanges the role with the user #B
  • the user #B takes a picture of the user #A.
  • the mobile terminal presents the prompt information, for example, the mobile terminal displays in the framing window. "Please adjust the shooting background”.
  • the user #B informs the user #A to adjust the position of the station, and adjusts the position by taking the background of the user #B as the main background.
  • the splicing condition is satisfied until the background image of the first stage and the background image of the second stage.
  • the prompt information can be automatically revoked, or it is no longer displayed. Show information.
  • Figure 6 is another schematic view of the first stage of shooting. As shown in FIG. 6, in the first stage, the user #A takes a mobile phone to shoot the user #B. The scene other than the user #B in the first shooting window is the background image of the user #B.
  • Figure 7 is another schematic view of the second stage of shooting. As shown in FIG. 7, in the second stage, user #A and user #B exchange roles, and user #B performs shooting on user #A.
  • the scene other than the user #A presented in the second shooting window is the background image of the user #A.
  • the mobile terminal determines whether the background image of the user #A and the background image of the user #B in the first stage satisfy the splicing condition. In the case that the image stitching condition is satisfied, the mobile terminal will continue the second stage of shooting. Otherwise, the mobile terminal will display a prompt message prompting the user to adjust the background of the shooting until the stitching condition is satisfied between the background image of the second stage and the background image of the first stage.
  • the resulting group photo is shown in Figure 8.
  • Fig. 8 is another schematic diagram of a group image.
  • the method further includes: before the mobile terminal device determines that the background image of the second object and the background image of the first object satisfy the splicing condition, before the second object presented in the second shooting window is photographed, the method further includes:
  • the mobile terminal performs face recognition on the first object and the second object to determine a face position of the first object and a face position of the second object;
  • the mobile terminal photographs the second object presented in the second shooting window in a case where it is determined that the face position of the second object does not coincide with the face position of the first object.
  • the second object of the second stage is judged by the face recognition technology when performing the second stage of shooting. Whether the face position coincides with the face position of the first object photographed in the first stage. And in the case where it is determined that there is no coincidence, the second object is photographed.
  • the mobile terminal determines that the face position of the second object coincides with the face position of the first object
  • the mobile terminal presents the second prompt information, where the second prompt information is used to indicate that the face of the second object is adjusted to be the second The position within the shooting window.
  • the user #A holds the mobile phone to complete the shooting of the user #B.
  • the user #A is photographed by the user #B.
  • the prompt information is presented on the display screen. For example, the mobile terminal displays "Please adjust the face position" on the display screen in the framing window.
  • User #B informs user #A to adjust the face position until the face position of user #A does not coincide with the face position of user #B.
  • the prompt information can be automatically revoked. Thereafter, the mobile terminal can take a picture of User #A.
  • Face recognition technology first detects a person's face in the shooting window. Preprocessing is performed after the face is detected and the key feature points of the face are located. Then, through the recognition algorithm, the face features are extracted, and finally the recognition is completed. Face feature extraction is mainly based on modeling methods. In the embodiment of the present application, the face modeling method in the prior art can be used to complete the face recognition. For example, an earlier version of Android (Android) has implemented camera-integrated face recognition technology and provides a common interface for use by some third-party Android installation packages (AndroidPackage, APK). The group shooting mode can be used directly.
  • Android Android
  • APK third-party Android installation packages
  • FIG. 9 is a schematic diagram of a face recognition technique applied to a group photographing in the embodiment of the present application.
  • the mobile terminal detects whether the face position of the second object coincides with the face position of the first object. In the case of coincidence, the second object is prompted to adjust the face position. Subsequently, in the process of adjusting the position of the face by the second object, the mobile terminal acquires the adjusted face position of the second object in real time, and determines that the adjusted face position of the second object and the face position of the first object are not In the case of coincidence, the second stage of the second object is adjusted in the second shooting window to obtain a second image.
  • the mobile terminal During the second stage of shooting, if the background image of the second object and the background image of the first image do not satisfy the splicing condition, or the face position of the first object and the face position of the second object coincide.
  • the mobile terminal will present a prompt message to the user.
  • the user adjusts the position of the second object or the position of the face of the second object in the second shooting window at the prompt of the prompt information.
  • the mobile terminal After determining that the adjusted background image of the second object and the background image of the first object satisfy the condition of image stitching, and the face position of the second object does not coincide with the face position of the first object, the mobile terminal pairs The second object is photographed to obtain a second image.
  • the mobile terminal After the second image is captured, the mobile terminal performs a splicing process on the first image and the second image based on an instruction input by the user to obtain a group image of the first object and the second object.
  • the “generating a group” is displayed on the mobile terminal.
  • the mobile terminal performs a splicing process on the first image and the second image to generate a group photo of the first object and the second object. image.
  • the photographing method of the embodiment of the present application can be implemented by adding a "photographing" mode to a mobile terminal (for example, a camera or a mobile phone).
  • a mobile terminal for example, a camera or a mobile phone.
  • FIG. 10 is a schematic diagram of adding a group photographing mode in a photographing application of a mobile terminal. As shown in FIG. 10, after the user opens the photo application, the group photo shooting can be performed by selecting the “photo shooting” mode. The specific shooting process is as described above and will not be described here.
  • FIG. 11 is another schematic flowchart of a photographing method provided by the present application.
  • the user turns on the photo application on the mobile phone and selects the group shooting mode.
  • the user referred to here is any one of the objects participating in the shooting.
  • user #A and user #B want to take a group photo
  • the user mentioned in step 301 can be user #A or user #B.
  • it can also be a third person other than User #A and User #B.
  • the technical solution provided by the present application is for the purpose of completing the group photographing without the assistance of the third party. Therefore, the situation of the third person is not considered in the embodiment of the present application.
  • Person #A holds the mobile phone and shoots the person #B.
  • Step 302 is the shooting of the first stage mentioned above.
  • Step 304 is the shooting of the second stage described above.
  • the mobile phone performs step 306.
  • the mobile phone displays prompt message #1.
  • the prompt information #1 prompts the user to adjust the background of the person #A until the background image of the person #A and the background image of the person #B satisfy the splicing condition.
  • the background difference before and after the background is automatically canceled.
  • the group photographing needs to exchange the photographer, this is encountered.
  • the scene does not cancel the shooting state, and when the front and back backgrounds reach the splicable condition, a prompt that can be taken is given, and the photographing can be continued.
  • the mobile phone performs step 307.
  • step 308 is performed. If not, step 309 is performed.
  • the mobile phone displays prompt message #2.
  • the prompt information #2 prompts the user to adjust the face position of the person #A until the face of the person #A and the face of the person #B do not coincide.
  • the mobile phone spliced the image of the person #B photographed in the first stage with the image of the person #A photographed in the second stage, and synthesized a group image of the person #A and the person #B.
  • the group photo was taken.
  • the photographing method provided by the present application respectively completes the photographing of the group photo by dividing the group photographing into the first stage shooting and the second stage shooting.
  • the stitching process is performed on the images taken by the group members to generate a group image. Therefore, the photographing method provided by the present application can complete the group photographing without the assistance of a third party. In turn, the user's photo experience can be improved.
  • FIG. 12 is a schematic structural diagram of a mobile terminal 500 provided by the present application.
  • the mobile terminal 500 can be a mobile phone, a tablet personal computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant.
  • UMPC ultra-mobile personal computer
  • PDA personal digital assistant
  • MID mobile Internet device
  • the mobile terminal 500 may include a processor 510, a memory 520, and a radio frequency (RF) circuit 530. Moreover, a plurality of application(s) may be installed on the mobile terminal 500, and the plurality of applications may be stored in the memory 520.
  • RF radio frequency
  • the mobile terminal 500 may further include components such as an input unit 540, a display unit 550, at least one sensor 560, an audio circuit 570, a speaker 571, a microphone 572, and a power source 580.
  • the display unit can be a display.
  • Processor 510 can be the control center of mobile terminal 500.
  • the various functions of the mobile terminal 500 are performed by connecting various portions of the terminal device with various interfaces and lines, by running or executing programs and/or modules stored in the memory 520, and recalling data stored in the memory 520.
  • processor 510 can include one or more processing units.
  • the processor 510 may be composed of an integrated circuit (IC).
  • IC integrated circuit
  • the processor 510 can be a central processing unit (CPU), and can also be other common places.
  • DSPs digital signal processors
  • ASICs application specific integrated circuits
  • FPGAs Field Programmable Gate Arrays
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is not limited in this embodiment of the present application.
  • the memory 520 can be used to store software programs and modules, and the processor 510 executes various functional applications and data processing of the mobile terminal 500 by running software programs and modules stored in the memory 520.
  • the memory 520 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application required for at least one function (for example, a sound playing function, an image playing function, etc.).
  • the storage data area may store data (for example, audio data, image data, phone book, etc.) created according to the use of the mobile terminal 500, and the like.
  • the memory 520 may include a high speed random access memory, and may also include a nonvolatile memory. For example, at least one disk storage device, flash memory device, or other volatile solid state storage device.
  • processor 510 can be coupled to memory 520 and used to execute instructions stored in memory 520.
  • the processor is configured to perform the steps and/or operations performed by the processor in the embodiment of the present application, but the embodiment of the present application is not limited thereto.
  • the RF circuit 530 can be used to transceive information or for receiving and transmitting signals during a call.
  • RF circuit 530 can include, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • the antenna may include antennas on all mobile phones, for example, a primary antenna and a secondary antenna, wherein the secondary antenna may be a Global Positioning System (GPS) antenna, a Wi-Fi antenna, an NFC antenna, or the like.
  • GPS Global Positioning System
  • a plurality of secondary antennas can share one antenna body.
  • RF circuitry 530 can also communicate with the network and other devices via wireless communication techniques.
  • the downlink information sent by the base station may be received, and the received downlink information may be further transmitted to the processor 510 for processing.
  • the uplink data can be sent to the base station.
  • the wireless communication technology may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code). Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • Code Division Multiple Access CDMA
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS Short Messaging Service
  • the input unit 540 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal 500.
  • input unit 540 can include touch screen 541 and other input devices 542.
  • a touch screen 541, also referred to as a touch panel, can be used to collect touch operations on or near the user (eg, the user's operation on or near the touch screen 541 using any suitable object or accessory, such as a finger, stylus, or the like. ) and drive the corresponding connection device according to a preset program.
  • the touch screen 541 may include two parts of a touch detection device and a touch controller.
  • the touch detection device may be configured to detect a touch orientation of the user, detect a signal corresponding to the touch operation, and transmit touch information (eg, a touch signal, touch orientation information, and the like) corresponding to the touch operation to the touch controller.
  • the touch controller may be configured to receive touch information from the touch detection device, convert the touch information into contact coordinates, and then transmit the information of the contact coordinates to the processor 510.
  • the touch controller can also be used to receive commands from the processor 510 and execute the commands.
  • the touch screen 541 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 540 can also include other input devices 542.
  • other input devices 542 may include, but are not limited to, one or more of a physical keyboard, function keys (eg, volume control buttons, power switch buttons), trackballs, mice, joysticks, and the like.
  • the display unit 550 can be used to display information input by the user or information provided to the user and various menus of the mobile terminal 500.
  • the display unit 550 can include a display panel 551.
  • the display panel 541 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch screen 541 can cover the display panel 551. When the touch screen 541 detects a touch operation on or near it, the information of the touch operation is transmitted to the processor 510 to determine the type of the touch event, and the processor 510 can provide a corresponding on the display panel 551 according to the type of the touch event. Visual output.
  • touch screen 541 and the display panel 551 are two separate components to implement the input and input functions of the mobile terminal 500 in FIG. 12, in some embodiments, the touch screen 541 may be integrated with the display panel 551 to implement the movement. Input and output functions of terminal 500.
  • the at least one sensor 560 described above may include a motion sensor that can be used to acquire motion data of the terminal device and thereby determine the motion state of the terminal device.
  • the motion state may include a stationary state or a moving state.
  • the motion sensor may also transmit the acquired motion data to the processor 510, and the processor 510 determines the current motion state of the terminal device according to the motion data.
  • the at least one sensor 560 may further include other sensors, such as a light sensor, a gravity sensor, and the like.
  • the light sensor can include an ambient light sensor and a proximity light sensor.
  • the ambient light sensor can adjust the brightness of the display panel 541 according to the brightness of the ambient light.
  • the proximity light sensor can detect whether an object approaches or contacts the terminal device, and turns off the display panel 541 and/or the backlight when the mobile terminal 500 moves to the ear.
  • the gravity sensor can be used to detect the acceleration of the terminal device in various directions (usually three axes), and the magnitude and direction of gravity can be detected at rest, which can be used to identify the posture of the terminal device (for example, horizontal and vertical screen switching, correlation Game, magnetometer attitude calibration), vibration recognition related functions (for example, pedometer, tap).
  • the at least one sensor 560 may further include other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, and details are not described herein.
  • audio circuit 570 may provide an audio interface between the user and mobile terminal 500.
  • the audio circuit 570 can be used to convert the received audio data into an electrical signal and transmit the electrical signal to the speaker 571.
  • the speaker 571 can be used to convert the received electrical signal into a sound signal and output it.
  • the microphone 572 can be used to convert the collected sound signal into an electrical signal and transmit it to an audio circuit, and the audio circuit 570 can convert the received electrical signal into audio data, and then output the audio data to the RF circuit 530. Send to other devices or output audio data to memory 520 for further processing.
  • the mobile terminal 500 may also include a power source 580 (eg, a battery) for powering various components.
  • a power source 580 eg, a battery
  • the power source can be logically connected to the processor 510 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the mobile terminal 500 may further include a Wireless Fidelity (WiFi) module, a Bluetooth module, and the like, and details are not described herein again.
  • WiFi Wireless Fidelity
  • FIG. 12 only shows a part related to the embodiment of the present application, and the specific technical details are not disclosed. Please refer to the specific description of the embodiments of the present application.
  • the embodiment of the present application further provides a computer readable medium for storing a computer program, the computer program comprising instructions for executing the above method.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner.
  • multiple units or components may be combined or integrated into another system. Or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present application.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present application may be in essence or part of the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .

Abstract

Disclosed are a photographing method, which can complete the photographing of a group picture without the assistance of a third party and thus can improve the photographing experience of a user. The method comprises: a mobile terminal acquiring a first user instruction, starting a photographing application according to the first user instruction, and opening a viewfinder window; the mobile terminal acquiring a second user instruction, performing a first stage of photographing on a first object presented in a first photographing window, and obtaining a first image, the first photographing window being a first part of the viewfinder window; the mobile terminal acquiring a third user instruction, performing a second stage of photographing on a second object presented in a second photographing window, and obtaining a second image, the second photographing window being a second part of the viewfinder window; and the mobile terminal generating a group picture of the first object and the second object according to the first image and the second image.

Description

拍照方法和移动终端Photo method and mobile terminal 技术领域Technical field
本申请涉及移动终端领域,并且更具体地,涉及一种拍照方法和移动终端。The present application relates to the field of mobile terminals, and more particularly, to a photographing method and a mobile terminal.
背景技术Background technique
在日常生活中,人们经常会通过拍摄与亲朋好友的合影,留下彼此之间珍贵的回忆。现阶段的合影拍摄一般都需要借助第三方完成。例如,请别人帮忙协助拍摄、借助自拍杆进行拍摄或者借助相机或手机“延迟数秒”的功能拍摄等。In daily life, people often take photos with friends and family, leaving precious memories between each other. At this stage, group photo shooting usually needs to be done by a third party. For example, ask someone to help with shooting, shooting with the selfie stick, or shooting with the camera or mobile phone “delay for a few seconds”.
虽然,这些方法也能够完成合影拍摄,但是各自都存在一些缺点。例如,在一些场景下,恰好找不到别人为自己拍摄。通过自拍杆拍摄,很难拍到全身照。另外,自拍杆大多利用前置摄像头完成拍摄,而前置摄像头在像素及成像效果方面要落后于后置摄像头。“延迟数秒”的拍摄,拍摄时无法看到拍摄效果,特别是在多人合影的情况下,可能需要多次尝试。Although these methods can also be used for group taking, there are some disadvantages. For example, in some scenarios, you just can't find someone else to shoot for yourself. It is difficult to take a full-length picture with a selfie stick. In addition, the selfie stick mostly uses the front camera to complete the shooting, while the front camera lags behind the rear camera in terms of pixels and imaging effects. Shooting "delay for a few seconds", you can't see the shooting when shooting, especially in the case of multiple people taking photos, you may need to try multiple times.
发明内容Summary of the invention
本申请提供一种拍照方法和移动终端,能够在不借助第三方协助的情况下完成合影的拍摄,进而可以提升用户的拍照体验。The present application provides a photographing method and a mobile terminal, which can complete a photographing of a photograph without assisting by a third party, thereby improving the photographing experience of the user.
第一方面,本申请提供一种拍照方法,该方法包括:移动终端获取第一用户指令,根据第一用户指令启动拍照应用,开启取景窗口;移动终端获取第二用户指令,对第一拍摄窗口内呈现的第一对象进行第一阶段的拍摄,得到第一图像,第一拍摄窗口为取景窗口的第一部分;移动终端获取第三用户指令,对第二拍摄窗口内呈现的第二对象进行第二阶段的拍摄,得到第二图像,第二拍摄窗口为取景窗口的第二部分;移动终端根据第一图像和第二图像,生成第一对象和第二对象的合影图像。In a first aspect, the present application provides a photographing method, the method comprising: acquiring, by a mobile terminal, a first user instruction, starting a photographing application according to a first user instruction, and opening a viewfinder window; and acquiring, by the mobile terminal, a second user instruction, for the first shooting window The first object presented in the first stage performs the first stage of shooting, and obtains a first image, where the first shooting window is the first part of the framing window; the mobile terminal acquires the third user instruction, and performs the second object in the second shooting window. In the two-stage shooting, a second image is obtained, and the second shooting window is a second part of the framing window; the mobile terminal generates a group image of the first object and the second object according to the first image and the second image.
在一种可能的实现方式中,移动终端对第二拍摄窗口内呈现的第二对象进行第二阶段的拍摄的过程中,该方法还包括:移动终端的取景窗口内持续显示第一图像,其中,第一图像在取景窗口内占用的位置所述第二拍摄窗口在取景窗口内占用的位置不同。In a possible implementation manner, in the process of performing the second stage of shooting on the second object presented in the second shooting window, the method further includes: continuously displaying the first image in the framing window of the mobile terminal, where The position occupied by the first image in the framing window is different in the position occupied by the second shooting window in the framing window.
在一种可能的实现方式中,移动终端获取第三用户指令,对第二拍摄窗口内呈现的第二对象进行第二阶段的拍摄,得到第二图像,包括:移动终端在第二对象的背景图像与第一对象的背景图像满足拼接条件的情况下,对第二拍摄窗口内呈现的第二对象进行第二阶段的拍摄,得到第二图像。In a possible implementation manner, the mobile terminal acquires a third user instruction, and performs a second stage of shooting on the second object presented in the second shooting window to obtain a second image, including: the mobile terminal is in the background of the second object. When the image and the background image of the first object satisfy the splicing condition, the second object is captured in the second object presented in the second shooting window to obtain a second image.
在一种可能的实现方式中,移动终端设备在第二对象的背景图像与第一对象的背景图像满足拼接条件的情况下,对第二拍摄窗口内呈现的第二对象进行第二阶段的拍摄之前,该方法还包括:移动终端对第一对象和第二对象进行人脸识别,以确定第一对象的脸部位置和第二对象的脸部位置;移动终端确定第二对象的脸部位置与第一对象的脸部位置不重合。In a possible implementation manner, the mobile terminal device performs the second stage of shooting on the second object presented in the second shooting window if the background image of the second object and the background image of the first object satisfy the splicing condition. The method further includes: the mobile terminal performing face recognition on the first object and the second object to determine a face position of the first object and a face position of the second object; and determining, by the mobile terminal, a face position of the second object Does not coincide with the face position of the first object.
在一种可能的实现方式中,移动终端在确定第二对象的背景图像与第一对象的背景图像不满足拼接条件的情况下,该方法还包括:移动终端呈现第一提示信息,第一提示信息用于提示调整所述第二对象的背景图像。In a possible implementation manner, the mobile terminal determines that the background image of the second object and the background image of the first object do not satisfy the splicing condition, the method further includes: the mobile terminal presents the first prompt information, the first prompt The information is used to prompt to adjust the background image of the second object.
在一种可能的实现方式中,移动终端确定第二对象的脸部位置与第一对象的脸部位 置重合的情况下,该方法还包括:移动终端呈现第二提示信息,第二提示信息用于提示调整第二对象的脸部在第二拍摄窗口内的位置。In a possible implementation manner, the mobile terminal determines a face position of the second object and a face part of the first object In the case of coincidence, the method further includes: the mobile terminal presents the second prompt information, and the second prompt information is used to prompt to adjust the position of the face of the second object in the second shooting window.
在一种可能的实现方式中,该方法还包括:移动终端获取调整后的第二对象的脸部位置;以及,移动终端对第二拍摄窗口内呈现的第二对象进行第二阶段的拍摄,包括:移动终端在确定调整后的第二对象的脸部位置与第一对象的脸部位置不发生重合的情况下,对第二拍摄窗口内呈现的调整后的第二对象进行第二阶段的拍摄,得到第二图像。In a possible implementation, the method further includes: the mobile terminal acquiring the adjusted face position of the second object; and the mobile terminal performing the second stage shooting on the second object presented in the second shooting window, The method includes: after determining that the adjusted face position of the second object does not coincide with the face position of the first object, performing the second stage on the adjusted second object presented in the second shooting window Shoot and get the second image.
在一种可能的实现方式中,移动终端对根据第一图像和第二图像,得到第一对象和第二对象的合影图像,包括:移动终端获取第四用户指令,并根据第四用户指令对第一图像和第二图像作拼接处理,生成第一对象和第二对象的合影图像。In a possible implementation, the mobile terminal obtains a group image of the first object and the second object according to the first image and the second image, including: the mobile terminal acquires a fourth user instruction, and according to the fourth user instruction The first image and the second image are spliced to generate a group image of the first object and the second object.
第二方面,本申请提供一种移动终端,该移动终端包括存储器和处理器。存储器用于存储计算机程序指令(或者说,代码)。处理器用于执行存储器中存储的指令,当指令被执行时,处理器执行上述第一方面或第一方面的任意可能的实现方式中的方法。In a second aspect, the application provides a mobile terminal, where the mobile terminal includes a memory and a processor. The memory is used to store computer program instructions (or code). The processor is operative to execute instructions stored in the memory, and when the instructions are executed, the processor performs the method of any of the first aspect or the first aspect of the first aspect.
第三方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述第一方面或第一方面的任意可能的实现方式中的方法。In a third aspect, the present application provides a computer readable storage medium having stored therein instructions that, when executed on a computer, cause the computer to perform any of the first aspect or any possible implementation of the first aspect The method in the way.
本申请提供的拍照方法,通过将合影拍摄过程分为第一阶段和第二阶段,分别完成对合影人员各自的拍摄。后续通过对合影人员各自拍摄的图像作拼接处理,得到生成合影图像。因此,可以在不借助第三方协助(例如,借助自拍杆、请人帮忙拍摄等)的情况下,完成合影拍摄,因而可以提升用户的拍照体验。The photographing method provided by the present application completes the photographing of the respective photographing personnel by dividing the photographing photographing process into the first stage and the second stage. Subsequent splicing processing of the images taken by the group members respectively produces a group image. Therefore, it is possible to complete the group photographing without the assistance of a third party (for example, by means of a selfie stick, asking for help, etc.), thereby improving the user's photographing experience.
附图说明DRAWINGS
图1为本申请提供的拍照方法100的一个示意性流程图。FIG. 1 is a schematic flowchart of a photographing method 100 provided by the present application.
图2为移动终端启动拍照应用后开启取景窗口的示意图。FIG. 2 is a schematic diagram of opening a viewfinder window after the mobile terminal starts the photographing application.
图3为第一阶段拍摄的示意图。Figure 3 is a schematic diagram of the first stage of shooting.
图4为第二阶段拍摄的示意图。Figure 4 is a schematic diagram of the second stage of shooting.
图5为合影图像的示意图。Figure 5 is a schematic illustration of a group image.
图6为第一阶段拍摄的另一示意图。Figure 6 is another schematic view of the first stage of shooting.
图7为第二阶段拍摄的另一示意图。Figure 7 is another schematic view of the second stage of shooting.
图8为合影图像的另一示意图。Fig. 8 is another schematic diagram of a group image.
图9为人脸识别技术应用于在本申请实施例的合影拍摄的示意图。FIG. 9 is a schematic diagram of a face recognition technique applied to a group photographing in the embodiment of the present application.
图10为在移动终端的拍照应用中增加合影拍摄模式的示意图。FIG. 10 is a schematic diagram of adding a group photographing mode in a photographing application of a mobile terminal.
图11为本申请提供的拍照方法的另一个示意性流程图。FIG. 11 is another schematic flowchart of a photographing method provided by the present application.
图12为本申请提供的移动终端的示意性结构图。FIG. 12 is a schematic structural diagram of a mobile terminal provided by the present application.
具体实施方式detailed description
下面将结合附图,对本申请提供的技术方案进行说明。The technical solutions provided by the present application will be described below with reference to the accompanying drawings.
图1为本申请提供的拍照方法100的一个示意性流程图。方法100可以由移动终端执行。FIG. 1 is a schematic flowchart of a photographing method 100 provided by the present application. Method 100 can be performed by a mobile terminal.
110、移动终端获取第一用户指令,根据第一用户指令启动拍照应用,并开启取景窗口。 110. The mobile terminal acquires a first user instruction, starts a photographing application according to the first user instruction, and opens a viewfinder window.
第一用户指令为用户输入的用于启动拍照应用的指令。拍照应用启动后,自动开启取景窗口。The first user instruction is an instruction input by the user for launching the photographing application. After the camera application is launched, the viewfinder window is automatically opened.
在本申请实施例中,拍照包括两个阶段,以下分别记作第一阶段和第二阶段。其中,第一阶段对应下面的步骤120,第二阶段对应下面的步骤130。下面对这两个阶段进行详细说明。In the embodiment of the present application, the photographing includes two stages, and the following is respectively recorded as the first stage and the second stage. The first phase corresponds to the following step 120, and the second phase corresponds to the following step 130. The two phases are described in detail below.
第一阶段:The first stage:
120、移动终端获取第二用户指令,对第一拍摄窗口内呈现的第一对象进行第一阶段的拍摄,得到第一图像,第一拍摄窗口为取景窗口的第一部分。120. The mobile terminal acquires a second user instruction, and performs a first stage of shooting on the first object presented in the first shooting window to obtain a first image, where the first shooting window is the first part of the framing window.
在步骤110中,拍照应用启动后,打开了取景窗口。参见图2,图2为移动终端启动拍照应用后开启取景窗口的示意图。移动终端的显示屏幕上还可显示诸如“合照”、“全景”、“视频”等选择项。用户点击“合照”之后,进入第一阶段的拍摄。In step 110, after the photo application is launched, the viewfinder window is opened. Referring to FIG. 2, FIG. 2 is a schematic diagram of opening a viewfinder window after the mobile terminal starts the photographing application. Options such as "photo", "panoramic", "video", etc. may also be displayed on the display screen of the mobile terminal. After the user clicks "Photos", the user enters the first stage of shooting.
图3为第一阶段拍摄的示意图。如图3所示,在第一阶段的拍摄中,第一拍摄窗口为取景窗口的一部分,记作取景窗口的第一部分。图3中仅以第一拍摄窗口位于取景窗口的左侧为例,例如,第一拍摄窗口也可以位于取景窗口的中间或者右侧等。Figure 3 is a schematic diagram of the first stage of shooting. As shown in FIG. 3, in the first stage of shooting, the first shooting window is a part of the framing window, which is recorded as the first part of the framing window. In FIG. 3, for example, the first shooting window is located on the left side of the framing window. For example, the first shooting window may also be located in the middle or the right side of the framing window.
本申请实施例的技术方案是针对拍摄“合照”的。也就是说,参与拍摄的对象是至少两个。第一阶段是对这至少两个对象中的一部分对象进行拍摄的过程。第二阶段是对除了第一阶段参与拍摄的对象之外剩余的对象进行拍摄的过程。The technical solution of the embodiment of the present application is directed to shooting "photographed". In other words, there are at least two people involved in the shooting. The first stage is the process of shooting a part of the at least two objects. The second stage is a process of photographing the remaining objects other than the subjects involved in the first stage of shooting.
为了便于说明,下文仅以参与拍摄合照的对象为两个,第一阶段针对其中的一个对象进行拍摄,第二阶段针对另一个进行拍摄,最终通过生成合影,得到这两个对象的合影图像作为示例进行说明。当参与合影的对象多于两个时,拍摄合影的过程是类似的。For the convenience of explanation, only the objects participating in the photographing are taken as two. The first stage is to shoot one of the objects, the second stage is to shoot the other, and finally the group photo is taken to obtain the group image of the two objects. The example is explained. The process of taking a group photo is similar when there are more than two people participating in the group photo.
第二阶段second stage
130、移动终端获取第三用户指令,对第二拍摄窗口内呈现的第二对象进行第二阶段的拍摄,得到第二图像,第二拍摄窗口为取景窗口的第二部分。130. The mobile terminal acquires a third user instruction, and performs a second stage of shooting on the second object presented in the second shooting window to obtain a second image, where the second shooting window is a second part of the framing window.
第二阶段是拍摄第二对象的过程。这里,第二对象为参与合影拍摄的对象中除第一对象之外的对象。第二对象也为至少一个。第二对象与第一对象一起构成了参与拍摄合照(或者说,合影)的对象。The second stage is the process of taking a second object. Here, the second object is an object other than the first object among the objects participating in the group photographing. The second object is also at least one. The second object together with the first object constitutes an object that participates in taking a photo (or, a group photo).
图4为第二阶段拍摄的示意图。如图4所示,第二拍摄窗口也为取景窗口的一部分,记作取景窗口的第二部分。Figure 4 is a schematic diagram of the second stage of shooting. As shown in FIG. 4, the second shooting window is also a part of the framing window, which is recorded as the second part of the framing window.
在拍摄第二对象的过程中,移动终端持续显示第一阶段拍摄得到的第一图像。During the process of capturing the second object, the mobile terminal continuously displays the first image captured in the first stage.
在本申请实施例中,第一拍摄窗口是在移动终端在拍摄第一对象的第一阶段呈现给用户的。第二拍摄窗口是移动终端在拍摄第二对象的第二阶段呈现给用户的。其中,第一拍摄窗口和第二拍摄窗口可以分别占用取景窗口的不同位置。第一拍摄窗口与第二拍摄窗口的大小可以相同,也可以不同。In the embodiment of the present application, the first shooting window is presented to the user in the first stage of the mobile terminal in capturing the first object. The second shooting window is presented to the user by the mobile terminal in the second phase of capturing the second object. The first shooting window and the second shooting window may respectively occupy different positions of the framing window. The size of the first shooting window and the second shooting window may be the same or different.
需要说明的是,第一图像和第二对象同时呈现,用于移动终端判定第一图像中第一对象的背景图像与第二拍摄窗口内第二对象的背景图像是否满足图像进行拼接的条件(即,拼接条件)。在第一对象的背景图像与第二对象的背景图像满足拼接条件的情况下,完成对第二对象的拍摄,得到第二图像。后续,通过对第一图像和第二图像进行拼接,得到第一对象和第二对象的合影图像。It should be noted that the first image and the second object are simultaneously presented, and the mobile terminal determines whether the background image of the first object in the first image and the background image of the second object in the second shooting window satisfy the condition for splicing the image ( That is, the splicing condition). In the case where the background image of the first object and the background image of the second object satisfy the splicing condition, the shooting of the second object is completed to obtain a second image. Subsequently, by stitching the first image and the second image, a group image of the first object and the second object is obtained.
或者,在不满足拼接条件的情况下,移动终端会向用户呈现提示信息,以提示用户对第二对象的位置、第二对象的背景灯等进行调整,进而满足拼接条件,最终完成合影 拍摄。第二阶段的拍摄过程下文会作详细说明。Alternatively, if the splicing condition is not satisfied, the mobile terminal presents the prompt information to the user to prompt the user to adjust the position of the second object, the backlight of the second object, and the like, thereby satisfying the splicing condition, and finally completing the group photo. Shooting. The second phase of the shooting process will be described in detail below.
本申请实施例中所说的拼接条件,是指两张图像能够进行拼接需要满足的条件。例如,被拼接的两张图像需要有重叠部分。图像拼接技术已经比较成熟,具体的实现可以参考现有技术。The splicing condition mentioned in the embodiment of the present application refers to a condition that two images can be spliced. For example, two images that are stitched need to have overlapping portions. The image stitching technology has been relatively mature, and the specific implementation can refer to the prior art.
全景拍摄在图像拍摄时如果相机移动幅度过大,前后背景差异过大会自动取消拍照状态。而在本申请实施例中,由于合影拍摄需要交换拍摄者,所以遇到这种场景不取消拍摄状态,等前后背景达到可拼接条件时,给出可拍摄的提示,可继续完成拍照。Panorama shooting If the camera moves too far during image capture, the front and back background differences will automatically cancel the photo. In the embodiment of the present application, since the photographer needs to exchange the photographer, the scene is not canceled when the scene is encountered, and when the front and back backgrounds reach the splicable condition, a photographable prompt is given, and the photographing can be continued.
140、移动终端根据第一图像和第二图像,生成第一对象和第二对象的合影图像。140. The mobile terminal generates a group image of the first object and the second object according to the first image and the second image.
通过步骤120和步骤130,移动终端完成了对全部参与合影的对象的拍摄。在步骤140,移动终端对第一图像和第二图像进行拼接处理,得到第一对象和第二对象的合影。Through steps 120 and 130, the mobile terminal completes the shooting of all the objects participating in the group. In step 140, the mobile terminal performs splicing processing on the first image and the second image to obtain a group photo of the first object and the second object.
在本申请实施例的拍照方法,拍摄合影的过程中,参与合影的拍摄对象在不需要借助第三方的协助(例如,借助自拍杆或请路人帮忙等)的情况下,即可完成合影的拍摄。如图5所示,图5为合影图像的示意图。In the photographing method of the embodiment of the present application, in the process of taking a group photo, the subject who participates in the group photographing can complete the group photographing without the assistance of a third party (for example, with the help of a selfie stick or a passerby, etc.). . As shown in FIG. 5, FIG. 5 is a schematic diagram of a group image.
本申请实施例中,第一阶段和第二阶段在时间顺序上是有先后的。因此,在一种可能的实现方式中,在第一阶段,移动终端向用户呈现第一拍摄窗口时,可以仅呈现第一拍摄窗口而不呈现第二拍摄窗口。在另一种可能的实现方式中,移动终端在第一阶段向用户呈现第一拍摄窗口时,可以同时呈现第二拍摄窗口。但是,第二拍摄窗口为不可用状态。应理解,这里所说的拍摄窗口为不可用状态是指拍摄窗口处于非取景状态。In the embodiment of the present application, the first phase and the second phase are sequential in time sequence. Therefore, in a possible implementation manner, in the first stage, when the mobile terminal presents the first shooting window to the user, only the first shooting window may be presented instead of the second shooting window. In another possible implementation manner, when the mobile terminal presents the first shooting window to the user in the first stage, the second shooting window may be presented at the same time. However, the second shooting window is not available. It should be understood that the fact that the shooting window is not available here means that the shooting window is in a non-framing state.
具体地,移动终端获取第三用户指令之后,在确定第二对象的背景图像与第一对象的背景图像满足图像拼接条件的情况下,对第二拍摄窗口内呈现的第二对象进行拍摄,得到第二图像。Specifically, after the mobile terminal acquires the third user instruction, if it is determined that the background image of the second object and the background image of the first object satisfy the image splicing condition, the second object presented in the second shooting window is captured, and obtained Second image.
从前文步骤140已经知道,本申请实施例中的合影图像,是通过对参与合影拍摄的至少两个对象分别进行拍摄,之后对分别拍摄得到的图像进行拼接处理得到的。因此,对第一对象进行拍摄得到的第一图像和对第二对象进行拍摄得到的第二图像需要满足拼接的条件(以下称作拼接条件)。换个角度来说,也就是在拍摄第一对象时的背景图像和拍摄第二图像时的背景图像只有满足拼接条件,后续才能进行图像的拼接,进而得到合影图像。It is known from the foregoing step 140 that the group image in the embodiment of the present application is obtained by separately photographing at least two objects participating in the group photographing, and then performing stitching processing on the separately photographed images. Therefore, the first image obtained by capturing the first object and the second image obtained by capturing the second object need to satisfy the condition of splicing (hereinafter referred to as splicing condition). To put it another way, the background image when the first object is photographed and the background image when the second image is taken only satisfy the splicing condition, and then the splicing of the image can be performed later, thereby obtaining a group image.
因此,在本申请实施例中,完成对第一阶段的拍摄后,在进行第二阶段的拍摄时,移动终端会自动检测第二对象的背景图像与之前第一对象的背景图像是否满足拼接条件,并在满足拼接条件的情况下,完成对第二对象的拍摄。Therefore, in the embodiment of the present application, after the shooting of the first stage is completed, when the second stage of shooting is performed, the mobile terminal automatically detects whether the background image of the second object and the background image of the previous first object satisfy the splicing condition. And, when the splicing condition is satisfied, the shooting of the second object is completed.
移动终端在判定第二对象的背景图像与第一对象的背景图像不满足拼接条件的情况下,移动终端呈现第一提示信息,第一提示信息用于提示调整第二对象的背景图像,直至第二对象的背景图像与第一对象的背景图像满足拼接条件。When the mobile terminal determines that the background image of the second object and the background image of the first object do not satisfy the splicing condition, the mobile terminal presents the first prompt information, where the first prompt information is used to prompt to adjust the background image of the second object until the first The background image of the two objects and the background image of the first object satisfy the splicing condition.
在实际的操作中,假定将第一对象记作用户#A,将第二对象记作用户#B。在第一阶段,用户#A持手机完成对用户#B的拍摄。接下来,用户#A与用户#B互换角色,由用户#B对用户#A进行拍摄。在拍摄过程中,如果用户#A的背景与用户#B在第一阶段的背景相差很大,不满足背景图像的拼接条件,移动终端即会呈现提示信息,例如,移动终端在取景窗口中显示“请调整拍摄背景”。这样,用户#B告知用户#A调整所站位置,以拍摄用户#B时的背景为主背景,调整自己的位置。直至第一阶段的背景图像与第二阶段的背景图像之间满足拼接条件。此时,提示信息可以自动撤销,或者说,不再显示提 示信息。In the actual operation, it is assumed that the first object is referred to as user #A, and the second object is referred to as user #B. In the first stage, User #A takes the phone to complete the shooting of User #B. Next, the user #A exchanges the role with the user #B, and the user #B takes a picture of the user #A. During the shooting process, if the background of the user #A and the background of the user #B differ greatly in the background of the first stage, and the splicing condition of the background image is not satisfied, the mobile terminal presents the prompt information, for example, the mobile terminal displays in the framing window. "Please adjust the shooting background". In this way, the user #B informs the user #A to adjust the position of the station, and adjusts the position by taking the background of the user #B as the main background. The splicing condition is satisfied until the background image of the first stage and the background image of the second stage. At this point, the prompt information can be automatically revoked, or it is no longer displayed. Show information.
下面对拍摄合影过程中背景图像的要求进行说明。The following describes the requirements for the background image during the filming process.
图6为第一阶段拍摄的另一示意图。如图6所示,在第一阶段,用户#A持手机对用户#B进行拍摄。第一拍摄窗口内除了用户#B之外的景物为用户#B的背景图像。Figure 6 is another schematic view of the first stage of shooting. As shown in FIG. 6, in the first stage, the user #A takes a mobile phone to shoot the user #B. The scene other than the user #B in the first shooting window is the background image of the user #B.
图7为第二阶段拍摄的另一示意图。如图7所示,在第二阶段,用户#A与用户#B互换角色,由用户#B对用户#A进行拍摄。第二拍摄窗口内呈现的除了用户#A之外的景物为用户#A的背景图像。Figure 7 is another schematic view of the second stage of shooting. As shown in FIG. 7, in the second stage, user #A and user #B exchange roles, and user #B performs shooting on user #A. The scene other than the user #A presented in the second shooting window is the background image of the user #A.
在进行第二阶段的拍摄时,移动终端会判断用户#A的背景图像与第一阶段中用户#B的背景图像是否满足拼接条件。在满足图像拼接条件的情况下,移动终端才会继续第二阶段的拍摄。否则,移动终端会在显示提示信息,提示用户调整拍摄的背景,直至第二阶段的背景图像与第一阶段的背景图像之间满足拼接条件。最后生成的合影图像如图8所示。图8为合影图像的另一示意图。When the second stage of shooting is performed, the mobile terminal determines whether the background image of the user #A and the background image of the user #B in the first stage satisfy the splicing condition. In the case that the image stitching condition is satisfied, the mobile terminal will continue the second stage of shooting. Otherwise, the mobile terminal will display a prompt message prompting the user to adjust the background of the shooting until the stitching condition is satisfied between the background image of the second stage and the background image of the first stage. The resulting group photo is shown in Figure 8. Fig. 8 is another schematic diagram of a group image.
进一步地,移动终端设备判断第二对象的背景图像与第一对象的背景图像满足拼接条件的情况下,对第二拍摄窗口内呈现的第二对象进行拍摄之前,该方法还包括:Further, the method further includes: before the mobile terminal device determines that the background image of the second object and the background image of the first object satisfy the splicing condition, before the second object presented in the second shooting window is photographed, the method further includes:
移动终端对第一对象和第二对象进行人脸识别,以确定第一对象的脸部位置和第二对象的脸部位置;The mobile terminal performs face recognition on the first object and the second object to determine a face position of the first object and a face position of the second object;
移动终端在确定第二对象的脸部位置与第一对象的脸部位置不重合的情况下,对第二拍摄窗口内呈现的第二对象进行拍摄。The mobile terminal photographs the second object presented in the second shooting window in a case where it is determined that the face position of the second object does not coincide with the face position of the first object.
应理解,为了避免合影中某个(多个对象时可能为某几个)对象的脸部被遮挡,在进行第二阶段的拍摄时,通过人脸识别技术判断第二阶段拍摄的第二对象的脸部位置与第一阶段拍摄的第一对象的脸部位置是否发生重合。并且在确定没有重合的情况下,对第二对象进行拍摄。It should be understood that in order to avoid the occlusion of the face of a certain object (some objects may be some), the second object of the second stage is judged by the face recognition technology when performing the second stage of shooting. Whether the face position coincides with the face position of the first object photographed in the first stage. And in the case where it is determined that there is no coincidence, the second object is photographed.
在移动终端确定第二对象的脸部位置与第一对象的脸部位置发生重合的情况下,移动终端呈现第二提示信息,第二提示信息用于指示调整第二对象的脸部在第二拍摄窗口内的位置。When the mobile terminal determines that the face position of the second object coincides with the face position of the first object, the mobile terminal presents the second prompt information, where the second prompt information is used to indicate that the face of the second object is adjusted to be the second The position within the shooting window.
在实际的操作中,在第一阶段,用户#A持手机完成对用户#B的拍摄。在第二阶段,由用户#B对用户#A进行拍摄。在拍摄第二对象之前,如果移动终端检测到用户#A的脸部位置与用户#B的脸部位置重合,显示屏幕上呈现提示信息。例如,移动终端在取景窗口中显示屏幕上显示“请调整脸部位置”。用户#B告知用户#A调整脸部位置,直至用户#A的脸部位置与用户#B的脸部位置不重合为止。此时,提示信息可以自动撤销。之后,移动终端可对用户#A进行拍摄。In the actual operation, in the first stage, the user #A holds the mobile phone to complete the shooting of the user #B. In the second stage, the user #A is photographed by the user #B. Before the second object is photographed, if the mobile terminal detects that the face position of the user #A coincides with the face position of the user #B, the prompt information is presented on the display screen. For example, the mobile terminal displays "Please adjust the face position" on the display screen in the framing window. User #B informs user #A to adjust the face position until the face position of user #A does not coincide with the face position of user #B. At this point, the prompt information can be automatically revoked. Thereafter, the mobile terminal can take a picture of User #A.
人脸识别技术首先在拍摄窗口内检测人脸。检测到人脸并定位到面部关键特征点后,进行预处理。之后通过识别算法,提取人脸特征,最终完成识别。人脸特征提取主要根据建模方法进行。本申请实施例中,可以采用现有技术中的人脸建模方法完成人脸识别。例如,安卓(Android)的早期版本已经实现了相机集成的人脸识别技术,并提供通用接口供一些第三方安卓安装包(AndroidPackage,APK)使用,合影拍摄模式可以直接使用。Face recognition technology first detects a person's face in the shooting window. Preprocessing is performed after the face is detected and the key feature points of the face are located. Then, through the recognition algorithm, the face features are extracted, and finally the recognition is completed. Face feature extraction is mainly based on modeling methods. In the embodiment of the present application, the face modeling method in the prior art can be used to complete the face recognition. For example, an earlier version of Android (Android) has implemented camera-integrated face recognition technology and provides a common interface for use by some third-party Android installation packages (AndroidPackage, APK). The group shooting mode can be used directly.
人脸识别技术在本申请实施例中主要进行如下检测:The face recognition technology mainly performs the following detection in the embodiment of the present application:
(1)图像1和图像2中人脸都要保证完整。(1) Faces in Image 1 and Image 2 must be guaranteed to be complete.
(2)生成合影时,图像1和图像2中的脸部轮廓要保证完整,以避免合影失真。(2) When generating a group photo, the face contours in Image 1 and Image 2 are guaranteed to be complete to avoid group distortion.
图9为人脸识别技术应用于在本申请实施例的合影拍摄的示意图。如前文所述,在 第二阶段,移动终端检测第二对象的脸部位置与第一对象的脸部位置是否出现重合。在出现重合的情况下,提示第二对象调整脸部位置。后续,在第二对象调整脸部位置的过程中,移动终端实时获取调整后的第二对象的脸部位置,在确定调整后的第二对象的脸部位置与第一对象的脸部位置不重合的情况下,对第二拍摄窗口内呈现的调整后的第二对象进行第二阶段的拍摄,得到第二图像。FIG. 9 is a schematic diagram of a face recognition technique applied to a group photographing in the embodiment of the present application. As mentioned earlier, in In the second stage, the mobile terminal detects whether the face position of the second object coincides with the face position of the first object. In the case of coincidence, the second object is prompted to adjust the face position. Subsequently, in the process of adjusting the position of the face by the second object, the mobile terminal acquires the adjusted face position of the second object in real time, and determines that the adjusted face position of the second object and the face position of the first object are not In the case of coincidence, the second stage of the second object is adjusted in the second shooting window to obtain a second image.
在第二阶段的拍摄过程中,如果出现前文所说的第二对象的背景图像与第一图像的背景图像不满足拼接条件,或者第一对象的脸部位置和第二对象的脸部位置重合,移动终端会向用户呈现提示信息。用户在提示信息的提示下,调整第二对象的位置或者第二对象的脸部在第二拍摄窗口内的位置。在确定调整后的第二对象的背景图像与第一对象的背景图像满足图像拼接的条件,并且第二对象的脸部位置与第一对象的脸部位置不重合的情况下,移动终端对第二对象进行拍摄,得到第二图像。During the second stage of shooting, if the background image of the second object and the background image of the first image do not satisfy the splicing condition, or the face position of the first object and the face position of the second object coincide. The mobile terminal will present a prompt message to the user. The user adjusts the position of the second object or the position of the face of the second object in the second shooting window at the prompt of the prompt information. After determining that the adjusted background image of the second object and the background image of the first object satisfy the condition of image stitching, and the face position of the second object does not coincide with the face position of the first object, the mobile terminal pairs The second object is photographed to obtain a second image.
在拍摄得到第二图像之后,移动终端基于用户输入的指令,对第一图像和第二图像作拼接处理,得到第一对象和第二对象的合影图像。After the second image is captured, the mobile terminal performs a splicing process on the first image and the second image based on an instruction input by the user to obtain a group image of the first object and the second object.
例如,拍摄得到第一图像和第二图像之后,移动终端上显示“生成合影”,用户点击之后,移动终端对第一图像和第二图像作拼接处理,生成第一对象和第二对象的合影图像。For example, after the first image and the second image are captured, the “generating a group” is displayed on the mobile terminal. After the user clicks, the mobile terminal performs a splicing process on the first image and the second image to generate a group photo of the first object and the second object. image.
本申请实施例的拍照方法,可以通过在移动终端(例如,相机、手机)中添加“合影拍摄”模式来实现。The photographing method of the embodiment of the present application can be implemented by adding a "photographing" mode to a mobile terminal (for example, a camera or a mobile phone).
图10为在移动终端的拍照应用中增加合影拍摄模式的示意图。如图10所示,用户打开拍照应用后,通过选择“合影拍摄”模式,即可进行合影拍摄,具体拍摄过程如上文所述,这里不再赘述。FIG. 10 is a schematic diagram of adding a group photographing mode in a photographing application of a mobile terminal. As shown in FIG. 10, after the user opens the photo application, the group photo shooting can be performed by selecting the “photo shooting” mode. The specific shooting process is as described above and will not be described here.
图11为本申请提供的拍照方法的另一个示意性流程图。FIG. 11 is another schematic flowchart of a photographing method provided by the present application.
301、用户开启手机上的拍照应用,选择合影拍摄模式。301. The user turns on the photo application on the mobile phone and selects the group shooting mode.
这里所说的用户为参与拍摄合影的对象中的任意一个。例如,用户#A和用户#B要拍摄合影,步骤301中所说的用户可以为用户#A或用户#B。实际上,也可以为除了用户#A和用户#B之外的第三人。但是,本申请提供的技术方案正是为了在不借助第三方协助的情况下完成合影拍摄,因此,本申请实施例中暂不考虑第三人的情况。The user referred to here is any one of the objects participating in the shooting. For example, user #A and user #B want to take a group photo, and the user mentioned in step 301 can be user #A or user #B. In fact, it can also be a third person other than User #A and User #B. However, the technical solution provided by the present application is for the purpose of completing the group photographing without the assistance of the third party. Therefore, the situation of the third person is not considered in the embodiment of the present application.
302、人员#A持手机对人员#B进行拍摄。302. Person #A holds the mobile phone and shoots the person #B.
步骤302即为上文所说的第一阶段的拍摄。Step 302 is the shooting of the first stage mentioned above.
303、第一阶段拍摄完成。303. The first stage of shooting is completed.
接下来,人员#A和人员#B互换角色,进入第二阶段拍摄。Next, the person #A and the person #B exchange roles and enter the second stage of shooting.
304、人员#B持手机对人员#A进行拍摄。304, Person #B holding a mobile phone to shoot #A.
步骤304为上文所说的第二阶段的拍摄。Step 304 is the shooting of the second stage described above.
305、手机判断人员#A的背景图像与人员#B的背景图像是否满足拼接条件。305. Whether the background image of the mobile phone judgment person #A and the background image of the person #B satisfy the splicing condition.
若不满足拼接条件,手机执行步骤306。If the splicing condition is not met, the mobile phone performs step 306.
306、手机显示提示信息#1。306. The mobile phone displays prompt message #1.
应理解,提示信息#1提示用户调整人员#A的背景,直至人员#A的背景图像与人员#B的背景图像满足拼接条件。It should be understood that the prompt information #1 prompts the user to adjust the background of the person #A until the background image of the person #A and the background image of the person #B satisfy the splicing condition.
如前文所述,全景拍摄在图像拍摄时如果相机移动幅度过大,前后背景差异过大会自动取消拍照状态。而在本申请实施例中,由于合影拍摄需要交换拍摄者,所以遇到这 种场景不取消拍摄状态,等前后背景达到可拼接条件时,给出可拍摄的提示,可继续完成拍照。基于这种差异,在本申请实施例中,建议采用循环校验方式,直至第二图像与第一图像满足拼接条件(参见图11中的虚线框部分)。例如,每次校验可以设定时间间隔。As mentioned above, if the camera moves too far when the image is taken during panorama shooting, the background difference before and after the background is automatically canceled. In the embodiment of the present application, since the group photographing needs to exchange the photographer, this is encountered. The scene does not cancel the shooting state, and when the front and back backgrounds reach the splicable condition, a prompt that can be taken is given, and the photographing can be continued. Based on this difference, in the embodiment of the present application, it is recommended to adopt a loop check mode until the second image and the first image satisfy the splicing condition (see the dotted line frame portion in FIG. 11). For example, the time interval can be set for each check.
若满足拼接条件,手机执行步骤307。If the splicing condition is met, the mobile phone performs step 307.
307、手机判断人员#A的脸部与人员#B的脸部是否重合。307. Whether the face of the mobile phone judgment person #A and the face of the person #B overlap.
与步骤305类似,若重合,则执行步骤308。若不重合,则执行步骤309。Similar to step 305, if coincident, step 308 is performed. If not, step 309 is performed.
308、手机显示提示信息#2。308. The mobile phone displays prompt message #2.
提示信息#2提示用户调整人员#A的人脸位置,直到人员#A的脸部与人员#B的脸部不重合为止。The prompt information #2 prompts the user to adjust the face position of the person #A until the face of the person #A and the face of the person #B do not coincide.
309、第二阶段拍摄完成。309. The second stage of shooting is completed.
310、用户点击“生成合影”。310. The user clicks “Generate a group photo”.
311、合影拍摄完毕。311. The group photo was taken.
手机对第一阶段拍摄的人员#B的图像与第二阶段拍摄的人员#A的图像进行拼接,合成得到人员#A和人员#B的合影图像。合影拍摄完毕。The mobile phone spliced the image of the person #B photographed in the first stage with the image of the person #A photographed in the second stage, and synthesized a group image of the person #A and the person #B. The group photo was taken.
本申请提供的拍照方法,通过将合影拍摄分为第一阶段的拍摄和第二阶段的拍摄,分别完成合影人员各自的拍摄。后续通过对合影人员各自拍摄的图像进行拼接处理,生成合影图像。因此,本申请提供的拍照方法,可以在不借助第三方协助的情况下,完成合影拍摄。进而可以提升用户的拍照体验。The photographing method provided by the present application respectively completes the photographing of the group photo by dividing the group photographing into the first stage shooting and the second stage shooting. The stitching process is performed on the images taken by the group members to generate a group image. Therefore, the photographing method provided by the present application can complete the group photographing without the assistance of a third party. In turn, the user's photo experience can be improved.
上文结合图1至图11详细说明了本申请实施例中提供的拍照方法。下文结合图12对本申请提供的移动终端进行说明。The photographing method provided in the embodiment of the present application is described in detail above with reference to FIG. 1 to FIG. The mobile terminal provided by the present application will be described below with reference to FIG.
图12为本申请提供的移动终端500的示意性结构图。在本申请实施例中,移动终端500可以为移动电话、平板个人电脑(Tablet Personal Computer)、笔记本电脑(Laptop Computer)、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)、个人计算机(Personal Computer)、移动上网装置(Mobile Internet Device,MID)等具有拍摄功能的设备,本申请实施例对此不做限定。FIG. 12 is a schematic structural diagram of a mobile terminal 500 provided by the present application. In the embodiment of the present application, the mobile terminal 500 can be a mobile phone, a tablet personal computer, a laptop computer, an ultra-mobile personal computer (UMPC), a netbook, a personal digital assistant. A device having a photographing function, such as a personal digital assistant (PDA), a personal computer (Personal Computer), or a mobile Internet device (MID), is not limited in this embodiment of the present application.
参见图12,移动终端500可以包括处理器510、存储器520和射频(Radio Frequency,RF)电路530。并且,移动终端500上可以安装有若干个(一个或多个)应用程序,该若干个应用程序可以存储于存储器520中。Referring to FIG. 12, the mobile terminal 500 may include a processor 510, a memory 520, and a radio frequency (RF) circuit 530. Moreover, a plurality of application(s) may be installed on the mobile terminal 500, and the plurality of applications may be stored in the memory 520.
可选地,移动终端500还可以包括输入单元540、显示单元550、至少一个传感器560、音频电路570、扬声器571、麦克风572以及电源580等部件。显示单元可以为显示器。Optionally, the mobile terminal 500 may further include components such as an input unit 540, a display unit 550, at least one sensor 560, an audio circuit 570, a speaker 571, a microphone 572, and a power source 580. The display unit can be a display.
下面结合图12,对移动终端500的各个构成部件进行具体的介绍。Specific components of the mobile terminal 500 will be specifically described below with reference to FIG.
处理器510可以是移动终端500的控制中心。利用各种接口和线路连接终端设备的各个部分,通过运行或执行存储在存储器520中的程序和/或模块,以及调用存储在存储器520内的数据,执行移动终端500的各种功能。可选的,处理器510可以包括一个或多个处理单元。 Processor 510 can be the control center of mobile terminal 500. The various functions of the mobile terminal 500 are performed by connecting various portions of the terminal device with various interfaces and lines, by running or executing programs and/or modules stored in the memory 520, and recalling data stored in the memory 520. Alternatively, processor 510 can include one or more processing units.
可选地,处理器510可以由集成电路(Integrated Circuit,IC)组成。例如,可以由单独封装的IC所组成,也可以由连接多个具有相同功能或不同功能的封装IC而组成。处理器510可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处 理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(Field Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,本申请实施例对此不做限定。Alternatively, the processor 510 may be composed of an integrated circuit (IC). For example, it may be composed of a separately packaged IC, or may be composed of a plurality of packaged ICs having the same function or different functions. The processor 510 can be a central processing unit (CPU), and can also be other common places. Processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is not limited in this embodiment of the present application.
存储器520可用于存储软件程序以及模块,处理器510通过运行存储在存储器520的软件程序以及模块,从而执行移动终端500的各种功能应用以及数据处理。存储器520可主要包括存储程序区和存储数据区。其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(例如,声音播放功能、图像播放功能等)等。存储数据区可存储根据移动终端500的使用所创建的数据(例如,音频数据、图像数据、电话本等)等。此外,存储器520可以包括高速随机存取存储器,还可以包括非易失性存储器。例如,至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 520 can be used to store software programs and modules, and the processor 510 executes various functional applications and data processing of the mobile terminal 500 by running software programs and modules stored in the memory 520. The memory 520 may mainly include a storage program area and a storage data area. The storage program area may store an operating system, an application required for at least one function (for example, a sound playing function, an image playing function, etc.). The storage data area may store data (for example, audio data, image data, phone book, etc.) created according to the use of the mobile terminal 500, and the like. Further, the memory 520 may include a high speed random access memory, and may also include a nonvolatile memory. For example, at least one disk storage device, flash memory device, or other volatile solid state storage device.
可选地,处理器510可以与存储器520耦合,并且用于执行存储器520中存储的指令。其中,在处理器510执行所述指令时,处理器用于执行本申请实施例中由处理器执行的步骤和/或操作,但本申请实施例不限于此。Alternatively, processor 510 can be coupled to memory 520 and used to execute instructions stored in memory 520. The processor is configured to perform the steps and/or operations performed by the processor in the embodiment of the present application, but the embodiment of the present application is not limited thereto.
RF电路530可用于收发信息或用于在通话过程中的信号的接收和发送。通常,RF电路530可以包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。其中的天线可以包括所有手机上的天线,例如:主天线和副天线,其中,副天线可以为全球定位系统(Global Positioning System,GPS)天线、Wi-Fi天线、NFC天线等。多种副天线可以共用一个天线本体。此外,RF电路530还可以通过无线通信技术与网络和其他设备通信。例如,可以接收基站发送的下行信息,并且可以进一步将接收到的下行信息传输至处理器510进行处理。或者可以向基站发送上行数据。该无线通信技术可以使用任一通信标准或协议,包括但不限于全球移动通讯系统(Global System of Mobile communication,GSM)、通用分组无线服务(General Packet Radio Service,GPRS)、码分多址(Code Division Multiple Access,CDMA)、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging Service,SMS)等。The RF circuit 530 can be used to transceive information or for receiving and transmitting signals during a call. In general, RF circuit 530 can include, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. The antenna may include antennas on all mobile phones, for example, a primary antenna and a secondary antenna, wherein the secondary antenna may be a Global Positioning System (GPS) antenna, a Wi-Fi antenna, an NFC antenna, or the like. A plurality of secondary antennas can share one antenna body. In addition, RF circuitry 530 can also communicate with the network and other devices via wireless communication techniques. For example, the downlink information sent by the base station may be received, and the received downlink information may be further transmitted to the processor 510 for processing. Or the uplink data can be sent to the base station. The wireless communication technology may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code). Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc.
输入单元540可以用于接收输入的数字或字符信息,以及产生与移动终端500的用户设置以及功能控制有关的键信号输入。具体地,输入单元540可以包括触摸屏541以及其他输入设备542。触摸屏541,也称为触控面板,可以用于收集用户在其上或附近的触摸操作(例如,用户使用手指、触笔等任何适合的物体或附件在触摸屏541上或在触摸屏541附近的操作),并根据预先设定的程序驱动相应的连接装置。可选的,触摸屏541可以包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置可以用于检测用户的触摸方位,检测触摸操作对应的信号,并将该触摸操作对应的触摸信息(例如,触摸信号、触摸方位信息等)传送给触摸控制器。触摸控制器可以用于接收来自于触摸检测装置的触摸信息,将该触摸信息转换成触点坐标,然后将该触点坐标的信息发送给处理器510。此外,该触摸控制器还可以用于接收处理器510发来的命令,并且执行该命令。The input unit 540 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the mobile terminal 500. In particular, input unit 540 can include touch screen 541 and other input devices 542. A touch screen 541, also referred to as a touch panel, can be used to collect touch operations on or near the user (eg, the user's operation on or near the touch screen 541 using any suitable object or accessory, such as a finger, stylus, or the like. ) and drive the corresponding connection device according to a preset program. Alternatively, the touch screen 541 may include two parts of a touch detection device and a touch controller. The touch detection device may be configured to detect a touch orientation of the user, detect a signal corresponding to the touch operation, and transmit touch information (eg, a touch signal, touch orientation information, and the like) corresponding to the touch operation to the touch controller. The touch controller may be configured to receive touch information from the touch detection device, convert the touch information into contact coordinates, and then transmit the information of the contact coordinates to the processor 510. In addition, the touch controller can also be used to receive commands from the processor 510 and execute the commands.
可选地,触摸屏541可以采用电阻式、电容式、红外线以及表面声波等多种类型来实现。除了触摸屏541,输入单元540还可以包括其他输入设备542。具体地,其他输入设备542可以包括但不限于物理键盘、功能键(例如,音量控制按键、电源开关按键)、轨迹球、鼠标、操作杆等中的一种或多种。 Alternatively, the touch screen 541 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch screen 541, the input unit 540 can also include other input devices 542. In particular, other input devices 542 may include, but are not limited to, one or more of a physical keyboard, function keys (eg, volume control buttons, power switch buttons), trackballs, mice, joysticks, and the like.
显示单元550可以用于显示由用户输入的信息或向用户提供的信息以及移动终端500的各种菜单。显示单元550可以包括显示面板551,可选的,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板541。进一步的,触摸屏541可覆盖显示面板551。当触摸屏541检测到在其上或附近的触摸操作后,将该触摸操作的信息传送给处理器510以确定触摸事件的类型,处理器510可以根据触摸事件的类型在显示面板551上提供相应的视觉输出。虽然在图12中,触摸屏541与显示面板551是作为两个独立的部件来实现移动终端500的输入和输入功能,但是在某些实施例中,可以将触摸屏541与显示面板551集成而实现移动终端500的输入和输出功能。The display unit 550 can be used to display information input by the user or information provided to the user and various menus of the mobile terminal 500. The display unit 550 can include a display panel 551. Alternatively, the display panel 541 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. Further, the touch screen 541 can cover the display panel 551. When the touch screen 541 detects a touch operation on or near it, the information of the touch operation is transmitted to the processor 510 to determine the type of the touch event, and the processor 510 can provide a corresponding on the display panel 551 according to the type of the touch event. Visual output. Although the touch screen 541 and the display panel 551 are two separate components to implement the input and input functions of the mobile terminal 500 in FIG. 12, in some embodiments, the touch screen 541 may be integrated with the display panel 551 to implement the movement. Input and output functions of terminal 500.
上述至少一个传感器560可以包括运动传感器,该运动传感器可以用于获取终端设备的运动数据,并由此确定终端设备的运动状态。其中,该运动状态可以包括静止状态或移动状态。或者,该运动传感器也可以将获取到的运动数据传输至处理器510,由处理器510根据该运动数据,确定终端设备当前的运动状态。The at least one sensor 560 described above may include a motion sensor that can be used to acquire motion data of the terminal device and thereby determine the motion state of the terminal device. Wherein, the motion state may include a stationary state or a moving state. Alternatively, the motion sensor may also transmit the acquired motion data to the processor 510, and the processor 510 determines the current motion state of the terminal device according to the motion data.
可选地,该至少一个传感器560还可以包括其它传感器,例如,光传感器、重力传感器(gravity sensor)等。具体地,光传感器可包括环境光传感器和接近光传感器。其中,环境光传感器可以根据环境光线的明暗来调节显示面板541的亮度。接近光传感器可以检测是否有物体靠近或接触终端设备,并在移动终端500移动到耳边时,关闭显示面板541和/或背光。重力传感器可以用于检测终端设备在各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可以用于识别终端设备姿态的应用(例如,横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(例如,计步器、敲击)等。该至少一个传感器560还可以包括陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器,在此不再赘述。Optionally, the at least one sensor 560 may further include other sensors, such as a light sensor, a gravity sensor, and the like. In particular, the light sensor can include an ambient light sensor and a proximity light sensor. The ambient light sensor can adjust the brightness of the display panel 541 according to the brightness of the ambient light. The proximity light sensor can detect whether an object approaches or contacts the terminal device, and turns off the display panel 541 and/or the backlight when the mobile terminal 500 moves to the ear. The gravity sensor can be used to detect the acceleration of the terminal device in various directions (usually three axes), and the magnitude and direction of gravity can be detected at rest, which can be used to identify the posture of the terminal device (for example, horizontal and vertical screen switching, correlation Game, magnetometer attitude calibration), vibration recognition related functions (for example, pedometer, tap). The at least one sensor 560 may further include other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, and details are not described herein.
可选地,音频电路570、扬声器571和麦克风572可以提供用户与移动终端500之间的音频接口。音频电路570可以用于将接收到的音频数据转换为电信号,并将电信号传输到扬声器571。扬声器571可以用于将接收到的电信号转换为声音信号后将其输出。另一方面,麦克风572可以用于将收集的声音信号转换为电信号,并传输至音频电路,音频电路570可以将接收到的电信号转换为音频数据,再将音频数据输出至RF电路530以发送给其它设备,或者将音频数据输出至存储器520以便进一步处理。Alternatively, audio circuit 570, speaker 571, and microphone 572 may provide an audio interface between the user and mobile terminal 500. The audio circuit 570 can be used to convert the received audio data into an electrical signal and transmit the electrical signal to the speaker 571. The speaker 571 can be used to convert the received electrical signal into a sound signal and output it. On the other hand, the microphone 572 can be used to convert the collected sound signal into an electrical signal and transmit it to an audio circuit, and the audio circuit 570 can convert the received electrical signal into audio data, and then output the audio data to the RF circuit 530. Send to other devices or output audio data to memory 520 for further processing.
可选地,移动终端500还可以包括用于为各个部件供电的电源580(例如,电池)。优选的,电源可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。Alternatively, the mobile terminal 500 may also include a power source 580 (eg, a battery) for powering various components. Preferably, the power source can be logically connected to the processor 510 through the power management system to manage functions such as charging, discharging, and power management through the power management system.
应理解,尽管并未示出,移动终端500还可以包括无线保真(Wireless Fidelity,WiFi)模块、蓝牙模块等,在此不再赘述。It should be understood that, although not shown, the mobile terminal 500 may further include a Wireless Fidelity (WiFi) module, a Bluetooth module, and the like, and details are not described herein again.
还应理解,为了便于说明,图12仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请各实施例的具体描述。It should be understood that, for convenience of description, FIG. 12 only shows a part related to the embodiment of the present application, and the specific technical details are not disclosed. Please refer to the specific description of the embodiments of the present application.
本申请实施例还提供了一种计算机可读介质,用于存储计算机程序,该计算机程序包括用于执行上述方法的指令。The embodiment of the present application further provides a computer readable medium for storing a computer program, the computer program comprising instructions for executing the above method.
应理解,为了简洁,本文对于实施例的描述着重于强调各个实施例的不同之处。因此,除非文中明确说明或者可以从上下文看出,本文各个实施例之间可以相互参考。It should be understood that the description of the embodiments herein has been emphasized to emphasize the differences of the various embodiments for the sake of brevity. Therefore, the various embodiments herein may be referred to each other unless the context clearly dictates or can be seen from the context.
本领域普通技术人员可以意识到,结合本文中所公开的实施例中描述的各方法步骤 和单元,能够以电子硬件、计算机软件或者二者的结合来实现。为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各实施例的步骤及组成。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。本领域普通技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。One of ordinary skill in the art will recognize the various method steps described in connection with the embodiments disclosed herein. And units can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the steps and components of the various embodiments have been described generally in terms of functionality in the foregoing description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. Different methods may be used to implement the described functionality for each particular application, but such implementation should not be considered to be beyond the scope of the application.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的。例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。例如,多个单元或组件可以结合或者可以集成到另一个系统。或一些特征可以忽略或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division, and the actual implementation may have another division manner. For example, multiple units or components may be combined or integrated into another system. Or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, or an electrical, mechanical or other form of connection.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本申请实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the embodiments of the present application.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be in essence or part of the contribution to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present application. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, and the like, which can store program codes. .
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。 The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any equivalents can be easily conceived by those skilled in the art within the technical scope disclosed in the present application. Modifications or substitutions are intended to be included within the scope of the present application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.

Claims (16)

  1. 一种拍照方法,其特征在于,包括:A photographing method, comprising:
    移动终端获取第一用户指令,根据所述第一用户指令启动拍照应用,开启取景窗口;The mobile terminal acquires a first user instruction, starts a photographing application according to the first user instruction, and opens a framing window;
    所述移动终端获取第二用户指令,对第一拍摄窗口内呈现的第一对象进行第一阶段的拍摄,得到第一图像,所述第一拍摄窗口为所述取景窗口的第一部分;The mobile terminal acquires a second user instruction, performs a first stage of shooting on the first object presented in the first shooting window, to obtain a first image, where the first shooting window is the first part of the framing window;
    所述移动终端获取第三用户指令,对第二拍摄窗口内呈现的第二对象进行第二阶段的拍摄,得到第二图像,所述第二拍摄窗口为所述取景窗口的第二部分;The mobile terminal acquires a third user instruction, performs a second stage of shooting on the second object presented in the second shooting window, to obtain a second image, where the second shooting window is the second part of the framing window;
    所述移动终端根据所述第一图像和所述第二图像,生成所述第一对象和所述第二对象的合影图像。The mobile terminal generates a group image of the first object and the second object according to the first image and the second image.
  2. 根据权利要求1所述的方法,其特征在于,所述移动终端对第二拍摄窗口内呈现的第二对象进行第二阶段的拍摄的过程中,所述方法还包括:The method according to claim 1, wherein the method further comprises: in the process of performing the second stage of shooting on the second object presented in the second shooting window, the method further comprises:
    所述移动终端的取景窗口内持续显示所述第一图像,其中,所述第一图像在所述取景窗口内占用的位置与所述第二拍摄窗口在所述取景窗口内占用的位置不同。The first image is continuously displayed in the viewfinder window of the mobile terminal, wherein a position occupied by the first image in the viewfinder window is different from a position occupied by the second capture window in the viewfinder window.
  3. 根据权利要求1或2所述的方法,其特征在于,所述移动终端获取第三用户指令,对第二拍摄窗口内呈现的第二对象进行第二阶段的拍摄,得到第二图像,包括:The method according to claim 1 or 2, wherein the mobile terminal acquires a third user instruction, and performs a second stage of shooting on the second object presented in the second shooting window to obtain a second image, including:
    所述移动终端在所述第二对象的背景图像与所述第一对象的背景图像满足拼接条件的情况下,对所述第二拍摄窗口内呈现的所述第二对象进行第二阶段的拍摄,得到所述第二图像。The mobile terminal performs a second stage of shooting on the second object presented in the second shooting window if the background image of the second object and the background image of the first object satisfy the splicing condition. And obtaining the second image.
  4. 根据权利要求3所述的方法,其特征在于,所述移动终端设备在所述第二对象的背景图像与所述第一对象的背景图像满足拼接条件的情况下,对所述第二拍摄窗口内呈现的所述第二对象进行第二阶段的拍摄之前,所述方法还包括:The method according to claim 3, wherein the mobile terminal device accesses the second shooting window in a case where a background image of the second object and a background image of the first object satisfy a splicing condition Before the second object presented in the second stage is taken, the method further includes:
    所述移动终端对所述第一对象和所述第二对象进行人脸识别,以确定所述第一对象的脸部位置和所述第二对象的脸部位置;The mobile terminal performs face recognition on the first object and the second object to determine a face position of the first object and a face position of the second object;
    所述移动终端确定所述第二对象的脸部位置与所述第一对象的脸部位置不重合。The mobile terminal determines that a face position of the second object does not coincide with a face position of the first object.
  5. 根据权利要求3或4所述的方法,其特征在于,所述移动终端在确定所述第二对象的背景图像与所述第一对象的背景图像不满足拼接条件的情况下,所述方法还包括:The method according to claim 3 or 4, wherein the method further determines that the mobile terminal determines that the background image of the second object and the background image of the first object do not satisfy the splicing condition. include:
    所述移动终端呈现第一提示信息,所述第一提示信息用于提示调整所述第二对象的背景图像。The mobile terminal presents first prompt information, and the first prompt information is used to prompt to adjust a background image of the second object.
  6. 根据权利要求4或5所述的方法,其特征在于,所述移动终端确定所述第二对象的脸部位置与所述第一对象的脸部位置重合的情况下,所述方法还包括:The method according to claim 4 or 5, wherein, in the case that the mobile terminal determines that the face position of the second object coincides with the face position of the first object, the method further includes:
    所述移动终端呈现第二提示信息,所述第二提示信息用于提示调整所述第二对象的脸部在所述第二拍摄窗口内的位置。The mobile terminal presents second prompt information, and the second prompt information is used to prompt to adjust a position of a face of the second object in the second shooting window.
  7. 根据权利要求6所述的方法,其特征在于,所述方法还包括:The method of claim 6 wherein the method further comprises:
    所述移动终端获取调整后的第二对象的脸部位置;The mobile terminal acquires an adjusted face position of the second object;
    以及,所述移动终端对所述第二拍摄窗口内呈现的第二对象进行第二阶段的拍摄,包括:And the second terminal shooting of the second object presented in the second shooting window by the mobile terminal, including:
    所述移动终端在确定调整后的所述第二对象的脸部位置与所述第一对象的脸部位置不发生重合的情况下,对所述第二拍摄窗口内呈现的调整后的所述第二对象进行第二阶段的拍摄,得到所述第二图像。The mobile terminal determines, after the adjusted face position of the second object and the face position of the first object do not coincide, the adjusted image presented in the second shooting window The second object performs the second stage of shooting to obtain the second image.
  8. 根据权利要求1至7中任一项所述的方法,其特征在于,所述移动终端对根据所 述第一图像和所述第二图像,生成所述第一对象和所述第二对象的合影图像,包括:The method according to any one of claims 1 to 7, wherein the mobile terminal is based on Generating a first image and the second image, and generating a group image of the first object and the second object, including:
    所述移动终端获取第四用户指令,并根据所述第四用户指令对所述第一图像和所述第二图像作拼接处理,生成所述第一对象和所述第二对象的合影图像。The mobile terminal acquires a fourth user instruction, and performs splicing processing on the first image and the second image according to the fourth user instruction to generate a group image of the first object and the second object.
  9. 一种移动终端,其特征在于,包括:A mobile terminal, comprising:
    处理器,用于获取第一用户指令,根据所述第一用户指令启动拍照应用,开启取景窗口;a processor, configured to acquire a first user instruction, start a photographing application according to the first user instruction, and open a viewfinder window;
    所述处理器,还用于获取第二用户指令,对第一拍摄窗口内呈现的第一对象进行第一阶段的拍摄,得到第一图像,所述第一拍摄窗口为所述取景窗口的第一部分;The processor is further configured to acquire a second user instruction, perform a first stage of shooting on the first object presented in the first shooting window, to obtain a first image, where the first shooting window is the first of the framing windows portion;
    所述处理器,还用于获取第三用户指令,对第二拍摄窗口内呈现的第二对象进行第二阶段的拍摄,得到第二图像,所述第二拍摄窗口为所述取景窗口的第二部分;The processor is further configured to acquire a third user instruction, perform a second stage of shooting on the second object presented in the second shooting window, to obtain a second image, where the second shooting window is the first of the framing windows Two parts;
    所述处理器,还用于根据所述第一图像和所述第二图像,生成所述第一对象和所述第二对象的合影图像。The processor is further configured to generate a group image of the first object and the second object according to the first image and the second image.
  10. 根据权利要求9所述的移动终端,其特征在于,所述移动终端还包括:The mobile terminal according to claim 9, wherein the mobile terminal further comprises:
    显示器,用于在所述处理器对第二拍摄窗口内呈现的第二对象进行第二阶段的拍摄的过程中,在所述取景窗口内持续显示所述第一图像,其中,所述第一图像在所述取景窗口内占用的位置与所述第二拍摄窗口在所述取景窗口内占用的位置不同。a display for continuously displaying the first image in the framing window during a second stage of shooting of the second object presented in the second shooting window by the processor, wherein the first image The position occupied by the image in the framing window is different from the position occupied by the second shooting window in the framing window.
  11. 根据权利要求9或10所述的移动终端,其特征在于,所述处理器用于在确定所述第二对象的背景图像与所述第一对象的背景图像满足拼接条件的情况下,对所述第二拍摄窗口内呈现的所述第二对象进行第二阶段的拍摄,得到所述第二图像。The mobile terminal according to claim 9 or 10, wherein the processor is configured to: when it is determined that the background image of the second object and the background image of the first object satisfy a splicing condition The second object presented in the second shooting window performs the second stage of shooting to obtain the second image.
  12. 根据权利要求11所述的移动终端,其特征在于,所述处理器在确定所述第二对象的背景图像与所述第一对象的背景图像满足拼接条件的情况下,对所述第二拍摄窗口内呈现的所述第二对象进行第二阶段的拍摄之前,还用于:The mobile terminal according to claim 11, wherein the processor detects the second shot in a case where it is determined that the background image of the second object and the background image of the first object satisfy a splicing condition Before the second object presented in the window is subjected to the second stage of shooting, it is also used to:
    对所述第一对象和所述第二对象进行人脸识别,以确定所述第一对象的脸部位置和所述第二对象的脸部位置;Performing face recognition on the first object and the second object to determine a face position of the first object and a face position of the second object;
    确定所述第二对象的脸部位置与所述第一对象的脸部位置不重合。Determining that the face position of the second object does not coincide with the face position of the first object.
  13. 根据权利要求11或12所述的移动终端,其特征在于,所述处理器还包括:The mobile terminal according to claim 11 or 12, wherein the processor further comprises:
    显示器,用于在所述处理器确定所述第二对象的背景图像与所述第一对象的背景图像不满足拼接条件的情况下,呈现第一提示信息,所述第一提示信息用于提示调整所述第二对象的背景图像。a display, configured to: when the processor determines that the background image of the second object and the background image of the first object do not satisfy the splicing condition, the first prompt information is used, and the first prompt information is used for prompting Adjusting a background image of the second object.
  14. 根据权利要求12或13所述的移动终端,其特征在于,所述显示器用于在所述处理器确定所述第二对象的脸部位置与所述第一对象的脸部位置重合的情况下,呈现第二提示信息,所述第二提示信息用于提示调整所述第二对象的脸部在所述第二拍摄窗口内的位置。The mobile terminal according to claim 12 or 13, wherein the display is configured to be used when the processor determines that a face position of the second object coincides with a face position of the first object And presenting second prompt information, the second prompt information is used to prompt to adjust a position of the face of the second object in the second shooting window.
  15. 根据权利要求14所述的移动终端,其特征在于,所述处理器还用于:The mobile terminal according to claim 14, wherein the processor is further configured to:
    获取调整后的第二对象的脸部位置,并在确定调整后的所述第二对象的脸部位置与所述第一对象的脸部位置不发生重合的情况下,对所述第二拍摄窗口内呈现的调整后的所述第二对象进行第二阶段的拍摄,得到所述第二图像。Acquiring a face position of the adjusted second object, and determining that the adjusted second face position of the second object does not coincide with the face position of the first object The adjusted second object presented in the window performs the second stage of shooting to obtain the second image.
  16. 根据权利要求9至15中任一项所述的移动终端,其特征在于,所述处理器用于获取第四用户指令,并根据所述第四用户指令对所述第一图像和所述第二图像作拼接处理,生成所述第一对象和所述第二对象的合影图像。 The mobile terminal according to any one of claims 9 to 15, wherein the processor is configured to acquire a fourth user instruction, and to the first image and the second according to the fourth user instruction The image is spliced to generate a group image of the first object and the second object.
PCT/CN2017/087472 2016-12-24 2017-06-07 Photographing method and mobile terminal WO2018113203A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611210209.6 2016-12-24
CN201611210209 2016-12-24

Publications (1)

Publication Number Publication Date
WO2018113203A1 true WO2018113203A1 (en) 2018-06-28

Family

ID=62624625

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/087472 WO2018113203A1 (en) 2016-12-24 2017-06-07 Photographing method and mobile terminal

Country Status (1)

Country Link
WO (1) WO2018113203A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111466112A (en) * 2018-08-10 2020-07-28 华为技术有限公司 Image shooting method and electronic equipment
CN115442511A (en) * 2021-06-04 2022-12-06 Oppo广东移动通信有限公司 Photo shooting method and device, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070237421A1 (en) * 2006-03-29 2007-10-11 Eastman Kodak Company Recomposing photographs from multiple frames
CN104170371A (en) * 2014-01-03 2014-11-26 华为终端有限公司 Method of realizing self-service group photo and photographic device
CN104346157A (en) * 2013-08-06 2015-02-11 腾讯科技(深圳)有限公司 Picture processing method and device and terminal equipment
CN105657239A (en) * 2015-04-27 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Image processing method and device
CN106161964A (en) * 2016-08-31 2016-11-23 宇龙计算机通信科技(深圳)有限公司 A kind of photographic method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070237421A1 (en) * 2006-03-29 2007-10-11 Eastman Kodak Company Recomposing photographs from multiple frames
CN104346157A (en) * 2013-08-06 2015-02-11 腾讯科技(深圳)有限公司 Picture processing method and device and terminal equipment
CN104170371A (en) * 2014-01-03 2014-11-26 华为终端有限公司 Method of realizing self-service group photo and photographic device
CN105657239A (en) * 2015-04-27 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Image processing method and device
CN106161964A (en) * 2016-08-31 2016-11-23 宇龙计算机通信科技(深圳)有限公司 A kind of photographic method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111466112A (en) * 2018-08-10 2020-07-28 华为技术有限公司 Image shooting method and electronic equipment
CN115442511A (en) * 2021-06-04 2022-12-06 Oppo广东移动通信有限公司 Photo shooting method and device, terminal and storage medium

Similar Documents

Publication Publication Date Title
CN109891874B (en) Panoramic shooting method and device
US11336820B2 (en) Method and terminal for acquire panoramic image
US9344644B2 (en) Method and apparatus for image processing
WO2019183819A1 (en) Photographic method, photographic apparatus, and mobile terminal
WO2017020498A1 (en) Image shooting method and device
WO2021031609A1 (en) Living body detection method and device, electronic apparatus and storage medium
US20170064182A1 (en) Method and device for acquiring image file
CN108495032B (en) Image processing method, image processing device, storage medium and electronic equipment
EP3136699A1 (en) Method and device for connecting external equipment
WO2016019926A1 (en) Photo shooting method, device, and mobile terminal
CN108605096A (en) A kind of electronic equipment image pickup method and device
CN108632543B (en) Image display method, image display device, storage medium and electronic equipment
WO2017124899A1 (en) Information processing method, apparatus and electronic device
EP3113071A1 (en) Method and device for acquiring iris image
CN109889695A (en) A kind of image-region determines method, terminal and computer readable storage medium
WO2019076373A1 (en) Photographing method, mobile terminal and computer-readable storage medium
CN106534649A (en) Composing method and device for double rotary cameras and mobile terminal
CN108307105B (en) Shooting method, terminal and computer readable storage medium
CN110187769B (en) Preview image viewing method, equipment and computer readable storage medium
WO2018113203A1 (en) Photographing method and mobile terminal
CN113747056A (en) Photographing method and device and electronic equipment
CN106488168B (en) Method and device for switching angles of pictures collected in electronic terminal
CN107948876B (en) Method, device and medium for controlling sound box equipment
CN110121027B (en) Image processing method and terminal
CN111245629A (en) Conference control method, device, equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17882442

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17882442

Country of ref document: EP

Kind code of ref document: A1