WO2020020134A1 - Photographing method and mobile terminal - Google Patents

Photographing method and mobile terminal Download PDF

Info

Publication number
WO2020020134A1
WO2020020134A1 PCT/CN2019/097235 CN2019097235W WO2020020134A1 WO 2020020134 A1 WO2020020134 A1 WO 2020020134A1 CN 2019097235 W CN2019097235 W CN 2019097235W WO 2020020134 A1 WO2020020134 A1 WO 2020020134A1
Authority
WO
WIPO (PCT)
Prior art keywords
camera
mobile terminal
subject
shooting
adjust
Prior art date
Application number
PCT/CN2019/097235
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 WO2020020134A1 publication Critical patent/WO2020020134A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image

Definitions

  • the present disclosure relates to the field of communication technologies, and in particular, to a photographing method and a mobile terminal.
  • the subject In order to place the subject in a better position on the screen, at present, the subject is generally placed at a suitable position in the shooting screen by manually adjusting the shooting angle, or the stored subject is manually cropped to place the subject at A suitable location in the shooting screen.
  • the shooting angle For example, when a mother is shooting a child, she often needs to constantly adjust the shooting angle because the child is active, so that the child's avatar can be placed in a suitable position in the shooting screen.
  • the manual cropping method is more tedious to place the child's avatar in a suitable position in the shooting screen.
  • Some embodiments of the present disclosure provide a photographing method and a mobile terminal to solve the problem of tedious operations when the photographing method in the related art adjusts the position of a photographic subject in a screen.
  • some embodiments of the present disclosure provide a photographing method applied to a mobile terminal.
  • the mobile terminal includes a mobile terminal body and a camera disposed on the mobile terminal body.
  • the method includes:
  • some embodiments of the present disclosure further provide a mobile terminal, where the mobile terminal includes a mobile terminal body and a camera disposed on the mobile terminal body, including:
  • a shooting subject recognition module configured to collect a preview picture through the camera, and identify a shooting subject from the preview picture
  • An adjustment module is configured to adjust the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and adjust the internal optical axis offset of the camera.
  • some embodiments of the present disclosure further provide a mobile terminal including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program is processed by the processor
  • the steps of the above-mentioned shooting method are implemented when the camera is executed.
  • some embodiments of the present disclosure further provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program implements the steps of the foregoing photographing method when executed by a processor.
  • a preview screen is collected by the camera, and a shooting subject is identified from the preview screen; and the camera is adjusted relative to the mobile terminal body according to the position of the shooting subject in the preview screen. , Or / and, adjust the internal optical axis offset of the camera, so that the mobile terminal automatically adjusts the shooting angle during shooting, and the user no longer needs to manually adjust the position of the shooting subject in the preview screen, so that the shooting process Simple and convenient, improving shooting efficiency.
  • FIG. 1 is one of the flowcharts of the shooting method provided by some embodiments of the present disclosure
  • FIG. 2 is a second flowchart of a photographing method provided by some embodiments of the present disclosure.
  • FIG. 3 is one of the flowcharts of some steps of a photographing method provided by some embodiments of the present disclosure
  • FIG. 4 is a second flowchart of some steps of a photographing method provided by some embodiments of the present disclosure.
  • FIG. 5 is a third flowchart of a photographing method provided by some embodiments of the present disclosure.
  • FIG. 6 is one of the structural diagrams of a mobile terminal provided by some embodiments of the present disclosure.
  • FIG. 8 is a second structural diagram of an adjustment module provided by some embodiments of the present disclosure.
  • FIG. 9 is a third structural diagram of a photographic subject recognition module provided by some embodiments of the present disclosure.
  • FIG. 10 is a structural diagram of a mobile terminal according to another embodiment of the present disclosure.
  • FIG. 1 is one of the flowcharts of a photographing method provided by some embodiments of the present disclosure. As shown in FIG. 1, this embodiment provides a photographing method applied to a mobile terminal, where the mobile terminal includes a mobile terminal
  • the main body and the camera provided on the main body of the mobile terminal include the following steps:
  • Step 101 Collect a preview image through the camera, and identify a shooting subject from the preview image.
  • the shooting subject is the shooting subject.
  • the shooting subject is a human face. For example, when a mother photographs a child, the child's face is the subject.
  • the subject When there is only one subject in the preview screen, the subject is the subject.
  • the selection method can be set by the user manually clicking the subject in the preview screen, or it can be set automatically by the mobile terminal. For example, at this time, the mobile terminal will use the photographic subject that occupies the largest area of the preview screen as the photographic subject.
  • Step 102 Adjust the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and adjust the internal optical axis offset of the camera.
  • the purpose of the adjustment is to position the subject in the preview screen (the position is visible (Current position) to the main position.
  • the subject position may be manually specified by a user, or a suitable subject position may be selected from a preset subject position template.
  • the main body position is a certain area in the preview screen.
  • the main body position can be located in the middle of the preview screen, upper left corner, upper right corner, etc.
  • the shape of the main body position can be rectangular, triangular, circular, or star shape. limited.
  • the preview screen may include one or more candidate positions.
  • the candidate position is used as the subject position.
  • the candidate point whose center point is closest to the center point of the shooting subject is selected.
  • the selected position is used as the subject position, or a candidate position is designated by the user as the subject position.
  • the lower left corner of the preview screen is used as the origin of the plane rectangular coordinate system, and other positions of the preview screen can also be used as the origin of the plane rectangular coordinate system.
  • the upper left corner or the center position of the preview screen can be selected according to actual conditions. , Will not repeat them here.
  • the camera of the mobile terminal can slide in the vertical direction, after obtaining the vertical distance between the coordinates of the center point of the subject position and the coordinates of the center point of the shooting subject, adjust the camera to move in the vertical direction so that the position of the subject
  • the distance between the ordinate of the center point coordinate and the ordinate of the center point coordinate of the subject is less than a preset vertical distance threshold.
  • the vertical distance threshold can be set according to the actual situation, which is not limited here.
  • the camera of the mobile terminal can slide in the horizontal direction, after obtaining the horizontal distance between the center point coordinates of the subject position and the center point coordinates of the shooting subject, adjust the camera to move in the horizontal direction so that the center point coordinates of the subject position
  • the distance between the abscissa of and the abscissa of the center point of the subject is less than a preset horizontal distance threshold.
  • the horizontal distance threshold can be set according to the actual situation and is not limited here.
  • the subject in the preview screen Since the area occupied by the subject in the preview screen is not exactly the same as the shape and size of the area occupied by the subject position in the preview screen, in this embodiment, the subject does not need to be in the preview screen.
  • the occupied area completely coincides with the area where the subject's position is located.
  • a preset distance threshold can be calculated by a European formula according to the preset horizontal distance threshold and the preset vertical distance threshold.
  • the above-mentioned mobile terminal may be any mobile terminal including a camera, such as: a mobile phone, a tablet computer, a laptop computer, a personal digital assistant (PDA for short) ), Mobile Internet device (Mobile Internet Device, MID) or wearable device (Wearable Device).
  • a camera such as: a mobile phone, a tablet computer, a laptop computer, a personal digital assistant (PDA for short)
  • Mobile Internet device Mobile Internet Device, MID
  • Wearable Device Wearable Device
  • a preview screen is collected by the camera, and a shooting subject is identified from the preview screen; and the camera is adjusted relative to the mobile terminal according to the position of the shooting subject in the preview screen.
  • FIG. 2 is a second flowchart of a photographing method provided by some embodiments of the present disclosure. As shown in FIG. 2, this embodiment provides a photographing method.
  • a camera is a vertically movable camera, including The following steps:
  • Step 201 Collect a preview image through the camera, and identify a shooting subject from the preview image.
  • Step 201 is the same as step 101.
  • Step 101 For details, refer to the description in step 101, and details are not described herein again.
  • Step 202 Adjust the camera to move in a vertical direction relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and adjust the internal optical axis of the camera in a horizontal direction. Offset.
  • the lower left corner of the preview screen is used as the origin of the flat rectangular coordinate system, and other positions of the preview picture may also be used as the origin of the flat rectangular coordinate system.
  • the situation is selected, and is not repeated here.
  • Obtain the center point coordinates of the subject position and the center point coordinates of the subject in the preview screen and calculate the horizontal and vertical distances between the center point coordinates of the subject position and the center point coordinates of the subject, if the horizontal distance is less than a preset level Distance threshold, the vertical distance is not less than the preset vertical distance threshold, indicating that the subject is matched with the subject position in the horizontal direction, and the subject is not matched with the subject position in the vertical direction.
  • the horizontal distance between the coordinates of the center point of the position and the coordinates of the center point of the subject is adjusted. You only need to adjust the camera to move in the vertical direction so that the position of the subject in the preview screen matches the position of the subject.
  • the shooting subject matches the position of the subject in the vertical direction, and the shooting subject is not in the horizontal direction.
  • the subject position matches. At this time, there is no need to adjust the vertical distance between the coordinates of the center point of the subject position and the coordinates of the center point of the shooting subject. You only need to adjust the horizontal offset of the internal optical axis of the camera. Match the position of the subject in the preview screen with the position of the subject.
  • the vertical position of the center point coordinates of the subject position can be adjusted by adjusting the camera to move in the vertical direction.
  • the distance between the coordinate and the ordinate of the center point of the subject is less than a preset vertical distance threshold; the horizontal coordinate of the center point of the subject's position is adjusted by adjusting the horizontal offset of the internal optical axis of the camera
  • the distance from the abscissa of the center point of the shooting subject is smaller than a preset horizontal distance threshold, so that the position of the shooting subject in the preview screen matches the position of the subject.
  • a preview screen is collected by the camera, and a shooting subject is identified from the preview screen; and the camera is adjusted relative to the mobile terminal according to the position of the shooting subject in the preview screen.
  • the subject moves in the vertical direction, or / and, adjusts the offset of the internal optical axis of the camera in the horizontal direction, so that when shooting, the mobile terminal automatically adjusts the shooting angle of the camera in the vertical direction or / And automatically adjust the horizontal offset of the internal optical axis of the camera, users no longer need to manually adjust the vertical or / and horizontal position of the subject in the preview screen, which makes the shooting process simple and convenient and improves the shooting effectiveness.
  • step 202 includes:
  • Step 2021 In the case where the amplitude of the shake of the mobile terminal is greater than a preset threshold, if a preset input operation is detected, adjust the position of the camera relative to the mobile terminal body, or / and, adjust the internal optical axis of the camera Offset.
  • the preset threshold can be set according to the actual situation, and is not limited here. In the case where the amplitude of the jitter of the mobile terminal is greater than a preset threshold, it indicates that the position of the mobile terminal at this time is unstable, and the current position is not the final position of the shooting. At this time, the mobile terminal does not automatically adjust the position of the camera relative to the mobile terminal body, or / and, adjust the internal optical axis of the camera according to the position of the shooting subject in the preview screen and the position of the subject.
  • the position of the camera relative to the main body of the mobile terminal or / and the internal optical axis offset of the camera is adjusted so that the position of the shooting subject in the preview screen is different from the position of the camera The subject position matches.
  • the preset input operations include taking pictures or videos.
  • Step 2022 Generate an image file corresponding to the preview image collected by the camera after the adjustment.
  • an image file corresponding to the preview screen is generated. If the preset input operation is taking a picture, the generated image file is a picture, and the subject in the picture matches the position of the subject; if the preset input operation is a video, the generated image file is a video, in which the subject and the subject are shot The positions match.
  • the position of the camera relative to the main body of the mobile terminal or / and the internal optical axis offset of the camera is adjusted so that The position of the shooting subject in the preview screen matches the position of the subject, and then an image file corresponding to the preview screen is generated.
  • the mobile terminal automatically adjusts the shooting angle when shooting, and the user no longer needs to manually adjust the position of the shooting subject in the preview screen, which makes the shooting process simple and convenient and improves the shooting efficiency.
  • step 202 includes:
  • Step 2021 ' Adjust the position of the camera relative to the main body of the mobile terminal according to the first adjustment range, or / and adjust the internal optical axis of the camera when the shake amplitude of the mobile terminal is not greater than a preset threshold Offset.
  • the amplitude of the jitter of the mobile terminal is not greater than a preset threshold, it indicates that the position of the mobile terminal at this time is stable, and the user may shoot at this position.
  • the position of the camera relative to the main body of the mobile terminal is adjusted according to the first adjustment range, or / and the internal optical axis offset of the camera is adjusted so that the position of the photographic subject in the preview screen and The subject positions are matched to prepare for shooting in advance.
  • Step 2022 ' if a preset input operation is detected, adjust the position of the camera relative to the mobile terminal body according to the second adjustment range, or / and adjust the internal optical axis offset of the camera; wherein, the second adjustment range Less than the first adjustment.
  • the preset input operations include taking pictures or videos. Because the position of the camera relative to the main body of the mobile terminal or / and the internal optical axis offset of the camera is adjusted to a time period when a preset input operation is detected according to the first adjustment range, the position of the mobile terminal will slightly move, and the camera The position of the camera will also be slightly moved accordingly. Therefore, after the preset input operation is detected, the position of the camera relative to the main body of the mobile terminal or / and the internal optical axis offset of the camera needs to be adjusted again according to the second adjustment range. Adjustment, the second adjustment range is smaller than the first adjustment range.
  • Adjusting the position of the camera relative to the main body of the mobile terminal or / and the internal optical axis offset of the camera according to the first adjustment range in advance can improve the position or the position of the camera relative to the main body of the mobile terminal after detecting a preset input operation. / And the processing speed of the camera's internal optical axis offset.
  • Step 2023 ' Generate an image file corresponding to the preview image acquired after the camera adjusts according to the second adjustment range.
  • an image file corresponding to a preview image acquired after the camera adjusts according to the second adjustment range is generated. If the preset input operation is taking a picture, the generated image file is a picture, and the subject in the picture matches the position of the subject; if the preset input operation is a video, the generated image file is a video, in which the subject and the subject are shot The positions match.
  • the position of the camera relative to the mobile terminal body is adjusted according to the first adjustment range, or / and the internal optical axis offset of the camera is adjusted To match the position of the shooting subject in the preview screen with the position of the subject to prepare for shooting in advance, and if a preset input operation is detected, adjust the position of the camera relative to the mobile terminal body according to the second adjustment range or / and The internal optical axis offset of the camera, because the second adjustment range is smaller than the first adjustment range, can improve the position of the camera relative to the main body of the mobile terminal or / and the camera after the mobile terminal detects a preset input operation The speed of adjusting the internal optical axis offset to the proper position improves the user experience.
  • FIG. 5 is a flowchart of a photographing method provided by some embodiments of the present disclosure. As shown in FIG. 5, this embodiment provides a photographing method, including:
  • Step 301 Process a plurality of preselected subject positions according to a deep learning algorithm to obtain the subject position of the preview picture, or use the subject position preset by the user as the subject position of the preview picture.
  • the user can select the subject positions of the person who is considered to be better in daily photography to obtain a plurality of pre-selected subject positions, and then process the multiple subject positions according to a deep learning algorithm to obtain a candidate position for the preview screen.
  • the preview screen may include one or more candidate positions.
  • the candidate position is used as the subject position.
  • the candidate point whose center point is closest to the center point of the shooting subject is selected.
  • the selected position is used as the subject position, or a candidate position is designated by the user as the subject position.
  • Step 302 Perform face recognition on the preview picture to obtain at least one face object.
  • the face recognition method is used to perform face recognition on the preview picture, and at least one face object is obtained.
  • Step 303 In the case where one face object is obtained, use the obtained face object as a photographing subject.
  • the face object is the subject.
  • Step 304 When a plurality of the face objects are obtained, select one face object from the plurality of face objects as a photographing subject.
  • the face object that occupies the largest preview screen area among the multiple face objects may be taken as the shooting subject; or, the center point of the subject position and the center point of each face object may be obtained.
  • a face object can also be manually selected by the user as a photographing subject from a plurality of face objects.
  • Step 305 Adjust the position of the camera relative to the mobile terminal body according to the position of the subject and the position of the shooting subject in the preview screen, or / and adjust the internal optical axis offset of the camera so that The position of the shooting subject in the preview screen matches the position of the subject.
  • Step 305 is the same as step 102.
  • Step 305 refers to the description in step 102, and details are not described herein again.
  • a plurality of preselected subject positions are processed according to a deep learning algorithm to obtain the subject position of the preview picture, or the subject position preset by the user is used as the subject position of the preview picture; Performing face recognition on the preview picture to obtain at least one face object; in the case of obtaining one of the face objects, using the obtained face object as a photographing subject; adjusting the camera's relative to the main body of the mobile terminal Position or / and adjust the internal optical axis offset of the camera, so that the position of the shooting subject in the preview screen matches the position of the subject.
  • the mobile terminal automatically adjusts the shooting angle when shooting, and the user no longer needs to manually adjust the position of the shooting subject in the preview screen, which makes the shooting process simple and convenient and improves the shooting efficiency.
  • FIG. 6 is a flowchart of a photographing method provided by some embodiments of the present disclosure.
  • this embodiment provides a mobile terminal 400.
  • the mobile terminal 400 includes a mobile terminal body and
  • the camera on the main body of the mobile terminal includes:
  • a shooting subject recognition module 401 configured to collect a preview picture through the camera, and identify a shooting subject from the preview picture;
  • An adjustment module 402 is configured to adjust the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and adjust the internal optical axis offset of the camera.
  • the camera is a camera movable in a vertical direction
  • the adjustment module 402 is specifically configured to adjust the camera to move in a vertical direction relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and, adjust the internal light of the camera The offset of the axis in the horizontal direction.
  • the adjustment module 402 includes a first adjustment sub-module 4021 and a first generation sub-module 4022.
  • the first adjustment sub-module 4021 is configured to adjust the position of the camera relative to the main body of the mobile terminal or / and the mobile terminal if a predetermined input operation is detected when the amplitude of the mobile terminal shakes is greater than a preset threshold.
  • the first generating sub-module 4022 is configured to generate an image file corresponding to a preview image collected by the camera after the adjustment.
  • the adjustment module 402 includes a second adjustment sub-module 4023, a third adjustment sub-module 4024, and a second generation sub-module 4025.
  • a second adjustment sub-module 4023 is configured to adjust the position of the camera relative to the main body of the mobile terminal or / and the camera according to the first adjustment amplitude when the vibration amplitude of the mobile terminal is not greater than a preset threshold.
  • a third adjustment sub-module 4024 is configured to adjust the position of the camera relative to the main body of the mobile terminal, or / and the internal optical axis offset of the camera according to the second adjustment range if a preset input operation is detected; wherein, The second adjustment range is smaller than the first adjustment range;
  • the second generation sub-module 4025 is configured to generate an image file corresponding to the preview image acquired after the camera adjusts according to the second adjustment range.
  • the photographic subject recognition module 401 includes a face object acquisition sub-module 4011, a first photographic subject acquisition sub-module 4012, and a second photographic subject acquisition sub-module 4013.
  • the face object acquisition sub-module 4011 is configured to perform face recognition on the preview picture to obtain at least one face object
  • a first shooting subject acquisition sub-module 4012 configured to use the obtained face object as a shooting subject when one of the face objects is obtained;
  • a second shooting subject acquisition sub-module 4013 is configured to select a face object as a shooting subject from a plurality of the face objects when a plurality of the face objects are obtained.
  • the mobile terminal 400 further includes: a subject position obtaining module, the subject position obtaining module is configured to process a plurality of preselected subject positions according to a deep learning algorithm to obtain the subject position
  • the main body position of the preview screen, or the main body position preset by the user is used as the main body position of the preview screen.
  • the shooting subject recognition module 401 includes:
  • a face object acquisition sub-module 4011 configured to perform face recognition on the shooting picture to obtain at least one face object
  • a first shooting subject acquisition sub-module 4012 configured to use the obtained human face object as a shooting subject when one of the human face objects is obtained;
  • a second shooting subject acquisition submodule 4013 configured to select a face object as a shooting subject from a plurality of the face objects in a case where a plurality of the face objects are obtained;
  • the adjustment module 402 is specifically configured to adjust the position of the camera relative to the mobile terminal body according to the position of the subject and the position of the shooting subject in the preview screen, or / and adjust the internal optical axis offset of the camera Measure to make the position of the shooting subject in the preview screen match the position of the subject.
  • the mobile terminal 400 can implement various processes implemented by the mobile terminal in the method embodiments in FIG. 1 to FIG. 5. To avoid repetition, details are not described herein again.
  • the mobile terminal 400 of some embodiments of the present disclosure collects a preview screen through the camera, and identifies a shooting subject from the preview screen; and adjusts the camera relative to the movement according to the position of the shooting subject in the preview screen.
  • FIG. 10 is a schematic diagram of a hardware structure of a mobile terminal that implements various embodiments of the present disclosure.
  • the mobile terminal 500 includes, but is not limited to, a radio frequency unit 501, a network module 502, an audio output unit 503, and an input unit 504. , Sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor 510, power supply 511, and other components.
  • the structure of the mobile terminal shown in FIG. 10 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or fewer components than shown in the figure, or combine some components, or different components. Layout.
  • the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a car terminal, a wearable device, a pedometer, and the like.
  • the processor 510 is configured to collect a preview screen through the camera, and identify a shooting subject from the preview screen; and adjust a position of the camera relative to the mobile terminal body according to a position of the shooting subject in the preview screen. Position, or / and, adjust the internal optical axis offset of the camera.
  • the camera is a camera that is movable in a vertical direction; the processor 510 executes the adjustment of the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, Or / and, the step of adjusting an internal optical axis offset of the camera includes:
  • the processor 510 performing the steps of adjusting the position of the camera relative to the main body of the mobile terminal or / and adjusting the internal optical axis offset of the camera includes:
  • the position of the camera relative to the main body of the mobile terminal or / and the internal optical axis offset of the camera is adjusted so that The position of the shooting subject in the preview screen matches the position of the subject; generating an image file corresponding to the preview screen captured by the camera after adjustment.
  • the processor 510 performing the steps of adjusting the position of the camera relative to the main body of the mobile terminal or / and adjusting the internal optical axis offset of the camera includes:
  • the processor 510 executes:
  • the processor 510 executing the steps of collecting a preview screen through the camera and identifying a shooting subject from the preview screen includes:
  • one face object is selected as a photographing subject from the plurality of the face objects.
  • the processor 510 executes the steps of adjusting the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and adjusting the internal optical axis offset of the camera, including: :
  • the position of the subject in the preview screen matches the position of the subject.
  • the mobile terminal 500 can implement various processes implemented by the mobile terminal in the foregoing embodiments. To avoid repetition, details are not described herein again.
  • the mobile terminal 500 of some embodiments of the present disclosure collects a preview screen through the camera, and identifies a shooting subject from the preview screen; and adjusts the camera relative to the movement according to the position of the shooting subject in the preview screen.
  • the radio frequency unit 501 may be used to receive and send signals during the process of transmitting and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 510; To send uplink data to the base station.
  • the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
  • the mobile terminal provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive email, browse web pages, and access streaming media.
  • the audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into audio signals and output them as sound. Moreover, the audio output unit 503 may also provide audio output (for example, a call signal receiving sound, a message receiving sound, etc.) related to a specific function performed by the mobile terminal 500.
  • the audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 504 is used for receiving audio or video signals.
  • the input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042.
  • the graphics processor 5041 pairs images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frames may be displayed on the display unit 506.
  • the image frames processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502.
  • the microphone 5042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 501 in the case of a telephone call mode and output.
  • the mobile terminal 500 further includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 5061 and the mobile terminal 500 when the mobile terminal 500 moves to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, which can be used to identify mobile terminal attitudes (such as horizontal and vertical screen switching, related games , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc .; sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, Infrared sensors, etc. are not repeated here.
  • the display unit 506 is configured to display information input by the user or information provided to the user.
  • the display unit 506 may include a display panel 5061.
  • the display panel 5061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the user input unit 507 may be used to receive inputted numeric or character information, and generate key signal inputs related to user settings and function control of the mobile terminal.
  • the user input unit 507 includes a touch panel 5071 and other input devices 5072.
  • Touch panel 5071 also known as touch screen, can collect user's touch operations on or near it (such as the user using a finger, stylus, etc. any suitable object or accessory on touch panel 5071 or near touch panel 5071 operating).
  • the touch panel 5071 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, and detects the signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and sends it To the processor 510, receive the command sent by the processor 510 and execute it.
  • various types such as resistive, capacitive, infrared, and surface acoustic wave can be used to implement the touch panel 5071.
  • the user input unit 507 may also include other input devices 5072.
  • other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, and details are not described herein again.
  • the touch panel 5071 may be overlaid on the display panel 5061. After the touch panel 5071 detects a touch operation on or near the touch panel 5071, the touch panel 5071 transmits the touch operation to the processor 510 to determine the type of touch event. The type of event provides corresponding visual output on the display panel 5061.
  • the touch panel 5071 and the display panel 5061 are implemented as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.
  • the interface unit 508 is an interface through which an external device is connected to the mobile terminal 500.
  • the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, and audio input / output (I / O) port, video I / O port, headphone port, and more.
  • the interface unit 508 may be used to receive an input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 500 or may be used for the mobile terminal 500 and external Transfer data between devices.
  • the memory 509 can be used to store software programs and various data.
  • the memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, etc.), etc .; the storage data area may store data according to Data (such as audio data, phone book, etc.) created by the use of mobile phones.
  • the memory 509 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 510 is a control center of the mobile terminal, and uses various interfaces and lines to connect various parts of the entire mobile terminal, and runs or executes software programs and / or modules stored in the memory 509 and calls data stored in the memory 509 , Perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole.
  • the processor 510 may include one or more processing units; optionally, the processor 510 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, etc.
  • the tuning processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 510.
  • the mobile terminal 500 may further include a power source 511 (such as a battery) for supplying power to various components.
  • a power source 511 such as a battery
  • the power source 511 may be logically connected to the processor 510 through a power management system, thereby implementing management of charging, discharging, and power consumption through the power management system. Management and other functions.
  • the mobile terminal 500 includes some functional modules that are not shown, and details are not described herein again.
  • some embodiments of the present disclosure further provide a mobile terminal, including a processor 510, a memory 509, and a computer program stored in the memory 509 and executable on the processor 510.
  • the computer program is processed by the processor.
  • 510 When 510 is executed, the processes of the foregoing shooting method embodiments are implemented, and the same technical effects can be achieved. To avoid repetition, details are not described herein again.
  • Some embodiments of the present disclosure further provide a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The present disclosure provides a photographing method and a mobile terminal, said method comprising: collecting a preview image by means of a camera, and recognizing a photographed subject from the preview image; and according to the position of the photographed subject in the preview image, adjusting the position of the camera relative to the body of a mobile terminal, and/or adjusting an internal optical axis offset of the camera.

Description

拍摄方法及移动终端Shooting method and mobile terminal
相关申请的交叉引用Cross-reference to related applications
本申请主张在2018年7月26日在中国提交的中国专利申请号No.201810832500.X的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201810832500.X filed in China on July 26, 2018, the entire contents of which are hereby incorporated by reference.
技术领域Technical field
本公开涉及通信技术领域,尤其涉及一种拍摄方法及移动终端。The present disclosure relates to the field of communication technologies, and in particular, to a photographing method and a mobile terminal.
背景技术Background technique
为了将拍摄对象置于画面的较优位置,目前,一般通过手动调整拍摄角度来将拍摄对象放置在拍摄画面中的合适位置,或者通过对已存储的拍摄图像进行手动裁剪来将拍摄对象放置在拍摄画面中的合适位置。在某些场景下,例如,妈妈给小孩拍摄时,常因孩子好动需要不断的调整拍摄角度,才能将孩子的头像放置在拍摄画面中的合适位置,而如果采用后期对已拍摄的图像进行手动裁剪的方式,来将孩子的头像放置在拍摄画面中的合适位置又比较繁琐。In order to place the subject in a better position on the screen, at present, the subject is generally placed at a suitable position in the shooting screen by manually adjusting the shooting angle, or the stored subject is manually cropped to place the subject at A suitable location in the shooting screen. In some scenes, for example, when a mother is shooting a child, she often needs to constantly adjust the shooting angle because the child is active, so that the child's avatar can be placed in a suitable position in the shooting screen. The manual cropping method is more tedious to place the child's avatar in a suitable position in the shooting screen.
由此可见,相关技术中的调整拍摄对象在画面中的位置的方式,使用时非常不方便,拍摄效率低。It can be seen that the manner of adjusting the position of the photographic subject in the screen in the related art is very inconvenient to use and the photographing efficiency is low.
发明内容Summary of the Invention
本公开的一些实施例提供一种拍摄方法及移动终端,以解决相关技术中拍摄方法在调整拍摄对象在画面中的位置时,操作繁琐的问题。Some embodiments of the present disclosure provide a photographing method and a mobile terminal to solve the problem of tedious operations when the photographing method in the related art adjusts the position of a photographic subject in a screen.
为解决上述技术问题,本公开是这样实现的:To solve the above technical problems, the present disclosure is implemented as follows:
第一方面,本公开的一些实施例提供了一种拍摄方法,应用于移动终端,所述移动终端包括移动终端主体及设置在所述移动终端主体上的摄像头,所述方法包括:In a first aspect, some embodiments of the present disclosure provide a photographing method applied to a mobile terminal. The mobile terminal includes a mobile terminal body and a camera disposed on the mobile terminal body. The method includes:
通过所述摄像头采集预览画面,从所述预览画面中识别拍摄主体;Collecting a preview picture through the camera, and identifying a shooting subject from the preview picture;
根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移 动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量。Adjusting the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and adjusting the internal optical axis offset of the camera.
第二方面,本公开的一些实施例还提供一种移动终端,所述移动终端包括移动终端主体及设置在所述移动终端主体上的摄像头,包括:In a second aspect, some embodiments of the present disclosure further provide a mobile terminal, where the mobile terminal includes a mobile terminal body and a camera disposed on the mobile terminal body, including:
拍摄主体识别模块,用于通过所述摄像头采集预览画面,从所述预览画面中识别拍摄主体;A shooting subject recognition module, configured to collect a preview picture through the camera, and identify a shooting subject from the preview picture;
调整模块,用于根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量。An adjustment module is configured to adjust the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and adjust the internal optical axis offset of the camera.
第三方面,本公开的一些实施例还提供一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现上述拍摄方法的步骤。According to a third aspect, some embodiments of the present disclosure further provide a mobile terminal including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program is processed by the processor The steps of the above-mentioned shooting method are implemented when the camera is executed.
第四方面,本公开的一些实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述拍摄方法的步骤。According to a fourth aspect, some embodiments of the present disclosure further provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program implements the steps of the foregoing photographing method when executed by a processor.
在本公开的一些实施例中,通过所述摄像头采集预览画面,从所述预览画面中识别拍摄主体;根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量,这样,在拍摄时移动终端会自动调整拍摄角度,用户不用再通过手动调整拍摄主体在预览画面中的位置,使得拍摄过程简单方便,提高了拍摄效率。In some embodiments of the present disclosure, a preview screen is collected by the camera, and a shooting subject is identified from the preview screen; and the camera is adjusted relative to the mobile terminal body according to the position of the shooting subject in the preview screen. , Or / and, adjust the internal optical axis offset of the camera, so that the mobile terminal automatically adjusts the shooting angle during shooting, and the user no longer needs to manually adjust the position of the shooting subject in the preview screen, so that the shooting process Simple and convenient, improving shooting efficiency.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本公开的一些实施例的技术方案,下面将对本公开的一些实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of some embodiments of the present disclosure, the drawings used in the description of some embodiments of the present disclosure will be briefly introduced below. Obviously, the drawings in the following description are only the present disclosure. For some embodiments, for those of ordinary skill in the art, other drawings can be obtained according to these drawings without paying creative labor.
图1是本公开的一些实施例提供的拍摄方法的流程图之一;FIG. 1 is one of the flowcharts of the shooting method provided by some embodiments of the present disclosure;
图2是本公开的一些实施例提供的拍摄方法的流程图之二;2 is a second flowchart of a photographing method provided by some embodiments of the present disclosure;
图3是本公开的一些实施例提供的拍摄方法部分步骤的流程图之一;3 is one of the flowcharts of some steps of a photographing method provided by some embodiments of the present disclosure;
图4是本公开的一些实施例提供的拍摄方法部分步骤的流程图之二;4 is a second flowchart of some steps of a photographing method provided by some embodiments of the present disclosure;
图5是本公开的一些实施例提供的拍摄方法的流程图之三;5 is a third flowchart of a photographing method provided by some embodiments of the present disclosure;
图6是本公开的一些实施例提供的移动终端的结构图之一;6 is one of the structural diagrams of a mobile terminal provided by some embodiments of the present disclosure;
图7是本公开的一些实施例提供的调整模块的结构图之一;7 is one of the structural diagrams of an adjustment module provided by some embodiments of the present disclosure;
图8是本公开的一些实施例提供的调整模块的结构图之二;8 is a second structural diagram of an adjustment module provided by some embodiments of the present disclosure;
图9是本公开的一些实施例提供的拍摄主体识别模块的结构图之三;9 is a third structural diagram of a photographic subject recognition module provided by some embodiments of the present disclosure;
图10是本公开另一实施例提供的移动终端的结构图。FIG. 10 is a structural diagram of a mobile terminal according to another embodiment of the present disclosure.
具体实施方式detailed description
下面将结合本公开的一些实施例中的附图,对本公开的一些实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。In the following, the technical solutions in some embodiments of the present disclosure will be clearly and completely described with reference to the drawings in some embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, but not all of them. example. Based on the embodiments in the present disclosure, all other embodiments obtained by a person of ordinary skill in the art without making creative efforts fall within the protection scope of the present disclosure.
参见图1,图1是本公开的一些实施例提供的拍摄方法的流程图之一,如图1所示,本实施例提供一种拍摄方法,应用于移动终端,所述移动终端包括移动终端主体及设置在所述移动终端主体上的摄像头,包括以下步骤:Referring to FIG. 1, FIG. 1 is one of the flowcharts of a photographing method provided by some embodiments of the present disclosure. As shown in FIG. 1, this embodiment provides a photographing method applied to a mobile terminal, where the mobile terminal includes a mobile terminal The main body and the camera provided on the main body of the mobile terminal include the following steps:
步骤101、通过所述摄像头采集预览画面,从所述预览画面中识别拍摄主体。Step 101: Collect a preview image through the camera, and identify a shooting subject from the preview image.
拍摄主体即拍摄的对象,在本实施例中,拍摄主体为人脸。例如,妈妈给孩子拍摄时,孩子的脸即为拍摄主体。当预览画面中只存在一个拍摄对象时,该拍摄对象即为拍摄主体。当预览画面中存在多个拍摄对象时,需要从这多个拍摄对象中选择一个拍摄对象作为拍摄主体,选择的方式可通过用户手动点击预览画面中的拍摄对象来设置,也可由移动终端自动设置,例如,此时移动终端会将占据预览画面面积最大的拍摄对象作为拍摄主体。The shooting subject is the shooting subject. In this embodiment, the shooting subject is a human face. For example, when a mother photographs a child, the child's face is the subject. When there is only one subject in the preview screen, the subject is the subject. When there are multiple subjects in the preview screen, you need to select one subject from the multiple subjects as the subject. The selection method can be set by the user manually clicking the subject in the preview screen, or it can be set automatically by the mobile terminal. For example, at this time, the mobile terminal will use the photographic subject that occupies the largest area of the preview screen as the photographic subject.
步骤102、根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量。Step 102: Adjust the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and adjust the internal optical axis offset of the camera.
在执行调整之前,还需要获取预设的主体位置,主体位置即拍摄主体在预览画面中的目的位置,本步骤中,调整的目的即是将拍摄主体在预览画面中的位置(该位置可视为当前位置)调整至主体位置。Before performing the adjustment, it is also necessary to obtain the preset subject position, which is the target position of the subject in the preview screen. In this step, the purpose of the adjustment is to position the subject in the preview screen (the position is visible (Current position) to the main position.
具体的,主体位置可通过用户手动指定,也可从预设的主体位置模板中选择合适的主体位置。主体位置为预览画面中的某一区域,例如主体位置可位于预览画面的正中间、左上角、右上角等等,主体位置的形状可为矩形、三角形、圆形或者星型,在此不做限定。Specifically, the subject position may be manually specified by a user, or a suitable subject position may be selected from a preset subject position template. The main body position is a certain area in the preview screen. For example, the main body position can be located in the middle of the preview screen, upper left corner, upper right corner, etc. The shape of the main body position can be rectangular, triangular, circular, or star shape. limited.
预览画面可包括一个或多个待选位置,当待选位置只有一个时,将该待选位置作为主体位置;当待选位置有多个时,将中心点距离拍摄主体的中心点最近的待选位置作为主体位置,或者由用户指定一个待选位置作为主体位置。The preview screen may include one or more candidate positions. When there is only one candidate position, the candidate position is used as the subject position. When there are multiple candidate positions, the candidate point whose center point is closest to the center point of the shooting subject is selected. The selected position is used as the subject position, or a candidate position is designated by the user as the subject position.
将预览画面的左下角作为平面直角坐标系的原点,也可将预览画面的其他位置点作为平面直角坐标系的原点,例如,预览画面的左上角或者中心位置点,具体可根据实际情况进行选择,在此不再赘述。获取预览画面中主体位置的中心点坐标和拍摄主体的中心点坐标,计算主体位置的中心点坐标到拍摄主体的中心点坐标之间的水平距离和竖直距离,以相应调整所述摄像头相对于移动终端主体的位置或/和调整所述摄像头的内部光轴偏移量。The lower left corner of the preview screen is used as the origin of the plane rectangular coordinate system, and other positions of the preview screen can also be used as the origin of the plane rectangular coordinate system. For example, the upper left corner or the center position of the preview screen can be selected according to actual conditions. , Will not repeat them here. Obtain the center point coordinates of the subject position and the center point coordinates of the subject in the preview screen, and calculate the horizontal and vertical distances between the center point coordinates of the subject position and the center point coordinates of the subject to adjust the camera relative to The position of the main body of the mobile terminal or / and adjusting the internal optical axis offset of the camera.
若移动终端的摄像头可在竖直方向上滑动,在获取到主体位置的中心点坐标到拍摄主体的中心点坐标之间的竖直距离之后,调整摄像头在竖直方向上移动,使得主体位置的中心点坐标的纵坐标与拍摄主体的中心点坐标的纵坐标之间的距离小于预设竖直距离阈值。竖直距离阈值可根据实际情况进行设置,在此不做限定。If the camera of the mobile terminal can slide in the vertical direction, after obtaining the vertical distance between the coordinates of the center point of the subject position and the coordinates of the center point of the shooting subject, adjust the camera to move in the vertical direction so that the position of the subject The distance between the ordinate of the center point coordinate and the ordinate of the center point coordinate of the subject is less than a preset vertical distance threshold. The vertical distance threshold can be set according to the actual situation, which is not limited here.
若移动终端的摄像头可在水平方向上滑动,在获取到主体位置的中心点坐标到拍摄主体的中心点坐标之间的水平距离之后,调整摄像头在水平方向上移动,使得主体位置的中心点坐标的横坐标与拍摄主体的中心点坐标的横坐标之间的距离小于预设水平距离阈值。水平距离阈值可根据实际情况进行设置,在此不做限定。If the camera of the mobile terminal can slide in the horizontal direction, after obtaining the horizontal distance between the center point coordinates of the subject position and the center point coordinates of the shooting subject, adjust the camera to move in the horizontal direction so that the center point coordinates of the subject position The distance between the abscissa of and the abscissa of the center point of the subject is less than a preset horizontal distance threshold. The horizontal distance threshold can be set according to the actual situation and is not limited here.
除了上述通过调整摄像头在竖直方向或/和水平方向滑动,以使拍摄主体在预览画面中的位置与主体位置相匹配之外,还可通过调整摄像头的内部光轴偏移量来使拍摄主体在预览画面中的位置与主体位置相匹配。In addition to adjusting the camera's sliding position in the vertical or horizontal direction to match the position of the subject in the preview screen as described above, you can also adjust the camera's internal optical axis offset to make the subject The position in the preview screen matches the position of the subject.
在获取到主体位置的中心点坐标到拍摄主体的中心点坐标之间的竖直距离之后,调整摄像头的内部光轴在竖直方向上移动,使得主体位置的中心点 坐标的纵坐标与拍摄主体的中心点坐标的纵坐标之间的距离小于预设竖直距离阈值。After obtaining the vertical distance between the center point coordinates of the subject position and the center point coordinates of the shooting subject, adjust the internal optical axis of the camera to move in the vertical direction so that the ordinate of the center point coordinates of the subject position and the shooting subject The distance between the ordinates of the center point coordinates is smaller than a preset vertical distance threshold.
在获取到主体位置的中心点坐标到拍摄主体的中心点坐标之间的水平距离之后,调整摄像头的内部光轴在水平方向上移动,使得主体位置的中心点坐标的横坐标与拍摄主体的中心点坐标的横坐标之间的距离小于预设水平距离阈值。After obtaining the horizontal distance between the center point coordinates of the subject position and the center point coordinates of the shooting subject, adjust the internal optical axis of the camera to move in the horizontal direction so that the abscissa of the center point coordinates of the subject position and the center of the shooting subject The distance between the abscissas of the point coordinates is less than a preset horizontal distance threshold.
由于拍摄主体在预览画面中所占据的区域,与主体位置在预览画面中所占据的区域的形状和大小并不会完全相同,所以在本实施例中,并不需要拍摄主体在预览画面中所占据的区域完全与主体位置所在的区域重合,只需通过调整使得拍摄主体的中心点坐标与主体位置的中心点坐标之间的距离小于预设距离阈值,使得拍摄主体在预览画面中的位置与主体位置相匹配即可。预设距离阈值可根据预设水平距离阈值和预设竖直距离阈值通过欧式公式计算获得。Since the area occupied by the subject in the preview screen is not exactly the same as the shape and size of the area occupied by the subject position in the preview screen, in this embodiment, the subject does not need to be in the preview screen. The occupied area completely coincides with the area where the subject's position is located. Just adjust the distance between the center point coordinates of the subject and the center point coordinates of the subject position to be less than a preset distance threshold, so that the position of the subject in the preview screen and Match the subject position. The preset distance threshold can be calculated by a European formula according to the preset horizontal distance threshold and the preset vertical distance threshold.
本公开的一些实施例中,上述移动终端可以任何包括摄像头的移动终端,例如:手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(personal digital assistant,简称PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等。In some embodiments of the present disclosure, the above-mentioned mobile terminal may be any mobile terminal including a camera, such as: a mobile phone, a tablet computer, a laptop computer, a personal digital assistant (PDA for short) ), Mobile Internet device (Mobile Internet Device, MID) or wearable device (Wearable Device).
本公开的一些实施例的拍摄方法,通过所述摄像头采集预览画面,从所述预览画面中识别拍摄主体;根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量,这样,在拍摄时移动终端会自动调整拍摄角度,用户不用再通过手动调整拍摄主体在预览画面中的位置,使得拍摄过程简单方便,提高了拍摄效率。In the shooting method of some embodiments of the present disclosure, a preview screen is collected by the camera, and a shooting subject is identified from the preview screen; and the camera is adjusted relative to the mobile terminal according to the position of the shooting subject in the preview screen. The position of the subject, or / and, adjusts the internal optical axis offset of the camera, so that the mobile terminal automatically adjusts the shooting angle during shooting, and the user no longer needs to manually adjust the position of the shooting subject in the preview screen, so that the shooting The process is simple and convenient, which improves the shooting efficiency.
参见图2,图2是本公开的一些实施例提供的拍摄方法的流程图之二,如图2所示,本实施例提供一种拍摄方法,摄像头为在竖直方向可移动的摄像头,包括以下步骤:Referring to FIG. 2, FIG. 2 is a second flowchart of a photographing method provided by some embodiments of the present disclosure. As shown in FIG. 2, this embodiment provides a photographing method. A camera is a vertically movable camera, including The following steps:
步骤201、通过所述摄像头采集预览画面,从所述预览画面中识别拍摄主体。Step 201: Collect a preview image through the camera, and identify a shooting subject from the preview image.
步骤201与步骤101一致,具体可参见步骤101中的记载,在此不再赘 述。Step 201 is the same as step 101. For details, refer to the description in step 101, and details are not described herein again.
步骤202、根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体在竖直方向上移动,或/和,调整所述摄像头的内部光轴在水平方向上的偏移量。Step 202: Adjust the camera to move in a vertical direction relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and adjust the internal optical axis of the camera in a horizontal direction. Offset.
具体的,将预览画面的左下角作为平面直角坐标系的原点,也可将预览画面的其他位置点作为平面直角坐标系的原点,例如,预览画面的左上角或者中心位置点,具体可根据实际情况进行选择,在此不再赘述。获取预览画面中主体位置的中心点坐标和拍摄主体的中心点坐标,计算主体位置的中心点坐标到拍摄主体的中心点坐标之间的水平距离和竖直距离,若该水平距离小于预设水平距离阈值,竖直距离不小于预设竖直距离阈值,表明拍摄主体在水平方向上是与主体位置相匹配的,拍摄主体在竖直方向上未与主体位置相匹配,此时不需要对主体位置的中心点坐标到拍摄主体的中心点坐标之间的水平距离进行调整,只需通过调整摄像头在竖直方向上移动,使拍摄主体在预览画面中的位置与主体位置相匹配即可。Specifically, the lower left corner of the preview screen is used as the origin of the flat rectangular coordinate system, and other positions of the preview picture may also be used as the origin of the flat rectangular coordinate system. The situation is selected, and is not repeated here. Obtain the center point coordinates of the subject position and the center point coordinates of the subject in the preview screen, and calculate the horizontal and vertical distances between the center point coordinates of the subject position and the center point coordinates of the subject, if the horizontal distance is less than a preset level Distance threshold, the vertical distance is not less than the preset vertical distance threshold, indicating that the subject is matched with the subject position in the horizontal direction, and the subject is not matched with the subject position in the vertical direction. The horizontal distance between the coordinates of the center point of the position and the coordinates of the center point of the subject is adjusted. You only need to adjust the camera to move in the vertical direction so that the position of the subject in the preview screen matches the position of the subject.
若上述计算出的竖直距离小于预设竖直距离阈值,水平距离不小于预设水平距离阈值,表明拍摄主体在竖直方向上是与主体位置相匹配的,拍摄主体在水平方向上未与主体位置相匹配,此时不需要对主体位置的中心点坐标到拍摄主体的中心点坐标之间的竖直距离进行调整,只需通过调整摄像头的内部光轴在水平方向上的偏移量,使拍摄主体在预览画面中的位置与主体位置相匹配即可。If the calculated vertical distance is less than the preset vertical distance threshold and the horizontal distance is not less than the preset horizontal distance threshold, it indicates that the shooting subject matches the position of the subject in the vertical direction, and the shooting subject is not in the horizontal direction. The subject position matches. At this time, there is no need to adjust the vertical distance between the coordinates of the center point of the subject position and the coordinates of the center point of the shooting subject. You only need to adjust the horizontal offset of the internal optical axis of the camera. Match the position of the subject in the preview screen with the position of the subject.
当需要对主体位置的中心点坐标到拍摄主体的中心点坐标之间的水平距离和竖直距离进行调整时,可通过调整摄像头在竖直方向上移动,来使主体位置的中心点坐标的纵坐标与拍摄主体的中心点坐标的纵坐标之间的距离小于预设竖直距离阈值;通过调整摄像头的内部光轴在水平方向上的偏移量,来使得主体位置的中心点坐标的横坐标与拍摄主体的中心点坐标的横坐标之间的距离小于预设水平距离阈值,从而使拍摄主体在预览画面中的位置与主体位置相匹配。When the horizontal and vertical distances between the center point coordinates of the subject position and the center point coordinates of the shooting subject need to be adjusted, the vertical position of the center point coordinates of the subject position can be adjusted by adjusting the camera to move in the vertical direction. The distance between the coordinate and the ordinate of the center point of the subject is less than a preset vertical distance threshold; the horizontal coordinate of the center point of the subject's position is adjusted by adjusting the horizontal offset of the internal optical axis of the camera The distance from the abscissa of the center point of the shooting subject is smaller than a preset horizontal distance threshold, so that the position of the shooting subject in the preview screen matches the position of the subject.
本公开的一些实施例的拍摄方法,通过所述摄像头采集预览画面,从所述预览画面中识别拍摄主体;根据所述拍摄主体在所述预览画面中的位置, 调整所述摄像头相对于移动终端主体在竖直方向上移动,或/和,调整所述摄像头的内部光轴在水平方向上的偏移量,这样,在拍摄时移动终端会自动调整摄像头在竖直方向上的拍摄角度或/和自动调整摄像头的内部光轴在水平方向上的偏移量,用户不用再通过手动调整拍摄主体在预览画面中竖直方向或/和水平方向上的位置,使得拍摄过程简单方便,提高了拍摄效率。In the shooting method of some embodiments of the present disclosure, a preview screen is collected by the camera, and a shooting subject is identified from the preview screen; and the camera is adjusted relative to the mobile terminal according to the position of the shooting subject in the preview screen. The subject moves in the vertical direction, or / and, adjusts the offset of the internal optical axis of the camera in the horizontal direction, so that when shooting, the mobile terminal automatically adjusts the shooting angle of the camera in the vertical direction or / And automatically adjust the horizontal offset of the internal optical axis of the camera, users no longer need to manually adjust the vertical or / and horizontal position of the subject in the preview screen, which makes the shooting process simple and convenient and improves the shooting effectiveness.
进一步的,如图3所示,在本公开另一个实施例中,步骤202包括:Further, as shown in FIG. 3, in another embodiment of the present disclosure, step 202 includes:
步骤2021、在所述移动终端的抖动幅度大于预设阈值的情况下,若检测到预设输入操作,则调整摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量。Step 2021: In the case where the amplitude of the shake of the mobile terminal is greater than a preset threshold, if a preset input operation is detected, adjust the position of the camera relative to the mobile terminal body, or / and, adjust the internal optical axis of the camera Offset.
预设阈值可根据实际情况进行设置,在此不做限定。在移动终端的抖动幅度大于预设阈值的情况下,说明移动终端此时的位置不稳定,当前的位置并不是拍摄的最终位置。此时移动终端不会自动根据拍摄主体在预览画面中的位置和主体位置,调整摄像头相对于移动终端主体的位置,或/和,调整摄像头的内部光轴。但若检测到预设输入操作,则调整摄像头相对于移动终端主体的位置或/和所述摄像头的内部光轴偏移量,以使所述拍摄主体在所述预览画面中的位置与所述主体位置相匹配。预设输入操作包括拍照或者录像。The preset threshold can be set according to the actual situation, and is not limited here. In the case where the amplitude of the jitter of the mobile terminal is greater than a preset threshold, it indicates that the position of the mobile terminal at this time is unstable, and the current position is not the final position of the shooting. At this time, the mobile terminal does not automatically adjust the position of the camera relative to the mobile terminal body, or / and, adjust the internal optical axis of the camera according to the position of the shooting subject in the preview screen and the position of the subject. However, if a preset input operation is detected, the position of the camera relative to the main body of the mobile terminal or / and the internal optical axis offset of the camera is adjusted so that the position of the shooting subject in the preview screen is different from the position of the camera The subject position matches. The preset input operations include taking pictures or videos.
步骤2022、生成与调整后所述摄像头采集的预览画面对应的图像文件。Step 2022: Generate an image file corresponding to the preview image collected by the camera after the adjustment.
根据预设输入操作,生成与预览画面对应的图像文件。若预设输入操作为拍照,则生成的图像文件为图片,该图片中拍摄主体与主体位置相匹配;若预设输入操作为录像,则生成的图像文件为视频,该视频中拍摄主体与主体位置相匹配。According to a preset input operation, an image file corresponding to the preview screen is generated. If the preset input operation is taking a picture, the generated image file is a picture, and the subject in the picture matches the position of the subject; if the preset input operation is a video, the generated image file is a video, in which the subject and the subject are shot The positions match.
在本实施例中,当移动终端的抖动幅度大于预设阈值,且检测到预设输入操作时,调整摄像头相对于移动终端主体的位置或/和所述摄像头的内部光轴偏移量,使所述拍摄主体在所述预览画面中的位置与所述主体位置相匹配,然后生成与预览画面对应的图像文件。这样,移动终端在拍摄时会自动调整拍摄角度,用户不用再通过手动调整拍摄主体在预览画面中的位置,使得拍摄过程简单方便,提高了拍摄效率。In this embodiment, when the shake amplitude of the mobile terminal is greater than a preset threshold and a preset input operation is detected, the position of the camera relative to the main body of the mobile terminal or / and the internal optical axis offset of the camera is adjusted so that The position of the shooting subject in the preview screen matches the position of the subject, and then an image file corresponding to the preview screen is generated. In this way, the mobile terminal automatically adjusts the shooting angle when shooting, and the user no longer needs to manually adjust the position of the shooting subject in the preview screen, which makes the shooting process simple and convenient and improves the shooting efficiency.
进一步的,如图4所示,在本公开又一个实施例中,步骤202包括:Further, as shown in FIG. 4, in another embodiment of the present disclosure, step 202 includes:
步骤2021’、在所述移动终端的抖动幅度不大于预设阈值的情况下,按 照第一调整幅度调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量。Step 2021 ': Adjust the position of the camera relative to the main body of the mobile terminal according to the first adjustment range, or / and adjust the internal optical axis of the camera when the shake amplitude of the mobile terminal is not greater than a preset threshold Offset.
在移动终端的抖动幅度不大于预设阈值的情况下,说明移动终端此时的位置稳定,用户有可能会在此位置进行拍摄。此时,按照第一调整幅度调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量,使所述拍摄主体在所述预览画面中的位置与所述主体位置相匹配,以提前为拍摄做好准备。In the case where the amplitude of the jitter of the mobile terminal is not greater than a preset threshold, it indicates that the position of the mobile terminal at this time is stable, and the user may shoot at this position. At this time, the position of the camera relative to the main body of the mobile terminal is adjusted according to the first adjustment range, or / and the internal optical axis offset of the camera is adjusted so that the position of the photographic subject in the preview screen and The subject positions are matched to prepare for shooting in advance.
步骤2022’、若检测到预设输入操作,则按照第二调整幅度调整摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量;其中,第二调整幅度小于第一调整幅度。Step 2022 ': if a preset input operation is detected, adjust the position of the camera relative to the mobile terminal body according to the second adjustment range, or / and adjust the internal optical axis offset of the camera; wherein, the second adjustment range Less than the first adjustment.
预设输入操作包括拍照或者录像。由于根据第一调整幅度对摄像头相对于移动终端主体的位置或/和摄像头的内部光轴偏移量进行调整到检测到预设输入操作的时间段里,移动终端的位置会有轻微移动,摄像头的位置也会相应的有轻微移动,因此,在检测到预设输入操作之后,还需要按照第二调整幅度再次对摄像头相对于移动终端主体的位置或/和摄像头的内部光轴偏移量进行调整,第二调整幅度小于第一调整幅度。预先根据第一调整幅度调整摄像头相对于移动终端主体的位置或/和摄像头的内部光轴偏移量,可提高在检测到预设输入操作后,移动终端调整摄像头相对于移动终端主体的位置或/和摄像头的内部光轴偏移量的处理速度。The preset input operations include taking pictures or videos. Because the position of the camera relative to the main body of the mobile terminal or / and the internal optical axis offset of the camera is adjusted to a time period when a preset input operation is detected according to the first adjustment range, the position of the mobile terminal will slightly move, and the camera The position of the camera will also be slightly moved accordingly. Therefore, after the preset input operation is detected, the position of the camera relative to the main body of the mobile terminal or / and the internal optical axis offset of the camera needs to be adjusted again according to the second adjustment range. Adjustment, the second adjustment range is smaller than the first adjustment range. Adjusting the position of the camera relative to the main body of the mobile terminal or / and the internal optical axis offset of the camera according to the first adjustment range in advance can improve the position or the position of the camera relative to the main body of the mobile terminal after detecting a preset input operation. / And the processing speed of the camera's internal optical axis offset.
步骤2023’、生成与所述摄像头根据第二调整幅度调整后所采集的预览画面对应的图像文件。Step 2023 ': Generate an image file corresponding to the preview image acquired after the camera adjusts according to the second adjustment range.
根据预设输入操作,生成与摄像头根据第二调整幅度调整后所采集的预览画面对应的图像文件。若预设输入操作为拍照,则生成的图像文件为图片,该图片中拍摄主体与主体位置相匹配;若预设输入操作为录像,则生成的图像文件为视频,该视频中拍摄主体与主体位置相匹配。According to a preset input operation, an image file corresponding to a preview image acquired after the camera adjusts according to the second adjustment range is generated. If the preset input operation is taking a picture, the generated image file is a picture, and the subject in the picture matches the position of the subject; if the preset input operation is a video, the generated image file is a video, in which the subject and the subject are shot The positions match.
在本实施例中,当移动终端的抖动幅度不大于预设阈值,按照第一调整幅度调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量,使拍摄主体在预览画面中的位置与主体位置相匹配,以提前为拍摄做好准备,若检测到预设输入操作,则按照第二调整幅度调整摄像 头相对于移动终端主体的位置或/和所述摄像头的内部光轴偏移量,由于第二调整幅度小于第一调整幅度,可提高移动终端在检测到预设输入操作后,移动终端将摄像头相对于移动终端主体的位置或/和摄像头的内部光轴偏移量调整到合适位置的速度,提高用户体验。In this embodiment, when the shake amplitude of the mobile terminal is not greater than a preset threshold, the position of the camera relative to the mobile terminal body is adjusted according to the first adjustment range, or / and the internal optical axis offset of the camera is adjusted To match the position of the shooting subject in the preview screen with the position of the subject to prepare for shooting in advance, and if a preset input operation is detected, adjust the position of the camera relative to the mobile terminal body according to the second adjustment range or / and The internal optical axis offset of the camera, because the second adjustment range is smaller than the first adjustment range, can improve the position of the camera relative to the main body of the mobile terminal or / and the camera after the mobile terminal detects a preset input operation The speed of adjusting the internal optical axis offset to the proper position improves the user experience.
参见图5,图5是本公开的一些实施例提供的拍摄方法的流程图,如图5所示,本实施例提供一种拍摄方法,包括:Referring to FIG. 5, FIG. 5 is a flowchart of a photographing method provided by some embodiments of the present disclosure. As shown in FIG. 5, this embodiment provides a photographing method, including:
步骤301、根据深度学习算法对预选出的多个主体位置进行处理,以获得所述预览画面的主体位置,或者将用户预设的主体位置作为所述预览画面的主体位置。Step 301: Process a plurality of preselected subject positions according to a deep learning algorithm to obtain the subject position of the preview picture, or use the subject position preset by the user as the subject position of the preview picture.
用户可将日常拍照中认为较优的人物的主体位置挑选出,以获得预选出的多个主体位置,然后根据深度学习算法对这多个主体位置进行处理,从而获得预览画面的待选位置。The user can select the subject positions of the person who is considered to be better in daily photography to obtain a plurality of pre-selected subject positions, and then process the multiple subject positions according to a deep learning algorithm to obtain a candidate position for the preview screen.
预览画面可包括一个或多个待选位置,当待选位置只有一个时,将该待选位置作为主体位置;当待选位置有多个时,将中心点距离拍摄主体的中心点最近的待选位置作为主体位置,或者由用户指定一个待选位置作为主体位置。The preview screen may include one or more candidate positions. When there is only one candidate position, the candidate position is used as the subject position. When there are multiple candidate positions, the candidate point whose center point is closest to the center point of the shooting subject is selected. The selected position is used as the subject position, or a candidate position is designated by the user as the subject position.
步骤302、对所述预览画面进行人脸识别,以获得至少一个人脸对象。采用人脸识别方法对预览画面进行人脸识别,至少获得一个人脸对象。Step 302: Perform face recognition on the preview picture to obtain at least one face object. The face recognition method is used to perform face recognition on the preview picture, and at least one face object is obtained.
步骤303、在获得一个所述人脸对象的情况下,将获得的所述人脸对象作为拍摄主体。Step 303: In the case where one face object is obtained, use the obtained face object as a photographing subject.
当预览画面中只存在一个人脸对象时,该人脸对象即为拍摄主体。When there is only one face object in the preview frame, the face object is the subject.
步骤304、在获得多个所述人脸对象的情况下,从多个所述人脸对象中选择一个人脸对象作为拍摄主体。Step 304: When a plurality of the face objects are obtained, select one face object from the plurality of face objects as a photographing subject.
当预览画面中存在多个人脸对象时,可将多个所述人脸对象中占据预览画面面积最大的人脸对象作为拍摄主体;或者,获取主体位置的中心点和各人脸对象的中心点,将人脸对象的中心点到主体位置的中心点最近的人脸对象作为拍摄主体。另外,也可通过用户从多个人脸对象中手动选择一个人脸对象作为拍摄主体。When there are multiple face objects in the preview screen, the face object that occupies the largest preview screen area among the multiple face objects may be taken as the shooting subject; or, the center point of the subject position and the center point of each face object may be obtained. , Use the face object whose center point is closest to the center point of the subject position as the shooting subject. In addition, a face object can also be manually selected by the user as a photographing subject from a plurality of face objects.
步骤305、根据主体位置和所述拍摄主体在所述预览画面中的位置,调 整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量,以使所述拍摄主体在所述预览画面中的位置与所述主体位置相匹配。Step 305: Adjust the position of the camera relative to the mobile terminal body according to the position of the subject and the position of the shooting subject in the preview screen, or / and adjust the internal optical axis offset of the camera so that The position of the shooting subject in the preview screen matches the position of the subject.
步骤305与步骤102一致,具体可参见步骤102中的记载,在此不再赘述。Step 305 is the same as step 102. For details, refer to the description in step 102, and details are not described herein again.
在本实施例中,根据深度学习算法对预选出的多个主体位置进行处理,以获得所述预览画面的主体位置,或者将用户预设的主体位置作为所述预览画面的主体位置;对所述预览画面进行人脸识别,以获得至少一个人脸对象;在获得一个所述人脸对象的情况下,将获得的所述人脸对象作为拍摄主体;调整所述摄像头相对于移动终端主体的位置或/和调整所述摄像头的内部光轴偏移量,以使所述拍摄主体在所述预览画面中的位置与所述主体位置相匹配。这样,在拍摄时移动终端会自动调整拍摄角度,用户不用再通过手动调整拍摄主体在预览画面中的位置,使得拍摄过程简单方便,提高了拍摄效率。In this embodiment, a plurality of preselected subject positions are processed according to a deep learning algorithm to obtain the subject position of the preview picture, or the subject position preset by the user is used as the subject position of the preview picture; Performing face recognition on the preview picture to obtain at least one face object; in the case of obtaining one of the face objects, using the obtained face object as a photographing subject; adjusting the camera's relative to the main body of the mobile terminal Position or / and adjust the internal optical axis offset of the camera, so that the position of the shooting subject in the preview screen matches the position of the subject. In this way, the mobile terminal automatically adjusts the shooting angle when shooting, and the user no longer needs to manually adjust the position of the shooting subject in the preview screen, which makes the shooting process simple and convenient and improves the shooting efficiency.
参见图6,图6是本公开的一些实施例提供的拍摄方法的流程图,如图6所示,本实施例提供一种移动终端400,所述移动终端400包括移动终端主体及设置在所述移动终端主体上的摄像头,包括:Referring to FIG. 6, FIG. 6 is a flowchart of a photographing method provided by some embodiments of the present disclosure. As shown in FIG. 6, this embodiment provides a mobile terminal 400. The mobile terminal 400 includes a mobile terminal body and The camera on the main body of the mobile terminal includes:
拍摄主体识别模块401,用于通过所述摄像头采集预览画面,从所述预览画面中识别拍摄主体;A shooting subject recognition module 401, configured to collect a preview picture through the camera, and identify a shooting subject from the preview picture;
调整模块402,用于根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量。An adjustment module 402 is configured to adjust the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and adjust the internal optical axis offset of the camera.
进一步的,所述摄像头为在竖直方向可移动的摄像头;Further, the camera is a camera movable in a vertical direction;
所述调整模块402,具体用于根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体在竖直方向上移动,或/和,调整所述摄像头的内部光轴在水平方向上的偏移量。The adjustment module 402 is specifically configured to adjust the camera to move in a vertical direction relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and, adjust the internal light of the camera The offset of the axis in the horizontal direction.
进一步的,如图7所示,所述调整模块402包括第一调整子模块4021和第一生成子模块4022。Further, as shown in FIG. 7, the adjustment module 402 includes a first adjustment sub-module 4021 and a first generation sub-module 4022.
其中,第一调整子模块4021,用于在所述移动终端的抖动幅度大于预设阈值的情况下,若检测到预设输入操作,则调整摄像头相对于移动终端主体 的位置或/和所述摄像头的内部光轴偏移量;The first adjustment sub-module 4021 is configured to adjust the position of the camera relative to the main body of the mobile terminal or / and the mobile terminal if a predetermined input operation is detected when the amplitude of the mobile terminal shakes is greater than a preset threshold. The internal optical axis offset of the camera;
第一生成子模块4022,用于生成与调整后所述摄像头采集的预览画面对应的图像文件。The first generating sub-module 4022 is configured to generate an image file corresponding to a preview image collected by the camera after the adjustment.
进一步的,所述调整模块402包括第二调整子模块4023、第三调整子模块4024和第二生成子模块4025。Further, the adjustment module 402 includes a second adjustment sub-module 4023, a third adjustment sub-module 4024, and a second generation sub-module 4025.
其中,第二调整子模块4023,用于在所述移动终端的抖动幅度不大于预设阈值的情况下,按照第一调整幅度调整所述摄像头相对于移动终端主体的位置或/和所述摄像头的内部光轴偏移量;Wherein, a second adjustment sub-module 4023 is configured to adjust the position of the camera relative to the main body of the mobile terminal or / and the camera according to the first adjustment amplitude when the vibration amplitude of the mobile terminal is not greater than a preset threshold. The internal optical axis offset;
第三调整子模块4024,用于若检测到预设输入操作,则按照第二调整幅度调整摄像头相对于移动终端主体的位置,或/和,所述摄像头的内部光轴偏移量;其中,第二调整幅度小于第一调整幅度;A third adjustment sub-module 4024 is configured to adjust the position of the camera relative to the main body of the mobile terminal, or / and the internal optical axis offset of the camera according to the second adjustment range if a preset input operation is detected; wherein, The second adjustment range is smaller than the first adjustment range;
第二生成子模块4025,用于生成与所述摄像头根据第二调整幅度调整后所采集的预览画面对应的图像文件。The second generation sub-module 4025 is configured to generate an image file corresponding to the preview image acquired after the camera adjusts according to the second adjustment range.
如图8所示,所述拍摄主体识别模块401包括人脸对象获取子模块4011、第一拍摄主体获取子模块4012和第二拍摄主体获取子模块4013。As shown in FIG. 8, the photographic subject recognition module 401 includes a face object acquisition sub-module 4011, a first photographic subject acquisition sub-module 4012, and a second photographic subject acquisition sub-module 4013.
其中,人脸对象获取子模块4011,用于对所述预览画面进行人脸识别,以获得至少一个人脸对象;The face object acquisition sub-module 4011 is configured to perform face recognition on the preview picture to obtain at least one face object;
第一拍摄主体获取子模块4012,用于在获得一个所述人脸对象的情况下,将获得的所述人脸对象作为拍摄主体;A first shooting subject acquisition sub-module 4012, configured to use the obtained face object as a shooting subject when one of the face objects is obtained;
第二拍摄主体获取子模块4013,用于在获得多个所述人脸对象的情况下,从多个所述人脸对象中选择一个人脸对象作为拍摄主体。A second shooting subject acquisition sub-module 4013 is configured to select a face object as a shooting subject from a plurality of the face objects when a plurality of the face objects are obtained.
进一步的,在本公开一个实施例中,移动终端400还包括:主体位置获取模块,所述主体位置获取模块用于:根据深度学习算法对预选出的多个主体位置进行处理,以获得所述预览画面的主体位置,或者将用户预设的主体位置作为所述预览画面的主体位置。Further, in an embodiment of the present disclosure, the mobile terminal 400 further includes: a subject position obtaining module, the subject position obtaining module is configured to process a plurality of preselected subject positions according to a deep learning algorithm to obtain the subject position The main body position of the preview screen, or the main body position preset by the user is used as the main body position of the preview screen.
如图9所示,所述拍摄主体识别模块401包括:As shown in FIG. 9, the shooting subject recognition module 401 includes:
人脸对象获取子模块4011,用于对所述拍摄画面进行人脸识别,以获得至少一个人脸对象;A face object acquisition sub-module 4011, configured to perform face recognition on the shooting picture to obtain at least one face object;
第一拍摄主体获取子模块4012,用于在获得一个所述人脸对象的情况下, 将获得的所述人脸对象作为拍摄主体;A first shooting subject acquisition sub-module 4012, configured to use the obtained human face object as a shooting subject when one of the human face objects is obtained;
第二拍摄主体获取子模块4013,用于在获得多个所述人脸对象的情况下,从多个所述人脸对象中选择一个人脸对象作为拍摄主体;A second shooting subject acquisition submodule 4013, configured to select a face object as a shooting subject from a plurality of the face objects in a case where a plurality of the face objects are obtained;
调整模块402具体用于:根据主体位置和所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量,以使所述拍摄主体在所述预览画面中的位置与所述主体位置相匹配。The adjustment module 402 is specifically configured to adjust the position of the camera relative to the mobile terminal body according to the position of the subject and the position of the shooting subject in the preview screen, or / and adjust the internal optical axis offset of the camera Measure to make the position of the shooting subject in the preview screen match the position of the subject.
移动终端400能够实现图1至图5的方法实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 400 can implement various processes implemented by the mobile terminal in the method embodiments in FIG. 1 to FIG. 5. To avoid repetition, details are not described herein again.
本公开的一些实施例的移动终端400,通过所述摄像头采集预览画面,从所述预览画面中识别拍摄主体;根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量,这样,在拍摄时移动终端会自动调整拍摄角度,用户不用再通过手动调整拍摄主体在预览画面中的位置,使得拍摄过程简单方便,提高了拍摄效率。The mobile terminal 400 of some embodiments of the present disclosure collects a preview screen through the camera, and identifies a shooting subject from the preview screen; and adjusts the camera relative to the movement according to the position of the shooting subject in the preview screen. The position of the terminal body, or / and, adjusts the internal optical axis offset of the camera, so that the mobile terminal automatically adjusts the shooting angle during shooting, and the user no longer needs to manually adjust the position of the shooting subject in the preview screen, so that The shooting process is simple and convenient, which improves the shooting efficiency.
图10为实现本公开各个实施例的一种移动终端的硬件结构示意图,如图10所示,该移动终端500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、处理器510、以及电源511等部件。本领域技术人员可以理解,图10中示出的移动终端结构并不构成对移动终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开的一些实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。FIG. 10 is a schematic diagram of a hardware structure of a mobile terminal that implements various embodiments of the present disclosure. As shown in FIG. 10, the mobile terminal 500 includes, but is not limited to, a radio frequency unit 501, a network module 502, an audio output unit 503, and an input unit 504. , Sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor 510, power supply 511, and other components. Those skilled in the art may understand that the structure of the mobile terminal shown in FIG. 10 does not constitute a limitation on the mobile terminal, and the mobile terminal may include more or fewer components than shown in the figure, or combine some components, or different components. Layout. In some embodiments of the present disclosure, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a car terminal, a wearable device, a pedometer, and the like.
其中,处理器510,用于通过所述摄像头采集预览画面,从所述预览画面中识别拍摄主体;根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量。The processor 510 is configured to collect a preview screen through the camera, and identify a shooting subject from the preview screen; and adjust a position of the camera relative to the mobile terminal body according to a position of the shooting subject in the preview screen. Position, or / and, adjust the internal optical axis offset of the camera.
可选的,所述摄像头为在竖直方向可移动的摄像头;处理器510在执行所述根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移 动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量的步骤,包括:Optionally, the camera is a camera that is movable in a vertical direction; the processor 510 executes the adjustment of the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, Or / and, the step of adjusting an internal optical axis offset of the camera includes:
根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体在竖直方向上移动,或/和,调整所述摄像头的内部光轴在水平方向上的偏移量。Adjusting the vertical movement of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and adjusting the horizontal optical axis offset of the camera .
可选的,处理器510在执行所述调整所述摄像头相对于移动终端主体的位置或/和调整所述摄像头的内部光轴偏移量的步骤,包括:Optionally, the processor 510 performing the steps of adjusting the position of the camera relative to the main body of the mobile terminal or / and adjusting the internal optical axis offset of the camera includes:
在所述移动终端的抖动幅度大于预设阈值的情况下,若检测到预设输入操作,则调整摄像头相对于移动终端主体的位置或/和所述摄像头的内部光轴偏移量,以使所述拍摄主体在所述预览画面中的位置与所述主体位置相匹配;生成与调整后所述摄像头采集的预览画面对应的图像文件。In the case where the amplitude of the shake of the mobile terminal is greater than a preset threshold, if a preset input operation is detected, the position of the camera relative to the main body of the mobile terminal or / and the internal optical axis offset of the camera is adjusted so that The position of the shooting subject in the preview screen matches the position of the subject; generating an image file corresponding to the preview screen captured by the camera after adjustment.
可选的,处理器510在执行所述调整所述摄像头相对于移动终端主体的位置或/和调整所述摄像头的内部光轴偏移量的步骤,包括:Optionally, the processor 510 performing the steps of adjusting the position of the camera relative to the main body of the mobile terminal or / and adjusting the internal optical axis offset of the camera includes:
在所述移动终端的抖动幅度不大于预设阈值的情况下,按照第一调整幅度调整所述摄像头相对于移动终端主体的位置或/和所述摄像头的内部光轴偏移量;When the amplitude of the shake of the mobile terminal is not greater than a preset threshold, adjusting the position of the camera relative to the main body of the mobile terminal or / and the internal optical axis offset of the camera according to the first adjustment amplitude;
若检测到预设输入操作,则按照第二调整幅度调整摄像头相对于移动终端主体的位置或/和所述摄像头的内部光轴偏移量;其中,第二调整幅度小于第一调整幅度;If a preset input operation is detected, adjust the position of the camera relative to the mobile terminal body or / and the internal optical axis offset of the camera according to the second adjustment range; wherein the second adjustment range is smaller than the first adjustment range;
生成与所述摄像头根据第二调整幅度调整后所采集的预览画面对应的图像文件。Generate an image file corresponding to the preview picture acquired after the camera adjusts according to the second adjustment range.
可选的,处理器510在执行在所述调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量的步骤之前,执行:Optionally, before executing the steps of adjusting the position of the camera relative to the mobile terminal body, or / and adjusting the internal optical axis offset of the camera, the processor 510 executes:
根据深度学习算法对预选出的多个主体位置进行处理,以获得所述预览画面的主体位置,或者将用户预设的主体位置作为所述预览画面的主体位置;Processing a plurality of preselected subject positions according to a deep learning algorithm to obtain the subject position of the preview picture, or using the subject position preset by the user as the subject position of the preview picture;
处理器510在执行所述通过所述摄像头采集预览画面,从所述预览画面中识别拍摄主体的步骤,包括:The processor 510 executing the steps of collecting a preview screen through the camera and identifying a shooting subject from the preview screen includes:
对所述预览画面进行人脸识别,以获得至少一个人脸对象;Performing face recognition on the preview picture to obtain at least one face object;
在获得一个所述人脸对象的情况下,将获得的所述人脸对象作为拍摄主体;When one face object is obtained, using the obtained face object as a photographing subject;
在获得多个所述人脸对象的情况下,从多个所述人脸对象中选择一个人脸对象作为拍摄主体。In a case where a plurality of the face objects are obtained, one face object is selected as a photographing subject from the plurality of the face objects.
处理器510在执行根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量的步骤,包括:The processor 510 executes the steps of adjusting the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and adjusting the internal optical axis offset of the camera, including: :
根据主体位置和所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量,以使所述拍摄主体在所述预览画面中的位置与所述主体位置相匹配。Adjusting the position of the camera relative to the main body of the mobile terminal according to the position of the subject and the position of the shooting subject in the preview screen, or / and adjusting the internal optical axis offset of the camera to enable the shooting The position of the subject in the preview screen matches the position of the subject.
移动终端500能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 500 can implement various processes implemented by the mobile terminal in the foregoing embodiments. To avoid repetition, details are not described herein again.
本公开的一些实施例的移动终端500,通过所述摄像头采集预览画面,从所述预览画面中识别拍摄主体;根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量,这样,在拍摄时移动终端会自动调整拍摄角度,用户不用再通过手动调整拍摄主体在预览画面中的位置,使得拍摄过程简单方便,提高了拍摄效率。The mobile terminal 500 of some embodiments of the present disclosure collects a preview screen through the camera, and identifies a shooting subject from the preview screen; and adjusts the camera relative to the movement according to the position of the shooting subject in the preview screen. The position of the terminal body, or / and, adjusts the internal optical axis offset of the camera, so that the mobile terminal automatically adjusts the shooting angle during shooting, and the user no longer needs to manually adjust the position of the shooting subject in the preview screen, so that The shooting process is simple and convenient, which improves the shooting efficiency.
应理解的是,本公开的一些实施例中,射频单元501可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器510处理;另外,将上行的数据发送给基站。通常,射频单元501包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元501还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in some embodiments of the present disclosure, the radio frequency unit 501 may be used to receive and send signals during the process of transmitting and receiving information or during a call. Specifically, the downlink data from the base station is received and processed by the processor 510; To send uplink data to the base station. Generally, the radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
移动终端通过网络模块502为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 502, such as helping users to send and receive email, browse web pages, and access streaming media.
音频输出单元503可以将射频单元501或网络模块502接收的或者在存储器509中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元503还可以提供与移动终端500执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元503包括扬声器、蜂鸣器以及受话器等。The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into audio signals and output them as sound. Moreover, the audio output unit 503 may also provide audio output (for example, a call signal receiving sound, a message receiving sound, etc.) related to a specific function performed by the mobile terminal 500. The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
输入单元504用于接收音频或视频信号。输入单元504可以包括图形处理器(Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元506上。经图形处理器5041处理后的图像帧可以存储在存储器509(或其它存储介质)中或者经由射频单元501或网络模块502进行发送。麦克风5042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元501发送到移动通信基站的格式输出。The input unit 504 is used for receiving audio or video signals. The input unit 504 may include a graphics processing unit (GPU) 5041 and a microphone 5042. The graphics processor 5041 pairs images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphics processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 can receive sound, and can process such sound into audio data. The processed audio data can be converted into a format that can be transmitted to a mobile communication base station via the radio frequency unit 501 in the case of a telephone call mode and output.
移动终端500还包括至少一种传感器505,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板5061的亮度,接近传感器可在移动终端500移动到耳边时,关闭显示面板5061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别移动终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器505还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 500 further includes at least one sensor 505, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor. The ambient light sensor can adjust the brightness of the display panel 5061 according to the brightness of the ambient light. The proximity sensor can close the display panel 5061 and the mobile terminal 500 when the mobile terminal 500 moves to the ear. / Or backlight. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (generally three axes), and can detect the magnitude and direction of gravity when it is stationary, which can be used to identify mobile terminal attitudes (such as horizontal and vertical screen switching, related games , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tap), etc .; sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecular sensor, gyroscope, barometer, hygrometer, thermometer, Infrared sensors, etc. are not repeated here.
显示单元506用于显示由用户输入的信息或提供给用户的信息。显示单元506可包括显示面板5061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板5061。The display unit 506 is configured to display information input by the user or information provided to the user. The display unit 506 may include a display panel 5061. The display panel 5061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
用户输入单元507可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板5071上或在触控面板5071附近的操作)。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测 用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器510,接收处理器510发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板5071。除了触控面板5071,用户输入单元507还可以包括其他输入设备5072。具体地,其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 507 may be used to receive inputted numeric or character information, and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also known as touch screen, can collect user's touch operations on or near it (such as the user using a finger, stylus, etc. any suitable object or accessory on touch panel 5071 or near touch panel 5071 operating). The touch panel 5071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, and detects the signal caused by the touch operation, and transmits the signal to the touch controller; the touch controller receives touch information from the touch detection device, converts it into contact coordinates, and sends it To the processor 510, receive the command sent by the processor 510 and execute it. In addition, various types such as resistive, capacitive, infrared, and surface acoustic wave can be used to implement the touch panel 5071. In addition to the touch panel 5071, the user input unit 507 may also include other input devices 5072. Specifically, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, and details are not described herein again.
进一步的,触控面板5071可覆盖在显示面板5061上,当触控面板5071检测到在其上或附近的触摸操作后,传送给处理器510以确定触摸事件的类型,随后处理器510根据触摸事件的类型在显示面板5061上提供相应的视觉输出。虽然在图10中,触控面板5071与显示面板5061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板5071与显示面板5061集成而实现移动终端的输入和输出功能,具体此处不做限定。Further, the touch panel 5071 may be overlaid on the display panel 5061. After the touch panel 5071 detects a touch operation on or near the touch panel 5071, the touch panel 5071 transmits the touch operation to the processor 510 to determine the type of touch event. The type of event provides corresponding visual output on the display panel 5061. Although in FIG. 10, the touch panel 5071 and the display panel 5061 are implemented as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 5071 and the display panel 5061 can be integrated. The implementation of the input and output functions of the mobile terminal is not specifically limited here.
接口单元508为外部装置与移动终端500连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元508可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端500内的一个或多个元件或者可以用于在移动终端500和外部装置之间传输数据。The interface unit 508 is an interface through which an external device is connected to the mobile terminal 500. For example, the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, and audio input / output (I / O) port, video I / O port, headphone port, and more. The interface unit 508 may be used to receive an input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the mobile terminal 500 or may be used for the mobile terminal 500 and external Transfer data between devices.
存储器509可用于存储软件程序以及各种数据。存储器509可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器509可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 509 can be used to store software programs and various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, etc.), etc .; the storage data area may store data according to Data (such as audio data, phone book, etc.) created by the use of mobile phones. In addition, the memory 509 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
处理器510是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器509内的软件程序和/或模块, 以及调用存储在存储器509内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器510可包括一个或多个处理单元;可选的,处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。The processor 510 is a control center of the mobile terminal, and uses various interfaces and lines to connect various parts of the entire mobile terminal, and runs or executes software programs and / or modules stored in the memory 509 and calls data stored in the memory 509 , Perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 510 may include one or more processing units; optionally, the processor 510 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and an application program, etc. The tuning processor mainly handles wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 510.
移动终端500还可以包括给各个部件供电的电源511(比如电池),可选的,电源511可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 500 may further include a power source 511 (such as a battery) for supplying power to various components. Optionally, the power source 511 may be logically connected to the processor 510 through a power management system, thereby implementing management of charging, discharging, and power consumption through the power management system. Management and other functions.
另外,移动终端500包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 500 includes some functional modules that are not shown, and details are not described herein again.
可选的,本公开的一些实施例还提供一种移动终端,包括处理器510,存储器509,存储在存储器509上并可在所述处理器510上运行的计算机程序,该计算机程序被处理器510执行时实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, some embodiments of the present disclosure further provide a mobile terminal, including a processor 510, a memory 509, and a computer program stored in the memory 509 and executable on the processor 510. The computer program is processed by the processor. When 510 is executed, the processes of the foregoing shooting method embodiments are implemented, and the same technical effects can be achieved. To avoid repetition, details are not described herein again.
本公开的一些实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。Some embodiments of the present disclosure further provide a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the processes of the foregoing shooting method embodiments are implemented, and the same Technical effects. To avoid repetition, we will not repeat them here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that, in this article, the terms "including", "including" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, It also includes other elements not explicitly listed, or elements inherent to such a process, method, article, or device. Without more restrictions, an element limited by the sentence "including a ..." does not exclude that there are other identical elements in the process, method, article, or device that includes the element.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体 现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods in the above embodiments can be implemented by means of software plus a necessary universal hardware platform, and of course, also by hardware, but in many cases the former is better. Implementation. Based on such an understanding, the technical solution of the present disclosure that is essentially or contributes to related technologies can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, and optical disk) ) Includes instructions for causing a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in the embodiments of the present disclosure.
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。The embodiments of the present disclosure have been described above with reference to the accompanying drawings, but the present disclosure is not limited to the specific implementations described above, and the specific implementations described above are only schematic and not restrictive. Those of ordinary skill in the art at Under the inspiration of this disclosure, many forms can be made without departing from the spirit of the present disclosure and the scope of protection of the claims, which all fall within the protection of this disclosure.

Claims (12)

  1. 一种拍摄方法,应用于移动终端,所述移动终端包括移动终端主体及设置在所述移动终端主体上的摄像头,所述方法包括:A shooting method is applied to a mobile terminal. The mobile terminal includes a mobile terminal body and a camera provided on the mobile terminal body. The method includes:
    通过所述摄像头采集预览画面,从所述预览画面中识别拍摄主体;Collecting a preview picture through the camera, and identifying a shooting subject from the preview picture;
    根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量。Adjusting the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and adjusting the internal optical axis offset of the camera.
  2. 根据权利要求1所述的方法,其中,所述摄像头为在竖直方向可移动的摄像头;The method according to claim 1, wherein the camera is a camera movable in a vertical direction;
    所述根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量的步骤,包括:The step of adjusting the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and, adjusting the internal optical axis offset of the camera includes:
    调整所述摄像头相对于移动终端主体在竖直方向上移动,或/和,调整所述摄像头的内部光轴在水平方向上的偏移量。Adjusting the camera to move in a vertical direction relative to the main body of the mobile terminal, or / and adjusting the amount of offset of the internal optical axis of the camera in a horizontal direction.
  3. 根据权利要求1所述的方法,其中,所述根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量的步骤,包括:The method according to claim 1, wherein the adjusting the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and adjusting the internal light of the camera Steps for axis offsets, including:
    在所述移动终端的抖动幅度大于预设阈值的情况下,若检测到预设输入操作,则调整摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量;In the case where the amplitude of the shake of the mobile terminal is greater than a preset threshold, if a preset input operation is detected, adjust the position of the camera relative to the mobile terminal body, or / and, adjust the internal optical axis offset of the camera ;
    生成与调整后所述摄像头采集的预览画面对应的图像文件。Generate an image file corresponding to the preview screen captured by the camera after the adjustment.
  4. 根据权利要求1所述的方法,其中,所述根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量的步骤,包括:The method according to claim 1, wherein the adjusting the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and adjusting the internal light of the camera Steps for axis offsets, including:
    在所述移动终端的抖动幅度不大于预设阈值的情况下,按照第一调整幅度调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量;When the jitter amplitude of the mobile terminal is not greater than a preset threshold, adjusting the position of the camera relative to the mobile terminal body according to the first adjustment amplitude, or / and adjusting the internal optical axis offset of the camera;
    若检测到预设输入操作,则按照第二调整幅度调整摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量;其中,第二调整 幅度小于第一调整幅度;If a preset input operation is detected, adjust the position of the camera relative to the mobile terminal body according to the second adjustment range, or / and adjust the internal optical axis offset of the camera; wherein the second adjustment range is smaller than the first adjustment Amplitude
    生成与所述摄像头根据第二调整幅度调整后所采集的预览画面对应的图像文件。Generate an image file corresponding to the preview picture acquired after the camera adjusts according to the second adjustment range.
  5. 根据权利要求1所述的方法,其中,在所述调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量的步骤之前,还包括:The method according to claim 1, before the step of adjusting the position of the camera relative to the mobile terminal body, or / and adjusting the internal optical axis offset of the camera, further comprising:
    根据深度学习算法对预选出的多个主体位置进行处理,以获得所述预览画面的主体位置,或者将用户预设的主体位置作为所述预览画面的主体位置;Processing a plurality of preselected subject positions according to a deep learning algorithm to obtain the subject position of the preview picture, or using the subject position preset by the user as the subject position of the preview picture;
    所述通过所述摄像头采集预览画面,从所述预览画面中识别拍摄主体的步骤,包括:The step of collecting a preview picture through the camera and identifying a shooting subject from the preview picture includes:
    对所述预览画面进行人脸识别,以获得至少一个人脸对象;Performing face recognition on the preview picture to obtain at least one face object;
    在获得一个所述人脸对象的情况下,将获得的所述人脸对象作为拍摄主体;When one face object is obtained, using the obtained face object as a photographing subject;
    在获得多个所述人脸对象的情况下,从多个所述人脸对象中选择一个人脸对象作为拍摄主体;When a plurality of the face objects are obtained, selecting one face object from the plurality of the face objects as a shooting subject;
    根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量的步骤,包括:The step of adjusting the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and, adjusting the internal optical axis offset of the camera includes:
    根据主体位置和所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量,以使所述拍摄主体在所述预览画面中的位置与所述主体位置相匹配。Adjusting the position of the camera relative to the main body of the mobile terminal according to the position of the subject and the position of the shooting subject in the preview screen, or / and adjusting the internal optical axis offset of the camera to enable the shooting The position of the subject in the preview screen matches the position of the subject.
  6. 一种移动终端,所述移动终端包括移动终端主体及设置在所述移动终端主体上的摄像头,包括:A mobile terminal includes a mobile terminal body and a camera disposed on the mobile terminal body, including:
    拍摄主体识别模块,用于通过所述摄像头采集预览画面,从所述预览画面中识别拍摄主体;A shooting subject recognition module, configured to collect a preview picture through the camera, and identify a shooting subject from the preview picture;
    调整模块,用于根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量。An adjustment module is configured to adjust the position of the camera relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and adjust the internal optical axis offset of the camera.
  7. 根据权利要求6所述的移动终端,其中,所述摄像头为在竖直方向可移动的摄像头;The mobile terminal according to claim 6, wherein the camera is a camera movable in a vertical direction;
    所述调整模块,具体用于根据所述拍摄主体在所述预览画面中的位置,调整所述摄像头相对于移动终端主体在竖直方向上移动,或/和,调整所述摄像头的内部光轴在水平方向上的偏移量。The adjustment module is specifically configured to adjust the camera to move in a vertical direction relative to the mobile terminal body according to the position of the shooting subject in the preview screen, or / and, adjust the internal optical axis of the camera Offset in the horizontal direction.
  8. 根据权利要求6所述的移动终端,其中,所述调整模块包括:The mobile terminal according to claim 6, wherein the adjustment module comprises:
    第一调整子模块,用于在所述移动终端的抖动幅度大于预设阈值的情况下,若检测到预设输入操作,则调整摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量;A first adjustment submodule, configured to adjust the position of the camera relative to the main body of the mobile terminal if a predetermined input operation is detected if the amplitude of the shake of the mobile terminal is greater than a preset threshold, or / and, adjust the The internal optical axis offset of the camera;
    第一生成子模块,用于生成与调整后所述摄像头采集的预览画面对应的图像文件。The first generating sub-module is configured to generate an image file corresponding to the preview image collected by the camera after the adjustment.
  9. 根据权利要求6所述的移动终端,其中,所述调整模块包括:The mobile terminal according to claim 6, wherein the adjustment module comprises:
    第二调整子模块,用于在所述移动终端的抖动幅度不大于预设阈值的情况下,按照第一调整幅度调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量;A second adjustment submodule, configured to adjust the position of the camera relative to the main body of the mobile terminal, or / and, adjust the camera according to the first adjustment range when the shake amplitude of the mobile terminal is not greater than a preset threshold The internal optical axis offset;
    第三调整子模块,用于若检测到预设输入操作,则按照第二调整幅度调整摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量;其中,第二调整幅度小于第一调整幅度;A third adjustment sub-module, configured to adjust the position of the camera relative to the mobile terminal body according to the second adjustment range if a preset input operation is detected, or / and adjust the internal optical axis offset of the camera; wherein, The second adjustment range is smaller than the first adjustment range;
    第二生成子模块,用于生成与所述摄像头根据第二调整幅度调整后所采集的预览画面对应的图像文件。A second generation submodule is configured to generate an image file corresponding to the preview image acquired after the camera adjusts according to the second adjustment range.
  10. 根据权利要求6所述的移动终端,还包括:主体位置获取模块,用于根据深度学习算法对预选出的多个主体位置进行处理,以获得所述预览画面的主体位置,或者将用户预设的主体位置作为所述预览画面的主体位置;The mobile terminal according to claim 6, further comprising: a subject position acquisition module, configured to process a plurality of pre-selected subject positions according to a deep learning algorithm to obtain the subject positions of the preview picture, or preset the user The main body position of the main screen as the main body position of the preview screen;
    所述拍摄主体识别模块包括:The shooting subject recognition module includes:
    人脸对象获取子模块,用于对所述拍摄画面进行人脸识别,以获得至少一个人脸对象;A face object acquisition submodule, configured to perform face recognition on the shooting picture to obtain at least one face object;
    第一拍摄主体获取子模块,用于在获得一个所述人脸对象的情况下,将获得的所述人脸对象作为拍摄主体;A first shooting subject acquisition submodule, configured to use the obtained face object as a shooting subject when one of the face objects is obtained;
    第二拍摄主体获取子模块,用于在获得多个所述人脸对象的情况下,从多个所述人脸对象中选择一个人脸对象作为拍摄主体;A second shooting subject acquisition submodule, configured to select a face object as a shooting subject from a plurality of the face objects when a plurality of the face objects are obtained;
    所述调整模块具体用于:根据主体位置和所述拍摄主体在所述预览画面 中的位置,调整所述摄像头相对于移动终端主体的位置,或/和,调整所述摄像头的内部光轴偏移量,以使所述拍摄主体在所述预览画面中的位置与所述主体位置相匹配。The adjustment module is specifically configured to adjust the position of the camera relative to the mobile terminal body according to the position of the subject and the position of the shooting subject in the preview screen, or / and adjust the internal optical axis deviation of the camera The amount of movement so that the position of the shooting subject in the preview screen matches the position of the subject.
  11. 一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的拍摄方法的步骤。A mobile terminal includes a processor, a memory, and a computer program stored on the memory and executable on the processor. When the computer program is executed by the processor, any one of claims 1 to 5 is implemented. Steps of a shooting method.
  12. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的拍摄方法的步骤。A computer-readable storage medium having stored thereon a computer program, and when the computer program is executed by a processor, the steps of the photographing method according to any one of claims 1 to 5 are implemented.
