CN110971803A - Shooting method, shooting device, electronic equipment and medium - Google Patents
Shooting method, shooting device, electronic equipment and medium Download PDFInfo
- Publication number
- CN110971803A CN110971803A CN201911307777.1A CN201911307777A CN110971803A CN 110971803 A CN110971803 A CN 110971803A CN 201911307777 A CN201911307777 A CN 201911307777A CN 110971803 A CN110971803 A CN 110971803A
- Authority
- CN
- China
- Prior art keywords
- posture
- lens
- shooting
- camera module
- input
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/50—Constructional details
- H04N23/55—Optical parts specially adapted for electronic image sensors; Mounting thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/50—Constructional details
- H04N23/54—Mounting of pick-up tubes, electronic image sensors, deviation or focusing coils
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/695—Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the invention discloses a shooting method, a shooting device, electronic equipment and a medium, wherein the electronic equipment comprises a shooting module, the shooting module comprises a lens and a photosensitive element, and the lens can move relative to the photosensitive element, and the shooting method comprises the following steps: receiving a first input of a user when the electronic device is in a first posture; and responding to the first input, when the electronic equipment is in a second posture, moving the lens to a target position corresponding to the first posture, and shooting a first image through the camera module. By utilizing the embodiment of the invention, the distortion caused by the perspective relation can be corrected, and the target object is shot to be horizontal and vertical.
Description
Technical Field
The embodiment of the invention relates to the field of electronic equipment, in particular to a shooting method, a shooting device, electronic equipment and a shooting medium.
Background
With the improvement of the shooting performance of the electronic equipment, more and more users use the electronic equipment to shoot so as to record daily life and work.
In some scenarios, to capture an overview of a target object, a user takes a face-up or a face-down using an electronic device. For example, the target object is a skyscraper, and the electronic device needs to take a upward picture to photograph the entire skyscraper. However, the lower part of the skyscraper is closer to the electronic devices, and the upper part is farther from the electronic devices. Therefore, the captured image has a large lower portion and a small upper portion of the skyscraper. It can be seen that in some shooting scenes, the target object in the shot image may be distorted due to the influence of perspective relation.
Disclosure of Invention
The embodiment of the invention provides a shooting method, which aims to solve the problem that a target object in a shot image has distortion.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a shooting method applied to an electronic device, where the electronic device includes a camera module, the camera module includes a lens and a photosensitive element, and the lens is capable of moving relative to the photosensitive element, and the method includes:
receiving a first input of a user when the electronic device is in a first posture;
and responding to the first input, when the electronic equipment is in a second posture, moving the lens to a target position corresponding to the first posture, and shooting a first image through the camera module.
In a second aspect, an embodiment of the present invention provides a shooting device, where the shooting device includes a camera module, where the camera module includes a lens and a photosensitive element, and the lens is capable of moving relative to the photosensitive element, and the device includes:
the input receiving module is used for receiving a first input of a user when the shooting device is in a first posture;
and the input response module is used for responding to the first input, moving the lens to a target position corresponding to the first posture when the shooting device is in the second posture, and shooting a first image through the camera module.
In a third aspect, an embodiment of the present invention provides an electronic device, including: comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program realizing the steps of the photographing method when executed by the processor.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the shooting method as described above.
In the embodiment of the invention, the position of the lens relative to the photosensitive element is changed by moving the lens, so that the optical axis of the camera module is changed. Therefore, distortion due to perspective relation (such as perspective relation of near, far and small) can be corrected, and the target object can be photographed to be in a horizontal, vertical and horizontal effect.
Drawings
The present invention will be better understood from the following description of specific embodiments thereof taken in conjunction with the accompanying drawings, in which like or similar reference characters designate like or similar features.
FIG. 1 shows a schematic view of a lens on an electronic device housing of one embodiment provided by the invention;
FIG. 2 is a flow chart of a photographing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating an electronic device in a first position according to one embodiment of the invention;
FIG. 4 is a schematic diagram of an electronic device in a second pose and before lens movement according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an electronic device in a second position and after lens movement according to an embodiment of the invention;
FIG. 6 is a schematic structural diagram of a camera according to an embodiment of the present invention;
fig. 7 is a schematic diagram illustrating a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a shooting method of one embodiment, which is applied to electronic equipment, wherein the electronic equipment comprises a camera module, the camera module comprises a lens and a photosensitive element, and the lens can move relative to the photosensitive element.
For example, referring to fig. 1, a housing of the electronic device is provided with a slot 002, and the lens 004 moves up and down in the slot 002. The lens 004 is not limited to moving up and down, and can move left and right, or move in other directions, so as to meet various shooting scenes. The lens 004 can be disposed at any position on the housing of the electronic device, for example, at the middle position, the upper middle position or the four corners of the housing.
The lens may include a shift lens or a wide-angle lens. The tilt-shift lens is used for photographing a building, standing on the ground, and slightly tilting upward a camera to take a full view. The lower part of the building is closer to the upper part and is farther from the upper part, so that the convergence effect of 'big end down and small end up' can be achieved. The lens itself is not deformed, and the reason for this is because of perspective. The correction method is that the camera is directly opposite to the building for shooting. In this case, the angle of view may be insufficient, and a wide-angle lens may need to be replaced. For a 35 mm camera, the equivalent method is to shoot the object with a lens with the same focal length but larger angle of view, and move the film to the position to be retained when cutting (actually, move the lens in the opposite direction), and this lens is the shift lens. The wide-angle lens is a photographic lens with a focal length shorter than that of a standard lens, a visual angle larger than that of the standard lens, a focal length longer than that of a fisheye lens and a visual angle smaller than that of the fisheye lens.
Fig. 2 is a flowchart illustrating a photographing method according to an embodiment of the present invention. The shooting method is applied to the electronic device, and as shown in fig. 2, the shooting method comprises the following steps:
And 104, responding to the first input, moving the lens to a target position corresponding to the first posture when the electronic equipment is in the second posture, and shooting a first image through the camera module.
For example, when the electronic device is in the first posture, the electronic device displays a photographed preview image, and displays a "remember composition" button on an interface on which the preview image is displayed. When the user considers that the preview image taken with the electronic device in the first pose is satisfactory, the user may click a "remember composition" button. In this case, the electronic device receives a first input from the user to the "remember composition" button. The electronic device responds to the first input, the lens moves relative to the photosensitive element, and the lens is moved to a target position corresponding to the first posture.
In the embodiment of the invention, the position of the lens relative to the photosensitive element is changed by moving the lens, so that the optical axis of the camera module is changed. Therefore, distortion due to perspective relation (such as perspective relation of near, far and small) can be corrected, and the target object can be photographed to be in a horizontal, vertical and horizontal effect. Moreover, the electronic equipment controls the lens to move, so that the position of the lens does not need to be manually and repeatedly adjusted by a user, and the shooting angle of the lens does not need to be judged by the user, thereby reducing the shooting difficulty and enabling the shooting to be more intelligent.
Optionally, in a case where the electronic device is in the second posture and the lens is moved to the target position, the optical axis of the camera module is in the same direction as the optical axis of the camera module when the electronic device is in the first posture.
The optical axis of the camera module can be a connecting line of the lens and the central point of the photosensitive element.
In the embodiment of the invention, the direction of the optical axis of the camera module when the electronic equipment is in the first posture is consistent with the direction of the optical axis of the camera module when the electronic equipment is in the second posture, so that the shooting angle of the lens after the lens is moved is ensured to be the same as the shooting angle of the lens in the first posture. Since the shooting angle of the lens in the first posture is a shooting angle satisfactory to the user, shooting at the shooting angle satisfactory to the user is achieved by moving the lens.
Alternatively, the light receiving surface of the light sensing element is perpendicular to the horizontal plane when the electronic device is in the second posture.
For example, the second posture is a posture in which the electronic device is perpendicular to a horizontal plane, and the light receiving surface of the light receiving element is perpendicular to the horizontal plane. If the target object of the lens photographing is a skyscraper, which is perpendicular to the horizontal plane, the light receiving surface of the light sensing element is parallel to the skyscraper. In this case, the lens is directed to the skyscraper to photograph, and the light receiving surface of the light receiving element is parallel to the skyscraper. Therefore, the skyscraper in the first image shot by the electronic equipment is in a flat and vertical effect, and the situation that the lower part of the skyscraper is large and the upper part of the skyscraper is small is avoided. Because the user shoots the target object vertical to the horizontal plane in many scenes, the light receiving surface of the photosensitive element is vertical to the horizontal plane, so that the shooting scenes of the user can be met, and the shooting operation of the user is facilitated.
Optionally, after responding to the first input and before the electronic device is in the second posture, the shooting method further comprises:
determining a first included angle between an optical axis of the camera module and a horizontal plane when the electronic equipment is in a first posture; and under the condition that the electronic equipment is in the second posture and the lens is positioned at the target position, the included angle between the optical axis of the camera module and the horizontal plane is a first included angle.
For example, referring to fig. 3, the electronic device 006 includes a camera module including a lens 004 and a light sensing element 008, when the electronic device 006 is in the first posture, the electronic device 006 looks up to shoot, and determines that a first included angle between an optical axis l of the camera module and a horizontal plane X is α.
Referring to fig. 4, the electronic device 006 is adjusted to be perpendicular to the horizontal plane X, and an included angle β between the optical axis l of the camera module and the horizontal plane X is smaller than a first included angle α.
Referring to fig. 5, when the lens moves to the target position, an angle β between the optical axis l of the camera module and the horizontal plane X is equal to a first angle α.
In the embodiment of the present invention, the first included angle may represent a moving amplitude of the lens. The larger the first included angle is, the larger the moving amplitude of the lens is. The moving process of the lens is a process of correcting and compensating the shooting angle of the lens. In the moving process of the lens, the electronic equipment detects an included angle between an optical axis of the camera module and a horizontal plane, and under the condition that the included angle is equal to the first included angle, the correction compensation of the shooting angle of the lens is completed, and the lens stops moving.
Optionally, after receiving the first input of the user and before the electronic device is in the second posture, the shooting method further includes:
and displaying prompt information, wherein the prompt information is used for prompting that the placement position of the electronic equipment is kept unchanged, and prompting the rotation direction of the electronic equipment so as to adjust the electronic equipment to the second posture.
In the embodiment of the invention, a friendly shooting interface is provided for a user by displaying the prompt information, and the user can shoot the high-quality first image according to the prompt operation.
Optionally, after moving the lens to the target position corresponding to the first posture and before capturing the first image through the camera module, the capturing method further includes: and displaying a target control for adjusting the position of the lens. For example, the target control is similar to a bar control for adjusting volume.
An adjustment input is received for the target control, and the lens is moved in response to the adjustment input. For example, the adjustment input is a slide input to the target control, and the lens is moved during the slide input; in the case where the reception of the slide input is stopped, the lens stops moving.
In the embodiment of the invention, after the lens is moved by the electronic equipment, if the user is not satisfied with the shooting angle of the moved lens, the user can manually adjust the lens according to the requirement, so that the individual use requirement of the user is met.
Optionally, the electronic device captures a first image through the photosensitive element, including:
shooting a target object through a camera module to obtain a first image; when the electronic equipment is in a first posture, the light receiving surface of the photosensitive element is not parallel to a first plane of the target object; when the electronic device is in the second posture, the light receiving surface of the light sensing element is parallel to the first plane of the target object.
For example, referring to fig. 3, when the electronic device 006 is in the first posture, the light receiving surface of the light sensing element 008 is not parallel to the first plane 011 of the target object 010.
Note that the first plane 011 shown in fig. 3 is not necessarily planar due to the angle of view of the viewing target object 010. In fact, when the target object 010 is viewed from the y direction, the first plane 011 of the target object 010 can be seen. The first plane 011 in fig. 4 and 5 is similar to the first plane 011 in fig. 3, and the description thereof is not repeated.
Referring to fig. 4 or 5, when the electronic device 006 is in the second posture, the light receiving surface of the light sensing element 008 is parallel to the first plane 011 of the target object 010.
Optionally, moving the lens to a target position corresponding to the first pose comprises:
under the condition that the first posture is a posture for upward shooting, controlling the lens to move upwards and move to a target position corresponding to the first posture; and controlling the lens to move downwards and move to a target position corresponding to the first posture when the first posture is a posture of overlooking shooting.
In the embodiment of the invention, if the first posture is the posture of upward shooting, the lens moves upwards, so that the height of the lens is increased, and the distortion generated when the lens is shot upward is corrected. If the first posture is a posture for top-view photographing, the lens is moved downward, thereby reducing the height of the lens and correcting distortion generated when the lens is used for top-view photographing.
Fig. 6 is a schematic structural diagram of a photographing apparatus according to an embodiment of the present invention. The shooting device comprises a shooting module, the shooting module comprises a lens and a photosensitive element, and the lens can move relative to the photosensitive element; as shown in fig. 6, the photographing device 200 includes:
the input receiving module 202 is used for receiving a first input of a user when the shooting device is in a first posture;
and the input response module 204 is used for responding to the first input, moving the lens to a target position corresponding to the first posture when the shooting device is in the second posture, and shooting a first image through the shooting module.
In the embodiment of the invention, the position of the lens relative to the photosensitive element is changed by moving the lens, so that the optical axis of the camera module is changed. Therefore, distortion due to perspective relation (such as perspective relation of near, far and small) can be corrected, and the target object can be photographed to be in a horizontal, vertical and horizontal effect. Moreover, the lens is moved by the shooting device, so that the user does not need to manually and repeatedly adjust the position of the lens, and the user does not need to judge the shooting angle of the lens, thereby reducing the shooting difficulty and enabling the shooting to be more intelligent.
Optionally, when the shooting device is in the second posture and the lens moves to the target position, the optical axis of the camera module is in the same direction as the optical axis of the camera module when the shooting device is in the first posture.
Alternatively, when the photographing device is in the second posture, the light receiving surface of the light sensing element is perpendicular to the horizontal plane.
Optionally, the photographing apparatus 200 further includes:
the included angle determining module is used for determining a first included angle between the optical axis of the camera module and the horizontal plane when the shooting device is in the first posture; when the shooting device is in the second posture and the lens is located below the target position, the included angle between the optical axis of the camera module and the horizontal plane is a first included angle.
Optionally, the input response module 204 comprises:
the image shooting module is used for shooting a target object through the camera module to obtain a first image; when the shooting device is in a first posture, the light receiving surface of the photosensitive element is not parallel to the first plane of the target object; when the shooting device is in the second posture, the light receiving surface of the photosensitive element is parallel to the first plane of the target object.
Optionally, the input response module 204 comprises:
the first moving module is used for controlling the lens to move upwards and move to a target position corresponding to the first posture under the condition that the first posture is a posture for looking up for shooting;
and the second moving module is used for controlling the lens to move downwards and move to a target position corresponding to the first posture when the first posture is a top-view shooting posture.
Fig. 7 shows a schematic diagram of a hardware structure of an electronic device 300 according to an embodiment of the present invention, where the electronic device 300 includes, but is not limited to: the mobile terminal comprises a radio frequency unit 301, a network module 302, an audio output unit 303, an input unit 304, a sensor 305, a display unit 306, a user input unit 307, an interface unit 308, a memory 309, a processor 310, a power supply 311, a lens and the like, wherein the lens can move along a preset track. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 7 does not constitute a limitation of the electronic device, and that the electronic device may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the electronic device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a camera, an aircraft, a vehicle terminal, a wearable device, a pedometer, and the like.
The processor 310 is configured to receive a first input of a user when the electronic device is in a first posture; and responding to the first input, when the electronic equipment is in the second posture, moving the lens to a target position corresponding to the first posture, and shooting a first image through the camera module.
In the embodiment of the invention, the optical axis of the camera module is changed by moving the position of the lens relative to the photosensitive element. Therefore, distortion due to perspective relation (such as perspective relation of near, far and small) can be corrected, and the target object can be photographed to be in a horizontal, vertical and horizontal effect. Moreover, the lens is moved by the electronic equipment, so that the position of the lens does not need to be manually adjusted repeatedly by a user, and the shooting angle of the lens does not need to be judged by the user, thereby reducing the shooting difficulty and enabling the shooting to be more intelligent.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 301 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 310; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 301 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 301 can also communicate with a network and other devices through a wireless communication system.
The electronic device provides wireless broadband internet access to the user via the network module 302, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 303 may convert audio data received by the radio frequency unit 301 or the network module 302 or stored in the memory 309 into an audio signal and output as sound. Also, the audio output unit 303 may also provide audio output related to a specific function performed by the electronic apparatus 300 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 303 includes a speaker, a buzzer, a receiver, and the like.
The input unit 304 is used to receive audio or video signals. The input Unit 304 may include a Graphics Processing Unit (GPU) 3041 and a microphone 3042, and the Graphics processor 3041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a lens) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 306. The image frames processed by the graphic processor 3041 may be stored in the memory 309 (or other storage medium) or transmitted via the radio frequency unit 301 or the network module 302. The microphone 3042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 301 in case of the phone call mode.
The electronic device 300 also includes at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 3061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 3061 and/or the backlight when the electronic device 300 is moved to the ear. As one type of motion sensor, an accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of an electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 305 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 306 is used to display information input by the user or information provided to the user. The Display unit 306 may include a Display panel 3061, and the Display panel 3061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 307 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device. Specifically, the user input unit 307 includes a touch panel 3071 and other input devices 3072. The touch panel 3071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 3071 (e.g., operations by a user on or near the touch panel 3071 using a finger, a stylus, or any suitable object or attachment). The touch panel 3071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 310, and receives and executes commands sent by the processor 310. In addition, the touch panel 3071 may be implemented using various types, such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 307 may include other input devices 3072 in addition to the touch panel 3071. Specifically, the other input devices 3072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein.
Further, the touch panel 3071 may be overlaid on the display panel 3061, and when the touch panel 3071 detects a touch operation on or near the touch panel, the touch operation is transmitted to the processor 310 to determine the type of the touch event, and then the processor 310 provides a corresponding visual output on the display panel 3061 according to the type of the touch event. Although the touch panel 3071 and the display panel 3061 are shown in fig. 7 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 3071 and the display panel 3061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 308 is an interface for connecting an external device to the electronic apparatus 300. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 308 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 300 or may be used to transmit data between the electronic apparatus 300 and the external device.
The memory 309 may be used to store software programs as well as various data. The memory 309 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 309 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 310 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by operating or executing software programs and/or modules stored in the memory 309 and calling data stored in the memory 309, thereby performing overall monitoring of the electronic device. Processor 310 may include one or more processing units; preferably, the processor 310 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 310.
The electronic device 300 may further include a power supply 311 (such as a battery) for supplying power to various components, and preferably, the power supply 311 may be logically connected to the processor 310 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 300 includes some functional modules that are not shown, and are not described in detail herein.
An embodiment of the present invention further provides an electronic device, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the foregoing shooting method embodiment, and can achieve the same technical effect, and details are not repeated here to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (10)
1. A shooting method is applied to electronic equipment, and is characterized in that the electronic equipment comprises a camera module, the camera module comprises a lens and a photosensitive element, and the lens can move relative to the photosensitive element, and the method comprises the following steps:
receiving a first input of a user when the electronic device is in a first posture;
and responding to the first input, when the electronic equipment is in a second posture, moving the lens to a target position corresponding to the first posture, and shooting a first image through the camera module.
2. The method according to claim 1, wherein when the electronic device is in the second posture and the lens is moved to the target position, an optical axis of the camera module coincides with an orientation of the optical axis of the camera module when the electronic device is in the first posture.
3. The method of claim 1, wherein a light receiving surface of the light sensing element is perpendicular to a horizontal plane when the electronic device is in the second attitude.
4. The method of claim 3, wherein after the responding to the first input and before the moving the lens to a target position corresponding to the first pose while the electronic device is in the second pose, the method further comprises:
determining a first included angle between an optical axis of the camera module and a horizontal plane when the electronic equipment is in the first posture;
the electronic equipment is in the second posture, the lens is located at the target position, and an included angle between an optical axis of the camera module and a horizontal plane is the first included angle.
5. The method of claim 1, wherein said capturing a first image via said photosensitive element comprises:
shooting a target object through the camera module to obtain the first image;
when the electronic equipment is in the first posture, the light receiving surface of the photosensitive element is not parallel to the first plane of the target object; when the electronic device is in the second posture, the light receiving surface of the light sensing element is parallel to a first plane of the target object.
6. The method of claim 1, wherein the moving the lens to a target position corresponding to the first pose comprises:
under the condition that the first posture is a posture for upward shooting, controlling the lens to move upwards and move to a target position corresponding to the first posture;
and controlling the lens to move downwards and move to a target position corresponding to the first posture when the first posture is a top-view shooting posture.
7. A camera device, said device comprising a camera module, said camera module comprising a lens and a light sensing element, said lens being movable relative to said light sensing element, said device comprising:
the input receiving module is used for receiving a first input of a user when the shooting device is in a first posture;
and the input response module is used for responding to the first input, moving the lens to a target position corresponding to the first posture when the shooting device is in the second posture, and shooting a first image through the camera module.
8. The apparatus of claim 7, wherein when the camera is in the second position and the lens is moved to the target position, the optical axis of the camera module is aligned with the optical axis of the camera module when the camera is in the first position.
9. The apparatus of claim 7, wherein a light receiving surface of the light sensing element is perpendicular to a horizontal plane when the imaging device is in the second orientation.
10. The apparatus of claim 7, further comprising:
the included angle determining module is used for determining a first included angle between the optical axis of the camera module and the horizontal plane when the shooting device is in the first posture;
the shooting device is in a second posture, the lens is located below the target position, and an included angle between an optical axis of the camera module and a horizontal plane is the first included angle.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911307777.1A CN110971803B (en) | 2019-12-18 | 2019-12-18 | Shooting method, shooting device, electronic equipment and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911307777.1A CN110971803B (en) | 2019-12-18 | 2019-12-18 | Shooting method, shooting device, electronic equipment and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110971803A true CN110971803A (en) | 2020-04-07 |
CN110971803B CN110971803B (en) | 2021-10-15 |
Family
ID=70034752
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911307777.1A Active CN110971803B (en) | 2019-12-18 | 2019-12-18 | Shooting method, shooting device, electronic equipment and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110971803B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101344704A (en) * | 2008-07-28 | 2009-01-14 | 张宇 | Axis-shifting photography system capable of pan-shot |
CN103813104A (en) * | 2014-03-12 | 2014-05-21 | 爱佩仪光电技术(深圳)有限公司 | Method for realizing shift photography and three-dimensional multi-region automatic focusing through touch screen operation |
US20150138383A1 (en) * | 2013-11-21 | 2015-05-21 | International Business Machines Corporation | Automated tilt and shift optimization |
CN104880905A (en) * | 2015-05-13 | 2015-09-02 | 北京康得新三维科技有限责任公司 | Device and method for tilt-shift stereoscopic photography |
CN104991404A (en) * | 2015-07-27 | 2015-10-21 | 张春天 | Large and medium-frame lens tilt-shift swinging technology translation device |
CN107277363A (en) * | 2017-07-21 | 2017-10-20 | 深圳市泰衡诺科技有限公司上海分公司 | Image processing method, image processing apparatus and electronic equipment |
US20190355148A1 (en) * | 2017-02-06 | 2019-11-21 | Fujifilm Corporation | Imaging control device, imaging control method, and program |
CN110568697A (en) * | 2019-10-21 | 2019-12-13 | 深圳市永诺摄影器材股份有限公司 | Method and device for axis-shift photography |
-
2019
- 2019-12-18 CN CN201911307777.1A patent/CN110971803B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101344704A (en) * | 2008-07-28 | 2009-01-14 | 张宇 | Axis-shifting photography system capable of pan-shot |
US20150138383A1 (en) * | 2013-11-21 | 2015-05-21 | International Business Machines Corporation | Automated tilt and shift optimization |
CN103813104A (en) * | 2014-03-12 | 2014-05-21 | 爱佩仪光电技术(深圳)有限公司 | Method for realizing shift photography and three-dimensional multi-region automatic focusing through touch screen operation |
CN104880905A (en) * | 2015-05-13 | 2015-09-02 | 北京康得新三维科技有限责任公司 | Device and method for tilt-shift stereoscopic photography |
CN104991404A (en) * | 2015-07-27 | 2015-10-21 | 张春天 | Large and medium-frame lens tilt-shift swinging technology translation device |
US20190355148A1 (en) * | 2017-02-06 | 2019-11-21 | Fujifilm Corporation | Imaging control device, imaging control method, and program |
CN107277363A (en) * | 2017-07-21 | 2017-10-20 | 深圳市泰衡诺科技有限公司上海分公司 | Image processing method, image processing apparatus and electronic equipment |
CN110568697A (en) * | 2019-10-21 | 2019-12-13 | 深圳市永诺摄影器材股份有限公司 | Method and device for axis-shift photography |
Non-Patent Citations (2)
Title |
---|
林铭述等: "移动现实的空间 TS-E17mmf/4L与TS-E24mmf/3.5LII镜头测试", 《中国摄影》 * |
马经宇: "基于移轴成像的数字相机检校方法研究", 《中国优秀硕士学位论文全文数据库 工程科技II辑》 * |
Also Published As
Publication number | Publication date |
---|---|
CN110971803B (en) | 2021-10-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108513070B (en) | Image processing method, mobile terminal and computer readable storage medium | |
CN108668083B (en) | Photographing method and terminal | |
CN109361869B (en) | Shooting method and terminal | |
CN107957839B (en) | Display control method and mobile terminal | |
CN111182205B (en) | Photographing method, electronic device, and medium | |
CN108495029B (en) | Photographing method and mobile terminal | |
CN110602401A (en) | Photographing method and terminal | |
CN110505400B (en) | Preview image display adjustment method and terminal | |
CN109474786B (en) | Preview image generation method and terminal | |
CN109905603B (en) | Shooting processing method and mobile terminal | |
CN111147752B (en) | Zoom factor adjusting method, electronic device, and medium | |
CN109688253B (en) | Shooting method and terminal | |
CN111510623B (en) | Shooting method and electronic equipment | |
CN111031234B (en) | Image processing method and electronic equipment | |
CN111432195A (en) | Image shooting method and electronic equipment | |
CN109413333B (en) | Display control method and terminal | |
CN108174110B (en) | Photographing method and flexible screen terminal | |
CN110708475B (en) | Exposure parameter determination method, electronic equipment and storage medium | |
CN110769154B (en) | Shooting method and electronic equipment | |
CN109005337B (en) | Photographing method and terminal | |
CN108156386B (en) | Panoramic photographing method and mobile terminal | |
CN110913133B (en) | Shooting method and electronic equipment | |
CN108628508B (en) | Method for adjusting clipping window and mobile terminal | |
CN108391050B (en) | Image processing method and mobile terminal | |
CN110971803B (en) | Shooting method, shooting device, electronic equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |