CN110602387A - Shooting method and electronic equipment - Google Patents

Shooting method and electronic equipment Download PDF

Info

Publication number
CN110602387A
CN110602387A CN201910802453.9A CN201910802453A CN110602387A CN 110602387 A CN110602387 A CN 110602387A CN 201910802453 A CN201910802453 A CN 201910802453A CN 110602387 A CN110602387 A CN 110602387A
Authority
CN
China
Prior art keywords
camera
electronic equipment
distance range
user
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910802453.9A
Other languages
Chinese (zh)
Other versions
CN110602387B (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 CN201910802453.9A priority Critical patent/CN110602387B/en
Publication of CN110602387A publication Critical patent/CN110602387A/en
Application granted granted Critical
Publication of CN110602387B publication Critical patent/CN110602387B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation

Landscapes

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

Abstract

The invention provides a shooting method and electronic equipment. The method comprises the following steps: the method comprises the steps that when the electronic equipment is in a screen locking state, the distance between the electronic equipment and the face of a user is acquired; if the distance is within a first distance range, starting a front camera of the electronic equipment to shoot an object to be shot, wherein the first distance range is a distance range between the electronic equipment and the face of a user when the front camera is started to shoot, and is obtained in advance; and if the distance is within a second distance range, starting a rear camera of the electronic equipment to shoot the object to be shot, wherein the second distance range is a distance range between the electronic equipment and the face of the user when the rear camera is started to shoot, and is obtained in advance. According to the invention, when the electronic equipment is in a screen locking state, a user can quickly open a proper camera for shooting without manual setting and adjustment of the user, so that the camera opening time is saved, and the shooting experience of the user is improved.

Description

Shooting method and electronic equipment
Technical Field
The embodiment of the invention relates to the technical field of communication application, in particular to a shooting method and electronic equipment.
Background
With the widespread application of the intelligent terminal, users can also enjoy the public favor of the users when using the intelligent terminal, such as a mobile phone, for taking pictures. The shooting requirements of users on cameras on mobile phones are higher and higher, and application scenes are more and more. In addition to the quality of the picture taking, the stability, power consumption, performance, the switching speed of the camera in various modes, and the like all affect the user experience. For example, a user suddenly wants to record a scene seen before the user looks through a mobile phone shooting, and at this time, the time consumption from taking out the mobile phone to turning on the camera is important, and the user naturally wants the time consumption to be as short as possible, otherwise, a slightly passing picture may be missed.
Therefore, in order to quickly start the camera in the screen locking state, a module for starting the camera is directly added to the screen locking interface, namely the camera can be quickly started directly through sliding operation on the screen locking interface without unlocking. However, sometimes, some factors, such as water on the hands, may cause failure in starting the camera by sliding, requiring the user to try several times, which wastes time; in addition, the number of cameras on the existing mobile phone is large, and besides the main shooting, the mobile phone is generally provided with a wide-angle camera and a long-focus camera; in different scenes, a user has different preferences for opening a specific camera, and how to quickly open a proper camera also becomes a problem to be solved.
Disclosure of Invention
The embodiment of the invention provides a shooting method and electronic equipment, and aims to solve the problem that time is wasted when a camera is turned on in a screen locking state in the prior 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 shooting method applied to an electronic device, including:
the method comprises the steps that when the electronic equipment is in a screen locking state, the distance between the electronic equipment and the face of a user is acquired;
if the distance is within a first distance range, starting a front camera of the electronic equipment to shoot an object to be shot, wherein the first distance range is a distance range between the electronic equipment and the face of a user when the front camera is started to shoot, and is obtained in advance;
and if the distance is within a second distance range, starting a rear camera of the electronic equipment to shoot the object to be shot, wherein the second distance range is a distance range between the electronic equipment and the face of the user when the rear camera is started to shoot, and is obtained in advance.
In a second aspect, an embodiment of the present invention further provides an electronic device, including:
the first acquisition module is used for acquiring the distance between the electronic equipment and the face of a user when the electronic equipment is in a screen locking state;
the first shooting module is used for starting a front camera of the electronic equipment to shoot an object to be shot when the distance is within a first distance range, and the first distance range is a distance range between the electronic equipment and the face of a user when the front camera is started to shoot, wherein the distance range is obtained in advance;
and the second shooting module is used for starting the rear camera of the electronic equipment to shoot the object to be shot when the distance is within a second distance range, and the second distance range is a distance range between the electronic equipment and the face of the user when the rear camera is started to shoot, wherein the second distance range is obtained in advance.
In a third aspect, an embodiment of the present invention further 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 described above.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the shooting method as described above.
In the above scheme of the embodiment of the invention, the distance between the electronic equipment and the face of the user is acquired when the electronic equipment is in the screen locking state; if the distance is within a first distance range, starting a front camera of the electronic equipment to shoot an object to be shot, wherein the first distance range is the distance between the electronic equipment and the face of a user when the front camera is started to shoot, and is obtained in advance; if this distance is in second distance scope, then open this electronic equipment's rearmounted camera, treat to shoot the object, this second distance scope is for in advance obtaining when opening this rearmounted camera and shoot, the distance between electronic equipment and the user face, so, can make the user be in under the lock screen state at electronic equipment, open suitable camera fast and shoot, do not need user manual setting and adjustment, save camera opening time, promote user's shooting experience.
Drawings
Fig. 1 is a schematic flow chart of a shooting method according to an embodiment of the present invention;
fig. 2 is a second schematic flow chart of a shooting method according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention;
fig. 4 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.
Fig. 1 is a schematic flow chart of a shooting method according to an embodiment of the present invention, and the method is applied to an electronic device. The implementation of the method is described in detail below with reference to this figure.
Step 101, when the electronic device is in a screen locking state, obtaining a distance between the electronic device and a face of a user.
In this step, the user's face is the face of the target user. Preferably, the target user is a local user of the electronic device.
Here, specifically, in the case that the facial feature information of the user is monitored, the distance between the electronic device and the face of the user is obtained.
The sensor used for identifying the eyes of the user is arranged on the screen of the electronic equipment, so that the facial feature information of the user can be monitored. If the eyes of the user are identified, acquiring the distance between the electronic equipment and the face of the user; otherwise, not turning on any camera of the electronic equipment.
It should be noted that the distance between the electronic device and the face of the user may be acquired through an infrared ranging method or a time of flight TOF ranging method.
And 102, if the distance is within a first distance range, starting a front camera of the electronic equipment to shoot an object to be shot, wherein the first distance range is a distance range between the electronic equipment and the face of a user when the front camera is started to shoot, and is obtained in advance.
In this step, when the distance between the electronic device and the face of the user is within a first distance range, the user is considered to be required to take a self-timer, and then the front camera of the electronic device is started.
Step 103, if the distance is within a second distance range, turning on a rear camera of the electronic device to shoot an object to be shot, wherein the second distance range is a distance range between the electronic device and the face of the user when the rear camera is turned on to shoot, and the distance range is obtained in advance.
In this step, when the distance between the electronic device and the face of the user is within the second distance range, the user is considered to need to use the rear camera, and the rear camera of the electronic device is turned on.
Generally, when a user uses a front camera of the electronic device to take a self-portrait, the user can straighten the arm or use a selfie stick, and the distance from the electronic device to the face of the user is far; when the user uses the rear camera of the electronic equipment to take a picture, the electronic equipment is closer to the face of the user. That is, preferably, the value in the first distance range is larger than the value in the second distance range.
According to the shooting method, the distance between the electronic equipment and the face of a user is acquired when the electronic equipment is in a screen locking state; if the distance is within a first distance range, starting a front camera of the electronic equipment to shoot an object to be shot, wherein the first distance range is the distance between the electronic equipment and the face of a user when the front camera is started to shoot, and is obtained in advance; if this distance is in second distance scope, then open this electronic equipment's rearmounted camera, treat to shoot the object, this second distance scope is for in advance obtaining when opening this rearmounted camera and shoot, the distance between electronic equipment and the user face, so, can make the user be in under the lock screen state at electronic equipment, open suitable camera fast and shoot, do not need user manual setting and adjustment, save camera opening time, promote user's shooting experience.
Based on the embodiment shown in fig. 1, optionally, the number of the rear cameras is at least two; correspondingly, as an optional implementation manner, in step 103, the rear camera of the electronic device is turned on, and before the object to be photographed is photographed, the method may further include:
acquiring scene characteristic information of a shooting scene where the electronic equipment is currently located;
in this step, the scene feature information of the shooting scene includes, but is not limited to: the shooting location information, the shooting environment (indoor or outdoor), the environment brightness, the electronic equipment posture and the shooting time.
Specifically, the geographical location information of the shooting location may be obtained by GPS (Global Positioning System), WiFi or base station Positioning.
Whether the photographing environment is indoors or outdoors can be determined by the signal reception quality of an electronic device, such as a mobile phone.
The ambient brightness around the shooting environment can be detected by a sensor, such as a photoreceptor.
The electronic device pose may be detected by a sensor, such as a gravity sensor or a gyroscope, such as the electronic device facing the ground (down) or the electronic device facing the sky (up).
And determining one of the at least two rear cameras as a target camera according to the scene characteristic information.
It should be noted that, at least two of the rear cameras include, but are not limited to: main camera, wide-angle camera and telephoto camera.
Here, preferably, the step may specifically include:
acquiring camera use data corresponding to the scene characteristic information;
in this step, the content included in the camera usage data is not limited to: the shooting method comprises the following steps of using a camera by a user during shooting, using times of the camera and corresponding shooting parameters during shooting by using the camera.
Preferably, the camera usage data comprises at least one of:
default use data of the camera corresponding to the scene feature information;
the method comprises the steps that historical camera use data corresponding to a first shot image stored locally are stored, and the similarity between scene feature information of the first shot image and the scene feature information is larger than a first preset threshold value;
and recommending use data of the camera corresponding to a second shot image shot by other users, wherein the similarity between the scene characteristic information of the second shot image and the scene characteristic information is greater than a second preset threshold value.
It should be noted that the default use data of the camera specifically refers to a camera which is set by the system and allowed to be turned on corresponding to the scene feature information. Here, different scene feature information corresponds to different cameras that are allowed to be turned on. For example, if the scene feature information indicates that the current shooting environment of the electronic device is outdoor, the camera allowed to be started is a wide-angle camera; the scene characteristic information indicates that the current electronic equipment posture is in a negative direction with the electronic equipment as a coordinate axis and the screen of the electronic equipment facing to the Y axis. That is to say, the screen of the current electronic device faces the ground, and the lens faces the sky, so that the camera allowed to be turned on is a telephoto camera.
Here, the camera history use data specifically refers to a camera that is used by a user when the camera history use data is stored locally in the electronic device and an image that is the same as or similar to the scene feature information is captured before. Here, the cameras used by the user when images identical or similar to the scene feature information are captured before may be counted through big data statistics, and the camera whose usage number exceeds a preset number is determined as the camera that the user is accustomed to using.
The recommended use data of the camera corresponding to the image shot by the other user can be acquired through a network, and is generally the camera used by the other user when shooting the image which is the same as or similar to the scene characteristic information.
And determining one of the at least two rear cameras as a target camera according to the camera use data.
In this step, further, according to the camera usage data, one of the at least two rear cameras is determined as a target camera and a target shooting parameter corresponding to the target camera is determined.
Optionally, the camera usage data includes at least two of camera default usage data, the camera historical usage data, and the camera recommended usage data; as an optional implementation manner, this step may specifically include:
calculating the weight of using each camera in at least two cameras according to the camera use data; and determining the camera with the largest weight as the target camera.
Here, an achievable way is: counting the use times of each camera in the rear camera and the use times of all cameras in the rear camera in camera use data comprising at least two of camera default use data, camera historical use data and camera recommended use data; calculating to obtain the use frequency ratio of each camera, and taking the use frequency ratio as the weight of each camera; and determining the camera with the largest weight as the target camera.
Correspondingly, the turning on the rear camera of the electronic device in step 103 may specifically include: and starting the target camera. Therefore, through the processing, the camera can be put in place in one step, and a proper camera is quickly started to shoot, so that the starting time of the camera can be saved, and an image with better shooting quality can be obtained.
Here, while determining that one of the at least two rear cameras is the target camera according to the camera usage data, the method may further include: and determining target shooting parameters corresponding to the target camera.
Here, the target shooting parameters are shooting parameters corresponding to shooting with the target camera.
Here, the target photographing parameters may include, but are not limited to: beauty factors (e.g., buffing factor, sharpening factor, whitening factor, etc.), filter type.
Accordingly, step 103 may specifically include: and starting the target camera and shooting according to the target shooting parameters.
Based on the embodiment shown in fig. 1, as an optional implementation manner, before step 101, the method may further include:
carrying out statistical calculation on the distance between the electronic equipment and the face of the user detected in the history shooting process to obtain the first distance range and the second distance range; alternatively, the first and second electrodes may be,
and acquiring the preset first distance range and the second distance range based on the gender of the user.
Here, the first distance range for judging whether to turn on the front camera of the electronic device and the second distance range for judging whether to turn on the rear camera of the electronic device can be obtained through the two ways.
The first distance range for starting the front camera of the electronic device and the second distance range for starting the rear camera of the electronic device can be preset based on the difference between the male arm length and the female arm length and based on the gender of the user.
The following is a detailed description of an example of the implementation of the method of the present invention, as shown in fig. 2.
It should be noted that, in this example, the electronic device includes a front camera and a rear camera, where the rear camera includes: main camera, wide-angle camera and telephoto camera. The method comprises the following specific steps:
step 201, judging whether eyes of a user are identified or not when the electronic equipment is in a screen locking state;
if yes, go to step 202; otherwise, ending the flow;
step 202, acquiring the distance between the electronic equipment and the face of a user;
step 203, when the distance is within the range of using the front camera, starting the front camera of the electronic equipment;
for example, if the user climbs a mountain and goes high and out, stands on the mountain and finds that landscape under the mountain is good, and then takes out the mobile phone to prepare for taking a picture, at this time, if the mobile phone detects that the mobile phone is far away from the face of the user, namely, within the range of using the front camera, the user is considered to want to take a self-picture, and the front camera is turned on.
Step 204, when the distance is within the range of using the rear camera, acquiring camera default use data corresponding to scene feature information of a shooting scene where the electronic equipment is currently located;
in this step, the scene feature information of the shooting scene includes, but is not limited to: the shooting location information, the shooting environment (indoor or outdoor), the environment brightness, the electronic equipment posture and the shooting time.
Here, the following are exemplified: if the shooting environment where the mobile phone is located is detected to be outdoor, the camera which is contained in the default use data and is correspondingly allowed to be used is a wide-angle camera, or the use probability of the corresponding wide-angle camera contained in the default use data of the camera is higher, and at the moment, the wide-angle camera is given a higher weight; if it is detected that the shooting environment where the mobile phone is currently located is in a certain room (namely, indoors) on the top of a mountain, the use probability of the corresponding wide-angle camera included in the camera default use data is low, and at this time, a low weight is given to the wide-angle camera.
If the current posture of the mobile phone is detected to be the coordinate axis of the electronic equipment, the screen of the mobile phone faces to the negative direction of the Y axis. That is to say, the screen of the current electronic device faces the ground, and the lens of the rear camera faces the sky, then the camera which is included in the default use data and is allowed to be turned on is a long-focus camera, or the use probability of the corresponding long-focus camera included in the default use data of the camera is high, and at this time, a large weight is given to the long-focus camera; if the current posture of the mobile phone is detected to be the coordinate axis of the electronic equipment, the screen of the mobile phone faces the positive direction of the Y axis. That is to say, the lens of the rear camera of the current electronic device faces the ground, and then the usage probability of the corresponding tele camera included in the default usage data of the camera is small, and at this time, a smaller weight is given to the tele camera.
Step 205, acquiring historical camera use data corresponding to a first shot image stored locally, wherein the similarity between the scene feature information of the first shot image and the scene feature information is greater than a first preset threshold;
here, the following are exemplified: the method comprises the steps that photo data stored in a local photo album and a photo album are checked by a mobile phone, if the similarity between scene characteristic information corresponding to the photo data and the current scene characteristic information is larger than a first preset threshold value, namely a user takes a picture in a shooting scene or a similar shooting scene before, and if a camera used by the user is determined to be a main camera according to shooting records in the photo data, the main camera is given a larger weight.
Step 206, acquiring recommended use data of a camera corresponding to a second shot image shot by other users, wherein the similarity between the scene characteristic information of the second shot image and the scene characteristic information is greater than a second preset threshold value;
here, if the user has not taken a picture of the shooting scene where the current mobile phone is located or a similar shooting scene, the camera used by other users in the shooting scene or the similar shooting scene can be obtained through the network, and is recommended to the user with a larger weight.
Step 207, calculating default use data of the cameras, historical use data of the cameras and recommended use data of the cameras to obtain the weight of each camera in the rear camera;
here, for the calculation of the camera weight, reference may be specifically made to the description of the relevant part of the above embodiment, and details are not described here.
And 208, determining the camera with the largest weight as a target camera, and starting the target camera, wherein the target camera is one of a main camera, a wide-angle camera and a telephoto camera.
According to the shooting method, the distance between the electronic equipment and the face of a user is acquired when the electronic equipment is in a screen locking state; if the distance is within a first distance range, starting a front camera of the electronic equipment to shoot an object to be shot, wherein the first distance range is the distance between the electronic equipment and the face of a user when the front camera is started to shoot, and is obtained in advance; if this distance is in second distance scope, then open this electronic equipment's rearmounted camera, treat to shoot the object, this second distance scope is for in advance obtaining when opening this rearmounted camera and shoot, the distance between electronic equipment and the user face, so, can make the user be in under the lock screen state at electronic equipment, open suitable camera fast and shoot, do not need user manual setting and adjustment, save camera opening time, promote user's shooting experience.
Based on the method, the embodiment of the invention provides electronic equipment for realizing the method.
Fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. An embodiment of the present invention provides an electronic device 300, where the electronic device 300 may include:
the first obtaining module 301 is configured to obtain a distance between the electronic device and a face of a user when the electronic device is in a screen-locked state;
a first shooting module 302, configured to start a front-facing camera of the electronic device to shoot an object to be shot when the distance is within a first distance range, where the first distance range is a distance range between the electronic device and a user's face, which is obtained in advance when the front-facing camera is started to shoot;
the second shooting module 303 is configured to start the rear camera of the electronic device to shoot an object to be shot when the distance is within a second distance range, where the second distance range is a distance range between the electronic device and the face of the user, which is obtained in advance, when the rear camera is started to shoot the object.
Optionally, the number of the rear cameras is at least two; wherein the electronic device 300 further comprises:
the second acquisition module is used for acquiring scene characteristic information of a shooting scene where the electronic equipment is currently located;
the processing module is used for determining one of the at least two rear cameras as a target camera according to the scene characteristic information;
the second shooting module is specifically used for starting the target camera.
Optionally, the processing module includes:
the acquisition unit is used for acquiring camera use data corresponding to the scene characteristic information;
the processing unit is used for determining one of the at least two rear cameras as a target camera according to the camera use data;
wherein the camera usage data comprises at least one of:
default use data of the camera corresponding to the scene feature information;
the method comprises the steps that historical camera use data corresponding to a first shot image stored locally are stored, and the similarity between scene feature information of the first shot image and the scene feature information is larger than a first preset threshold value;
and recommending use data of the camera corresponding to a second shot image shot by other users, wherein the similarity between the scene characteristic information of the second shot image and the scene characteristic information is greater than a second preset threshold value.
Optionally, the camera usage data includes at least two of the camera default usage data, the camera historical usage data, and the camera recommended usage data;
the processing unit is specifically configured to calculate, according to the camera usage data, a weight for using each of the at least two cameras; and determining the camera with the largest weight as the target camera.
Optionally, the electronic device further comprises:
the third acquisition module is used for carrying out statistical calculation on the distance between the electronic equipment and the face of the user detected in the history shooting process to obtain the first distance range and the second distance range; alternatively, the first and second electrodes may be,
and the fourth acquisition module is used for acquiring the preset first distance range and the second distance range based on the gender of the user.
The electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
According to the electronic equipment provided by the embodiment of the invention, the distance between the electronic equipment and the face of a user is acquired by the first acquisition module when the electronic equipment is in a screen locking state; when the distance is within a first distance range, a first shooting module starts a front camera of the electronic equipment to shoot an object to be shot, wherein the first distance range is a distance between the electronic equipment and the face of a user when the front camera is started to shoot, and the distance is obtained in advance; the second is shot the module and is when this distance is in the second distance within range, open this electronic equipment's rearmounted camera, treat to shoot the object, this second distance scope is for in advance obtaining when opening this rearmounted camera and shoot, the distance between electronic equipment and the user face, so, can make the user under electronic equipment is in the lock screen state, open suitable camera fast and shoot, do not need user manual setting and adjustment, save the camera opening time, promote user's shooting experience.
Fig. 4 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. 4 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 terminal, a pedometer, and the like.
The processor 410 is configured to, when the electronic device is in a screen locking state, obtain a distance between the electronic device and a face of a user; if the distance is within a first distance range, starting a front camera of the electronic equipment to shoot an object to be shot, wherein the first distance range is a distance range between the electronic equipment and the face of a user when the front camera is started to shoot, and is obtained in advance; and if the distance is within a second distance range, starting a rear camera of the electronic equipment to shoot the object to be shot, wherein the second distance range is a distance range between the electronic equipment and the face of the user when the rear camera is started to shoot, and is obtained in advance.
According to the embodiment of the invention, a user can quickly open a proper camera for shooting when the electronic equipment is in a screen locking state, the user does not need to manually set and adjust the camera, the camera opening time is saved, and the shooting experience of the user is improved.
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 of the motion sensors, the 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 the mobile 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 mobile 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, sends the touch point coordinates to the processor 410, receives a command from the processor 410, and executes the command. 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. 4, the touch panel 4071 and the display panel 4061 are two separate components to implement the input and output functions of the mobile 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 mobile 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 mobile electronic device, connects various parts of the entire mobile electronic device using various interfaces and lines, and performs various functions of the mobile 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 monitoring the mobile electronic device as a whole. 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 include 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 foregoing shooting 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 each process of the above-mentioned shooting method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling 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 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 (12)

1. A shooting method applied to electronic equipment is characterized by comprising the following steps:
the method comprises the steps that when the electronic equipment is in a screen locking state, the distance between the electronic equipment and the face of a user is acquired;
if the distance is within a first distance range, starting a front camera of the electronic equipment to shoot an object to be shot, wherein the first distance range is a distance range between the electronic equipment and the face of a user when the front camera is started to shoot, and is obtained in advance;
and if the distance is within a second distance range, starting a rear camera of the electronic equipment to shoot the object to be shot, wherein the second distance range is a distance range between the electronic equipment and the face of the user when the rear camera is started to shoot, and is obtained in advance.
2. The photographing method according to claim 1, wherein the number of the rear cameras is at least two; wherein, the method further comprises the following steps that before the rear camera of the electronic device is started and the object to be shot is shot, the method comprises the following steps:
acquiring scene characteristic information of a shooting scene where the electronic equipment is currently located;
determining one of the at least two rear cameras as a target camera according to the scene characteristic information;
open electronic equipment's rearmounted camera includes:
and starting the target camera.
3. The shooting method according to claim 2, wherein the determining that one of the at least two rear cameras is a target camera according to the scene feature information includes:
acquiring camera use data corresponding to the scene characteristic information;
determining one of the at least two rear cameras as a target camera according to the camera use data;
wherein the camera usage data comprises at least one of:
default use data of the camera corresponding to the scene feature information;
the method comprises the steps that historical camera use data corresponding to a first shot image stored locally are stored, and the similarity between scene feature information of the first shot image and the scene feature information is larger than a first preset threshold value;
and recommending use data of the camera corresponding to a second shot image shot by other users, wherein the similarity between the scene characteristic information of the second shot image and the scene characteristic information is greater than a second preset threshold value.
4. The photographing method according to claim 3, wherein the camera usage data includes at least two of the camera default usage data, the camera historical usage data, and the camera recommended usage data;
the determining that one of the at least two rear cameras is a target camera according to the camera usage data includes:
calculating the weight of using each camera in at least two cameras according to the camera use data;
and determining the camera with the largest weight as the target camera.
5. The shooting method according to claim 1, wherein before the distance between the electronic device and the face of the user is acquired while the electronic device is in the lock screen state, the method further comprises:
carrying out statistical calculation on the distance between the electronic equipment and the face of the user detected in the history shooting process to obtain the first distance range and the second distance range; alternatively, the first and second electrodes may be,
and acquiring the preset first distance range and the second distance range based on the gender of the user.
6. An electronic device, comprising:
the first acquisition module is used for acquiring the distance between the electronic equipment and the face of a user when the electronic equipment is in a screen locking state;
the first shooting module is used for starting a front camera of the electronic equipment to shoot an object to be shot when the distance is within a first distance range, and the first distance range is a distance range between the electronic equipment and the face of a user when the front camera is started to shoot, wherein the distance range is obtained in advance;
and the second shooting module is used for starting the rear camera of the electronic equipment to shoot the object to be shot when the distance is within a second distance range, and the second distance range is a distance range between the electronic equipment and the face of the user when the rear camera is started to shoot, wherein the second distance range is obtained in advance.
7. The electronic device of claim 6, wherein the number of rear cameras is at least two; wherein the electronic device further comprises:
the second acquisition module is used for acquiring scene characteristic information of a shooting scene where the electronic equipment is currently located;
the processing module is used for determining one of the at least two rear cameras as a target camera according to the scene characteristic information;
the second shooting module is specifically used for starting the target camera.
8. The electronic device of claim 7, wherein the processing module comprises:
the acquisition unit is used for acquiring camera use data corresponding to the scene characteristic information;
the processing unit is used for determining one of the at least two rear cameras as a target camera according to the camera use data;
wherein the camera usage data comprises at least one of:
default use data of the camera corresponding to the scene feature information;
the method comprises the steps that historical camera use data corresponding to a first shot image stored locally are stored, and the similarity between scene feature information of the first shot image and the scene feature information is larger than a first preset threshold value;
and recommending use data of the camera corresponding to a second shot image shot by other users, wherein the similarity between the scene characteristic information of the second shot image and the scene characteristic information is greater than a second preset threshold value.
9. The electronic device of claim 8, wherein the camera usage data comprises at least two of the camera default usage data, the camera historical usage data, and the camera recommended usage data;
the processing unit is specifically configured to calculate, according to the camera usage data, a weight for using each of the at least two cameras; and determining the camera with the largest weight as the target camera.
10. The electronic device of claim 6, further comprising:
the third acquisition module is used for carrying out statistical calculation on the distance between the electronic equipment and the face of the user detected in the history shooting process to obtain the first distance range and the second distance range; alternatively, the first and second electrodes may be,
and the fourth acquisition module is used for acquiring the preset first distance range and the second distance range based on the gender of the user.
11. 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 5.
12. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the photographing method according to any one of claims 1 to 5.
CN201910802453.9A 2019-08-28 2019-08-28 Shooting method and electronic equipment Active CN110602387B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910802453.9A CN110602387B (en) 2019-08-28 2019-08-28 Shooting method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910802453.9A CN110602387B (en) 2019-08-28 2019-08-28 Shooting method and electronic equipment

Publications (2)

Publication Number Publication Date
CN110602387A true CN110602387A (en) 2019-12-20
CN110602387B CN110602387B (en) 2021-04-23

Family

ID=68856107

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910802453.9A Active CN110602387B (en) 2019-08-28 2019-08-28 Shooting method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110602387B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757005A (en) * 2020-07-06 2020-10-09 Oppo广东移动通信有限公司 Shooting control method and device, computer readable medium and electronic equipment
CN111866389A (en) * 2020-07-29 2020-10-30 努比亚技术有限公司 Video tracking shooting method and device and computer readable storage medium
CN115499537A (en) * 2021-06-18 2022-12-20 Oppo广东移动通信有限公司 Microphone control method and device, mobile terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003114457A (en) * 2001-10-04 2003-04-18 Konica Corp Photographing device
CN104994287A (en) * 2015-06-30 2015-10-21 广东欧珀移动通信有限公司 Camera shooting method based on wide-angle camera and mobile terminal
CN107124552A (en) * 2017-05-26 2017-09-01 努比亚技术有限公司 A kind of image pickup method, terminal and computer-readable recording medium
CN107872622A (en) * 2017-11-24 2018-04-03 广东小天才科技有限公司 A kind of method being closely imaged and mobile terminal
CN108712608A (en) * 2018-05-16 2018-10-26 Oppo广东移动通信有限公司 Terminal device image pickup method and device
CN109255218A (en) * 2017-07-12 2019-01-22 上海荆虹电子科技有限公司 A kind of motional induction unlocking method and system based on bio-identification terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003114457A (en) * 2001-10-04 2003-04-18 Konica Corp Photographing device
CN104994287A (en) * 2015-06-30 2015-10-21 广东欧珀移动通信有限公司 Camera shooting method based on wide-angle camera and mobile terminal
CN107124552A (en) * 2017-05-26 2017-09-01 努比亚技术有限公司 A kind of image pickup method, terminal and computer-readable recording medium
CN109255218A (en) * 2017-07-12 2019-01-22 上海荆虹电子科技有限公司 A kind of motional induction unlocking method and system based on bio-identification terminal
CN107872622A (en) * 2017-11-24 2018-04-03 广东小天才科技有限公司 A kind of method being closely imaged and mobile terminal
CN108712608A (en) * 2018-05-16 2018-10-26 Oppo广东移动通信有限公司 Terminal device image pickup method and device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757005A (en) * 2020-07-06 2020-10-09 Oppo广东移动通信有限公司 Shooting control method and device, computer readable medium and electronic equipment
CN111866389A (en) * 2020-07-29 2020-10-30 努比亚技术有限公司 Video tracking shooting method and device and computer readable storage medium
CN111866389B (en) * 2020-07-29 2022-07-12 努比亚技术有限公司 Video tracking shooting method and device and computer readable storage medium
CN115499537A (en) * 2021-06-18 2022-12-20 Oppo广东移动通信有限公司 Microphone control method and device, mobile terminal and storage medium
CN115499537B (en) * 2021-06-18 2024-01-09 Oppo广东移动通信有限公司 Microphone control method and device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN110602387B (en) 2021-04-23

Similar Documents

Publication Publication Date Title
CN109639970B (en) Shooting method and terminal equipment
CN109361865B (en) Shooting method and terminal
CN109361869B (en) Shooting method and terminal
CN108174103B (en) Shooting prompting method and mobile terminal
CN111416940A (en) Shooting parameter processing method and electronic equipment
CN111263071B (en) Shooting method and electronic equipment
CN109819168B (en) Camera starting method and mobile terminal
CN108182271B (en) Photographing method, terminal and computer readable storage medium
CN109905603B (en) Shooting processing method and mobile terminal
CN111107269B (en) Photographing method, electronic device and storage medium
CN108924414B (en) Shooting method and terminal equipment
CN110602387B (en) Shooting method and electronic equipment
CN111147752B (en) Zoom factor adjusting method, electronic device, and medium
CN108174110B (en) Photographing method and flexible screen terminal
CN108924422B (en) Panoramic photographing method and mobile terminal
CN110708475B (en) Exposure parameter determination method, electronic equipment and storage medium
CN111510623B (en) Shooting method and electronic equipment
CN110636225B (en) Photographing method and electronic equipment
CN110881105B (en) Shooting method and electronic equipment
CN107277364B (en) Shooting method, mobile terminal and computer readable storage medium
CN108924413B (en) Shooting method and mobile terminal
CN111064888A (en) Prompting method and electronic equipment
CN108243489B (en) Photographing control method and mobile terminal
CN107911585B (en) Image processing method and device of mobile terminal and mobile terminal
CN108449560B (en) Video recording method and terminal

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