PCT/CN2019/097235 2018-07-26 2019-07-23 Photographing method and mobile terminal WO2020020134A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810832500.X 2018-07-26
CN201810832500.XA CN108989672B (en) 2018-07-26 2018-07-26 Shooting method and mobile terminal

Publications (1)

Publication Number Publication Date
WO2020020134A1 true WO2020020134A1 (en) 2020-01-30

Family

ID=64550965

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/097235 WO2020020134A1 (en) 2018-07-26 2019-07-23 Photographing method and mobile terminal

Country Status (2)

Country Link
CN (1) CN108989672B (en)
WO (1) WO2020020134A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669505A (en) * 2020-06-30 2020-09-15 维沃移动通信有限公司 Camera starting method and device
CN113055657A (en) * 2021-03-31 2021-06-29 广东电网有限责任公司 Image acquisition method and system based on power grid line inspection
CN115250329A (en) * 2021-04-28 2022-10-28 深圳市三诺数字科技有限公司 Camera control method and device, computer equipment and storage medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108989672B (en) * 2018-07-26 2022-03-22 维沃移动通信有限公司 Shooting method and mobile terminal
CN110006361B (en) * 2019-03-12 2021-08-03 精诚工科汽车系统有限公司 Automatic part detection method and system based on industrial robot
CN110177223B (en) * 2019-06-28 2021-10-22 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment and computer readable storage medium
CN111147749A (en) * 2019-12-31 2020-05-12 宇龙计算机通信科技(深圳)有限公司 Photographing method, photographing device, terminal and storage medium
CN112601014A (en) * 2020-12-10 2021-04-02 努比亚技术有限公司 Shooting angle regulation and control method and device and computer readable storage medium
CN115103107B (en) * 2022-06-01 2023-11-07 上海传英信息技术有限公司 Focusing control method, intelligent terminal and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964870A (en) * 2009-07-23 2011-02-02 华晶科技股份有限公司 Image capture device for correcting image positions and image position correction method
CN103051836A (en) * 2012-12-14 2013-04-17 中兴通讯股份有限公司 Anti-shake photographing method and anti-shake photographing device for mobile terminal
CN104601889A (en) * 2015-01-20 2015-05-06 广东欧珀移动通信有限公司 Photographing method and device of mobile terminal
CN104794462A (en) * 2015-05-11 2015-07-22 北京锤子数码科技有限公司 Figure image processing method and device
CN104883497A (en) * 2015-04-30 2015-09-02 广东欧珀移动通信有限公司 Positioning shooting method and mobile terminal
US20150304566A1 (en) * 2014-04-16 2015-10-22 Samsung Electronics Co., Ltd. Display apparatus and image composition method thereof
CN106027907A (en) * 2016-06-30 2016-10-12 维沃移动通信有限公司 Method for automatically adjusting camera, and mobile terminal
CN108989672A (en) * 2018-07-26 2018-12-11 维沃移动通信有限公司 A kind of image pickup method and mobile terminal

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9208550B2 (en) * 2012-08-15 2015-12-08 Fuji Xerox Co., Ltd. Smart document capture based on estimated scanned-image quality
CN105718887A (en) * 2016-01-21 2016-06-29 惠州Tcl移动通信有限公司 Shooting method and shooting system capable of realizing dynamic capturing of human faces based on mobile terminal
CN107864329A (en) * 2016-09-22 2018-03-30 中兴通讯股份有限公司 A kind of method, apparatus and terminal of self-timer calibration sight
CN106506959A (en) * 2016-11-15 2017-03-15 上海传英信息技术有限公司 Photographic means and camera installation
CN106683195B (en) * 2016-12-30 2021-03-09 上海网罗电子科技有限公司 AR scene rendering method based on indoor positioning
CN108055532A (en) * 2017-12-27 2018-05-18 上海传英信息技术有限公司 Automate the method and apparatus of matching test card

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101964870A (en) * 2009-07-23 2011-02-02 华晶科技股份有限公司 Image capture device for correcting image positions and image position correction method
CN103051836A (en) * 2012-12-14 2013-04-17 中兴通讯股份有限公司 Anti-shake photographing method and anti-shake photographing device for mobile terminal
US20150304566A1 (en) * 2014-04-16 2015-10-22 Samsung Electronics Co., Ltd. Display apparatus and image composition method thereof
CN104601889A (en) * 2015-01-20 2015-05-06 广东欧珀移动通信有限公司 Photographing method and device of mobile terminal
CN104883497A (en) * 2015-04-30 2015-09-02 广东欧珀移动通信有限公司 Positioning shooting method and mobile terminal
CN104794462A (en) * 2015-05-11 2015-07-22 北京锤子数码科技有限公司 Figure image processing method and device
CN106027907A (en) * 2016-06-30 2016-10-12 维沃移动通信有限公司 Method for automatically adjusting camera, and mobile terminal
CN108989672A (en) * 2018-07-26 2018-12-11 维沃移动通信有限公司 A kind of image pickup method and mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669505A (en) * 2020-06-30 2020-09-15 维沃移动通信有限公司 Camera starting method and device
CN111669505B (en) * 2020-06-30 2022-09-20 维沃移动通信(杭州)有限公司 Camera starting method and device
CN113055657A (en) * 2021-03-31 2021-06-29 广东电网有限责任公司 Image acquisition method and system based on power grid line inspection
CN115250329A (en) * 2021-04-28 2022-10-28 深圳市三诺数字科技有限公司 Camera control method and device, computer equipment and storage medium
CN115250329B (en) * 2021-04-28 2024-04-19 深圳市三诺数字科技有限公司 Camera control method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN108989672B (en) 2022-03-22
CN108989672A (en) 2018-12-11

