CN111083377A - Shooting method and electronic equipment - Google Patents
Shooting method and electronic equipment Download PDFInfo
- Publication number
- CN111083377A CN111083377A CN201911402895.0A CN201911402895A CN111083377A CN 111083377 A CN111083377 A CN 111083377A CN 201911402895 A CN201911402895 A CN 201911402895A CN 111083377 A CN111083377 A CN 111083377A
- Authority
- CN
- China
- Prior art keywords
- camera
- preview image
- electronic device
- preset
- display screen
- 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.)
- Pending
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/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
-
- 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/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/631—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
- H04N23/632—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
-
- 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)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
Abstract
The embodiment of the invention provides a shooting method and electronic equipment, which are applied to the technical field of communication and are used for solving the problems of complicated steps and low shooting efficiency in the traditional shooting process. The method comprises the following steps: under the condition that a preview image acquired by a camera of the electronic equipment meets a preset condition, the electronic equipment controls the camera to move to a target position below a display screen; and the electronic equipment displays the target image acquired by the camera at the target position. The embodiment of the invention is applied to shooting scenes.
Description
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a shooting method and electronic equipment.
Background
With the development of the technology of the full-screen electronic equipment (such as a full-screen smart phone), at present, most screens in the electronic equipment are full-screen, and in order not to affect the appearance of the electronic equipment, a front-mounted under-screen camera is mounted under the screen of the full-screen electronic equipment.
However, since the installation position of the conventional under-screen camera is fixed, for some special shooting scenes (e.g., scenes in which the shooting object is in a moving state), the user is required to manually adjust the shooting angle of the camera according to the moving direction of the shooting object, and the whole shooting process is complicated in steps and low in shooting efficiency.
Disclosure of Invention
The embodiment of the invention provides a shooting method and electronic equipment, and aims to solve the problems of complicated steps and low shooting efficiency in the traditional shooting process.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present invention provides a shooting method applied to an electronic device including a movable camera, where the method includes: under the condition that a preview image acquired by a camera of the electronic equipment meets a preset condition, the electronic equipment controls the camera to move to a target position below a display screen; and the electronic equipment displays the target image acquired by the camera at the target position.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes: the control module is used for controlling the camera to move to a target position below the display screen under the condition that the preview image acquired by the camera meets a preset condition; and the display module is used for displaying the target image acquired by the camera at the target position.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor, a memory, and a computer program stored on the memory and executable on the processor, and when executed by the processor, the electronic device implements the steps of the shooting method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the shooting method according to the first aspect.
In the embodiment of the invention, under the condition that the preview image acquired by the camera of the electronic equipment meets the preset condition, the electronic equipment controls the camera to move to the target position below the display screen, so that the electronic equipment displays the target image acquired by the camera at the target position. Therefore, the electronic equipment can control the camera to move based on the preview picture collected by the camera without manual control of a user, so that the moved camera can obtain an image with a better shooting effect, and the overall shooting efficiency is improved.
Drawings
Fig. 1 is a schematic structural diagram of a possible camera provided in an embodiment of the present invention;
fig. 2 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a shooting method according to an embodiment of the present invention;
fig. 4 is one of schematic diagrams of an interface applied to a shooting method according to an embodiment of the present invention;
fig. 5 is a second schematic diagram of an interface applied by a photographing method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 7 is a schematic diagram of 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 application.
It should be noted that "/" in this context means "or", for example, A/B may mean A or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
It should be noted that "a plurality" herein means two or more than two.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The electronic device in the embodiment of the invention can be a mobile electronic device or a non-mobile electronic device. The mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-mobile electronic device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
The executing subject of the shooting method provided by the embodiment of the present invention may be the electronic device, or may also be a functional module and/or a functional entity capable of implementing the shooting method in the electronic device, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited. The following takes an electronic device as an example to exemplarily describe the shooting method provided by the embodiment of the invention.
Illustratively, the electronic device in the embodiment of the present invention includes a display screen and a movable camera. It should be noted that the above-mentioned movable camera may be located below the display screen, or may be located in any area of the electronic device (e.g., a pop-up camera), which is not limited in this embodiment of the present invention.
In a possible example, taking the camera located below the display screen as an example, referring to a schematic structural diagram of a camera module in the electronic device shown in fig. 1, the camera module in the electronic device includes: camera 11, horizontal link 12 and vertical link 13, camera 11 can move along horizontal link 12 and vertical link 13.
Illustratively, when the camera 11 moves along the horizontal link 12 or the vertical link 13, the position of the photographic subject in the preview image of the camera 11 may move in the opposite direction, for example: when the camera 11 moves rightwards along the horizontal connecting rod 12, the position of the shooting object in the preview image correspondingly moves leftwards; when the camera 11 moves downward along the vertical link 13, the position of the subject in the preview image moves upward accordingly.
In another possible example, the electronic device may further control the camera to rotate to adjust a shooting angle of the camera.
Illustratively, when the camera is located below the display screen, in order to ensure that the camera can normally collect images, the display screen above the camera needs to be transparent to incident light. For example, the electronic device may cause incident light to reach the camera through the display screen by controlling the light transmittance of the display screen above the camera.
The electronic device in the embodiment of the present invention may be an electronic device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied to the shooting method provided by the embodiment of the present invention, taking an android operating system as an example.
Fig. 2 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 2, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the shooting method provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 2, so that the shooting method may operate based on the android operating system shown in fig. 2. That is, the processor or the electronic device may implement the shooting method provided by the embodiment of the present invention by running the software program in the android operating system.
The following describes a shooting method according to an embodiment of the present invention with reference to a flow chart of the shooting method shown in fig. 3, where fig. 3 is a flow chart of the shooting method provided in the embodiment of the present invention, and the shooting method includes steps 301 to 302:
step 301: under the condition that a preview image acquired by a camera of the electronic equipment meets a preset condition, the electronic equipment controls the camera to move to a target position below the display screen.
In an embodiment of the present invention, the preview image acquired by the camera at least includes one of the following shooting objects: humans, animals, buildings, plants, etc.
In the embodiment of the invention, the preset conditions corresponding to different shooting objects in the preview image acquired by the camera are different.
Optionally, in an embodiment of the present invention, when the shooting object included in the preview image is a person, the condition that the preview image acquired by the camera meets the preset condition may include at least one of the following: the occupation ratio of the face area in the preview image of the electronic device is larger than a preset threshold (namely, the face shape does not accord with the preset face shape), or the position of the person in the preview image of the electronic device is not at a preset position (namely, the position of the person in the preview image does not accord with the preset shooting composition). The preset position may be the preset composition position.
Note that the preset position may be referred to as a preset composition position in the preview image. It can be understood that, when the shooting object in the preview image is at the preset composition position in the preview picture, the image effect of the preview image is good.
For example, the preset positions may be all positions corresponding to a photographing composition, and the preset positions may include: the position of a golden section line, or the position of a dividing line in a trisection pattern, etc. For example, the golden section line is a section line whose position in the preview image is determined based on the value of the golden section (0.618), so that the composition of the preview image is more aesthetically acceptable when the position of the subject is at the position of the section line.
For example, taking the preset position as the position of the golden section line as an example, when the photographic subject in the preview image is located on the left side of the golden section line in the preview image, in order to ensure that the photographic subject in the preview image can be located at the position of the golden section line, the electronic device needs to control the camera to move rightward at a constant speed, and when the photographic subject in the preview image moves to the position of the golden section line, the camera is controlled to stop moving (that is, the position of the camera is the target position), at this time, the photographic subject collected by the camera may present the best composition effect in the target image.
For example, in a case that a preview image acquired by a camera of the electronic device includes a human face, the electronic device may control movement of the camera by detecting proportion information of a human face region in the preview image (i.e., detecting a shape of the human face in the preview image) in the preview image, so as to change the proportion of the human face in the preview image until the proportion of the human face region in the preview image meets a preset threshold. For example, when the electronic device detects that the shape of the face in the preview image does not meet the preset shape, the electronic device changes the shape of the face in the preview image by adjusting the shooting angle of the camera until the shape of the face in the preview image meets the preset shape.
Optionally, in the embodiment of the present invention, after the camera of the electronic device acquires the preview image, shooting information of a shooting object in the preview image may be acquired. Wherein the shooting information of the shot object comprises at least one of the following items: position information of a photographic subject, contour information of the photographic subject, feature information of the photographic subject (for example, face feature information).
In a possible example, after the electronic device starts the camera, most users are not professional cameras and cannot ensure that a shot object shot by the electronic device is located at a preset composition position in a preview image, and in order to ensure that the electronic device can acquire a picture with a better shooting effect, the electronic device can adaptively control the camera to move to a target position below the display screen based on shooting information of the shot object by acquiring shooting information of the shot object in the preview image under the condition that the preview image acquired by the camera meets a preset condition.
In another possible example, after the electronic device starts the camera, if a shooting object to be shot is a dynamic object (e.g., a plant moving with wind, or a person in a motion state, etc.), since a position of the shooting object in the preview image continuously changes, a user cannot guarantee that the shooting object is located at a preset composition position in the preview image (i.e., a position of a person in the preview image of the electronic device is not located at the preset position), in order to guarantee that the electronic device can acquire a picture with a better shooting effect, in an embodiment of the present invention, shooting information of the shooting object in the preview image is obtained in real time, so that the electronic device can adaptively control the camera to move based on the shooting information of the shooting object.
Optionally, in the embodiment of the present invention, the controlling, by the electronic device, the movement of the camera may include at least one of: the shooting angle of the camera is controlled, the moving distance of the camera is controlled, and the moving direction of the camera is controlled. In an example, after the moving direction of the camera is determined, the electronic device may control the camera to move towards the corresponding moving direction until the camera moves to a target position below the display screen, so that the camera acquires an image with a good shooting effect at the target position.
Optionally, in the embodiment of the present invention, the electronic device may further detect a shooting angle of the camera in real time through a gyroscope inside the electronic device, so that the electronic device may determine an adjustment amount of the shooting angle based on the current shooting angle of the camera.
Step 302: and the electronic equipment displays the target image acquired by the camera at the target position.
In an embodiment of the present invention, the target image is an image including a photographic subject collected by a camera at a target position.
Optionally, in the embodiment of the present invention, in a case that a ratio of a face area in a preview image of the electronic device is greater than a preset threshold, the ratio of the face area in the target image is smaller than the preset threshold; and if the position of the person in the preview image of the electronic equipment is not at the preset position, the position of the person in the target image is at the preset position.
According to the shooting method provided by the embodiment of the invention, under the condition that the preview image acquired by the camera of the electronic equipment meets the preset condition, the electronic equipment controls the camera to move to the target position below the display screen, so that the electronic equipment displays the target image acquired by the camera at the target position. Therefore, the electronic equipment can control the camera to move based on the preview picture collected by the camera without manual control of a user, so that the moved camera can obtain an image with a better shooting effect, and the overall shooting efficiency is improved.
Optionally, in an embodiment of the present invention, in a case that a horizontal link and a vertical link are disposed below a display screen of the electronic device, and a camera is located at a connection position of the horizontal link and the vertical link, the step 301 may include the following step 301 a:
step 301 a: the electronic equipment controls the camera to move a first distance or rotate a first angle on the horizontal connecting rod and move a second distance or rotate a second angle on the vertical connecting rod.
Exemplarily, the first distance is a horizontal moving distance of the camera on the horizontal connecting rod; the second distance is a vertical moving distance of the camera on the vertical connecting rod. For example, if the position of the subject in the preview image is located on the left side of the preset composition position, the camera is controlled to move rightward, if the position of the subject in the preview image is located on the right side of the preset composition position, the camera is controlled to move leftward, if the position of the subject in the preview image is located on the upper side of the preset composition position, the camera is controlled to move downward, and if the position of the subject in the preview image is located on the lower side of the preset composition position, the camera is controlled to move upward.
For example, the electronic device may determine target offset information of the photographic object in the preview image by acquiring position information of the photographic object in the preview image according to the position information, and then determine a movement parameter of the camera according to the target offset information, so as to determine a movement distance or a rotation angle of the camera according to the movement parameter. Wherein the target offset information is: offset information between a position of the photographic subject in the preview image and a preset position of the preview image.
In one example, the target offset information includes horizontal offset information between horizontal position information of the photographic subject in the preview image and horizontal position information of a preset position of the preview image, and the electronic device may determine the horizontal movement distance according to the horizontal offset information.
In one example, the target offset information includes vertical offset information between vertical position information of the photographic subject in the preview image and vertical position information of a preset position of the preview image, and the electronic device may determine the vertical movement distance according to the vertical offset information.
In one example, after acquiring the position information of the photographic subject in the preview image (for convenience of explanation, the first position information is replaced below), the electronic device also acquires the position information which is closest to the photographic subject in the preview image and accords with the preset photographic composition (for convenience of explanation, the second position information is replaced below), then determines target offset information according to the first position information and the second position information, and finally controls the camera to move based on the movement parameter corresponding to the target offset information.
Specifically, the first position information may be a center line position of the photographic subject, and the second position information may be a position of a preset mapping line (for example, a position of a golden section line). At this time, the electronic apparatus controls the camera to move horizontally. If the x-axis coordinate of the center line position of the subject is x11, the x-axis coordinate of the position of the optimal mapping line is x22, and the offset information between the two is a, (x11-x22), the horizontal movement distance of the corresponding camera is an absolute value of x11-x22, and if a is a positive value, the horizontal movement direction of the camera is: and moving the camera to the negative direction of the x axis, wherein if a is a negative value, the horizontal moving direction of the camera is as follows: and moving the camera to the positive direction of the x axis.
For example, as shown in (a) of fig. 4, taking a shooting object as a person, when a center line (e.g. 42 in a) of a portrait in a preview image (e.g. 41 in fig. 4) of an electronic device is located at the right side of the preview image 41, and a golden section line (e.g. 43 in a in fig. 4) of the preview image 41 is located at the left side of the center line 42 of the portrait, the electronic device determines a horizontal movement distance S of the camera according to a horizontal distance difference L between the center line 42 of the portrait and the golden section line 43, and then controls the camera to move to the right by the distance S, and the portrait moves to the left correspondingly as the camera moves. As shown in fig. 4 (b), eventually, the portrait will be displayed at the position of the golden section line of the preview image, and at this time, the portrait in the captured image shows the best composition effect. It should be noted that the dotted lines in fig. 4 are used to assist in explaining the movement of the camera.
In one example, the first position information includes a first position coordinate (X1, y1), and the second position information includes a second position coordinate (X2, y2), based on which, for the X axis (i.e., horizontal direction), the electronic device shifts information X 'between the coordinates (X1, y1) and the coordinates (X2, y2) according to the coordinates (X1, y1) and the coordinates (X2, y2), i.e., (X1-X2), the horizontal moving distance of the corresponding camera is an absolute value of X1-X2, and if X' is a positive value, the horizontal moving direction of the camera is: moving the camera to the negative direction of the x axis, and if x' is a negative value, the horizontal moving direction of the camera is as follows: and moving the camera to the positive direction of the x axis. Similarly, for the Y axis (i.e. the vertical direction), the electronic device, based on the coordinates (x1, Y1) and (x2, Y2), has the offset information between them being Y ', i.e. (Y1-Y2), and the vertical movement distance of the corresponding camera is the absolute value of Y1-Y2, and if Y' is a positive value, the vertical movement direction of the camera is: and moving the camera to the negative direction of the y axis, wherein if y' is a negative value, the vertical moving direction of the camera is as follows: and moving the camera to the positive direction of the y axis.
In one example, when the position of the shooting object in the preview image is constantly changing, the electronic device may further adjust the position of the camera in real time according to the preview image collected by the camera. Therefore, the electronic equipment not only can enable the shooting object to be in a better composition position in the preview image, but also can enable the shooting object to keep a position stable effect in the preview image.
For example, in a case where the preview image includes a face of a subject, the photographing information includes face feature information of the subject, and the electronic device determines a movement parameter corresponding to the face feature information.
Illustratively, the face feature information may be used to indicate at least one of: the position of the center point of the face, the posture of the five sense organs and the contour of the face. In one example, the face feature information includes: face contour information, face center point coordinates and face five-sense feature information.
For example, the electronic device may determine the face shape from the face contour information.
Illustratively, different facial shapes correspond to different movement parameters.
For example, the electronic device obtains feature information of a face of a shooting object in a preview image, matches the feature information with feature information of a preset face shape, and further determines a movement parameter of the camera, and further, the electronic device moves the direction and distance of the camera according to the movement parameter. For example, the preset face shape includes: the face shape is melon seed face.
For example, taking the example that the face feature information is used to represent the positions of the eyes in the facial features and the preset photography composition is a trisection photography composition, after the electronic device acquires the position information of the eyes of the photographic object in the preview image, the electronic device determines the corresponding movement parameters according to the position information of the eyes and the position information of the intersection point of the three lines in the preview image.
For example, in the case where the preview image includes a face of a person of a photographic subject, a change in the angle and/or position of the camera may cause a change in the position and contour of the face in the preview image. For example, when the imaging angle of the camera is a depression angle (less than 90 °), the cheek portion of the face in the preview image becomes thin, and when the imaging angle of the camera is an elevation angle (more than 90 °), the cheek portion of the face in the preview image becomes wide.
For example, as shown in fig. 5 (a), when the electronic device detects that the contour of the cheek of the face of the photographic subject in the preview image (51 in fig. 5 (a)) is in a wide "square shape" (52 in fig. 5 (a)), and the user wants to photograph the face in the preview screen 51 as a thin face, the photographing angle of the camera needs to be adjusted so that the photographing angle of the camera is a depression angle. As shown in fig. 5 (b), when the shooting angle of the camera is changed, the outline of the face in the preview image is significantly reduced compared with the shooting angle of the camera which is not changed, and at this time, the face shape of the face in the preview image (53 in fig. 5 (b)) captured by the camera is changed from the previous "square shape" to the current "thin face shape" (54 in fig. 5 (b)).
Therefore, the electronic equipment determines the shooting angle, the moving direction and the moving distance of the camera according to the face shape of the human face, so that when a user shoots, the optimal face shape of a shot object in a preview image is ensured, and the shot image has a better effect.
Fig. 6 is a schematic diagram of a possible structure of an electronic device according to an embodiment of the present invention, where the electronic device 600 includes a camera and a display screen (not shown in fig. 6), and as shown in fig. 6, the electronic device 600 further includes: a control module 601 and a display module 602, wherein: the control module 601 is used for controlling the camera to move to a target position below the display screen under the condition that the preview image acquired by the camera meets a preset condition; a display module 602, configured to display a target image acquired by the control module 601 moving the camera to the target position.
Optionally, the preview image acquired by the camera meets a preset condition, which includes at least one of the following contents: the ratio of the face area in the preview image is larger than a preset threshold value; the position of the person in the preview image is not at the preset position.
Optionally, under the condition that the proportion of the face area in the preview image is greater than a preset threshold, the proportion of the face area in the target image is less than the preset threshold; and under the condition that the position of the person in the preview image is not at the preset position, the position of the person in the target image is at the preset position.
Optionally, a horizontal connecting rod and a vertical connecting rod are arranged below the display screen, and the camera is located at the connecting position of the horizontal connecting rod and the vertical connecting rod; the control module 601 is specifically configured to control the camera to move a first distance or rotate a first angle on the horizontal link, and to move a second distance or rotate a second angle on the vertical link.
According to the electronic equipment provided by the embodiment of the invention, under the condition that the preview image acquired by the camera of the electronic equipment meets the preset condition, the electronic equipment controls the camera to move to the target position below the display screen, so that the electronic equipment displays the target image acquired by the camera at the target position. Therefore, the electronic equipment can control the camera to move based on the preview picture collected by the camera without manual control of a user, so that the moved camera can obtain an image with a better shooting effect, and the overall shooting efficiency is improved.
The electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the above method embodiments, and is not described herein again to avoid repetition.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device 100 for implementing various embodiments of the present invention, where the electronic device 100 includes, but is not limited to: the system comprises a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, a processor 110, a power supply 111, a camera module 112 and the like. Those skilled in the art will appreciate that the configuration of electronic device 100 shown in fig. 7 does not constitute a limitation of the electronic device, and that electronic device 100 may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the electronic device 100 includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a wearable device, a pedometer, and the like. The camera module 112 includes a camera, which may be a front camera or a rear camera.
The processor 110 is configured to control the camera to move to a target position below the display screen when a preview image acquired by the camera of the electronic device meets a preset condition; and the display unit 106 is used for displaying a target image acquired by the camera at a target position.
According to the electronic equipment provided by the embodiment of the invention, under the condition that the preview image acquired by the camera of the electronic equipment meets the preset condition, the electronic equipment controls the camera to move to the target position below the display screen, so that the electronic equipment displays the target image acquired by the camera at the target position. Therefore, the electronic equipment can control the camera to move based on the preview picture collected by the camera without manual control of a user, so that the moved camera can obtain an image with a better shooting effect, and the overall shooting efficiency is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The electronic device 100 provides wireless broadband internet access to the user via the network module 102, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the electronic apparatus 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The electronic device 100 also includes at least one sensor 105, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the electronic device 100 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 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus 100. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 7, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the electronic device 100, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the electronic device 100, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the electronic apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic apparatus 100 or may be used to transmit data between the electronic apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the electronic device 100, connects various parts of the entire electronic device 100 using various interfaces and lines, and performs various functions of the electronic device 100 and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the electronic device 100. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The electronic device 100 may further include a power supply 111 (e.g., a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the electronic device 100 includes some functional modules that are not shown, and are not described in detail herein.
Optionally, 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 110, 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 application 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 an electronic device (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 application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A shooting method is applied to an electronic device comprising a camera and a display screen, wherein the camera is positioned below the display screen, and the method comprises the following steps:
under the condition that a preview image acquired by the camera meets a preset condition, controlling the camera to move to a target position below the display screen;
and displaying a target image acquired by the camera at the target position.
2. The method according to claim 1, wherein the preview image acquired by the camera satisfying the preset condition comprises at least one of:
the ratio of the face area in the preview image is greater than a preset threshold value; the position of the person in the preview image is not at a preset position.
3. The method according to claim 2, characterized in that, in the case that the occupation ratio of the face area in the preview image is greater than a preset threshold, the occupation ratio of the face area in the target image is less than a preset threshold; and under the condition that the position of the person in the preview image is not at the preset position, the position of the person in the target image is at the preset position.
4. The method according to claim 1, wherein a horizontal link and a vertical link are provided below the display screen, and the camera is located at a connection of the horizontal link and the vertical link;
the control the camera moves to the target position below the display screen, including:
and controlling the camera to move a first distance or rotate a first angle on the horizontal connecting rod and move a second distance or rotate a second angle on the vertical connecting rod.
5. The utility model provides an electronic equipment, its characterized in that, electronic equipment contains camera and display screen, the camera is located the below of display screen, electronic equipment still includes:
the control module is used for controlling the camera to move to a target position below the display screen under the condition that the preview image acquired by the camera meets a preset condition;
and the display module is used for displaying the target image acquired by the camera at the target position.
6. The electronic device of claim 5, wherein the preview image captured by the camera satisfying the preset condition comprises at least one of:
the ratio of the face area in the preview image is greater than a preset threshold value; the position of the person in the preview image is not at a preset position.
7. The electronic device according to claim 6, wherein in a case that the occupation ratio of the face area in the preview image is greater than a preset threshold, the occupation ratio of the face area in the target image is less than the preset threshold;
and under the condition that the position of the person in the preview image is not at the preset position, the position of the person in the target image is at the preset position.
8. The electronic device according to claim 5, wherein a horizontal connecting rod and a vertical connecting rod are arranged below the display screen, and the camera is positioned at the connection position of the horizontal connecting rod and the vertical connecting rod;
the control module is specifically configured to control the camera to move a first distance or rotate a first angle on the horizontal connecting rod, and to move a second distance or rotate a second angle on the vertical connecting rod.
9. An electronic device, comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the photographing method according to any of claims 1 to 4.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, realizes the steps of the photographing method according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911402895.0A CN111083377A (en) | 2019-12-30 | 2019-12-30 | Shooting method and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911402895.0A CN111083377A (en) | 2019-12-30 | 2019-12-30 | Shooting method and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111083377A true CN111083377A (en) | 2020-04-28 |
Family
ID=70320087
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911402895.0A Pending CN111083377A (en) | 2019-12-30 | 2019-12-30 | Shooting method and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111083377A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111917977A (en) * | 2020-07-21 | 2020-11-10 | 珠海格力电器股份有限公司 | Camera switching method and device applied to intelligent terminal, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104601889A (en) * | 2015-01-20 | 2015-05-06 | 广东欧珀移动通信有限公司 | Photographing method and device of mobile terminal |
CN104917993A (en) * | 2015-05-29 | 2015-09-16 | 京东方科技集团股份有限公司 | Display device and video communication terminal |
US20160098101A1 (en) * | 2014-10-07 | 2016-04-07 | Lg Electronics Inc. | Mobile terminal and control method thereof |
CN105704368A (en) * | 2015-12-23 | 2016-06-22 | 电子科技大学中山学院 | Adaptive control method and device for face image acquisition |
CN106027907A (en) * | 2016-06-30 | 2016-10-12 | 维沃移动通信有限公司 | Method for automatically adjusting camera, and mobile terminal |
CN109729268A (en) * | 2018-12-26 | 2019-05-07 | 武汉市澜创信息科技有限公司 | A kind of face image pickup method, device, equipment and medium |
CN110300264A (en) * | 2019-06-28 | 2019-10-01 | Oppo广东移动通信有限公司 | Image processing method, device, mobile terminal and storage medium |
-
2019
- 2019-12-30 CN CN201911402895.0A patent/CN111083377A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160098101A1 (en) * | 2014-10-07 | 2016-04-07 | Lg Electronics Inc. | Mobile terminal and control method thereof |
CN104601889A (en) * | 2015-01-20 | 2015-05-06 | 广东欧珀移动通信有限公司 | Photographing method and device of mobile terminal |
CN104917993A (en) * | 2015-05-29 | 2015-09-16 | 京东方科技集团股份有限公司 | Display device and video communication terminal |
CN105704368A (en) * | 2015-12-23 | 2016-06-22 | 电子科技大学中山学院 | Adaptive control method and device for face image acquisition |
CN106027907A (en) * | 2016-06-30 | 2016-10-12 | 维沃移动通信有限公司 | Method for automatically adjusting camera, and mobile terminal |
CN109729268A (en) * | 2018-12-26 | 2019-05-07 | 武汉市澜创信息科技有限公司 | A kind of face image pickup method, device, equipment and medium |
CN110300264A (en) * | 2019-06-28 | 2019-10-01 | Oppo广东移动通信有限公司 | Image processing method, device, mobile terminal and storage medium |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111917977A (en) * | 2020-07-21 | 2020-11-10 | 珠海格力电器股份有限公司 | Camera switching method and device applied to intelligent terminal, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107592466B (en) | Photographing method and mobile terminal | |
CN109743498B (en) | Shooting parameter adjusting method and terminal equipment | |
CN110896451B (en) | Preview picture display method, electronic device and computer readable storage medium | |
CN110505400B (en) | Preview image display adjustment method and terminal | |
CN108307109B (en) | High dynamic range image preview method and terminal equipment | |
CN110602407B (en) | Shooting method and electronic equipment | |
CN111562896B (en) | Screen projection method and electronic equipment | |
CN111010512A (en) | Display control method and electronic equipment | |
CN111147752B (en) | Zoom factor adjusting method, electronic device, and medium | |
CN109104566B (en) | Image display method and terminal equipment | |
CN111031234B (en) | Image processing method and electronic equipment | |
CN111010511B (en) | Panoramic body-separating image shooting method and electronic equipment | |
CN110830713A (en) | Zooming method and electronic equipment | |
CN111601032A (en) | Shooting method and device and electronic equipment | |
CN110798621A (en) | Image processing method and electronic equipment | |
CN111124227A (en) | Image display method and electronic equipment | |
CN110602390B (en) | Image processing method and electronic equipment | |
CN110536005B (en) | Object display adjustment method and terminal | |
CN109859718B (en) | Screen brightness adjusting method and terminal equipment | |
CN109104573B (en) | Method for determining focusing point and terminal equipment | |
CN110769154A (en) | Shooting method and electronic equipment | |
CN110868535A (en) | Shooting method, shooting parameter determination method, electronic equipment and server | |
CN111432122B (en) | Image processing method and electronic equipment | |
CN110913133B (en) | Shooting method and electronic equipment | |
CN111246105B (en) | Photographing method, electronic device, and computer-readable storage 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200428 |