CN111314621B - Photographing method and electronic equipment - Google Patents

Photographing method and electronic equipment Download PDF

Info

Publication number
CN111314621B
CN111314621B CN202010297398.5A CN202010297398A CN111314621B CN 111314621 B CN111314621 B CN 111314621B CN 202010297398 A CN202010297398 A CN 202010297398A CN 111314621 B CN111314621 B CN 111314621B
Authority
CN
China
Prior art keywords
input
target
determining
preview interface
duration
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.)
Active
Application number
CN202010297398.5A
Other languages
Chinese (zh)
Other versions
CN111314621A (en
Inventor
陈文斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202010297398.5A priority Critical patent/CN111314621B/en
Publication of CN111314621A publication Critical patent/CN111314621A/en
Application granted granted Critical
Publication of CN111314621B publication Critical patent/CN111314621B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Abstract

The embodiment of the invention provides a photographing method and electronic equipment. The method comprises the following steps: receiving a first input of a shooting preview interface; determining a target position in the shooting preview interface according to the first input parameter; generating a target photo taking the target position as a focus; wherein the input parameters of the first input comprise at least one of input duration and input position. The invention can reduce the operation difficulty of the photographing button for one-hand photographing and improve the photographing effect.

Description

Photographing method and electronic equipment
Technical Field
The present invention relates to the field of photographing technologies, and in particular, to a photographing method and an electronic device.
Background
At present, the photographing function of the electronic device is more and more popular with users.
Electronic equipment generally is touch screen equipment, and the user needs the button of shooing in the operation electronic equipment screen to shoot when using electronic equipment to shoot.
Taking an electronic device as a touch screen mobile phone as an example, in various shooting scenes, a user may need to hold the mobile phone at different angles (for example, horizontal shooting and vertical shooting) to take a picture, but the position of the shooting key is limited to a fixed position, so that the user is very inconvenient to operate the shooting key when using the mobile phone to take a picture.
Disclosure of Invention
The embodiment of the invention provides a photographing method and electronic equipment, and aims to solve the problem that the photographing effect is influenced due to inconvenience in operation of a photographing button caused by fixed position of the photographing button in the related art.
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 photographing method applied to an electronic device, where the method includes:
receiving a first input of a shooting preview interface;
determining a target position in the shooting preview interface according to the first input parameter;
generating a target photo taking the target position as a focus;
wherein the input parameters of the first input comprise at least one of input duration and input position.
In a second aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
the receiving module is used for receiving a first input of a shooting preview interface;
the determining module is used for determining the target position in the shooting preview interface according to the first input parameter;
the generating module is used for generating a target photo taking the target position as a focus;
wherein the input parameters of the first input comprise at least one of input duration and input position.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: a memory, a processor 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.
In a fourth aspect, 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 being executed by a processor, the computer program implements the steps of the photographing method.
In the embodiment of the invention, a target position for focusing in the shooting preview interface can be determined based on the input duration and/or the input position of the first input in the shooting preview interface, and focusing shooting of an image in the shooting preview interface is carried out by taking the target position as the focusing position. When triggering and taking a picture, the user does not need to operate the shooting button at the fixed position, and only needs to input and operate the optional position of the screen, so that the picture can be taken, when taking a picture with one hand, the user does not need to be limited by the fixed position of the shooting button, and can flexibly select different positions in the screen to input and operate to trigger and take a picture, thereby improving the convenience of taking a picture and ensuring the picture taking effect. The situation that when the user takes a picture with one hand, the user cannot operate the shooting button due to the fact that the user cannot press the shooting button with one hand, or the electronic equipment slips off due to unstable holding caused by the fact that the user cannot operate the shooting button conveniently is avoided.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a diagram of a photographing interface of a mobile phone in the prior art;
FIG. 2 is a flow chart of a method of taking a picture in accordance with one embodiment of the present invention;
FIG. 3 is a diagram of a mobile phone camera interface according to an embodiment of the invention;
FIG. 4 is a block diagram of an electronic device of one embodiment of the invention;
fig. 5 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 invention.
The inventor considers that when the electronic equipment is used for taking a picture, the shooting button is in a fixed position in the screen of the electronic equipment, and therefore the shooting button is inconvenient to operate.
For example, fig. 1 shows a schematic diagram of a mobile phone photographing interface in the conventional technology.
In the photographing interface, the photographing button 11 is located at a middle position below the screen and is a fixed position, that is, the photographing button 11 is located at the middle position no matter what angle or what mode the photographing is performed in, and the photographing button 11 needs to be triggered to perform the photographing of the picture or the video when the photographing is performed.
When the user takes a single-hand photograph (for example, in a self-timer mode), for example, in a horizontal photographing mode, the user needs to use the thumb of the hand-held mobile phone to operate the photographing button 11, and the other fingers hold the back screen of the mobile phone to take a photograph, because the photographing button 11 is located at the middle position below the screen, the thumb needs to be bent to touch the photographing button 11, and the other fingers are difficult to touch the photographing button 11. It is subject to different operation habits of users and differences in finger sizes, which causes inconvenience in the operation of the photographing button 11 when photographing with one hand. Particularly, in a self-timer scene, in order to enable a finger to touch the shooting button 11, a certain shooting picture (for example, a face of a person needs to be close to a camera, and the face of the person who shoots the picture is large) needs to be sacrificed for successful shooting.
Then, in order to solve the above problems, the present invention provides a photographing method.
Referring to fig. 2, a flow chart of a photographing method according to an embodiment of the present invention is shown, which can be applied to an electronic device.
In this embodiment, when step 101 is executed, the electronic device is in a photographing mode (which may be a self-photographing mode using a front camera or a non-self-photographing mode using a rear camera).
Considering that the user has a higher probability of taking a picture with one hand by operating the electronic device in the self-photographing mode than in the self-photographing scene using the rear camera, it can also be understood that the difficulty of operating the photographing button at the fixed position of the electronic device with one hand is higher in the self-photographing mode, and therefore the method of the embodiment of the present invention is preferably applied to the electronic device in the self-photographing mode, and the method of the embodiment of the present invention is described in detail below by taking the electronic device in the self-photographing mode as an example.
As shown in fig. 2, the method may specifically include the following steps:
step 101, receiving a first input of a shooting preview interface;
in this step, a shooting preview interface may be displayed in the screen of the electronic device.
The first input may be a short-press input, a long-press input, or a continuous click input.
Step 102, determining a target position in the shooting preview interface according to the first input parameter;
wherein the input parameters of the first input comprise at least one of input duration and input position.
And 103, generating a target photo taking the target position as a focus.
In the embodiment of the invention, a target position for focusing in the shooting preview interface can be determined based on the input duration and/or the input position of the first input in the shooting preview interface, and focusing shooting of an image in the shooting preview interface is carried out by taking the target position as the focusing position. When triggering and shooing, the user does not need to operate the shooting button at the fixed position, only needs to input the screen at any position, and can finish shooting, so that when shooting with one hand, the user does not need to be limited by the fixed position of the shooting button, and can flexibly select different positions in the screen to input the operation to trigger shooting, thereby improving the shooting convenience and ensuring the shooting effect. The situation that when the user takes a picture with one hand, the user cannot operate the shooting button due to the fact that the user cannot press the shooting button with one hand, or the electronic equipment slips off due to unstable holding caused by the fact that the user cannot operate the shooting button conveniently is avoided.
Compared with the technical scheme that the photographing can be finished only by triggering the photographing button at the fixed position in the related art, the photographing method provided by the embodiment of the invention can trigger the camera to photograph after receiving the first input of the user to any position of the display screen. Particularly, in a self-photographing scene, the difficulty of photographing with one hand is high, the method provided by the embodiment of the invention can greatly reduce the difficulty of photographing with one hand, can also ensure that people in a photographed picture are not too close to the camera, and improves the self-photographing effect.
Optionally, in an embodiment, the first input includes at least two click inputs;
then in this embodiment, when step 102 is executed, it can be realized by S201 and S202; when step 103 is executed, it is implemented by S301, specifically:
s201, under the condition that the total input duration of the at least two click inputs is within a first preset duration, acquiring a first position of a first click input and a second position of a last click input in the at least two click inputs;
the click input in this embodiment may be a short press input (the screen press-DOWN time is less than a preset time threshold (the difference between the UP event time and the DOWN event time is less than a preset time threshold Tx)).
For example, after the electronic device enters the self-timer mode, a click INPUT event to a screen of the electronic device may be detected, and when a first click INPUT event is detected, where the click INPUT event is denoted as INPUT1, a trigger time T1 of INPUT1 may be recorded, for example, a pressing position of INPUT1 in the screen is a p1 position in a preview interface in the self-timer mode as shown in fig. 3;
then, continuing to monitor the click INPUT event to the screen, if the click INPUT event to the screen is not received again within a preset time threshold T from T1, recording the next received click INPUT event as INPUT 1;
if the number of the click input events monitored again exceeds the preset number within the preset time threshold T from T1 (wherein, the value of the preset number may be any integer greater than or equal to 1), the photographing is triggered.
For example, if the preset number of times is 1, if INPUT2 is received within T starting from T1, triggering to take a picture, which may be understood as triggering to take a picture when two continuous click INPUT events are received within a preset time threshold T (i.e., the first preset time duration);
if the preset number of times is 2, if INPUT2 and INPUT3 are received in sequence from T1, it can be understood that when three continuous click INPUT events are received within a preset time threshold T (i.e., the first preset time duration), photographing is triggered;
the preset time threshold T is the first preset duration.
For example, if the value of the preset number of times is 1, and the pressing position of the second INPUT event INPUT2 is the p2 position in fig. 3, two click INPUTs may be received within the preset time threshold T in this step, and the coordinates of the two click INPUTs in the screen may be detected, for example, the coordinates of the p1 position are (x1, y1), and the coordinates of the p2 position are (x2, y 2);
for example, if the preset number of times is 2, the first click INPUT, i.e., the coordinate of the pressed position p1 (i.e., the first position) of the INPUT1 in the screen, may be detected in the three INPUT events (INPUT1, INPUT2, INPUT3), and the last click INPUT, i.e., the coordinate (x3, y3) of the pressed position p3 (i.e., the second position) of the INPUT3 in the screen, may be detected in the three INPUT events (INPUT1, INPUT2, INPUT 3).
In one embodiment, S202, in a case that a distance between the first position and the second position is greater than or equal to a preset distance, determining the first position and the second position as target positions in the shooting preview interface;
in one example, as shown in fig. 3, the mobile phone is in a photographing scene (i.e. a self-photographing mode) in which the front camera operates, the photographing preview interface in fig. 3 includes a fixed position photographing button 11, a button 12 for opening an album application, and a button 13 for switching the front camera and the rear camera, and the photographing button 11 is disposed between the button 12 and the button 13 and is in a middle position below the screen and is a fixed position.
In addition, the plurality of controls above the preview interface in fig. 3 are used for a flash switch, taking a picture of HDR (High-Dynamic Range) effect, taking a Dynamic picture, and opening an entry of system settings in order from left to right.
In the self-timer shooting mode, the user presses the p1 position (i.e. the first position) and the p2 position (i.e. the second position) in the screen (or the screen where the shooting preview interface is located) for a short time in sequence within a first preset time period.
Then if the distance between the p1 position and the p2 position is greater than or equal to the preset distance, the step can determine the p1 position and the p2 position in the preview image as the target positions respectively.
That is to say, the method according to the embodiment of the present invention may determine to take a picture in different manners according to a click position of a first click input in the screen among at least two click inputs received within a first preset time period, and a distance between click positions of a last click input in the screen.
S301, generating a first photo taking the first position as a focus and generating a second photo taking the second position as a focus.
As shown in fig. 3, a first photograph is taken with the p1 position in the preview image in focus, and a second photograph is taken with the p2 position in the preview image in focus.
In one example, for example, where two short press events correspond to taking two positions of the top and the chin of a person in a preview image in a preview interface, the top may be focused to generate a first photograph and the chin may be focused to generate a second photograph, the two photographs being focused at different positions.
In the embodiment of the invention, under the condition that at least two click inputs to the screen are received within a first preset time length, different modes can be flexibly selected for photographing according to the distance between a first position of a first click input and a second position of a last click input in the at least two click inputs, and under the condition that the distance is greater than or equal to a preset distance, a first photo taking the first position as a focus is generated and a second photo taking the second position as the focus is generated. In the shooting process, the user does not need to operate the shooting button at the fixed position, and only needs to carry out quick continuous clicking (at least twice clicking input) operation on any position of the screen to finish shooting, so that when the user shoots with one hand, the user does not need to be limited by the fixed position of the shooting button, and can flexibly select different positions in the screen to press to trigger shooting, thereby improving the shooting convenience and ensuring the shooting effect. The situation that when the user takes a picture with one hand, the user cannot operate the shooting button due to the fact that the user cannot press the shooting button with one hand, or the electronic equipment slips off due to unstable holding caused by the fact that the user cannot operate the shooting button conveniently is avoided.
Compared with the technical scheme that the photographing can be finished only by triggering the photographing button at the fixed position in the related technology, the photographing method provided by the embodiment of the invention can trigger the camera to photograph after detecting that the user clicks and inputs any position of the display screen at least twice. Particularly, in a self-photographing scene, the difficulty of photographing with one hand is high, the method provided by the embodiment of the invention can greatly reduce the difficulty of photographing with one hand, can also ensure that people in a photographed picture are not too close to the camera, and improves the self-photographing effect.
Optionally, in another embodiment, step 102 may also be implemented by the above S201 and the following S203; step 103 may be implemented by the following step S302, specifically:
s203, determining a preset position in the shooting preview interface as a target position under the condition that the distance between the first position and the second position is smaller than the preset distance;
here, if the distance between the p1 position and the p2 position in fig. 3 is less than the preset distance, this step may determine a certain preset position in the shooting preview interface as the target position to be focused on.
The preset position may be any position in the shooting preview interface, for example, the preset position is located in a certain area of the geometric center in the shooting preview interface.
S202 and S203 are parallel steps, and are executed after S201, and may be alternatively executed according to the difference of the values of the preset distance.
The present invention does not limit the execution sequence between S202 and S203.
And S302, generating a third photo taking the preset position as a focus.
As can be appreciated, taking a preset position in the shooting preview interface as a focus, the preview image is focused and shot to generate a third picture.
In the embodiment of the invention, under the condition that at least two click inputs to the screen are received within a first preset time, different modes can be flexibly selected for photographing according to the distance between a first position of a first click input and a second position of a last click input in the at least two click inputs, and under the condition that the distance is smaller than the preset distance, focusing photographing is carried out by taking the preset position in the photographing preview interface as a focus to generate a third photo. In the shooting process, the user does not need to operate the shooting button at the fixed position, and only needs to carry out quick continuous clicking (at least twice clicking input) on any position of the screen to finish shooting of different focusing demands, so that when the user shoots with one hand, the user does not need to be limited by the fixed position of the shooting button, and can flexibly select different positions in the screen to press to trigger shooting, thereby improving the shooting convenience and ensuring the shooting effect. The situation that when the user takes a picture with one hand, the user cannot operate the shooting button due to the fact that the user cannot press the shooting button with one hand, or the electronic equipment slips off due to unstable holding caused by the fact that the user cannot operate the shooting button conveniently is avoided.
Compared with the technical scheme that the photographing can be finished only by triggering the photographing button at the fixed position in the related art, the photographing method provided by the embodiment of the invention can trigger the camera to photograph after detecting that the user presses and inputs any position of the display screen for at least two times. Particularly, in a self-photographing scene, the difficulty of photographing with one hand is high, the method provided by the embodiment of the invention can greatly reduce the difficulty of photographing with one hand, can also ensure that people in a photographed picture are not too close to the camera, and improves the self-photographing effect.
Optionally, in another embodiment, when the step 102 is executed, the steps may also be implemented by the above S201 and the following S204; when the step 103 is executed, the following step S303 is implemented, specifically:
s204, determining a target area between the first position and the second position as a target position under the condition that the distance between the first position and the second position is greater than or equal to a preset distance;
and S303, generating a fourth picture taking the target area as a focus.
In one example, for example, if two short press events correspond to capturing two positions of the top and the bottom of a person in a preview image in a preview interface, for example, the first position is the top of the head, the second position is the bottom of the head, and the distance between the two positions is greater than a preset distance, a connecting line between two coordinates of the two positions can be determined, and then the connecting line is subjected to area expansion to determine a target area between the two positions (for example, the connecting line is subjected to range expansion of left, right, up and down, and the area after the range expansion is determined as a target area). Thereby generating a fourth photograph in which the face region is sharp and the region outside the face region is blurred.
S204 and S202 are parallel steps.
In the embodiment of the present invention, when a distance between click positions of an initial click input and a last click input within a first preset time period is greater than or equal to a preset distance, a target area between the first position and the second position may be determined as a target position; and generating a fourth photo taking the target position as a focus, so that when a user takes a photo with one hand, the user only needs to click and input the screen at least twice within a short time without pressing a shooting button at a fixed position, and then under the condition that the distance between the positions of the two click inputs is large, the area between the two click positions can be determined as a focusing area, so that the one-hand photo taking is facilitated, and the focusing area of the shot photo meets the shooting requirement of the user.
Optionally, in one embodiment, the first input in step 101 may comprise a long press input;
in this embodiment, when step 102 is executed, it may be implemented by S401 and S402, and when step 103 is executed, it is implemented by S304, specifically:
s401, under the condition that the pressing duration of the long-press input is greater than a second preset duration, determining the number of focuses according to the pressing duration;
wherein, if the pressing time length of the long press input is longer than a second preset time length (for example, the user's finger presses the screen for more than 1s, for example, 3s, where the second preset time length is 1s), the number of focuses can be determined according to the pressing time length (i.e., 3 s).
When the number of focuses is determined according to the pressing time length, the number may be determined according to a preset sub-pressing time length corresponding to one focus. For example, if the sub-press duration is 0.5s, i.e. each 0.5s press, one focus is generated, and in this example, if the sub-press duration is 3s, the number of focuses is 6.
S402, determining a plurality of target positions in the shooting preview interface according to the input position of the long press input, wherein the number of the target positions is equal to the number of the focuses;
wherein the long press input corresponds to an input position in the capture preview interface, the above-mentioned exemplary 6 target positions in the capture preview interface may be determined based on the input position.
Specifically, when the user has a continuous shooting demand, the user needs to press the shooting button 11 in fig. 3 for a long time to trigger the continuous shooting in the conventional art. However, since the shooting button 11 is located at a fixed position in the middle of the lower portion of the screen of the mobile phone, the difficulty of operating the shooting button is higher when performing continuous shooting with one hand, and therefore, in the method of the embodiment of the present invention, when a user needs to perform continuous shooting, the user can perform long-time pressing input on any position of the screen on which the shooting preview interface is displayed, and then can trigger the continuous shooting.
The long press input is a press input with a press duration greater than a certain duration threshold (i.e., a second preset duration), and is different from the click input in S201.
It will be appreciated that the 6 target locations described above may include the 1 input location, and 5 other locations. Further, the 6 target positions may be a plurality of positions corresponding to different objects in the shooting preview interface (for example, a first focused face, a second focused scene, a third non-blurred image, etc.), so that the focus input may be determined based on the pressing duration of the long press input, and a plurality of pictures with different focuses may be generated.
And S304, generating a plurality of fifth photos by respectively taking the plurality of target positions as focuses.
The continuous shooting is stopped when the long press input is stopped, for example, the finger making the press input leaves the screen.
Wherein, the focus positions of the multiple photos are different, and the number of the multiple photos is related to the pressing duration of the long press input.
The method and the device can determine the number of the focuses according to the pressing duration under the condition that the long-time pressing input to the screen is received and the pressing duration of the long-time pressing input is greater than a second preset duration; determining a plurality of target positions in the shooting preview interface according to the input position of the long press input, wherein the number of the target positions is equal to the number of the focuses; and respectively generating a plurality of fifth photos by taking the plurality of target positions as focuses. When a user carries out continuous shooting with one hand, continuous shooting can be carried out by pressing the screen for a long time, so that the operation difficulty of a button for triggering shooting is reduced; in addition, during continuous shooting, the focusing object can be switched to shoot a plurality of pictures, so that the shooting effect of the plurality of pictures generated by continuous shooting is better.
Optionally, in another embodiment, when the above S304 is executed, multiple fifth photos in different shooting modes may be generated by taking the multiple target positions as focuses, respectively.
The shooting mode may include, but is not limited to: portrait, beauty, large aperture, filter, professional, etc.
For example, if the above-mentioned certain time length threshold is 1s and photographing is performed every 0.5s, there may be a difference between photographing modes used for photographing every 0.5 s. So that multiple pictures of different shooting modes can be generated.
Referring to FIG. 4, a block diagram of an electronic device of one embodiment of the invention is shown. The electronic equipment of the embodiment of the invention can realize the details of the photographing method in the embodiment and achieve the same effect. The electronic device shown in fig. 4 includes:
a receiving module 41, configured to receive a first input to the shooting preview interface;
a determining module 42, configured to determine, according to the input parameter of the first input, a target position in the shooting preview interface;
a generating module 43, configured to generate a target photograph with the target position as a focus;
wherein the input parameters of the first input comprise at least one of input duration and input position.
Optionally, the determining module 42 includes:
the obtaining submodule is used for obtaining a first position of a first click input and a second position of a last click input in the at least two click inputs under the condition that the total input duration of the at least two click inputs is within a first preset duration when the first input comprises the at least two click inputs;
the first determining sub-module is used for determining the first position and the second position as target positions in the shooting preview interface under the condition that the distance between the first position and the second position is larger than or equal to a preset distance;
the generating module 43 includes:
a first generation sub-module for generating a first photograph focused at the first position and generating a second photograph focused at the second position.
Optionally, the determining module 42 further includes:
the second determining submodule is used for determining the preset position in the shooting preview interface as the target position under the condition that the distance between the first position and the second position is smaller than the preset distance;
the generating module 43 further comprises:
and the second generation submodule is used for generating a third photo taking the preset position as a focus.
Optionally, the determining module 42 further includes:
a third determining submodule, configured to determine a target area between the first location and the second location as a target location when a distance between the first location and the second location is greater than or equal to the preset distance;
the generating module 43 further comprises:
and the third generation submodule is used for generating a fourth photo taking the target area as a focus.
Optionally, the determining module 42 includes:
the fourth determining submodule is used for determining the number of focuses according to the pressing duration when the first input comprises long-press input and the pressing duration of the long-press input is larger than a second preset duration;
a fifth determining sub-module, configured to determine, according to an input position of the long press input, a plurality of target positions in the shooting preview interface, where the number of the target positions is equal to the number of the focuses;
the generating module 43 includes:
and the fourth generation submodule is used for generating a plurality of fifth photos by taking the plurality of target positions as focuses respectively.
Through the module, the electronic equipment can determine a target position for focusing in the shooting preview interface based on the input duration and/or the input position of the first input in the shooting preview interface, and carries out focusing shooting on the image in the shooting preview interface by taking the target position as the focusing position. When triggering and taking a picture, the user does not need to operate the shooting button at the fixed position, and only needs to input and operate the optional position of the screen, so that the picture can be taken, when taking a picture with one hand, the user does not need to be limited by the fixed position of the shooting button, and can flexibly select different positions in the screen to input and operate to trigger and take a picture, thereby improving the convenience of taking a picture and ensuring the picture taking effect. The situation that when the user takes a picture with one hand, the user cannot operate the shooting button due to the fact that the user cannot press the shooting button with one hand, or the electronic equipment slips off due to unstable holding caused by the fact that the user cannot operate the shooting button conveniently is avoided.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device implementing various embodiments of the present invention.
The electronic device 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the electronic device configuration shown in fig. 5 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 vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The user input unit 407 is configured to receive a first input to the shooting preview interface;
a processor 410, configured to determine a target position in the shooting preview interface according to the input parameter of the first input; generating a target photo focused on the target position, wherein the input parameters of the first input comprise at least one of input duration and input position.
In the embodiment of the invention, a target position for focusing in the shooting preview interface can be determined based on the input duration and/or the input position of the first input in the shooting preview interface, and focusing shooting of an image in the shooting preview interface is carried out by taking the target position as the focusing position. When triggering and shooing, the user does not need to operate the shooting button at the fixed position, only needs to input the screen at any position, and can finish shooting, so that when shooting with one hand, the user does not need to be limited by the fixed position of the shooting button, and can flexibly select different positions in the screen to input the operation to trigger shooting, thereby improving the shooting convenience and ensuring the shooting effect. The situation that when the user takes a picture with one hand, the user cannot operate the shooting button due to the fact that the user cannot press the shooting button with one hand, or the electronic equipment slips off due to unstable holding caused by the fact that the user cannot operate the shooting button conveniently is avoided.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 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 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 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. Further, the radio unit 401 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 402, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the electronic apparatus 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 4041 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 4042 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 401 in case of the phone call mode.
The electronic device 400 also includes at least one sensor 405, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 4061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 4061 and/or the backlight when the electronic apparatus 400 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 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 4061, and the Display panel 4061 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 407 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 407 includes a touch panel 4071 and other input devices 4072. Touch panel 4071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 4071 using a finger, a stylus, or any suitable object or attachment). The touch panel 4071 may include two parts, 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, and sends the touch point coordinates to the processor 410 to receive and execute commands sent by the processor 410. In addition, the touch panel 4071 can be implemented by using various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 4071, the user input unit 407 may include other input devices 4072. Specifically, the other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 4071 can be overlaid on the display panel 4061, and when the touch panel 4071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 4061 according to the type of the touch event. Although in fig. 5, the touch panel 4071 and the display panel 4061 are two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 4071 and the display panel 4061 may be integrated to implement the input and output functions of the electronic device, which is not limited herein.
The interface unit 408 is an interface for connecting an external device to the electronic apparatus 400. 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 408 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 400 or may be used to transmit data between the electronic apparatus 400 and an external device.
The memory 409 may be used to store software programs as well as various data. The memory 409 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 409 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 410 is a control center of the electronic device, connects various parts of the entire electronic device 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 409 and calling data stored in the memory 409, thereby performing overall monitoring of the electronic device. Processor 410 may include one or more processing units; preferably, the processor 410 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 410.
The electronic device 400 may further comprise a power supply 411 (e.g. a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 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 400 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides an electronic device, which includes a processor 410, a memory 409, and a computer program that is stored in the memory 409 and can be run on the processor 410, and when being executed by the processor 410, the computer program implements each process of the above-described photographing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
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 the processes of the above-mentioned photographing method embodiment, and can achieve the same technical effects, and in order to avoid repetition, the descriptions thereof are omitted 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 photographing method applied to electronic equipment is characterized by comprising the following steps:
receiving a first input of a shooting preview interface;
determining a target position in the shooting preview interface according to the first input parameter;
generating a target photo taking the target position as a focus;
the input parameters comprise input duration and input positions;
wherein the number of the target photos is related to the input position for the input duration;
determining a target position in the shooting preview interface according to the first input parameter, wherein the determining comprises:
determining the target position according to the input position under the condition that the input duration meets a preset condition;
wherein the number of target locations is at least one.
2. The method of claim 1, wherein the first input comprises at least two click inputs;
determining a target position in the shooting preview interface according to the first input parameter, wherein the determining includes:
under the condition that the total input duration of the at least two click inputs is within a first preset duration, acquiring a first position of a first click input and a second position of a last click input in the at least two click inputs;
determining the first position and the second position as target positions in the shooting preview interface under the condition that the distance between the first position and the second position is greater than or equal to a preset distance;
the generating a target photograph focused on the target location comprises:
generating a first photograph focused on the first location and generating a second photograph focused on the second location.
3. The method of claim 2, wherein after obtaining the first position of the first click input and the second position of the last click input of the at least two click inputs, further comprising:
determining a preset position in the shooting preview interface as a target position under the condition that the distance between the first position and the second position is smaller than the preset distance;
and generating a third photo taking the preset position as a focus.
4. The method of claim 2, wherein obtaining the first position of the first click input and the second position of the last click input of the at least two click inputs comprises:
determining a target area between the first position and the second position as a target position when the distance between the first position and the second position is greater than or equal to the preset distance;
and generating a fourth photo taking the target area as a focus.
5. The method of claim 1, wherein the first input comprises a long press input;
determining a target position in the shooting preview interface according to the first input parameter, wherein the determining includes:
under the condition that the pressing duration of the long-press input is greater than a second preset duration, determining the number of focuses according to the pressing duration;
determining a plurality of target positions in the shooting preview interface according to the input position of the long press input, wherein the number of the target positions is equal to the number of the focuses;
the generating a target photograph focused on the target location comprises:
and respectively generating a plurality of fifth photos by taking the plurality of target positions as focuses.
6. An electronic device, characterized in that the electronic device comprises:
the receiving module is used for receiving a first input of a shooting preview interface;
the determining module is used for determining the target position in the shooting preview interface according to the first input parameter;
the generation module is used for generating a target photo taking the target position as a focus;
the input parameters comprise input duration and input positions;
wherein the number of the target photos is related to the input duration and the input position;
determining a target position in the shooting preview interface according to the first input parameter, wherein the determining comprises:
determining the target position according to the input position under the condition that the input duration meets a preset condition;
wherein the number of target locations is at least one.
7. The electronic device of claim 6,
the determining module comprises:
the obtaining submodule is used for obtaining a first position of a first click input and a second position of a last click input in the at least two click inputs under the condition that the total input duration of the at least two click inputs is within a first preset duration when the first input comprises the at least two click inputs;
the first determining sub-module is used for determining the first position and the second position as target positions in the shooting preview interface under the condition that the distance between the first position and the second position is larger than or equal to a preset distance;
the generation module comprises:
a first generation sub-module for generating a first photograph focused at the first position and generating a second photograph focused at the second position.
8. The electronic device of claim 7,
the determining module further comprises:
the second determining submodule is used for determining the preset position in the shooting preview interface as the target position under the condition that the distance between the first position and the second position is smaller than the preset distance;
the generation module further comprises:
and the second generation submodule is used for generating a third photo taking the preset position as a focus.
9. The electronic device of claim 7,
the determining module comprises:
a third determining submodule, configured to determine a target area between the first location and the second location as a target location when a distance between the first location and the second location is greater than or equal to the preset distance;
and the third generation submodule is used for generating a fourth photo taking the target area as a focus.
10. The electronic device of claim 6,
the determining module comprises:
the fourth determining submodule is used for determining the number of focuses according to the pressing duration when the first input comprises long-press input and the pressing duration of the long-press input is larger than a second preset duration;
a fifth determining submodule, configured to determine, according to an input position of the long press input, a plurality of target positions in the shooting preview interface, where the number of the target positions is equal to the number of the focuses;
and the fourth generation submodule is used for generating a plurality of fifth photos by taking the plurality of target positions as focuses respectively.
CN202010297398.5A 2020-04-15 2020-04-15 Photographing method and electronic equipment Active CN111314621B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010297398.5A CN111314621B (en) 2020-04-15 2020-04-15 Photographing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010297398.5A CN111314621B (en) 2020-04-15 2020-04-15 Photographing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN111314621A CN111314621A (en) 2020-06-19
CN111314621B true CN111314621B (en) 2022-05-27

Family

ID=71162617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010297398.5A Active CN111314621B (en) 2020-04-15 2020-04-15 Photographing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN111314621B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111988530B (en) * 2020-09-01 2022-07-29 青岛海信移动通信技术股份有限公司 Mobile terminal and photographing method thereof

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024265A (en) * 2011-09-21 2013-04-03 奥林巴斯映像株式会社 Imaging device and imaging method for imaging device
CN103595909A (en) * 2012-08-16 2014-02-19 Lg电子株式会社 Mobile terminal and controlling method thereof
CN103856709A (en) * 2012-12-04 2014-06-11 腾讯科技(深圳)有限公司 Image acquisition method and device
CN105100627A (en) * 2015-08-27 2015-11-25 广东欧珀移动通信有限公司 Shooting control method and terminal
CN105611143A (en) * 2015-09-15 2016-05-25 广东欧珀移动通信有限公司 Shooting method of electronic equipment and the electronic equipment
CN109842760A (en) * 2019-01-23 2019-06-04 罗超 A kind of filming image and back method of simulation human eye view object
CN110471606A (en) * 2019-07-25 2019-11-19 华为技术有限公司 Input method and electronic equipment
CN110740265A (en) * 2019-10-31 2020-01-31 维沃移动通信有限公司 Image processing method and terminal equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5152559B2 (en) * 2007-07-19 2013-02-27 ソニー株式会社 Image processing apparatus, image processing method, and program
JP4530067B2 (en) * 2008-03-27 2010-08-25 ソニー株式会社 Imaging apparatus, imaging method, and program
JP2011215539A (en) * 2010-04-02 2011-10-27 Rohm Co Ltd Digital camera
CN104469144B (en) * 2014-10-31 2017-06-09 广东欧珀移动通信有限公司 Photographic method and electronic equipment
CN109194866B (en) * 2018-08-21 2021-03-19 广州视源电子科技股份有限公司 Image acquisition method, device, system, terminal equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103024265A (en) * 2011-09-21 2013-04-03 奥林巴斯映像株式会社 Imaging device and imaging method for imaging device
CN103595909A (en) * 2012-08-16 2014-02-19 Lg电子株式会社 Mobile terminal and controlling method thereof
CN103856709A (en) * 2012-12-04 2014-06-11 腾讯科技(深圳)有限公司 Image acquisition method and device
CN105100627A (en) * 2015-08-27 2015-11-25 广东欧珀移动通信有限公司 Shooting control method and terminal
CN105611143A (en) * 2015-09-15 2016-05-25 广东欧珀移动通信有限公司 Shooting method of electronic equipment and the electronic equipment
CN109842760A (en) * 2019-01-23 2019-06-04 罗超 A kind of filming image and back method of simulation human eye view object
CN110471606A (en) * 2019-07-25 2019-11-19 华为技术有限公司 Input method and electronic equipment
CN110740265A (en) * 2019-10-31 2020-01-31 维沃移动通信有限公司 Image processing method and terminal equipment

Also Published As

Publication number Publication date
CN111314621A (en) 2020-06-19

Similar Documents

Publication Publication Date Title
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
CN110740259B (en) Video processing method and electronic equipment
CN110557566B (en) Video shooting method and electronic equipment
CN111182205B (en) Photographing method, electronic device, and medium
CN108495029B (en) Photographing method and mobile terminal
CN110087001B (en) Shooting processing method and device and mobile terminal
CN109078319B (en) Game interface display method and terminal
CN110913139B (en) Photographing method and electronic equipment
CN108989672B (en) Shooting method and mobile terminal
CN110213440B (en) Image sharing method and terminal
CN110602401A (en) Photographing method and terminal
CN108307106B (en) Image processing method and device and mobile terminal
CN111147752B (en) Zoom factor adjusting method, electronic device, and medium
CN108335258B (en) Image processing method and device of mobile terminal
CN110769174B (en) Video viewing method and electronic equipment
CN109102555B (en) Image editing method and terminal
CN109413333B (en) Display control method and terminal
CN108881721B (en) Display method and terminal
CN108924422B (en) Panoramic photographing method and mobile terminal
CN108174110B (en) Photographing method and flexible screen terminal
CN110944114B (en) Photographing method and electronic equipment
CN111405181B (en) Focusing method and electronic equipment
CN110321449B (en) Picture display method and terminal
CN109005337B (en) Photographing method and terminal
CN110955793A (en) Display control method and electronic equipment

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