Similar Documents

Publication Publication Date Title
WO2020020134A1 (en) Photographing method and mobile terminal
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
WO2021078116A1 (en) Video processing method and electronic device
US11689649B2 (en) Shooting method and terminal
WO2019192590A1 (en) Photography method and mobile terminal
CN109461117B (en) Image processing method and mobile terminal
WO2019174628A1 (en) Photographing method and mobile terminal
CN109246360B (en) Prompting method and mobile terminal
WO2020042890A1 (en) Video processing method, terminal, and computer readable storage medium
WO2021036623A1 (en) Display method and electronic device
WO2021104227A1 (en) Photographing method and electronic device
WO2021197121A1 (en) Image photographing method and electronic device
WO2021013009A1 (en) Photographing method and terminal device
CN111031253B (en) Shooting method and electronic equipment
CN110198413B (en) Video shooting method, video shooting device and electronic equipment
CN108881721B (en) Display method and terminal
WO2021190390A1 (en) Focusing method, electronic device, storage medium and program product
US11863901B2 (en) Photographing method and terminal
WO2020011080A1 (en) Display control method and terminal device
WO2021104226A1 (en) Photographing method and electronic device
CN108174110B (en) Photographing method and flexible screen terminal
CN111416935B (en) Shooting method and electronic equipment
CN110363729B (en) Image processing method, terminal equipment and computer readable storage medium
CN109005337B (en) Photographing method and terminal
US10270963B2 (en) Angle switching method and apparatus for image captured in electronic terminal

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: 19840260

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: 19840260

Country of ref document: EP

Kind code of ref document: A1