WO2020220973A1 - Photographing method and mobile terminal - Google Patents

Photographing method and mobile terminal Download PDF

Info

Publication number
WO2020220973A1
WO2020220973A1 PCT/CN2020/084225 CN2020084225W WO2020220973A1 WO 2020220973 A1 WO2020220973 A1 WO 2020220973A1 CN 2020084225 W CN2020084225 W CN 2020084225W WO 2020220973 A1 WO2020220973 A1 WO 2020220973A1
Authority
WO
WIPO (PCT)
Prior art keywords
angle
image sensor
preset
mobile terminal
viewfinder lens
Prior art date
Application number
PCT/CN2020/084225
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 WO2020220973A1 publication Critical patent/WO2020220973A1/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/50Constructional details
    • H04N23/54Mounting of pick-up tubes, electronic image sensors, deviation or focusing coils
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/50Constructional details
    • H04N23/55Optical parts specially adapted for electronic image sensors; Mounting thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/57Mechanical or electrical details of cameras or camera modules specially adapted for being embedded in other devices
    • 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

Definitions

  • the present disclosure relates to the technical field of communication applications, and in particular, to a shooting method and a mobile terminal.
  • the camera function is used very frequently.
  • the front of the mobile phone must have a camera shooting window.
  • a lift camera becomes a better solution to this problem.
  • the purpose of the present disclosure is to provide a photographing method and a mobile terminal to solve the problem that the elevating camera in the related art is difficult to automatically track images.
  • the embodiments of the present disclosure provide a shooting method applied to a mobile terminal.
  • the mobile terminal includes a housing, a viewfinder lens, and an image sensor.
  • the housing is provided with an opening, and the viewfinder lens is movably Is arranged in the housing to extend or retract from the opening, and the viewfinder lens is rotatable around the axis of the opening, the image sensor is arranged inside the housing, and the viewfinder lens is used to The light rays entering the viewfinder lens are projected to the image sensor, and the shooting method includes:
  • the image frame is generated by shooting the subject.
  • an embodiment of the present disclosure also provides a mobile terminal, including a housing, a viewfinder lens, and an image sensor, the housing is provided with an opening, and the viewfinder lens is movably disposed on the housing to view The opening extends or retracts, and the viewfinder lens is rotatable around the axis of the opening, the image sensor is arranged inside the housing, and the viewfinder lens is used to shoot into the viewfinder lens The light is projected to the image sensor, and the mobile terminal further includes:
  • a determining module configured to determine a shooting object when detecting that the viewfinder lens protrudes from the housing through the opening
  • the acquiring module is configured to acquire the target angle between the position of the photographing object and the preset position of the image sensor within a preset time period before the target moment, and the target time is to generate each image according to the photographing object Moment of frame
  • An adjustment module configured to adjust the target angle to the preset angle by controlling the rotation of the viewfinder lens when the target angle is different from the preset angle;
  • the processing module is configured to photograph the subject to generate the image frame.
  • the embodiments of the present disclosure also provide a mobile terminal, including a processor, a memory, and a computer program stored on the memory and running on the processor, and the computer program is executed by the processor. When executed, the steps of the above-mentioned shooting method are realized.
  • the embodiments of the present disclosure also provide a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the shooting method described above are implemented.
  • the above-mentioned technical solutions of the embodiments of the present disclosure ensure that the target angle between the position of the shooting object and the preset position of the image sensor is the preset angle by rotating the viewfinder lens so as to achieve the target angle Real-time tracking.
  • FIG. 1 is a schematic diagram of imaging through a viewfinder lens and a camera in an embodiment of the disclosure
  • FIG. 2 is a schematic diagram of the first light path during imaging in an embodiment of the disclosure
  • FIG. 3 is a schematic diagram of a second light path during imaging in an embodiment of the disclosure.
  • FIG. 4 is a schematic flowchart of a shooting method according to an embodiment of the disclosure.
  • FIG. 5 is a schematic diagram of the driving motor rotating in an embodiment of the disclosure.
  • FIG. 6 is a schematic diagram of the relationship between the difference ⁇ between the target angle and the preset angle and the number of image frames
  • Figure 7 is a schematic diagram of the rotation curve corresponding to the uniform rotation and the non-uniform rotation of the motor
  • FIG. 8 is one of schematic diagrams of modules of a mobile terminal provided by an embodiment of the disclosure.
  • FIG. 9 is a second schematic diagram of modules of a mobile terminal provided by an embodiment of the disclosure.
  • FIG. 10 is a structural block diagram of a mobile terminal provided by an embodiment of the disclosure.
  • the shooting method of the embodiment of the present disclosure is applied to a mobile terminal.
  • the mobile terminal includes a housing, a viewfinder lens, and an image sensor, the housing is provided with an opening, and the viewfinder lens is movably provided on the housing to Extend or retract from the opening, and the viewfinder lens is rotatable around the axis of the opening, the image sensor is arranged inside the housing, and the viewfinder lens is used to shoot into the viewfinder lens
  • the above-mentioned viewfinder lens may be specifically a mirror or a reflective lens.
  • the mobile terminal of the embodiment of the present disclosure further includes a camera lens arranged inside the housing and connected to the image sensor, As shown in FIG.
  • CMOS Complementary Metal Oxide Semiconductor
  • CCD Charge Coupled Device
  • the image sensor converts the resulting image into binary data and passes through the terminal processor (Central The image information processor (Image Signal Processor, ISP) in the Processing Unit (CPU) converts it into display data and displays it on the display screen, so that the user can see the captured image.
  • ISP Image Signal Processor
  • the image formed by the subject on the image sensor is A'
  • the image formed by the subject on the image sensor is A1'
  • the subject is at A2
  • the image of the subject on the image sensor is A2'.
  • the frame rate of the camera shooting preview is generally 30 frames.
  • the horizontal distance x of the subject moving on the image sensor can be obtained, and each frame of image can be obtained through the Hall device on the closed loop motor.
  • the distance d from the middle image sensor to the camera lens is used to obtain the moving angle of the object relative to the camera in two adjacent frames, so that the angle of the object moving relative to the camera can be obtained in real time.
  • the purpose of tracking shooting is to keep the shooting object at a specific position of the image sensor (for example, the middle position of the image sensor) for imaging.
  • an embodiment of the present disclosure provides a shooting method, including:
  • Step 401 When it is detected that the viewfinder lens protrudes from the housing through the opening, determine the shooting object.
  • the processor controls the viewfinder lens to extend out of the housing through the opening.
  • the camera module is activated, and the camera determines the shooting target selected by the user as the shooting object.
  • the subject can be a human face.
  • the camera recognizes the image of the photographed object and collects feature points, so that the photographed object can be tracked and photographed later.
  • Step 402 Acquire a target angle between the position of the photographic subject and the preset position of the image sensor within a preset period of time before the target moment, and the target moment is the value of each image frame generated according to the photographic subject time.
  • the target angle specifically refers to the angle by which the current position of the photographing object deviates from the preset position of the image sensor. Before each image frame is generated, the target angle between the position of the photographing object and the preset position of the image sensor is obtained. In order to control the rotation of the viewfinder lens according to the target angle, thereby ensuring that the image formed by the subject on the image sensor is always located at the preset position of the image sensor.
  • the preset position of the image sensor is the center position of the image sensor.
  • Determining the preset position of the image sensor as the center position of the image sensor ensures that the image formed by the subject on the image sensor is always located at the center position of the image sensor, which conforms to the user's shooting habits.
  • Step 403 When the target angle is different from the preset angle, adjust the target angle to the preset angle by controlling the rotation of the viewfinder lens.
  • the preset angle can be specifically set to 0 degrees.
  • the viewfinder lens is controlled to rotate to ensure the position of the shooting object and the preset position of the image sensor
  • the angle between is 0 degrees, that is, to ensure that the image formed by the subject on the image sensor is always at the center of the image sensor.
  • Step 404 Take a picture of the subject to generate the image frame.
  • the image frame is generated by controlling the camera to shoot the subject.
  • the shooting object when it is detected that the viewfinder lens extends from the housing through the opening, the shooting object is determined; the position and the position of the shooting object are acquired within a preset time period before the target time.
  • the target angle between the preset positions of the image sensor, the target moment is the moment when each image frame is generated according to the photographing object; when the target angle is different from the preset angle, by controlling the rotation of the viewfinder lens, The target angle is adjusted to the preset angle; and the image frame is generated by shooting the subject.
  • the viewfinder lens is rotated to ensure that the target angle between the position of the subject and the preset position of the image sensor is the preset angle when each image frame is taken, so that real-time tracking of the subject is achieved .
  • the preset time period is a time period corresponding to shooting one image frame.
  • the time corresponding to shooting an image frame is n milliseconds, that is, when an image frame is generated at time n, time 2n, time 3n, ..., then it is in 0-n, n-2n, 2n -3n..., acquire the target angle between the position of the subject and the preset position of the image sensor.
  • the frame rate of the camera is 30 frames
  • the time period corresponding to shooting an image frame is 33.3ms, specifically in the time period of 0-33.3ms, the time period of 33.3-66.6,..., the position and image of the subject are acquired The target angle between the preset positions of the sensor.
  • the target angle obtained in the 0-n time period is the angle between the object and the image sensor at time 0
  • the target angle obtained in the n-2n time period is the angle between the object and the image sensor at time n
  • the angle between is the angle between the subject and the image sensor when the target angle is acquired in the time period of 2n-3n.
  • the target angle between the position of the shooting object and the preset position of the image sensor is obtained to ensure that when each image frame is generated, the shooting object is in the image
  • the image formed on the sensor is always close to the center of the image sensor, that is, tracking shooting is realized.
  • the mobile terminal further includes a camera lens, and the camera lens is arranged in the housing and connected with the image sensor;
  • the acquiring the target angle between the current position of the shooting object and the preset position of the image sensor includes:
  • the first distance is the distance between the image formed by the subject on the image sensor and the preset position of the image sensor
  • the second distance Is the distance between the image sensor and the camera lens
  • the target angle is obtained.
  • the above-mentioned first distance can be obtained by counting pixels by the processor, and the above-mentioned second distance can be obtained by a Hall device on a closed-loop motor.
  • the mobile terminal further includes: a motor connected to the viewfinder lens;
  • the adjusting the target angle to the preset angle by controlling the rotation of the viewfinder lens includes:
  • the angle of the motor rotation is a corresponding relationship between the angle of the motor rotation and the angle of the viewfinder lens.
  • the first angle of the viewfinder lens rotation can be calculated.
  • the first angle is the above-mentioned target angle and The difference between the preset angles, and according to the corresponding relationship between the angle of rotation of the motor and the angle of rotation of the viewfinder lens, the second angle of motor rotation is obtained, and then the processor controls the motor to rotate the second angle within a preset period of time angle.
  • the processor sends an instruction EN to enable the motor driver, and selects the drive mode (subdivision drive level) of the motor driver through the MODE pin.
  • the motor driver modulates according to pulse width
  • the number of pulses Pulse-Width Modulation, PWM determines how many steps the motor takes to achieve precise control of the motor.
  • the difference between the rotation speed of the motor at the last moment of the preset time period and zero is less than a preset threshold.
  • the motor can rotate in a way that the speed gradually decreases within a preset time period, or it can rotate at a uniform speed first, and then rotate in a way that the speed gradually decreases, that is to ensure that the motor speed approaches 0 at the last moment. .
  • the purpose of tracking and shooting is to always keep the subject in the middle of the image sensor, that is, after reaching a steady state, the value of ⁇ (the difference between the target angle and the preset angle) tends to be as close as possible.
  • the error of the motor needs to be taken into account.
  • the error of the motor mainly comes from the inertia after completing the number of steps given by the motor driver, and the inertia will continue to move forward, and this inertia is directly related to the motor speed.
  • Figure 6 there may be a situation as shown in Figure 6 (assuming that the shooting target is fixed and the mobile phone is also fixed).
  • the motor rotates at a non-uniform speed, first fast and then slow within time t.
  • the angle of rotation of the motor is detected close to ⁇ , the speed of motor B is also close to 0, eliminating the influence of inertia.
  • the time of each frame is about 33.3ms.
  • the motor In order to achieve the effect of tracking and shooting, the motor must meet the time of one frame (33.3ms) and be able to run the angle of ⁇ .
  • also needs to meet: -0.5FOV ⁇ 0.5FOV; FOV is the field of view of the camera. Obviously, when ⁇ exceeds this range, the camera will not be able to capture the target picture in the next frame of picture and cannot track and shoot.
  • the shooting method of the embodiment of the present disclosure by rotating the viewfinder lens, when each image frame is shot, it can be ensured that the target angle between the position of the shooting object and the preset position of the image sensor is the preset angle, so as to realize the control of the shooting object. Real-time tracking.
  • An embodiment of the present disclosure also provides a mobile terminal, including a housing, a viewfinder lens, and an image sensor.
  • the housing is provided with an opening, and the viewfinder lens is movably disposed on the housing to extend from the opening.
  • the viewfinder lens is rotatable around the axis of the opening, the image sensor is arranged inside the housing, and the viewfinder lens is used to project the light that enters the viewfinder lens to all
  • the image sensor as shown in FIG. 8, the mobile terminal 800 further includes:
  • the determining module 801 is configured to determine the shooting object when detecting that the viewfinder lens extends from the housing through the opening;
  • the obtaining module 802 is configured to obtain a target angle between the position of the photographing object and the preset position of the image sensor within a preset period of time before the target time, and the target time is to generate each object according to the photographing object.
  • the adjustment module 803 is configured to adjust the target angle to the preset angle by controlling the rotation of the viewfinder lens when the target angle is different from the preset angle;
  • the processing module 804 is configured to photograph the subject to generate the image frame.
  • the preset time period is a time period corresponding to the shooting of one image frame.
  • the mobile terminal of the embodiment of the present disclosure further includes a camera lens, the camera lens is arranged in the housing and connected to the image sensor; as shown in FIG. 9, the acquisition module 802 includes:
  • the first acquisition sub-module 8021 is used to acquire a first distance and a second distance; wherein, the first distance is the difference between the image formed by the subject on the image sensor and the preset position of the image sensor The second distance is the distance between the image sensor and the camera lens;
  • the second obtaining submodule 8022 is configured to obtain the target angle according to the first distance and the second distance.
  • the mobile terminal of the embodiment of the present disclosure further includes: a motor connected to the viewfinder lens;
  • the adjustment module 803 includes:
  • the first determining submodule 8031 is configured to determine the first angle of rotation of the viewfinder lens according to the target angle and the preset angle;
  • the second determining sub-module 8032 is configured to determine a second angle of rotation of the motor according to the first angle
  • the control sub-module 8033 is configured to control the motor to rotate the second angle within the preset time period.
  • the difference between the rotation speed of the motor at the last moment of the preset time period and zero is less than a preset threshold.
  • the preset position of the image sensor is the center position of the image sensor.
  • the mobile terminal of the embodiment of the present disclosure can ensure that the target angle between the position of the object and the preset position of the image sensor is the preset angle by rotating the viewfinder lens when shooting each image frame. Real-time tracking.
  • the mobile terminal is a mobile terminal corresponding to the foregoing method embodiment, and all implementation manners in the foregoing method embodiment are applicable to the embodiment of the mobile terminal, and the same technical effect can also be achieved.
  • FIG. 10 is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present disclosure.
  • the mobile terminal 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, and a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, a power supply 1011 and other components.
  • Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 10 does not constitute a limitation on the terminal.
  • the mobile terminal may include more or less components than those shown in the figure, or combine certain components, or different component arrangements.
  • mobile terminals include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
  • the mobile terminal also includes a housing, a viewfinder lens, and an image sensor.
  • the housing is provided with an opening, and the viewfinder lens is movably provided on the housing to extend or retract from the opening, and The viewfinder lens is rotatable around the axis of the opening, the image sensor is arranged inside the housing, and the viewfinder lens is used for projecting the light incident on the viewfinder lens to the image sensor.
  • the processor 1010 is configured to detect that the viewfinder lens protrudes from the housing through the opening, and determine the shooting object;
  • the image frame is generated by shooting the subject.
  • the above-mentioned technical solutions of the embodiments of the present disclosure ensure that the target angle between the position of the shooting object and the preset position of the image sensor is the preset angle by rotating the viewfinder lens so as to achieve the target angle Real-time tracking.
  • the radio frequency unit 1001 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 1010; Uplink data is sent to the base station.
  • the radio frequency unit 1001 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 1001 can also communicate with the network and other devices through a wireless communication system.
  • the mobile terminal provides users with wireless broadband Internet access through the network module 1002, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 1003 can convert the audio data received by the radio frequency unit 1001 or the network module 1002 or stored in the memory 1009 into audio signals and output them as sounds. Moreover, the audio output unit 1003 may also provide audio output related to a specific function performed by the mobile terminal 1000 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 1003 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 1004 is used to receive audio or video signals.
  • the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 10041 is configured to monitor 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 frame can be displayed on the display unit 1006.
  • the image frame processed by the graphics processor 10041 may be stored in the memory 1009 (or other storage medium) or sent via the radio frequency unit 1001 or the network module 1002.
  • the microphone 10042 can receive sound and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 1001 in the case of a telephone call mode for output.
  • the mobile terminal 1000 also includes at least one sensor 1005, 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 10061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 10061 and the display panel 10061 when the mobile terminal 1000 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify terminal posture (such as horizontal and vertical screen switching, related games, Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 1005 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared Sensors, etc., will not be repeated here.
  • the display unit 1006 is used to display information input by the user or information provided to the user.
  • the display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 1007 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the mobile terminal.
  • the user input unit 1007 includes a touch panel 10071 and other input devices 10072.
  • the touch panel 10071 also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 10071 or near the touch panel 10071. operating).
  • the touch panel 10071 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it
  • the processor 1010 receives and executes the command sent by the processor 1010.
  • the touch panel 10071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 1007 may also include other input devices 10072.
  • other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 10071 can be overlaid on the display panel 10061.
  • the touch panel 10071 detects a touch operation on or near it, it transmits it to the processor 1010 to determine the type of the touch event, and then the processor 1010 determines the type of touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 10061.
  • the touch panel 10071 and the display panel 10061 are used as two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 10071 and the display panel 10061 may be integrated
  • the implementation of the input and output functions of the mobile terminal is not specifically limited here.
  • the interface unit 1008 is an interface for connecting an external device with the mobile terminal 1000.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (input/output, I/O) port, video I/O port, headphone port, etc.
  • the interface unit 1008 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the mobile terminal 1000 or can be used to connect to the mobile terminal 1000 and external Transfer data between devices.
  • the memory 1009 can be used to store software programs and various data.
  • the memory 1009 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones.
  • the memory 1009 may include a high-speed random access memory, and may also 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 1010 is the control center of the mobile terminal. It uses various interfaces and lines to connect the various parts of the entire mobile terminal, runs or executes software programs and/or modules stored in the memory 1009, and calls data stored in the memory 1009 , Perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole.
  • the processor 1010 may include one or more processing units; optionally, the processor 1010 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface and application programs, etc.
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1010.
  • the mobile terminal 1000 may also include a power supply 1011 (such as a battery) for supplying power to various components.
  • a power supply 1011 (such as a battery) for supplying power to various components.
  • the power supply 1011 may be logically connected to the processor 1010 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the mobile terminal 1000 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present disclosure further provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and running on the processor.
  • the computer program is executed by the processor to implement the aforementioned shooting method
  • the embodiments of the present disclosure also provide a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, each process of the above-mentioned shooting method embodiment is realized, and the same technical effect can be achieved To avoid repetition, I won’t repeat it here.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
  • the method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better. ⁇
  • the technical solution of the present disclosure essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present disclosure.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the computer software product is stored in a storage medium and includes several instructions to make a A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the steps of the methods described in the various embodiments of the present disclosure.
  • the aforementioned storage media include: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
  • the program can be stored in a computer readable storage medium. When executed, it may include the procedures of the above-mentioned method embodiments.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
  • modules, units, and sub-units can be implemented in one or more Application Specific Integrated Circuits (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSP Device, DSPD) ), Programmable Logic Device (PLD), Field-Programmable Gate Array (FPGA), general-purpose processors, controllers, microcontrollers, microprocessors, used to implement Described functions in other electronic units or combinations thereof.
  • ASIC Application Specific Integrated Circuits
  • DSP Digital Signal Processor
  • DSP Device Digital Signal Processing Device
  • DSPD Digital Signal Processing Device
  • PLD Programmable Logic Device
  • FPGA Field-Programmable Gate Array
  • the technology described in the embodiments of the present disclosure can be implemented through modules (for example, procedures, functions, etc.) that perform the functions described in the embodiments of the present disclosure.
  • the software codes can be stored in the memory and executed by the processor.
  • the memory can be implemented in the processor or external to the processor.

Landscapes

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

Abstract

Provided are a photographing method and a mobile terminal. The photographing method of the present disclosure comprises: when it is detected that a view finding camera extends out of a shell through an opening, determining a photographed object; acquiring a target angle between the position of the photographed object and a preset position of an image sensor within a preset time period before a target moment, wherein the target moment is a moment when each image frame is generated according to the photographed object; and when the target angle is different from a preset angle, adjusting the target angle to the preset angle by controlling the view finding camera to rotate; and photographing the photographed object to generate the image frame.

Description

拍摄方法及移动终端Shooting method and mobile terminal
相关申请的交叉引用Cross references to related applications
本申请主张在2019年4月29日在中国提交的中国专利申请号No.201910355129.7的优先权,其全部内容通过引用包含于此。This application claims the priority of Chinese Patent Application No. 201910355129.7 filed in China on April 29, 2019, the entire content of which is incorporated herein by reference.
技术领域Technical field
本公开涉及通信应用的技术领域,尤其涉及一种拍摄方法及移动终端。The present disclosure relates to the technical field of communication applications, and in particular, to a shooting method and a mobile terminal.
背景技术Background technique
随着智能手机的发展进步,手机的功能越来越多。随着手机功能的多样化,用户对手机显示屏尺寸的要求越来越高;显示屏尺寸的增加,导致手机外形尺寸也随之加大,已经达到人手手握的极限尺寸,再加大外形尺寸,会影响用户体验感。因此,在外形尺寸一定的基础上,增加显示屏占比成为提升显示尺寸的发展趋势。With the development and progress of smart phones, mobile phones have more and more functions. With the diversification of mobile phone functions, users have higher and higher requirements for the size of the mobile phone display; the increase in the size of the display has led to an increase in the size of the mobile phone, which has reached the limit size of a human hand, and then increase the size The size will affect the user experience. Therefore, on the basis of a certain external size, increasing the proportion of the display screen has become a development trend to increase the display size.
在手机各种各样的功能中,拍照功能的使用频率极高。由于要实现自拍功能,手机正面必须要留摄像头拍摄窗口,要实现上下窄边提升显示屏占比,需要解决自拍摄像头占用显示区的矛盾,升降式摄像头成为解决此问题的一种较好方案。Among the various functions of mobile phones, the camera function is used very frequently. In order to realize the Selfie function, the front of the mobile phone must have a camera shooting window. To increase the proportion of the display screen on the upper and lower narrow sides, it is necessary to solve the contradiction of the Selfie camera occupying the display area. A lift camera becomes a better solution to this problem.
但相关技术中的升降式摄像头难以对图像自动追踪,用户拍摄短视频的时候,需要其他人的配合才能完成拍摄;而有些短视频拍摄是比较私密的,用户需要自己单独来拍摄,因此,难以满足用户的拍摄需求。However, it is difficult for the lifting camera in the related technology to automatically track the image. When the user shoots a short video, the cooperation of other people is required to complete the shooting; while some short video shooting is relatively private, the user needs to shoot alone, so it is difficult Meet the user's shooting needs.
发明内容Summary of the invention
本公开的目的在于提供一种拍摄方法及移动终端,以解决相关技术中的升降式摄像头难以对图像自动追踪的问题。The purpose of the present disclosure is to provide a photographing method and a mobile terminal to solve the problem that the elevating camera in the related art is difficult to automatically track images.
为了解决上述技术问题,本公开是这样实现的:In order to solve the above technical problems, the present disclosure is implemented as follows:
第一方面,本公开实施例提供了一种拍摄方法,应用于移动终端,所述移动终端包括壳体、取景镜头和图像传感器,所述壳体上设置有开口,所述 取景镜头可移动地设置于所述壳体以从所述开口伸出或缩回,且所述取景镜头绕所述开口的轴线可转动,所述图像传感器设置于所述壳体内部,所述取景镜头用于将射入到所述取景镜头的光线投射至所述图像传感器,所述拍摄方法包括:In the first aspect, the embodiments of the present disclosure provide a shooting method applied to a mobile terminal. The mobile terminal includes a housing, a viewfinder lens, and an image sensor. The housing is provided with an opening, and the viewfinder lens is movably Is arranged in the housing to extend or retract from the opening, and the viewfinder lens is rotatable around the axis of the opening, the image sensor is arranged inside the housing, and the viewfinder lens is used to The light rays entering the viewfinder lens are projected to the image sensor, and the shooting method includes:
检测到所述取景镜头通过所述开口从所述壳体伸出时,确定拍摄对象;When it is detected that the viewfinder lens protrudes from the housing through the opening, determining a shooting object;
在目标时刻之前的预设时间段内,获取所述拍摄对象的位置与图像传感器的预设位置之间的目标角度,所述目标时刻为根据所述拍摄对象生成每个图像帧的时刻;Acquiring a target angle between the position of the shooting object and the preset position of the image sensor in a preset time period before the target time, where the target time is the time at which each image frame is generated according to the shooting object;
在所述目标角度与预设角度不同时,通过控制所述取景镜头旋转,将所述目标角度调整为所述预设角度;When the target angle is different from the preset angle, adjusting the target angle to the preset angle by controlling the rotation of the viewfinder lens;
对所述拍摄对象进行拍摄生成所述图像帧。The image frame is generated by shooting the subject.
第二方面,本公开实施例还提供了一种移动终端,包括壳体、取景镜头和图像传感器,所述壳体上设置有开口,所述取景镜头可移动地设置于所述壳体以从所述开口伸出或缩回,且所述取景镜头绕所述开口的轴线可转动,所述图像传感器设置于所述壳体内部,所述取景镜头用于将射入到所述取景镜头的光线投射至所述图像传感器,所述移动终端还包括:In a second aspect, an embodiment of the present disclosure also provides a mobile terminal, including a housing, a viewfinder lens, and an image sensor, the housing is provided with an opening, and the viewfinder lens is movably disposed on the housing to view The opening extends or retracts, and the viewfinder lens is rotatable around the axis of the opening, the image sensor is arranged inside the housing, and the viewfinder lens is used to shoot into the viewfinder lens The light is projected to the image sensor, and the mobile terminal further includes:
确定模块,用于检测到所述取景镜头通过所述开口从所述壳体伸出时,确定拍摄对象;A determining module, configured to determine a shooting object when detecting that the viewfinder lens protrudes from the housing through the opening;
获取模块,用于在目标时刻之前的预设时间段内,获取所述拍摄对象的位置与图像传感器的预设位置之间的目标角度,所述目标时刻为根据所述拍摄对象生成每个图像帧的时刻;The acquiring module is configured to acquire the target angle between the position of the photographing object and the preset position of the image sensor within a preset time period before the target moment, and the target time is to generate each image according to the photographing object Moment of frame
调整模块,用于在所述目标角度与预设角度不同时,通过控制所述取景镜头旋转,将所述目标角度调整为所述预设角度;An adjustment module, configured to adjust the target angle to the preset angle by controlling the rotation of the viewfinder lens when the target angle is different from the preset angle;
处理模块,用于对所述拍摄对象进行拍摄生成所述图像帧。The processing module is configured to photograph the subject to generate the image frame.
第三方面,本公开实施例还提供了一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如上所述拍摄方法的步骤。In a third aspect, the embodiments of the present disclosure also provide a mobile terminal, including a processor, a memory, and a computer program stored on the memory and running on the processor, and the computer program is executed by the processor. When executed, the steps of the above-mentioned shooting method are realized.
第四方面,本公开实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现 如上所述拍摄方法的步骤。In a fourth aspect, the embodiments of the present disclosure also provide a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the shooting method described above are implemented.
本公开实施例具有以下有益效果:The embodiments of the present disclosure have the following beneficial effects:
本公开实施例的上述技术方案,通过旋转取景镜头使得在拍摄每个图像帧时,都能保证拍摄对象的位置与图像传感器的预设位置之间的目标角度为预设角度,实现对拍摄对象的实时跟踪。The above-mentioned technical solutions of the embodiments of the present disclosure ensure that the target angle between the position of the shooting object and the preset position of the image sensor is the preset angle by rotating the viewfinder lens so as to achieve the target angle Real-time tracking.
附图说明Description of the drawings
图1为本公开实施例中通过取景镜头和摄像头的成像示意图;FIG. 1 is a schematic diagram of imaging through a viewfinder lens and a camera in an embodiment of the disclosure;
图2为本公开实施例中成像时的第一光路示意图;2 is a schematic diagram of the first light path during imaging in an embodiment of the disclosure;
图3为本公开实施例中成像时的第二光路示意图;3 is a schematic diagram of a second light path during imaging in an embodiment of the disclosure;
图4为本公开实施例的拍摄方法的流程示意图;4 is a schematic flowchart of a shooting method according to an embodiment of the disclosure;
图5为本公开实施例中驱动电机旋转的示意图;FIG. 5 is a schematic diagram of the driving motor rotating in an embodiment of the disclosure;
图6为目标角度与预设角度的差值α与图像帧数的关系示意图;6 is a schematic diagram of the relationship between the difference α between the target angle and the preset angle and the number of image frames;
图7为电机匀速转动和非匀速转动对应的转动曲线示意图;Figure 7 is a schematic diagram of the rotation curve corresponding to the uniform rotation and the non-uniform rotation of the motor;
图8为本公开实施例提供的移动终端的模块示意图之一;FIG. 8 is one of schematic diagrams of modules of a mobile terminal provided by an embodiment of the disclosure;
图9为本公开实施例提供的移动终端的模块示意图之二;FIG. 9 is a second schematic diagram of modules of a mobile terminal provided by an embodiment of the disclosure;
图10为本公开实施例提供的移动终端的结构框图。FIG. 10 is a structural block diagram of a mobile terminal provided by an embodiment of the disclosure.
具体实施方式Detailed ways
下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开一部分实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。The technical solutions in the embodiments of the present disclosure will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present disclosure.
本公开实施例的拍摄方法,应用于移动终端,所述移动终端包括壳体、取景镜头和图像传感器,所述壳体上设置有开口,所述取景镜头可移动地设置于所述壳体以从所述开口伸出或缩回,且所述取景镜头绕所述开口的轴线可转动,所述图像传感器设置于所述壳体内部,所述取景镜头用于将射入到所述取景镜头的光线投射至所述图像传感器,上述取景镜头可以具体为反射镜或反射透镜,进一步地,本公开实施例的移动终端还包括设置于所述壳体 内部,且与图像传感器连接的摄像头镜头,如图1所示,当取景镜头3通过所述开口从所述壳体伸出时,入射光线通过取景镜头3将水平的光线转化成垂直的光线,然后照射在摄像头21上,接着会在图像传感器22(互补金属氧化物半导体(Complementary Metal Oxide Semiconductor,CMOS)或电荷耦合器件(Charge Coupled Device,CCD))上成像,图像传感器会将所成的像转化成二进制数据,经过终端处理器(Central Processing Unit,CPU)里面的图像信息处理器(Image Signal Processor,ISP)处理后,转化成显示数据并通过显示屏进行显示,从而使得用户能够看到所拍摄的图像。The shooting method of the embodiment of the present disclosure is applied to a mobile terminal. The mobile terminal includes a housing, a viewfinder lens, and an image sensor, the housing is provided with an opening, and the viewfinder lens is movably provided on the housing to Extend or retract from the opening, and the viewfinder lens is rotatable around the axis of the opening, the image sensor is arranged inside the housing, and the viewfinder lens is used to shoot into the viewfinder lens The above-mentioned viewfinder lens may be specifically a mirror or a reflective lens. Further, the mobile terminal of the embodiment of the present disclosure further includes a camera lens arranged inside the housing and connected to the image sensor, As shown in FIG. 1, when the viewfinder lens 3 extends from the housing through the opening, the incident light passes through the viewfinder lens 3 to convert horizontal light into vertical light, and then illuminates the camera 21, and then the image The image is formed on the sensor 22 (Complementary Metal Oxide Semiconductor (CMOS) or Charge Coupled Device (CCD)). The image sensor converts the resulting image into binary data and passes through the terminal processor (Central The image information processor (Image Signal Processor, ISP) in the Processing Unit (CPU) converts it into display data and displays it on the display screen, so that the user can see the captured image.
如图2所示,拍摄对象在A点时,拍摄对象在图像传感器所成的像为A’,拍摄对象在A1点时,拍摄对象在图像传感器所成的像为A1’,拍摄对象在A2点时,拍摄对象在图像传感器所成的像为A2’。As shown in Figure 2, when the subject is at point A, the image formed by the subject on the image sensor is A', when the subject is at point A1, the image formed by the subject on the image sensor is A1', and the subject is at A2 When you click, the image of the subject on the image sensor is A2'.
当拍摄目标从A点移动到A1点,对应到图像传感器上为A’移动到A1’;此时,拍摄对象相对于摄像头移动的角度为α1,对应到图像传感器上移动的角度为α3,由图3可知,α1=α3,其中图2和图3中的O点表示摄像头镜头的中心位置;When the shooting target moves from point A to point A1, it corresponds to the image sensor moving from A'to A1'; at this time, the angle of the object relative to the camera is α1, and the angle corresponding to the image sensor is α3. Figure 3 shows that α1=α3, where the O point in Figure 2 and Figure 3 represents the center position of the camera lens;
同理,当拍摄对象从A点移动到A2点,对应到图像传感器上为A’移动到A2’;此时拍摄对象相对与摄像头移动的角度为α2,对应到图像传感器上移动的角度为α4,由图3可知,α2=α4;In the same way, when the subject moves from point A to point A2, the corresponding to the image sensor is A'move to A2'; at this time, the angle of the subject relative to the camera is α2, and the angle corresponding to the movement on the image sensor is α4 , It can be seen from Figure 3 that α2=α4;
为了方便计算,假设A’处于图像传感器的中心位置;从A’到A1’移动的水平距离为x,图像传感器到摄像头镜头的垂直距离为d,那么α3=arctan(x/d),又有α1=α3,所以α1=α3=arctan(x/d);x可以为正也可以为负,假设定义:当在图像传感器上所成的像在左侧时x为正,所成的像在右侧时为负,x为正时α1=α3为正,x为负时α1=α3为负。For the convenience of calculation, assume that A'is at the center of the image sensor; the horizontal distance from A'to A1' is x, and the vertical distance from the image sensor to the camera lens is d, then α3=arctan(x/d), and α1=α3, so α1=α3=arctan(x/d); x can be positive or negative, assuming the definition: when the image formed on the image sensor is on the left, x is positive, and the image formed is When the right side is negative, when x is positive, α1=α3 is positive, and when x is negative, α1=α3 is negative.
摄像头拍摄预览的帧率一般为30帧,通过对比相邻两帧的图像就能得到拍摄对象在图像传感器上移动的水平距离x,而通过闭环马达上的霍尔Hall器件,可以获取每帧图像中图像传感器到摄像头镜头的距离d,从而得到相邻两帧拍摄对象相对于摄像头移动的角度,这样就能实时得到拍摄对象相对于摄像头移动的角度。基于上述原理,可以得到跟踪拍摄的目的是为了使拍摄对象始终保持在图像传感器的特定位置(例如,图像传感器的中间位置) 成像。The frame rate of the camera shooting preview is generally 30 frames. By comparing the images of two adjacent frames, the horizontal distance x of the subject moving on the image sensor can be obtained, and each frame of image can be obtained through the Hall device on the closed loop motor. The distance d from the middle image sensor to the camera lens is used to obtain the moving angle of the object relative to the camera in two adjacent frames, so that the angle of the object moving relative to the camera can be obtained in real time. Based on the above principle, it can be obtained that the purpose of tracking shooting is to keep the shooting object at a specific position of the image sensor (for example, the middle position of the image sensor) for imaging.
基于此,如图4所示,本公开实施例提供了一种拍摄方法,包括:Based on this, as shown in FIG. 4, an embodiment of the present disclosure provides a shooting method, including:
步骤401:检测到所述取景镜头通过所述开口从所述壳体伸出时,确定拍摄对象。Step 401: When it is detected that the viewfinder lens protrudes from the housing through the opening, determine the shooting object.
在本公开的具体实施例中,当用户点击摄像头图标或者第三方应用需要调用摄像头模块时,处理器控制取景镜头通过所述开口从壳体内伸出,当取景镜头完全伸出到壳体外时,启动摄像头模组,上述摄像头将用户选定的拍摄目标确定为拍摄对象。该拍摄对象可以为人脸。摄像头对拍摄对象进行图像识别并采集特征点,以便于后续对该拍摄对象进行跟踪拍摄。In the specific embodiment of the present disclosure, when the user clicks on the camera icon or a third-party application needs to call the camera module, the processor controls the viewfinder lens to extend out of the housing through the opening. When the viewfinder lens fully extends out of the housing, The camera module is activated, and the camera determines the shooting target selected by the user as the shooting object. The subject can be a human face. The camera recognizes the image of the photographed object and collects feature points, so that the photographed object can be tracked and photographed later.
步骤402:在目标时刻之前的预设时间段内,获取所述拍摄对象的位置与图像传感器的预设位置之间的目标角度,所述目标时刻为根据所述拍摄对象生成每个图像帧的时刻。Step 402: Acquire a target angle between the position of the photographic subject and the preset position of the image sensor within a preset period of time before the target moment, and the target moment is the value of each image frame generated according to the photographic subject time.
这里,该目标角度具体是指拍摄对象当前的位置偏移图像传感器预设位置的角度,在每生成一个图像帧之前,都会获取拍摄对象的位置与图像传感器的预设位置之间的目标角度,以便于根据该目标角度控制取景镜头旋转,进而保证拍摄对象在图像传感器上所成的像总是位于图像传感器的预设位置。Here, the target angle specifically refers to the angle by which the current position of the photographing object deviates from the preset position of the image sensor. Before each image frame is generated, the target angle between the position of the photographing object and the preset position of the image sensor is obtained. In order to control the rotation of the viewfinder lens according to the target angle, thereby ensuring that the image formed by the subject on the image sensor is always located at the preset position of the image sensor.
作为一种可选的实现方式,所述图像传感器的预设位置为所述图像传感器的中心位置。As an optional implementation manner, the preset position of the image sensor is the center position of the image sensor.
将图像传感器的预设位置确定为图像传感器的中心位置,即保证拍摄对象在图像传感器上所成的像总是位于图像传感器的中心位置,符合用户的拍摄习惯。Determining the preset position of the image sensor as the center position of the image sensor ensures that the image formed by the subject on the image sensor is always located at the center position of the image sensor, which conforms to the user's shooting habits.
步骤403:在所述目标角度与预设角度不同时,通过控制所述取景镜头旋转,将所述目标角度调整为所述预设角度。Step 403: When the target angle is different from the preset angle, adjust the target angle to the preset angle by controlling the rotation of the viewfinder lens.
该预设角度可以具体设置为0度,在拍摄对象的位置与图像传感器的预设位置之间的角度不为0时,控制取景镜头旋转,以保证拍摄对象的位置与图像传感器的预设位置之间的角度为0度,即保证拍摄对象在图像传感器上所成的像总是位于图像传感器的中心位置。The preset angle can be specifically set to 0 degrees. When the angle between the position of the shooting object and the preset position of the image sensor is not 0, the viewfinder lens is controlled to rotate to ensure the position of the shooting object and the preset position of the image sensor The angle between is 0 degrees, that is, to ensure that the image formed by the subject on the image sensor is always at the center of the image sensor.
步骤404:对所述拍摄对象进行拍摄生成所述图像帧。Step 404: Take a picture of the subject to generate the image frame.
具体的,通过控制上述摄像头对所述拍摄对象进行拍摄生成所述图像帧。Specifically, the image frame is generated by controlling the camera to shoot the subject.
本公开实施例的拍摄方法,检测到所述取景镜头通过所述开口从所述壳体伸出时,确定拍摄对象;在目标时刻之前的预设时间段内,获取所述拍摄对象的位置与图像传感器的预设位置之间的目标角度,所述目标时刻为根据所述拍摄对象生成每个图像帧的时刻;在所述目标角度与预设角度不同时,通过控制所述取景镜头旋转,将所述目标角度调整为所述预设角度;对所述拍摄对象进行拍摄生成所述图像帧。本公开实施例中,通过旋转取景镜头使得在拍摄每个图像帧时,都能保证拍摄对象的位置与图像传感器的预设位置之间的目标角度为预设角度,实现对拍摄对象的实时跟踪。According to the shooting method of the embodiment of the present disclosure, when it is detected that the viewfinder lens extends from the housing through the opening, the shooting object is determined; the position and the position of the shooting object are acquired within a preset time period before the target time. The target angle between the preset positions of the image sensor, the target moment is the moment when each image frame is generated according to the photographing object; when the target angle is different from the preset angle, by controlling the rotation of the viewfinder lens, The target angle is adjusted to the preset angle; and the image frame is generated by shooting the subject. In the embodiments of the present disclosure, the viewfinder lens is rotated to ensure that the target angle between the position of the subject and the preset position of the image sensor is the preset angle when each image frame is taken, so that real-time tracking of the subject is achieved .
进一步地,所述预设时间段为拍摄一个图像帧对应的时间段。Further, the preset time period is a time period corresponding to shooting one image frame.
假定本公开实施例中,拍摄一个图像帧对应的时间为n毫秒,即在n时刻、2n时刻、3n时刻,……分别生成一个图像帧,则在分别在0-n、n-2n、2n-3n……的时间段内,获取拍摄对象的位置与图像传感器的预设位置之间的目标角度。例如,摄像头的帧率为30帧,拍摄一个图像帧对应的时间段为33.3ms,则具体在0-33.3ms的时间段、33.3-66.6的时间段,……,获取拍摄对象的位置与图像传感器的预设位置之间的目标角度。Assuming that in the embodiment of the present disclosure, the time corresponding to shooting an image frame is n milliseconds, that is, when an image frame is generated at time n, time 2n, time 3n, ..., then it is in 0-n, n-2n, 2n -3n..., acquire the target angle between the position of the subject and the preset position of the image sensor. For example, the frame rate of the camera is 30 frames, and the time period corresponding to shooting an image frame is 33.3ms, specifically in the time period of 0-33.3ms, the time period of 33.3-66.6,..., the position and image of the subject are acquired The target angle between the preset positions of the sensor.
需要说明的是,在0-n时间段内获取的目标角度是拍摄对象在0时刻与图像传感器之间的角度,在n-2n时间段内获得的目标角度是拍摄对象在n时刻与图像传感器之间的角度,在2n-3n时间段内获取的目标角度时拍摄对象在2n时刻与图像传感器之间的角度。It should be noted that the target angle obtained in the 0-n time period is the angle between the object and the image sensor at time 0, and the target angle obtained in the n-2n time period is the angle between the object and the image sensor at time n The angle between is the angle between the subject and the image sensor when the target angle is acquired in the time period of 2n-3n.
本公开实施例中,在每个图像帧对应的时间段内,均获取拍摄对象的位置与图像传感器的预设位置之间的目标角度,以保证在生成每个图像帧时,拍摄对象在图像传感器上所成的像总是接近位于图像传感器的中心位置,即实现跟踪拍摄。In the embodiments of the present disclosure, within the time period corresponding to each image frame, the target angle between the position of the shooting object and the preset position of the image sensor is obtained to ensure that when each image frame is generated, the shooting object is in the image The image formed on the sensor is always close to the center of the image sensor, that is, tracking shooting is realized.
进一步地,所述移动终端还包括摄像头镜头,所述摄像头镜头设置于所述壳体内,并与所述图像传感器连接;Further, the mobile terminal further includes a camera lens, and the camera lens is arranged in the housing and connected with the image sensor;
所述获取所述拍摄对象的当前位置与图像传感器的预设位置之间的目标角度,包括:The acquiring the target angle between the current position of the shooting object and the preset position of the image sensor includes:
获取第一距离和第二距离;其中,所述第一距离为所述拍摄对象在所述图像传感器上所成的像与所述图像传感器的预设位置之间的距离,所述第二 距离为所述图像传感器和所述摄像头镜头之间的距离;Acquire a first distance and a second distance; wherein, the first distance is the distance between the image formed by the subject on the image sensor and the preset position of the image sensor, and the second distance Is the distance between the image sensor and the camera lens;
根据所述第一距离和所述第二距离,得到所述目标角度。According to the first distance and the second distance, the target angle is obtained.
假定上述第一距离为x,上述第二距离为d,根据上述图2和图3可知,目标角度等于arctan(x/d)。Assuming that the above-mentioned first distance is x and the above-mentioned second distance is d, it can be known from the above Fig. 2 and Fig. 3 that the target angle is equal to arctan(x/d).
上述第一距离可通过处理器统计像素点来得到,上述第二距离可通过闭环马达上的霍尔Hall器件得到。The above-mentioned first distance can be obtained by counting pixels by the processor, and the above-mentioned second distance can be obtained by a Hall device on a closed-loop motor.
进一步地,所述移动终端还包括:与所述取景镜头连接的电机;Further, the mobile terminal further includes: a motor connected to the viewfinder lens;
所述通过控制所述取景镜头旋转,将所述目标角度调整为所述预设角度,包括:The adjusting the target angle to the preset angle by controlling the rotation of the viewfinder lens includes:
根据所述目标角度和所述预设角度,确定所述取景镜头旋转的第一角度;Determine the first angle of rotation of the viewfinder lens according to the target angle and the preset angle;
根据所述第一角度,确定所述电机转动的第二角度;Determine the second angle of rotation of the motor according to the first angle;
控制所述电机在所述预设时间段内转动所述第二角度。Controlling the motor to rotate the second angle within the preset time period.
这里,电机转动的角度与取景镜头旋转的角度之间存在对应关系,根据上述目标角度和预设角度,可以计算出取景镜头旋转的第一角度,具体的,该第一角度为上述目标角度和预设角度之间的差值,并根据电机转动的角度与取景镜头旋转的角度之间的对应关系,得到电机转动的第二角度,然后由处理器控制电机在预设时间段内转动第二角度。Here, there is a corresponding relationship between the angle of the motor rotation and the angle of the viewfinder lens. According to the above-mentioned target angle and the preset angle, the first angle of the viewfinder lens rotation can be calculated. Specifically, the first angle is the above-mentioned target angle and The difference between the preset angles, and according to the corresponding relationship between the angle of rotation of the motor and the angle of rotation of the viewfinder lens, the second angle of motor rotation is obtained, and then the processor controls the motor to rotate the second angle within a preset period of time angle.
具体的,如图5所示,首先电源power给电机驱动器供电,处理器发指令EN使能电机驱动器,通过模式MODE脚选择电机驱动器的驱动模式(细分驱动等级),电机驱动器根据脉冲宽度调制(Pulse-Width Modulation,PWM)的脉冲数来决定电机走多少步,实现对电机的精确控制。Specifically, as shown in Figure 5, first, power supplies power to the motor driver, the processor sends an instruction EN to enable the motor driver, and selects the drive mode (subdivision drive level) of the motor driver through the MODE pin. The motor driver modulates according to pulse width The number of pulses (Pulse-Width Modulation, PWM) determines how many steps the motor takes to achieve precise control of the motor.
进一步地,所述电机在所述预设时间段的最后时刻的转速与零的差值小于预设阈值。Further, the difference between the rotation speed of the motor at the last moment of the preset time period and zero is less than a preset threshold.
这里,电机在预设时间段内可以按照转速逐渐减小的方式进行旋转,也可以先匀速转动,然后再按照转速逐渐减小的方式进行旋转,即保证在最后时刻电机的转速趋近于0。Here, the motor can rotate in a way that the speed gradually decreases within a preset time period, or it can rotate at a uniform speed first, and then rotate in a way that the speed gradually decreases, that is to ensure that the motor speed approaches 0 at the last moment. .
本公开实施例中,跟踪拍摄的目的是为了将拍摄对象始终保持在图像传感器的中间位置,也就是说,达到稳态之后,α(目标角度与预设角度的差值)的值尽可能趋于0;为了达到预期的跟踪拍摄效果还需要考虑到电机的误差, 电机的误差主要来源于完成电机驱动器给定的步数后,会有惯性继续向前运动,而且这个惯性与电机的转速正相关,可能会出现如图6所示的情况(假设拍摄目标固定不动,且手机也固定不动)。In the embodiments of the present disclosure, the purpose of tracking and shooting is to always keep the subject in the middle of the image sensor, that is, after reaching a steady state, the value of α (the difference between the target angle and the preset angle) tends to be as close as possible. In order to achieve the expected tracking and shooting effect, the error of the motor needs to be taken into account. The error of the motor mainly comes from the inertia after completing the number of steps given by the motor driver, and the inertia will continue to move forward, and this inertia is directly related to the motor speed. Related, there may be a situation as shown in Figure 6 (assuming that the shooting target is fixed and the mobile phone is also fixed).
在拍摄对象与移动终端都静止的情况下,因为电机的惯性作用,需要多帧才能将拍摄对象置于中间位置(如图6所示,需要8帧才能将拍摄对象置于中间位置);如果叠加上拍摄对象的移动和移动终端自身的移动,这个调节过程还会更加长,显然这样的调节效果并不理想,不能仅仅简单的根据α来操作电机转动同样角度,同时随着电机工作时长的增加,会产生磨损,从而增大上述误差;所以需要对这个误差进行收敛,可以通过算法去优化,针对电机B可以增加一个闭环反馈系统,实时监测电机所转动的角度。When the subject and the mobile terminal are both stationary, because of the inertia of the motor, it takes multiple frames to place the subject in the middle position (as shown in Figure 6, it takes 8 frames to place the subject in the middle position); if Superimposed on the movement of the subject and the movement of the mobile terminal itself, this adjustment process will be longer. Obviously, this adjustment effect is not ideal. You cannot simply operate the motor to rotate the same angle according to α, and at the same time as the motor works for a long time. Increase will cause wear and increase the above error; therefore, this error needs to be converged, which can be optimized by algorithm. For motor B, a closed-loop feedback system can be added to monitor the angle of rotation of the motor in real time.
如图7所示,如果使电机一直匀速转动,在同样时间t内;电机转动角度达到α后,电机驱动器停止输出,电机仍然会在惯性的带动下,继续转动,缓慢停下实际会多转δ的角度。As shown in Figure 7, if the motor keeps rotating at a constant speed, within the same time t; after the motor rotation angle reaches α, the motor driver stops output, the motor will still continue to rotate under the inertia, and it will actually turn more when it stops slowly. The angle of δ.
加入闭环控制之后,使电机非匀速转动,在时间t内先快后慢,当检测到电机转动的角度接近α后,电机B的转速也接近0,消除惯性带来的影响。After the closed-loop control is added, the motor rotates at a non-uniform speed, first fast and then slow within time t. When the angle of rotation of the motor is detected close to α, the speed of motor B is also close to 0, eliminating the influence of inertia.
另,假定摄像头的帧率为30帧,每帧的时间约为33.3ms,为了达到跟踪拍摄的效果,电机还要满足在一帧的时间内(33.3ms),能够运行α的角度。α还需满足:-0.5FOV<α<0.5FOV;FOV为摄像头的视场角,显然当α超过这个范围后,下一帧图片摄像头将无法捕捉到目标图片,无法跟踪拍摄。In addition, assuming that the frame rate of the camera is 30 frames, the time of each frame is about 33.3ms. In order to achieve the effect of tracking and shooting, the motor must meet the time of one frame (33.3ms) and be able to run the angle of α. α also needs to meet: -0.5FOV<α<0.5FOV; FOV is the field of view of the camera. Obviously, when α exceeds this range, the camera will not be able to capture the target picture in the next frame of picture and cannot track and shoot.
本公开实施例的拍摄方法,通过旋转取景镜头使得在拍摄每个图像帧时,都能保证拍摄对象的位置与图像传感器的预设位置之间的目标角度为预设角度,实现对拍摄对象的实时跟踪。In the shooting method of the embodiment of the present disclosure, by rotating the viewfinder lens, when each image frame is shot, it can be ensured that the target angle between the position of the shooting object and the preset position of the image sensor is the preset angle, so as to realize the control of the shooting object. Real-time tracking.
本公开实施例还提供了一种移动终端,包括壳体、取景镜头和图像传感器,所述壳体上设置有开口,所述取景镜头可移动地设置于所述壳体以从所述开口伸出或缩回,且所述取景镜头绕所述开口的轴线可转动,所述图像传感器设置于所述壳体内部,所述取景镜头用于将射入到所述取景镜头的光线投射至所述图像传感器,如图8所示,所述移动终端800还包括:An embodiment of the present disclosure also provides a mobile terminal, including a housing, a viewfinder lens, and an image sensor. The housing is provided with an opening, and the viewfinder lens is movably disposed on the housing to extend from the opening. The viewfinder lens is rotatable around the axis of the opening, the image sensor is arranged inside the housing, and the viewfinder lens is used to project the light that enters the viewfinder lens to all The image sensor, as shown in FIG. 8, the mobile terminal 800 further includes:
确定模块801,用于检测到所述取景镜头通过所述开口从所述壳体伸出时,确定拍摄对象;The determining module 801 is configured to determine the shooting object when detecting that the viewfinder lens extends from the housing through the opening;
获取模块802,用于在目标时刻之前的预设时间段内,获取所述拍摄对象的位置与图像传感器的预设位置之间的目标角度,所述目标时刻为根据所述拍摄对象生成每个图像帧的时刻;The obtaining module 802 is configured to obtain a target angle between the position of the photographing object and the preset position of the image sensor within a preset period of time before the target time, and the target time is to generate each object according to the photographing object. The moment of the image frame;
调整模块803,用于在所述目标角度与预设角度不同时,通过控制所述取景镜头旋转,将所述目标角度调整为所述预设角度;The adjustment module 803 is configured to adjust the target angle to the preset angle by controlling the rotation of the viewfinder lens when the target angle is different from the preset angle;
处理模块804,用于对所述拍摄对象进行拍摄生成所述图像帧。The processing module 804 is configured to photograph the subject to generate the image frame.
可选的,所述预设时间段为拍摄一个图像帧对应的时间段。Optionally, the preset time period is a time period corresponding to the shooting of one image frame.
可选的,本公开实施例的移动终端,还包括摄像头镜头,所述摄像头镜头设置于所述壳体内,并与所述图像传感器连接;如图9所示,所述获取模块802包括:Optionally, the mobile terminal of the embodiment of the present disclosure further includes a camera lens, the camera lens is arranged in the housing and connected to the image sensor; as shown in FIG. 9, the acquisition module 802 includes:
第一获取子模块8021,用于获取第一距离和第二距离;其中,所述第一距离为所述拍摄对象在所述图像传感器上所成的像与所述图像传感器的预设位置之间的距离,所述第二距离为所述图像传感器和所述摄像头镜头之间的距离;The first acquisition sub-module 8021 is used to acquire a first distance and a second distance; wherein, the first distance is the difference between the image formed by the subject on the image sensor and the preset position of the image sensor The second distance is the distance between the image sensor and the camera lens;
第二获取子模块8022,用于根据所述第一距离和所述第二距离,得到所述目标角度。The second obtaining submodule 8022 is configured to obtain the target angle according to the first distance and the second distance.
可选的,本公开实施例的移动终端,还包括:与所述取景镜头连接的电机;Optionally, the mobile terminal of the embodiment of the present disclosure further includes: a motor connected to the viewfinder lens;
所述调整模块803包括:The adjustment module 803 includes:
第一确定子模块8031,用于根据所述目标角度和所述预设角度,确定所述取景镜头旋转的第一角度;The first determining submodule 8031 is configured to determine the first angle of rotation of the viewfinder lens according to the target angle and the preset angle;
第二确定子模块8032,用于根据所述第一角度,确定所述电机转动的第二角度;The second determining sub-module 8032 is configured to determine a second angle of rotation of the motor according to the first angle;
控制子模块8033,用于控制所述电机在所述预设时间段内转动所述第二角度。The control sub-module 8033 is configured to control the motor to rotate the second angle within the preset time period.
本公开实施例的移动终端,所述电机在所述预设时间段的最后时刻的转速与零的差值小于预设阈值。In the mobile terminal of the embodiment of the present disclosure, the difference between the rotation speed of the motor at the last moment of the preset time period and zero is less than a preset threshold.
本公开实施例的移动终端,所述图像传感器的预设位置为所述图像传感器的中心位置。In the mobile terminal of the embodiment of the present disclosure, the preset position of the image sensor is the center position of the image sensor.
本公开实施例的移动终端,通过旋转取景镜头使得在拍摄每个图像帧时,都能保证拍摄对象的位置与图像传感器的预设位置之间的目标角度为预设角度,实现对拍摄对象的实时跟踪。The mobile terminal of the embodiment of the present disclosure can ensure that the target angle between the position of the object and the preset position of the image sensor is the preset angle by rotating the viewfinder lens when shooting each image frame. Real-time tracking.
需要说明的是,该移动终端是与上述方法实施例对应的移动终端,上述方法实施例中所有实现方式均适用于该移动终端的实施例中,也能达到相同的技术效果。It should be noted that the mobile terminal is a mobile terminal corresponding to the foregoing method embodiment, and all implementation manners in the foregoing method embodiment are applicable to the embodiment of the mobile terminal, and the same technical effect can also be achieved.
图10为实现本公开各个实施例的一种移动终端的硬件结构示意图,该移动终端1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储器1009、处理器1010、以及电源1011等部件。本领域技术人员可以理解,图10中示出的移动终端结构并不构成对终端的限定,移动终端可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本公开实施例中,移动终端包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。FIG. 10 is a schematic diagram of the hardware structure of a mobile terminal implementing various embodiments of the present disclosure. The mobile terminal 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, and a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, a processor 1010, a power supply 1011 and other components. Those skilled in the art can understand that the structure of the mobile terminal shown in FIG. 10 does not constitute a limitation on the terminal. The mobile terminal may include more or less components than those shown in the figure, or combine certain components, or different component arrangements. . In the embodiments of the present disclosure, mobile terminals include, but are not limited to, mobile phones, tablet computers, notebook computers, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
该移动终端还包括壳体、取景镜头和图像传感器,所述壳体上设置有开口,所述取景镜头可移动地设置于所述壳体以从所述开口伸出或缩回,且所述取景镜头绕所述开口的轴线可转动,所述图像传感器设置于所述壳体内部,所述取景镜头用于将射入到所述取景镜头的光线投射至所述图像传感器。The mobile terminal also includes a housing, a viewfinder lens, and an image sensor. The housing is provided with an opening, and the viewfinder lens is movably provided on the housing to extend or retract from the opening, and The viewfinder lens is rotatable around the axis of the opening, the image sensor is arranged inside the housing, and the viewfinder lens is used for projecting the light incident on the viewfinder lens to the image sensor.
其中,处理器1010用于检测到所述取景镜头通过所述开口从所述壳体伸出时,确定拍摄对象;Wherein, the processor 1010 is configured to detect that the viewfinder lens protrudes from the housing through the opening, and determine the shooting object;
在目标时刻之前的预设时间段内,获取所述拍摄对象的位置与图像传感器的预设位置之间的目标角度,所述目标时刻为根据所述拍摄对象生成每个图像帧的时刻;Acquiring a target angle between the position of the shooting object and the preset position of the image sensor in a preset time period before the target time, where the target time is the time at which each image frame is generated according to the shooting object;
在所述目标角度与预设角度不同时,通过控制所述取景镜头旋转,将所述目标角度调整为所述预设角度;When the target angle is different from the preset angle, adjusting the target angle to the preset angle by controlling the rotation of the viewfinder lens;
对所述拍摄对象进行拍摄生成所述图像帧。The image frame is generated by shooting the subject.
本公开实施例的上述技术方案,通过旋转取景镜头使得在拍摄每个图像帧时,都能保证拍摄对象的位置与图像传感器的预设位置之间的目标角度为预设角度,实现对拍摄对象的实时跟踪。The above-mentioned technical solutions of the embodiments of the present disclosure ensure that the target angle between the position of the shooting object and the preset position of the image sensor is the preset angle by rotating the viewfinder lens so as to achieve the target angle Real-time tracking.
应理解的是,本公开实施例中,射频单元1001可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器1010处理;另外,将上行的数据发送给基站。通常,射频单元1001包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元1001还可以通过无线通信系统与网络和其他设备通信。It should be understood that, in the embodiment of the present disclosure, the radio frequency unit 1001 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, the downlink data from the base station is received and processed by the processor 1010; Uplink data is sent to the base station. Generally, the radio frequency unit 1001 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 1001 can also communicate with the network and other devices through a wireless communication system.
移动终端通过网络模块1002为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。The mobile terminal provides users with wireless broadband Internet access through the network module 1002, such as helping users to send and receive emails, browse web pages, and access streaming media.
音频输出单元1003可以将射频单元1001或网络模块1002接收的或者在存储器1009中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元1003还可以提供与移动终端1000执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元1003包括扬声器、蜂鸣器以及受话器等。The audio output unit 1003 can convert the audio data received by the radio frequency unit 1001 or the network module 1002 or stored in the memory 1009 into audio signals and output them as sounds. Moreover, the audio output unit 1003 may also provide audio output related to a specific function performed by the mobile terminal 1000 (for example, call signal reception sound, message reception sound, etc.). The audio output unit 1003 includes a speaker, a buzzer, a receiver, and the like.
输入单元1004用于接收音频或视频信号。输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元1006上。经图形处理器10041处理后的图像帧可以存储在存储器1009(或其它存储介质)中或者经由射频单元1001或网络模块1002进行发送。麦克风10042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元1001发送到移动通信基站的格式输出。The input unit 1004 is used to receive audio or video signals. The input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 10041 is configured to monitor 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 frame can be displayed on the display unit 1006. The image frame processed by the graphics processor 10041 may be stored in the memory 1009 (or other storage medium) or sent via the radio frequency unit 1001 or the network module 1002. The microphone 10042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 1001 in the case of a telephone call mode for output.
移动终端1000还包括至少一种传感器1005,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板10061的亮度,接近传感器可在移动终端1000移动到耳边时,关闭显示面板10061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别终端姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器1005还可以包括指纹传感器、压力传感器、虹膜传 感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。The mobile terminal 1000 also includes at least one sensor 1005, 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 10061 according to the brightness of the ambient light. The proximity sensor can close the display panel 10061 and the display panel 10061 when the mobile terminal 1000 is moved to the ear. / Or backlight. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three-axis), and can detect the magnitude and direction of gravity when stationary, and can be used to identify terminal posture (such as horizontal and vertical screen switching, related games, Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; sensor 1005 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared Sensors, etc., will not be repeated here.
显示单元1006用于显示由用户输入的信息或提供给用户的信息。显示单元1006可包括显示面板10061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板10061。The display unit 1006 is used to display information input by the user or information provided to the user. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
用户输入单元1007可用于接收输入的数字或字符信息,以及产生与移动终端的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元1007包括触控面板10071以及其他输入设备10072。触控面板10071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板10071上或在触控面板10071附近的操作)。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1010,接收处理器1010发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板10071。除了触控面板10071,用户输入单元1007还可以包括其他输入设备10072。具体地,其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。The user input unit 1007 may be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the mobile terminal. Specifically, the user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071, also called a touch screen, can collect user touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 10071 or near the touch panel 10071. operating). The touch panel 10071 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch position, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it The processor 1010 receives and executes the command sent by the processor 1010. In addition, the touch panel 10071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 10071, the user input unit 1007 may also include other input devices 10072. Specifically, other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
进一步的,触控面板10071可覆盖在显示面板10061上,当触控面板10071检测到在其上或附近的触摸操作后,传送给处理器1010以确定触摸事件的类型,随后处理器1010根据触摸事件的类型在显示面板10061上提供相应的视觉输出。虽然在图10中,触控面板10071与显示面板10061是作为两个独立的部件来实现移动终端的输入和输出功能,但是在某些实施例中,可以将触控面板10071与显示面板10061集成而实现移动终端的输入和输出功能,具体此处不做限定。Further, the touch panel 10071 can be overlaid on the display panel 10061. When the touch panel 10071 detects a touch operation on or near it, it transmits it to the processor 1010 to determine the type of the touch event, and then the processor 1010 determines the type of touch event according to the touch. The type of event provides corresponding visual output on the display panel 10061. Although in FIG. 10, the touch panel 10071 and the display panel 10061 are used as two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 10071 and the display panel 10061 may be integrated The implementation of the input and output functions of the mobile terminal is not specifically limited here.
接口单元1008为外部装置与移动终端1000连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频 输入/输出(input/output,I/O)端口、视频I/O端口、耳机端口等等。接口单元1008可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端1000内的一个或多个元件或者可以用于在移动终端1000和外部装置之间传输数据。The interface unit 1008 is an interface for connecting an external device with the mobile terminal 1000. For example, the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (input/output, I/O) port, video I/O port, headphone port, etc. The interface unit 1008 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the mobile terminal 1000 or can be used to connect to the mobile terminal 1000 and external Transfer data between devices.
存储器1009可用于存储软件程序以及各种数据。存储器1009可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1009可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1009 can be used to store software programs and various data. The memory 1009 may mainly include a program storage area and a data storage area. The program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones. In addition, the memory 1009 may include a high-speed random access memory, and may also 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.
处理器1010是移动终端的控制中心,利用各种接口和线路连接整个移动终端的各个部分,通过运行或执行存储在存储器1009内的软件程序和/或模块,以及调用存储在存储器1009内的数据,执行移动终端的各种功能和处理数据,从而对移动终端进行整体监控。处理器1010可包括一个或多个处理单元;可选的,处理器1010可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。The processor 1010 is the control center of the mobile terminal. It uses various interfaces and lines to connect the various parts of the entire mobile terminal, runs or executes software programs and/or modules stored in the memory 1009, and calls data stored in the memory 1009 , Perform various functions of the mobile terminal and process data, so as to monitor the mobile terminal as a whole. The processor 1010 may include one or more processing units; optionally, the processor 1010 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface and application programs, etc. The adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1010.
移动终端1000还可以包括给各个部件供电的电源1011(比如电池),可选的,电源1011可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile terminal 1000 may also include a power supply 1011 (such as a battery) for supplying power to various components. Optionally, the power supply 1011 may be logically connected to the processor 1010 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
另外,移动终端1000包括一些未示出的功能模块,在此不再赘述。In addition, the mobile terminal 1000 includes some functional modules not shown, which will not be repeated here.
可选的,本公开实施例还提供一种移动终端,包括处理器,存储器,存储在存储器上并可在所述处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, an embodiment of the present disclosure further provides a mobile terminal, including a processor, a memory, and a computer program stored in the memory and running on the processor. The computer program is executed by the processor to implement the aforementioned shooting method Each process of the embodiment can achieve the same technical effect, and in order to avoid repetition, it will not be repeated here.
本公开实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述拍摄方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中, 所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。The embodiments of the present disclosure also provide a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, each process of the above-mentioned shooting method embodiment is realized, and the same technical effect can be achieved To avoid repetition, I won’t repeat it here. Among them, the computer-readable storage medium, such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。It should be noted that in this article, the terms "include", "include" 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 not only includes those elements, It also includes other elements not explicitly listed, or elements inherent to the process, method, article, or device. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of 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 method of the above embodiments can be implemented by means of software plus the necessary general hardware platform. Of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of the present disclosure essentially or the part that contributes to the related technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk). ) Includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present disclosure.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本公开的范围。A person of ordinary skill in the art may be aware that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of the present disclosure.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of description, the specific working process of the above-described system, device, and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接, 可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or It can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present disclosure essentially or the part that contributes to the related technology can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions to make a A computer device (which may be a personal computer, a server, or a network device, etc.) executes all or part of the steps of the methods described in the various embodiments of the present disclosure. The aforementioned storage media include: U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk and other media that can store program codes.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来控制相关的硬件来完成,所述的程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储器(Read-Only Memory,ROM)或随机存取存储器(Random Access Memory,RAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by controlling the relevant hardware through a computer program. The program can be stored in a computer readable storage medium. When executed, it may include the procedures of the above-mentioned method embodiments. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
可以理解的是,本公开实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,模块、单元、子单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuits,ASIC)、数字信号处理器(Digital Signal Processor,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(Programmable Logic Device,PLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本公开所述功能的其它电子单元或其组合中。It can be understood that the embodiments described in the embodiments of the present disclosure may be implemented by hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, modules, units, and sub-units can be implemented in one or more Application Specific Integrated Circuits (ASIC), Digital Signal Processor (DSP), Digital Signal Processing Device (DSP Device, DSPD) ), Programmable Logic Device (PLD), Field-Programmable Gate Array (FPGA), general-purpose processors, controllers, microcontrollers, microprocessors, used to implement Described functions in other electronic units or combinations thereof.
对于软件实现,可通过执行本公开实施例所述功能的模块(例如过程、函数等)来实现本公开实施例所述的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the technology described in the embodiments of the present disclosure can be implemented through modules (for example, procedures, functions, etc.) that perform the functions described in the embodiments of the present disclosure. The software codes can be stored in the memory and executed by the processor. The memory can be implemented in the processor or external to the processor.
上面结合附图对本公开的实施例进行了描述,但是本公开并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本公开的启示下,在不脱离本公开宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本公开的保护之内。The embodiments of the present disclosure are described above with reference to the accompanying drawings, but the present disclosure is not limited to the above-mentioned specific embodiments. The above-mentioned specific embodiments are only illustrative and not restrictive. Those of ordinary skill in the art are Under the enlightenment of the present disclosure, many forms can be made without departing from the purpose of the present disclosure and the scope of protection of the claims, all of which fall within the protection of the present disclosure.

Claims (14)

  1. 一种拍摄方法,应用于移动终端,其中,所述移动终端包括壳体、取景镜头和图像传感器,所述壳体上设置有开口,所述取景镜头可移动地设置于所述壳体以从所述开口伸出或缩回,且所述取景镜头绕所述开口的轴线可转动,所述图像传感器设置于所述壳体内部,所述取景镜头用于将射入到所述取景镜头的光线投射至所述图像传感器,所述拍摄方法包括:A photographing method applied to a mobile terminal, wherein the mobile terminal includes a housing, a viewfinder lens, and an image sensor, the housing is provided with an opening, and the viewfinder lens is movably arranged on the housing for viewing The opening is extended or retracted, and the viewfinder lens is rotatable around the axis of the opening, the image sensor is arranged inside the housing, and the viewfinder lens is used to shoot into the viewfinder lens The light is projected to the image sensor, and the shooting method includes:
    检测到所述取景镜头通过所述开口从所述壳体伸出时,确定拍摄对象;When it is detected that the viewfinder lens protrudes from the housing through the opening, determining a shooting object;
    在目标时刻之前的预设时间段内,获取所述拍摄对象的位置与图像传感器的预设位置之间的目标角度,所述目标时刻为根据所述拍摄对象生成每个图像帧的时刻;Acquiring a target angle between the position of the shooting object and the preset position of the image sensor in a preset time period before the target time, where the target time is the time at which each image frame is generated according to the shooting object;
    在所述目标角度与预设角度不同时,通过控制所述取景镜头旋转,将所述目标角度调整为所述预设角度;When the target angle is different from the preset angle, adjusting the target angle to the preset angle by controlling the rotation of the viewfinder lens;
    对所述拍摄对象进行拍摄生成所述图像帧。The image frame is generated by shooting the subject.
  2. 根据权利要求1所述的拍摄方法,其中,所述预设时间段为拍摄一个图像帧对应的时间段。The shooting method according to claim 1, wherein the preset time period is a time period corresponding to shooting one image frame.
  3. 根据权利要求1所述的拍摄方法,其中,所述移动终端还包括摄像头镜头,所述摄像头镜头设置于所述壳体内,并与所述图像传感器连接;The shooting method according to claim 1, wherein the mobile terminal further comprises a camera lens, the camera lens is arranged in the housing and connected with the image sensor;
    所述获取所述拍摄对象的当前位置与图像传感器的预设位置之间的目标角度,包括:The acquiring the target angle between the current position of the shooting object and the preset position of the image sensor includes:
    获取第一距离和第二距离;其中,所述第一距离为所述拍摄对象在所述图像传感器上所成的像与所述图像传感器的预设位置之间的距离,所述第二距离为所述图像传感器和所述摄像头镜头之间的距离;Acquire a first distance and a second distance; wherein, the first distance is the distance between the image formed by the subject on the image sensor and the preset position of the image sensor, and the second distance Is the distance between the image sensor and the camera lens;
    根据所述第一距离和所述第二距离,得到所述目标角度。According to the first distance and the second distance, the target angle is obtained.
  4. 根据权利要求1所述的拍摄方法,其中,所述移动终端还包括:与所述取景镜头连接的电机;The shooting method according to claim 1, wherein the mobile terminal further comprises: a motor connected with the viewfinder lens;
    所述通过控制所述取景镜头旋转,将所述目标角度调整为所述预设角度,包括:The adjusting the target angle to the preset angle by controlling the rotation of the viewfinder lens includes:
    根据所述目标角度和所述预设角度,确定所述取景镜头旋转的第一角度;Determine the first angle of rotation of the viewfinder lens according to the target angle and the preset angle;
    根据所述第一角度,确定所述电机转动的第二角度;Determine the second angle of rotation of the motor according to the first angle;
    控制所述电机在所述预设时间段内转动所述第二角度。Controlling the motor to rotate the second angle within the preset time period.
  5. 根据权利要求4所述的拍摄方法,其中,所述电机在所述预设时间段的最后时刻的转速与零的差值小于预设阈值。4. The photographing method according to claim 4, wherein the difference between the rotation speed of the motor at the last moment of the preset time period and zero is less than a preset threshold.
  6. 根据权利要求1所述的拍摄方法,其中,所述图像传感器的预设位置为所述图像传感器的中心位置。The shooting method according to claim 1, wherein the preset position of the image sensor is a center position of the image sensor.
  7. 一种移动终端,包括壳体、取景镜头和图像传感器,所述壳体上设置有开口,所述取景镜头可移动地设置于所述壳体以从所述开口伸出或缩回,且所述取景镜头绕所述开口的轴线可转动,所述图像传感器设置于所述壳体内部,所述取景镜头用于将射入到所述取景镜头的光线投射至所述图像传感器,所述移动终端还包括:A mobile terminal includes a housing, a viewfinder lens, and an image sensor. The housing is provided with an opening, and the viewfinder lens is movably provided on the housing to extend or retract from the opening, and The viewfinder lens is rotatable around the axis of the opening, the image sensor is disposed inside the housing, and the viewfinder lens is used to project the light that enters the viewfinder lens onto the image sensor. The terminal also includes:
    确定模块,用于检测到所述取景镜头通过所述开口从所述壳体伸出时,确定拍摄对象;A determining module, configured to determine a shooting object when detecting that the viewfinder lens protrudes from the housing through the opening;
    获取模块,用于在目标时刻之前的预设时间段内,获取所述拍摄对象的位置与图像传感器的预设位置之间的目标角度,所述目标时刻为根据所述拍摄对象生成每个图像帧的时刻;The acquiring module is configured to acquire the target angle between the position of the photographing object and the preset position of the image sensor within a preset time period before the target moment, and the target time is to generate each image according to the photographing object Moment of frame
    调整模块,用于在所述目标角度与预设角度不同时,通过控制所述取景镜头旋转,将所述目标角度调整为所述预设角度;An adjustment module, configured to adjust the target angle to the preset angle by controlling the rotation of the viewfinder lens when the target angle is different from the preset angle;
    处理模块,用于对所述拍摄对象进行拍摄生成所述图像帧。The processing module is configured to photograph the subject to generate the image frame.
  8. 根据权利要求7所述的移动终端,其中,所述预设时间段为拍摄一个图像帧对应的时间段。The mobile terminal according to claim 7, wherein the preset time period is a time period corresponding to shooting one image frame.
  9. 根据权利要求7所述的移动终端,还包括摄像头镜头,所述摄像头镜头设置于所述壳体内,并与所述图像传感器连接;The mobile terminal according to claim 7, further comprising a camera lens, the camera lens is arranged in the housing and connected with the image sensor;
    所述获取模块包括:The acquisition module includes:
    第一获取子模块,用于获取第一距离和第二距离;其中,所述第一距离为所述拍摄对象在所述图像传感器上所成的像与所述图像传感器的预设位置之间的距离,所述第二距离为所述图像传感器和所述摄像头镜头之间的距离;The first acquisition sub-module is used to acquire a first distance and a second distance; wherein the first distance is between the image formed by the subject on the image sensor and the preset position of the image sensor The second distance is the distance between the image sensor and the camera lens;
    第二获取子模块,用于根据所述第一距离和所述第二距离,得到所述目标角度。The second obtaining submodule is configured to obtain the target angle according to the first distance and the second distance.
  10. 根据权利要求7所述的移动终端,还包括:与所述取景镜头连接的电机;The mobile terminal according to claim 7, further comprising: a motor connected to the viewfinder lens;
    所述调整模块包括:The adjustment module includes:
    第一确定子模块,用于根据所述目标角度和所述预设角度,确定所述取景镜头旋转的第一角度;A first determining submodule, configured to determine a first angle of rotation of the viewfinder lens according to the target angle and the preset angle;
    第二确定子模块,用于根据所述第一角度,确定所述电机转动的第二角度;A second determining submodule, configured to determine a second angle of rotation of the motor according to the first angle;
    控制子模块,用于控制所述电机在所述预设时间段内转动所述第二角度。The control sub-module is configured to control the motor to rotate the second angle within the preset time period.
  11. 根据权利要求10所述的移动终端,其中,所述电机在所述预设时间段的最后时刻的转速与零的差值小于预设阈值。The mobile terminal according to claim 10, wherein the difference between the rotation speed of the motor at the last moment of the preset time period and zero is less than a preset threshold.
  12. 根据权利要求7所述的移动终端,其中,所述图像传感器的预设位置为所述图像传感器的中心位置。The mobile terminal according to claim 7, wherein the preset position of the image sensor is a center position of the image sensor.
  13. 一种移动终端,包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至6中任一项所述拍摄方法的步骤。A mobile terminal comprising a processor, a memory, and a computer program stored on the memory and capable of running on the processor. The computer program is executed by the processor to implement any of claims 1 to 6 One of the steps of the shooting method.
  14. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至6中任一项所述拍摄方法的步骤。A computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the photographing method according to any one of claims 1 to 6 are realized.
PCT/CN2020/084225 2019-04-29 2020-04-10 Photographing method and mobile terminal WO2020220973A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910355129.7A CN110049221B (en) 2019-04-29 2019-04-29 Shooting method and mobile terminal
CN201910355129.7 2019-04-29

Publications (1)

Publication Number Publication Date
WO2020220973A1 true WO2020220973A1 (en) 2020-11-05

Family

ID=67280169

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/084225 WO2020220973A1 (en) 2019-04-29 2020-04-10 Photographing method and mobile terminal

Country Status (2)

Country Link
CN (1) CN110049221B (en)
WO (1) WO2020220973A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112843678A (en) * 2020-12-31 2021-05-28 上海米哈游天命科技有限公司 Method and device for shooting image, electronic equipment and storage medium
CN115802133A (en) * 2021-09-10 2023-03-14 Oppo广东移动通信有限公司 Camera module, electronic equipment, image acquisition method and device and storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110049221B (en) * 2019-04-29 2021-06-15 维沃移动通信(杭州)有限公司 Shooting method and mobile terminal
CN113438416B (en) * 2021-06-21 2022-12-09 北京小米移动软件有限公司 Image quantity acquisition method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002287239A (en) * 2001-03-28 2002-10-03 Mitsubishi Electric Corp Outdoor composite integrated type camera
CN106331471A (en) * 2015-07-10 2017-01-11 宇龙计算机通信科技(深圳)有限公司 Automatic tracking image pickup method, apparatus, mobile terminal and rotary support
CN107888805A (en) * 2016-09-29 2018-04-06 贵州火星探索科技有限公司 A kind of mobile phone camera is taken pictures tracks of device and method
CN108391058A (en) * 2018-05-17 2018-08-10 Oppo广东移动通信有限公司 Image capturing method, device, electronic device and storage medium
CN108388314A (en) * 2018-04-04 2018-08-10 深圳天珑无线科技有限公司 A kind of electronic equipment and its CCD camera assembly
CN109302552A (en) * 2018-10-30 2019-02-01 维沃移动通信(杭州)有限公司 A kind of control method of terminal device and terminal device
CN110049221A (en) * 2019-04-29 2019-07-23 维沃移动通信(杭州)有限公司 Image pickup method and mobile terminal

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101420525A (en) * 2007-10-26 2009-04-29 鸿富锦精密工业(深圳)有限公司 Photographing apparatus and method
CN103645749A (en) * 2013-12-23 2014-03-19 张志增 Automatic adjusting type display device and adjusting method thereof
CN107409175B (en) * 2015-03-26 2020-04-21 富士胶片株式会社 Tracking control device, tracking control method, automatic tracking photography system, and tangible medium
US20160352992A1 (en) * 2015-05-27 2016-12-01 Gopro, Inc. Image Stabilization Mechanism
CN205123805U (en) * 2015-11-02 2016-03-30 维沃移动通信有限公司 Mobile terminal
CN206413038U (en) * 2016-10-31 2017-08-15 维沃移动通信有限公司 A kind of camera and mobile terminal
CN108769496B (en) * 2018-08-08 2020-11-27 深圳市广和通无线股份有限公司 Camera shooting assembly and electronic equipment
CN109389093A (en) * 2018-10-23 2019-02-26 同济大学 Based on recognition of face towards type method for tracing

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002287239A (en) * 2001-03-28 2002-10-03 Mitsubishi Electric Corp Outdoor composite integrated type camera
CN106331471A (en) * 2015-07-10 2017-01-11 宇龙计算机通信科技(深圳)有限公司 Automatic tracking image pickup method, apparatus, mobile terminal and rotary support
CN107888805A (en) * 2016-09-29 2018-04-06 贵州火星探索科技有限公司 A kind of mobile phone camera is taken pictures tracks of device and method
CN108388314A (en) * 2018-04-04 2018-08-10 深圳天珑无线科技有限公司 A kind of electronic equipment and its CCD camera assembly
CN108391058A (en) * 2018-05-17 2018-08-10 Oppo广东移动通信有限公司 Image capturing method, device, electronic device and storage medium
CN109302552A (en) * 2018-10-30 2019-02-01 维沃移动通信(杭州)有限公司 A kind of control method of terminal device and terminal device
CN110049221A (en) * 2019-04-29 2019-07-23 维沃移动通信(杭州)有限公司 Image pickup method and mobile terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112843678A (en) * 2020-12-31 2021-05-28 上海米哈游天命科技有限公司 Method and device for shooting image, electronic equipment and storage medium
CN112843678B (en) * 2020-12-31 2023-05-23 上海米哈游天命科技有限公司 Method and device for shooting image, electronic equipment and storage medium
CN115802133A (en) * 2021-09-10 2023-03-14 Oppo广东移动通信有限公司 Camera module, electronic equipment, image acquisition method and device and storage medium

Also Published As

Publication number Publication date
CN110049221B (en) 2021-06-15
CN110049221A (en) 2019-07-23

Similar Documents

Publication Publication Date Title
WO2020220973A1 (en) Photographing method and mobile terminal
WO2019096123A1 (en) Camera control method and mobile terminal
CN108702446B (en) Photographing method and terminal
CN110213414B (en) Drive control method, terminal and computer readable storage medium
WO2021104197A1 (en) Object tracking method and electronic device
WO2020238380A1 (en) Panoramic photography method and terminal device
WO2020108261A1 (en) Photographing method and terminal
WO2020221044A1 (en) Control method for step motor and mobile terminal
WO2019129020A1 (en) Automatic focusing method of camera, storage device and mobile terminal
TWI755762B (en) Target tracking method, intelligent mobile device and storage medium thereof
CN109348020B (en) Photographing method and mobile terminal
WO2021104227A1 (en) Photographing method and electronic device
WO2019174628A1 (en) Photographing method and mobile terminal
WO2021103737A1 (en) Photographing method and electronic device
WO2021063099A1 (en) Photographing method and electronic device
WO2018098638A1 (en) Electronic device photographing method and apparatus
WO2021013009A1 (en) Photographing method and terminal device
WO2020020134A1 (en) Photographing method and mobile terminal
WO2021179800A1 (en) Electronic device
CN108989644A (en) A kind of camera control method and terminal
WO2021104226A1 (en) Photographing method and electronic device
WO2021190390A1 (en) Focusing method, electronic device, storage medium and program product
CN109639975A (en) A kind of filming control method and mobile terminal
CN108881721B (en) Display method and terminal
WO2020151745A1 (en) Mobile terminal and control method

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

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

Country of ref document: EP

Kind code of ref document: A1