CN110881105A - Shooting method and electronic equipment - Google Patents

Shooting method and electronic equipment Download PDF

Info

Publication number
CN110881105A
CN110881105A CN201911100450.7A CN201911100450A CN110881105A CN 110881105 A CN110881105 A CN 110881105A CN 201911100450 A CN201911100450 A CN 201911100450A CN 110881105 A CN110881105 A CN 110881105A
Authority
CN
China
Prior art keywords
focusing
target
scene
time length
outputting
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
CN201911100450.7A
Other languages
Chinese (zh)
Other versions
CN110881105B (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 CN201911100450.7A priority Critical patent/CN110881105B/en
Publication of CN110881105A publication Critical patent/CN110881105A/en
Application granted granted Critical
Publication of CN110881105B publication Critical patent/CN110881105B/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/67Focus control based on electronic image sensor signals
    • 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

Landscapes

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

Abstract

The invention provides a shooting method and electronic equipment, wherein the shooting method comprises the following steps: acquiring preview data of a moving target acquired by a camera; determining shooting scene information according to the preview data; outputting prompt information for switching shooting scene information and/or adjusting a focusing mode according to the target focusing parameter; and outputting a preview image of the moving target according to the switching operation of the user responding to the prompt message and/or the adjusted focusing mode. According to the invention, through adjusting the focusing scene and/or the focusing mode, the moving target can be focused and imaged more quickly and better, and the film forming rate of the moving target is increased.

Description

Shooting method and electronic equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a shooting method and an electronic device.
Background
In the shooting process, focusing is a key step for ensuring that the recorded image obtains a clear effect. At present, most of commonly used cameras adopt an automatic focusing mode, that is, a motor is driven by a circuit to move a lens to a corresponding position according to the distance of a photographed target, so that the photographed target can automatically and clearly image.
From a basic principle, auto-focusing can be divided into two broad categories: one is range finding autofocus based on distance measurement between a lens and a subject being photographed, and the other is focus detection autofocus based on sharp imaging on a focusing screen.
If the camera of the user aims at the static background, even if the focusing speed is slow, the user can focus and image finally, and a satisfactory photo is taken. However, if the camera is facing to the moving object and the surrounding environment of the moving object is complex, the camera may be in a state of always focusing or the focusing speed is slow, and at this time, the definition of the image captured by the user is poor and the filming rate is low.
In summary, in the process of shooting a dynamic scene, there is a problem that focusing is slow or cannot be successfully focused during focusing, so that the definition and the slicing effect of the shot image are not good.
Disclosure of Invention
The embodiment of the invention provides a shooting method and electronic equipment, and aims to solve the problems of poor image definition and poor slicing effect caused by slow focusing or unsuccessful focusing in a dynamic scene shooting process in the prior art.
In order to solve the above problem, the embodiment of the present invention is implemented as follows:
in a first aspect, an embodiment of the present invention provides a shooting method applied to an electronic device, where the method includes:
acquiring preview data of a moving target acquired by a camera;
determining shooting scene information according to the preview data;
outputting prompt information for switching shooting scene information and/or adjusting a focusing mode according to the target focusing parameter;
and outputting a preview image of the moving target according to the switching operation of the user responding to the prompt message and/or the adjusted focusing mode.
In a second aspect, an embodiment of the present invention provides an electronic device, including:
the first acquisition module is used for acquiring preview data of the moving target acquired by the camera;
the determining module is used for determining shooting scene information according to the preview data;
the processing module is used for outputting prompt information for switching shooting scene information and/or adjusting a focusing mode according to the target focusing parameter;
and the first output module is used for outputting a preview image of the moving target according to the switching operation and/or the adjusted focusing mode of the user responding to the prompt message.
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 in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the above-mentioned shooting method.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the shooting method described above.
According to the technical scheme, the shooting scene information is determined according to the preview data of the moving target, the user is prompted to switch the shooting scene information and/or adjust the focusing mode according to the target focusing parameter, the preview image of the moving target is output according to the switching operation and/or the adjusted focusing mode of the user, the focusing speed can be improved, the focusing effect is guaranteed, the moving target can be focused and imaged faster and better, and the shooting rate of the moving target is increased.
Drawings
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 diagram of a photographing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a method for identifying a moving object according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a method for an electronic device to perform shooting according to a confirmation operation according to an embodiment of the present invention;
FIG. 4 is a flow chart illustrating an overall implementation of a photographing method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an electronic device according to an embodiment of the invention;
fig. 6 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.
An embodiment of the present invention provides a shooting method applied to an electronic device, and as shown in fig. 1, the method includes:
step 101, obtaining preview data of the moving object collected by the camera.
The electronic equipment firstly acquires information aiming at the moving target through the camera, acquires data information related to the moving target and a scene where the moving target is located, and generates preview data of the moving target according to the acquired data information. After the preview data of the moving object is acquired, step 102 is performed.
And 102, determining shooting scene information according to the preview data.
After the preview data of the moving object is obtained, shooting scene information corresponding to the moving object can be determined according to the preview data, wherein the shooting scene information is a shooting background environment of the moving object.
And 103, outputting prompt information for switching shooting scene information and/or adjusting a focusing mode according to the target focusing parameter.
After the shooting scene information is determined, whether the current shooting scene information belongs to an ideal focusing scene and/or whether the current focusing mode is a proper focusing mode can be detected according to the predetermined target focusing parameters. And outputting prompt information according to the detection result and/or adjusting the current focusing mode.
And 104, outputting a preview image of the moving target according to the switching operation and/or the adjusted focusing mode of the user responding to the prompt message.
After the electronic device outputs the prompt information, the user can switch scenes according to the prompt information for switching shooting scene information, and the electronic device can output the preview image of the moving target according to the scene switching operation of the user. After the electronic device adjusts the focusing mode according to the target focusing parameter, focusing can be performed according to the adjusted focusing mode, and a preview image of the moving target is output according to the focusing result. After the electronic device outputs the prompt information and adjusts the focusing mode, a preview image of the moving object may be output according to the user's switching scene operation and the focusing mode after adjustment.
According to the shooting method provided by the embodiment of the invention, the shooting scene information is determined according to the preview data of the moving target, the user is prompted to switch the shooting scene information and/or adjust the focusing mode according to the target focusing parameter, and the preview image of the moving target is output according to the switching operation and/or the adjusted focusing mode of the user, so that the focusing speed can be increased, the focusing effect can be ensured, the moving target can be focused and imaged faster and better, and the shooting rate of capturing the moving target is increased.
In an embodiment of the present invention, the target focusing parameters include: at least one of the number of times of target focusing and the length of time of target focusing; the shooting scene information includes: scene complexity and scene contrast; the target focusing times are the focusing times of the camera within a preset time length, and the target focusing time length is the average time length required by each focusing within the preset time length.
The target focusing parameter may include a target focusing number, or the target focusing parameter may include a target focusing time length, or the target focusing parameter may include a target focusing number and a target focusing time length. The shooting scene information determined according to the preview data includes scene complexity and scene contrast.
The target focusing times are the focusing times of the camera in a preset time (such as the last two days) counted by the electronic equipment, and the corresponding target focusing time is an average time determined according to the focusing time of each time in the preset time. The preset time duration uses the moment when the camera collects the preview data of the moving target as a time terminal.
The target focusing times are determined according to the focusing times in the latest period of time, and the target focusing time length is determined according to the focusing time length in the latest period of time, so that the target focusing parameters conforming to the latest shooting habit can be determined according to the shooting record of the camera.
In the embodiment of the present invention, when the target focusing parameter includes a target focusing duration, outputting a prompt message for switching shooting scene information and/or adjusting a focusing mode according to the target focusing parameter, including:
and detecting whether the target focusing time length is greater than the preset focusing time length or not, and outputting first prompt information for reducing the scene complexity and increasing the scene contrast under the condition that the target focusing time length is greater than the preset focusing time length.
Under the condition that the target focusing parameter only comprises the target focusing time length, the relation between the target focusing time length and the preset focusing time length needs to be detected, wherein the preset focusing time length is a preset empirical value. When the target focusing time length is longer than the preset focusing time length, first prompt information for prompting a user to reduce scene complexity and increase scene contrast is required to be output.
When the electronic equipment outputs the first prompt information, the scene complexity value and the scene contrast value can be displayed in a preset area of the display screen in real time, so that a user can know the scene complexity and the scene contrast corresponding to a shot scene at that time conveniently. When the user subsequently switches scenes according to the first prompt information, the scene complexity and the scene contrast can be updated in real time through the preset area, so that the user can know the scene complexity and the scene contrast corresponding to the switched scenes in real time, the user can conveniently switch to a shooting scene meeting the focusing requirement, and the focusing speed is improved.
By detecting the relation between the target focusing time length and the preset focusing time length, under the condition that the target focusing time length is greater than the preset focusing time length, outputting first prompt information for reducing scene complexity and increasing scene contrast, and updating and displaying the scene complexity value and the scene contrast value in real time, the user can conveniently switch to a shooting scene meeting the focusing requirement, so that the focusing speed is improved.
Under the condition that the target focusing parameters comprise target focusing duration, outputting a preview image of the moving target according to the switching operation of a user responding to the prompt message and/or the adjusted focusing mode, wherein the step comprises the following steps:
determining a switched shooting scene according to scene switching operation of a user responding to the first prompt message; and generating a preview image for the moving object according to the switched shooting scene.
When the target focusing parameters only comprise the target focusing duration, outputting first prompt information for reducing scene complexity and increasing scene contrast, enabling a user to switch scenes according to the first prompt information, and updating corresponding scene complexity numerical values and scene contrast numerical values in a preset area of a display screen in real time while the user performs scene switching operation, so that the user can conveniently switch to a shooting scene meeting focusing requirements. After determining the switched shooting scene, a preview image for the moving object may be generated from the current scene.
The switched shooting scene is determined according to the scene switching operation of the user responding to the first prompt information, and the preview image for the moving target is generated according to the switched shooting scene, so that the preview image can be output under the shooting scene meeting the focusing requirement, and the focusing speed and the shooting preview effect are ensured.
In the embodiment of the present invention, when the target focusing parameter includes the target focusing times, outputting a prompt message for switching the shooting scene information and/or adjusting the focusing mode according to the target focusing parameter, including: detecting whether the target focusing times are larger than preset focusing times or not; and under the condition that the target focusing times are larger than the preset focusing times, adjusting the current automatic focusing mode to a fixed focusing mode.
In the case that the target focusing parameter only includes the target focusing times, it is necessary to detect a relationship between the target focusing times and a preset focusing times, where the preset focusing times are preset empirical values. And under the condition that the target focusing times are greater than the preset focusing times, intelligently switching the current automatic focusing mode to the fixed focusing mode.
When a moving target is captured in the automatic focusing mode, if the moving target is not focused all the time, or the moving target is focused directly after the focusing is successful, the captured picture is easy to blur, and if the fixed focusing mode is set at the moment, the shooting effect is better than that of the moving target captured by the automatic focusing all the time. Therefore, the switching of the focusing mode can be performed under the condition that the target focusing times are greater than the preset focusing times.
It should be noted that, when the current autofocus mode is intelligently switched to the fixed focus mode, information prompting the user to take a picture as soon as possible or continue to select the autofocus mode may be output, and the user performs a picture taking operation according to the output information or continues to focus in the autofocus mode.
By detecting the relation between the target focusing times and the preset focusing times, the current automatic focusing mode is intelligently switched to the fixed focusing mode under the condition that the target focusing times are larger than the preset focusing times, so that focusing can be performed in the fixed focusing mode to ensure the focusing effect.
Wherein, under the condition that the target focusing parameters only comprise the target focusing times, the step of outputting the preview image of the moving target according to the switching operation of the user responding to the prompt message and/or the adjusted focusing mode comprises the following steps: and focusing by adopting the adjusted fixed focusing mode, and outputting a preview image of the moving target.
After the current automatic focusing mode is intelligently switched to the fixed focusing mode, the fixed focusing mode is adopted to carry out focusing, and after focusing, a preview image of the moving target is output, so that the output effect of the preview image can be ensured.
In the embodiment of the present invention, in a case that the target focusing parameter includes a target focusing duration and a target focusing frequency, outputting a prompt message for switching shooting scene information and/or adjusting a focusing mode according to the target focusing parameter, includes:
detecting whether the target focusing time length is greater than the preset focusing time length and whether the target focusing times are greater than the preset focusing times; under the condition that the target focusing time length is longer than the preset focusing time length, outputting first prompt information for reducing scene complexity and increasing scene contrast; and under the condition that the target focusing times are larger than the preset focusing times, adjusting the current automatic focusing mode to a fixed focusing mode.
Under the condition that the target focusing parameters comprise target focusing time and target focusing times, the relation between the target focusing time and preset focusing time and the relation between the target focusing times and the preset focusing times need to be detected. When the target focusing time length is longer than the preset focusing time length, first prompt information for prompting a user to reduce scene complexity and increase scene contrast is required to be output. And under the condition that the target focusing times are greater than the preset focusing times, intelligently switching the current automatic focusing mode to the fixed focusing mode.
When the electronic equipment outputs the first prompt information, the scene complexity value and the scene contrast value can be displayed in a preset area of the display screen in real time, so that a user can know the scene complexity and the scene contrast corresponding to a shot scene at that time conveniently. When the user subsequently switches scenes according to the first prompt information, the scene complexity and the scene contrast can be updated in real time through the preset area, so that the user can know the scene complexity and the scene contrast corresponding to the switched scenes in real time, the user can conveniently switch to a shooting scene meeting the focusing requirement, and the focusing speed is improved.
When the current automatic focusing mode is intelligently switched to the fixed focusing mode, information prompting a user to take a picture as soon as possible or continuously select the automatic focusing mode can be output, and the user can take a picture according to the output information or continuously focus in the automatic focusing mode.
By detecting the relation between the target focusing time length and the preset focusing time length and between the target focusing times and the preset focusing times, under the condition that the target focusing time length is greater than the preset focusing time length, first prompt information for reducing scene complexity and increasing scene contrast is output, and the scene complexity value and the scene contrast value are updated and displayed in real time, a user can conveniently switch to a shooting scene meeting the focusing requirement to obtain the improvement of focusing speed, under the condition that the target focusing times are greater than the preset focusing times, the current automatic focusing mode is intelligently switched to the fixed focusing mode, and focusing can be carried out under the fixed focusing mode to ensure the focusing effect.
Under the condition that the target focusing parameters comprise target focusing time length and target focusing times, the step of outputting a preview image of the moving target according to the switching operation of a user responding to the prompt message and/or the adjusted focusing mode comprises the following steps:
determining a switched shooting scene according to scene switching operation of a user responding to the first prompt message; and focusing by adopting the adjusted fixed focusing mode aiming at the switched shooting scene to generate a preview image aiming at the moving target.
After the first prompt information for reducing the scene complexity and increasing the scene contrast is output, a user can switch scene operation according to the first prompt information, and when the user switches the scene, the corresponding scene complexity numerical value and the corresponding scene contrast numerical value can be updated in a preset area of the display screen in real time, so that the user can conveniently switch to a shooting scene meeting focusing requirements, and the focusing speed is improved.
After the current automatic focusing mode is intelligently switched to the fixed focusing mode, the fixed focusing mode can be adopted to focus the switched shooting scene, the preview image of the moving target is output, and the effect of the preview image can be improved while the focusing speed is ensured.
It should be noted that, if the electronic device is configured with an auxiliary illuminating lamp, when it is detected that the focusing speed of the moving object is not ideal and the ambient brightness is not high, the brightness of the illuminating lamp can be intelligently controlled, so as to improve the focusing speed of the moving object.
In the embodiment of the present invention, before acquiring the preview data of the moving object acquired by the camera, as shown in fig. 2, the method further includes:
step 201, starting a moving object photographing mode.
And step 202, performing contour processing and feature extraction according to data information of the target to be shot to obtain a feature image.
And step 203, identifying whether the target to be shot belongs to the moving target according to the characteristic image.
After the camera is started, the intelligent moving object shooting mode can be entered according to the selection operation of a user, under the current shooting mode, the electronic equipment transmits collected data and parameters of the current camera to an AI (artificial intelligence) algorithm library for processing, the AI algorithm library carries out contour processing and feature extraction on the collected image, the extracted feature image is compared with a training library or a template, and whether the object to be shot belongs to a moving object or not is identified. By identifying the moving object in the intelligent moving object photographing mode, the process of determining the photographing scene information can be performed after the moving object is determined.
In the embodiment of the present invention, after outputting the preview image of the moving object, as shown in fig. 3, the method further includes:
and 301, outputting second prompt information for prompting the user to confirm the effect of the preview image.
And step 302, executing a shooting action according to the confirmation operation of the user on the second prompt message.
After the electronic equipment outputs the preview image of the moving target, second prompt information for prompting the user to confirm the effect of the preview image can be generated, and the second prompt information is displayed on the display interface. Whether the confirmation operation of the user on the second prompt information can be received or not is detected, and after the confirmation operation of the user on the second prompt information is received, shooting can be carried out in response to the confirmation operation of the user.
The effect of the preview image can be confirmed by the user by outputting the second prompt information, and the shot image effect can be ensured to meet the requirements of the user after the confirmation operation of the user is received.
The following describes a flow of the shooting method according to an embodiment of the present invention, as shown in fig. 4:
step 401, turning on a camera to enter a moving object shooting mode.
And step 402, transmitting the preview data collected by the camera to an AI algorithm library for processing.
And step 403, carrying out contour processing and feature extraction on the acquired image by the AI algorithm library.
And step 404, comparing the extracted characteristic image with a training library or a template.
And 405, judging whether the moving target is identified or not according to the comparison result, executing the step 406 if the moving target is identified, and ending the process if the moving target is not identified.
And step 406, determining shooting scene information according to the preview data.
Step 407, detecting whether the target focusing time length is greater than the preset focusing time length and whether the target focusing times is greater than the preset focusing times.
And step 408, outputting first prompt information for reducing the scene complexity and increasing the scene contrast when the target focusing time length is greater than the preset focusing time length.
And 409, adjusting the current automatic focusing mode to a fixed focusing mode under the condition that the target focusing times are greater than the preset focusing times.
And step 410, determining a switched shooting scene according to the scene switching operation of the user responding to the first prompt message, focusing the switched shooting scene by adopting the adjusted fixed focusing mode, generating a preview image for the moving target, and ending the process.
By identifying the moving target, calculating shooting scene information according to the collected preview data, prompting a user to reduce scene complexity and increase scene contrast according to the target focusing time length, and adjusting the current automatic focusing mode to the fixed focusing mode according to the target focusing times, the effect of previewing images can be improved while the focusing speed is ensured.
The shooting method comprises the steps of determining shooting scene information according to preview data of a moving target, prompting a user to switch the shooting scene information and/or adjust a focusing mode according to target focusing parameters, and outputting a preview image of the moving target according to switching operation and/or the adjusted focusing mode of the user, so that the focusing speed can be increased, the focusing effect can be ensured, the moving target can be focused and imaged faster and better, and the shooting rate of capturing the moving target is increased.
An embodiment of the present invention provides an electronic device, as shown in fig. 5, including:
the first acquisition module 10 is configured to acquire preview data of a moving object acquired by a camera;
a determining module 20, configured to determine shooting scene information according to the preview data;
the processing module 30 is configured to output prompt information for switching shooting scene information and/or adjust a focusing mode according to the target focusing parameter;
and the first output module 40 is used for outputting a preview image of the moving target according to the switching operation and/or the adjusted focusing mode of the user responding to the prompt message.
Optionally, the target focusing parameter includes: at least one of the number of times of target focusing and the length of time of target focusing; the shooting scene information includes: scene complexity and scene contrast;
the target focusing times are the focusing times of the camera within a preset time length, and the target focusing time length is the average time length required by each focusing within the preset time length.
Optionally, in a case that the target focusing parameter includes a target focusing duration, the processing module includes:
the first detection submodule is used for detecting whether the target focusing time length is greater than the preset focusing time length;
and the first output submodule is used for outputting first prompt information for reducing the scene complexity and increasing the scene contrast under the condition that the target focusing time length is greater than the preset focusing time length.
Wherein, optionally, the first output module is further configured to:
determining a switched shooting scene according to scene switching operation of a user responding to the first prompt message;
and generating a preview image for the moving object according to the switched shooting scene.
Optionally, when the target focusing parameter includes a target focusing frequency, the processing module includes:
the second detection submodule is used for detecting whether the target focusing times are larger than the preset focusing times or not;
and the first adjusting submodule is used for adjusting the current automatic focusing mode to the fixed focusing mode under the condition that the target focusing times are greater than the preset focusing times.
Optionally, in a case that the target focusing parameter includes a target focusing duration and a target focusing number, the processing module includes:
the third detection submodule is used for detecting whether the target focusing time length is greater than the preset focusing time length and whether the target focusing times are greater than the preset focusing times;
the second output submodule is used for outputting first prompt information for reducing the scene complexity and increasing the scene contrast under the condition that the target focusing time length is greater than the preset focusing time length;
and the second adjusting submodule is used for adjusting the current automatic focusing mode to the fixed focusing mode under the condition that the target focusing times are greater than the preset focusing times.
Wherein, optionally, the first output module is further configured to:
determining a switched shooting scene according to scene switching operation of a user responding to the first prompt message;
and focusing by adopting the adjusted fixed focusing mode aiming at the switched shooting scene to generate a preview image aiming at the moving target.
Wherein, optionally, the electronic device further comprises:
the starting module is used for starting a moving object photographing mode before the first acquisition module acquires the preview data of the moving object acquired by the camera;
the second acquisition module is used for carrying out contour processing and feature extraction according to the data information of the target to be shot to acquire a feature image;
and the identification module is used for identifying whether the target to be shot belongs to the moving target or not according to the characteristic image.
Wherein, optionally, the electronic device further comprises:
the second output module is used for outputting second prompt information for prompting the user to confirm the effect of the preview image after the first output module outputs the preview image of the moving target;
and the shooting module is used for executing shooting action according to the confirmation operation of the user on the second prompt information.
According to the electronic equipment provided by the embodiment of the invention, the shooting scene information is determined according to the preview data of the moving target, the user is prompted to switch the shooting scene information and/or adjust the focusing mode according to the target focusing parameter, and the preview image of the moving target is output according to the switching operation and/or the adjusted focusing mode of the user, so that the focusing speed can be increased, the focusing effect can be ensured, the moving target can be focused and imaged more quickly and better, and the shooting rate of the moving target can be increased.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device 600 for implementing various embodiments of the present invention, where the electronic device 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611.
Those skilled in the art will appreciate that the electronic device configuration shown in fig. 6 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.
Wherein the processor 610 is configured to: acquiring preview data of a moving target acquired by a camera; determining shooting scene information according to the preview data; controlling the display unit 606 to output prompt information for switching shooting scene information and/or adjusting a focusing mode according to the target focusing parameter; and controlling the display unit 606 to output a preview image of the moving target according to the switching operation of the user in response to the prompt message and/or the adjusted focusing mode.
Therefore, the shooting scene information is determined according to the preview data of the moving target, the user is prompted to switch the shooting scene information and/or adjust the focusing mode according to the target focusing parameter, the preview image of the moving target is output according to the switching operation and/or the adjusted focusing mode of the user, the focusing speed can be improved, the focusing effect is guaranteed, the moving target can be focused and imaged faster and better, and the shooting rate of the moving target is improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 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 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 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 frequency unit 601 may 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 602, such as assisting the user in sending and receiving e-mails, browsing web pages, and accessing streaming media.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the electronic apparatus 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 6041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (such as a camera) in a video capture mode or an image capture mode. The processed image frames may be displayed on the display unit 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process 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 601 in case of the phone call mode.
The electronic device 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the electronic apparatus 600 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 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 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 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, 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 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 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 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the electronic device, and this is not limited here.
The interface unit 608 is an interface for connecting an external device to the electronic apparatus 600. 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 608 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the electronic device 600 or may be used to transmit data between the electronic device 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 609 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 610 is a control center of the electronic device, connects various parts of the whole electronic device by using various interfaces and lines, performs various functions of the electronic device and processes data by running or executing software programs and/or modules stored in the memory 609, and calling data stored in the memory 609, thereby performing overall monitoring of the electronic device. Processor 610 may include one or more processing units; preferably, the processor 610 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 610.
The electronic device 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 may be logically connected to the processor 610 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
In addition, the electronic device 600 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 610, a memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program is executed by the processor 610 to implement 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 a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A shooting method is applied to electronic equipment, and is characterized by comprising the following steps:
acquiring preview data of a moving target acquired by a camera;
determining shooting scene information according to the preview data;
outputting prompt information for switching the shooting scene information and/or adjusting a focusing mode according to the target focusing parameter;
and outputting a preview image of the moving target according to the switching operation and/or the adjusted focusing mode of the user responding to the prompt message.
2. The method of claim 1, wherein the target focusing parameters comprise: at least one of the number of times of target focusing and the length of time of target focusing; the shooting scene information includes: scene complexity and scene contrast;
the target focusing times are the focusing times of the camera within a preset time length, and the target focusing time length is the average time length required by each focusing within the preset time length.
3. The method according to claim 2, wherein in the case that the target focusing parameter includes a target focusing duration, the step of outputting a prompt message for switching the shot scene information and/or adjusting a focusing mode according to the target focusing parameter includes:
detecting whether the target focusing time length is greater than a preset focusing time length or not;
and outputting first prompt information for reducing the scene complexity and increasing the scene contrast when the target focusing time length is greater than the preset focusing time length.
4. The method according to claim 3, wherein the step of outputting the preview image of the moving object according to the switching operation and/or the adjusted focusing mode of the user in response to the prompt message comprises:
determining a switched shooting scene according to scene switching operation of a user responding to the first prompt message;
and generating a preview image for the moving target according to the switched shooting scene.
5. The method according to claim 2, wherein in the case that the target focusing parameter includes a target focusing number, the step of outputting a prompt message for switching the shot scene information and/or adjusting a focusing mode according to the target focusing parameter includes:
detecting whether the target focusing times are larger than preset focusing times or not;
and under the condition that the target focusing times are greater than the preset focusing times, adjusting the current automatic focusing mode to a fixed focusing mode.
6. The method according to claim 2, wherein in the case that the target focusing parameters include a target focusing time length and a target focusing number, the step of outputting a prompt message for switching the shooting scene information and/or adjusting a focusing mode according to the target focusing parameters comprises:
detecting whether the target focusing time length is greater than a preset focusing time length and whether the target focusing times are greater than preset focusing times;
under the condition that the target focusing time length is longer than the preset focusing time length, outputting first prompt information for reducing the scene complexity and increasing the scene contrast;
and under the condition that the target focusing times are greater than the preset focusing times, adjusting the current automatic focusing mode to a fixed focusing mode.
7. The method according to claim 6, wherein the step of outputting the preview image of the moving object according to the switching operation and/or the adjusted focusing mode of the user in response to the prompt message comprises:
determining a switched shooting scene according to scene switching operation of a user responding to the first prompt message;
and focusing by adopting the adjusted fixed focusing mode aiming at the switched shooting scene to generate a preview image aiming at the moving target.
8. The method of claim 1, wherein before the obtaining the preview data of the moving object collected by the camera, further comprising:
starting a moving object photographing mode;
carrying out contour processing and feature extraction according to data information of a target to be shot to obtain a feature image;
and identifying whether the target to be shot belongs to a moving target or not according to the characteristic image.
9. The method of claim 1, wherein after outputting the preview image of the moving object, further comprising:
outputting second prompt information for prompting the user to confirm the effect of the preview image;
and executing shooting action according to the confirmation operation of the user on the second prompt message.
10. An electronic device, comprising:
the first acquisition module is used for acquiring preview data of the moving target acquired by the camera;
the determining module is used for determining shooting scene information according to the preview data;
the processing module is used for outputting prompt information for switching the shooting scene information and/or adjusting a focusing mode according to the target focusing parameter;
and the first output module is used for outputting the preview image of the moving target according to the switching operation and/or the adjusted focusing mode of the user responding to the prompt message.
CN201911100450.7A 2019-11-12 2019-11-12 Shooting method and electronic equipment Active CN110881105B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911100450.7A CN110881105B (en) 2019-11-12 2019-11-12 Shooting method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911100450.7A CN110881105B (en) 2019-11-12 2019-11-12 Shooting method and electronic equipment

Publications (2)

Publication Number Publication Date
CN110881105A true CN110881105A (en) 2020-03-13
CN110881105B CN110881105B (en) 2021-08-24

Family

ID=69729548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911100450.7A Active CN110881105B (en) 2019-11-12 2019-11-12 Shooting method and electronic equipment

Country Status (1)

Country Link
CN (1) CN110881105B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654635A (en) * 2020-06-30 2020-09-11 维沃移动通信有限公司 Shooting parameter adjusting method and device and electronic equipment
CN114466129A (en) * 2020-11-09 2022-05-10 哲库科技(上海)有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN115297262A (en) * 2022-08-09 2022-11-04 中国电信股份有限公司 Focusing method, focusing device, storage medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205490869U (en) * 2016-03-03 2016-08-17 北京志光伯元科技有限公司 Motion target is caught and tracking device
JP2017157886A (en) * 2016-02-29 2017-09-07 キヤノン株式会社 Imaging apparatus
CN107346059A (en) * 2016-05-02 2017-11-14 株式会社三丰 Variable focal length imaging system
CN107682623A (en) * 2017-09-11 2018-02-09 北京小米移动软件有限公司 Photographic method and device
CN109151326A (en) * 2018-10-26 2019-01-04 深圳鳍源科技有限公司 A kind of moving camera focusing method, device, moving camera and storage medium
CN109618102A (en) * 2019-01-28 2019-04-12 Oppo广东移动通信有限公司 Focusing process method, apparatus, electronic equipment and storage medium
US20190306405A1 (en) * 2018-03-30 2019-10-03 Qualcomm Incorporated Systems and methods for autofocus and depth map generation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017157886A (en) * 2016-02-29 2017-09-07 キヤノン株式会社 Imaging apparatus
CN205490869U (en) * 2016-03-03 2016-08-17 北京志光伯元科技有限公司 Motion target is caught and tracking device
CN107346059A (en) * 2016-05-02 2017-11-14 株式会社三丰 Variable focal length imaging system
CN107682623A (en) * 2017-09-11 2018-02-09 北京小米移动软件有限公司 Photographic method and device
US20190306405A1 (en) * 2018-03-30 2019-10-03 Qualcomm Incorporated Systems and methods for autofocus and depth map generation
CN109151326A (en) * 2018-10-26 2019-01-04 深圳鳍源科技有限公司 A kind of moving camera focusing method, device, moving camera and storage medium
CN109618102A (en) * 2019-01-28 2019-04-12 Oppo广东移动通信有限公司 Focusing process method, apparatus, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654635A (en) * 2020-06-30 2020-09-11 维沃移动通信有限公司 Shooting parameter adjusting method and device and electronic equipment
CN114466129A (en) * 2020-11-09 2022-05-10 哲库科技(上海)有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN115297262A (en) * 2022-08-09 2022-11-04 中国电信股份有限公司 Focusing method, focusing device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN110881105B (en) 2021-08-24

Similar Documents

Publication Publication Date Title
CN108513070B (en) Image processing method, mobile terminal and computer readable storage medium
CN109361865B (en) Shooting method and terminal
CN111182205B (en) Photographing method, electronic device, and medium
CN108989672B (en) Shooting method and mobile terminal
CN110602401A (en) Photographing method and terminal
CN110913139B (en) Photographing method and electronic equipment
CN111263071B (en) Shooting method and electronic equipment
CN110266957B (en) Image shooting method and mobile terminal
CN107730460B (en) Image processing method and mobile terminal
CN108924414B (en) Shooting method and terminal equipment
CN110881105B (en) Shooting method and electronic equipment
CN110602389B (en) Display method and electronic equipment
CN111447365B (en) Shooting method and electronic equipment
CN108174110B (en) Photographing method and flexible screen terminal
CN111246102A (en) Shooting method, shooting device, electronic equipment and storage medium
CN111405181B (en) Focusing method and electronic equipment
CN110708475B (en) Exposure parameter determination method, electronic equipment and storage medium
CN110944114B (en) Photographing method and electronic equipment
CN110602387B (en) Shooting method and electronic equipment
CN108924413B (en) Shooting method and mobile terminal
CN108243489B (en) Photographing control method and mobile terminal
CN108156386B (en) Panoramic photographing method and mobile terminal
CN108550182B (en) Three-dimensional modeling method and terminal
CN110930372A (en) Image processing method, electronic equipment and computer readable storage medium
CN111147745B (en) Shooting method, shooting device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant