CN110677580A - Shooting method, shooting device, storage medium and terminal - Google Patents

Shooting method, shooting device, storage medium and terminal Download PDF

Info

Publication number
CN110677580A
CN110677580A CN201910903949.5A CN201910903949A CN110677580A CN 110677580 A CN110677580 A CN 110677580A CN 201910903949 A CN201910903949 A CN 201910903949A CN 110677580 A CN110677580 A CN 110677580A
Authority
CN
China
Prior art keywords
camera
candidate
distance
distance information
shooting
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
CN201910903949.5A
Other languages
Chinese (zh)
Other versions
CN110677580B (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.)
JRD Communication Shenzhen Ltd
Jiekai Communications Shenzhen Co Ltd
Original Assignee
Jiekai Communications Shenzhen 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 Jiekai Communications Shenzhen Co Ltd filed Critical Jiekai Communications Shenzhen Co Ltd
Priority to CN201910903949.5A priority Critical patent/CN110677580B/en
Publication of CN110677580A publication Critical patent/CN110677580A/en
Application granted granted Critical
Publication of CN110677580B publication Critical patent/CN110677580B/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/667Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/45Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from two or more image sensors being of different type or operating in different modes, e.g. with a CMOS sensor for moving images in combination with a charge-coupled device [CCD] for still images
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Abstract

The embodiment of the application discloses a shooting method, a shooting device, a storage medium and a terminal. The shooting method comprises the steps of acquiring distance information between a shot object and a current camera when shooting is carried out; acquiring camera parameters of a current camera; judging whether the distance information meets a preset condition or not based on the camera parameters; if not, determining a target camera from at least one candidate camera according to the distance information; and switching the current camera to a target camera for shooting. According to the scheme, based on the distance of the shot object, when the current camera is fuzzy in imaging, the camera is switched to other cameras in the terminal to shoot so as to obtain clear pictures, and the imaging quality of the camera in the terminal is improved.

Description

Shooting method, shooting device, storage medium and terminal
Technical Field
The present application relates to the field of terminal technologies, and in particular, to a shooting method, an apparatus, a storage medium, and a terminal.
Background
With the development of the internet and the mobile communication network, and with the rapid development of the processing capability and the storage capability of the terminal, more and more functional devices are applied to the terminal.
At present, the situation that a camera is carried on a terminal to obtain pictures is more and more. Due to space limitations inside the terminal, most cameras are fixed-focus lenses with fixed focal lengths. The field depth range of the fixed-focus lens is certain, and the fixed-focus lens is only suitable for photographing at a certain distance. For example, if a certain lens has a sharp imaging distance of 35cm to infinity, a picture taken by the lens is blurred when the distance from the subject is less than 35 cm. For most non-professional users, the problem of focus is easily ignored when taking pictures by using the lens, thereby resulting in poor imaging quality of the pictures obtained by taking the pictures.
Disclosure of Invention
The embodiment of the application provides a shooting method, a shooting device, a storage medium and a terminal, which can improve the imaging quality of a camera in the terminal.
In a first aspect, an embodiment of the present application provides a shooting method, which is applied to a terminal, where the terminal includes multiple cameras, and the method includes:
when shooting is carried out through a current camera, obtaining distance information between the current camera and a shot object;
acquiring camera parameters of the current camera;
judging whether the distance information meets a preset condition or not based on the camera parameters;
if not, determining a target camera from at least one candidate camera according to the distance information, wherein the candidate camera is other cameras except the current camera in the multiple cameras;
and switching the current camera to the target camera for shooting.
In a second aspect, an embodiment of the present application provides a shooting device, which is applied to a terminal, where the terminal includes multiple cameras, and the device includes:
the first acquisition unit is used for acquiring distance information between the first acquisition unit and a shot object when shooting is carried out through a current camera;
the second acquisition unit is used for acquiring the camera parameters of the current camera;
a judging unit configured to judge whether the distance information satisfies a preset condition based on the camera parameter;
the determining unit is used for determining a target camera from at least one candidate camera according to the distance information when the judging module judges that the target camera is not the current camera, wherein the candidate camera is the other cameras except the current camera in the plurality of cameras;
and the switching unit is used for switching the current camera to the target camera for shooting.
In a third aspect, an embodiment of the present application further provides a computer-readable storage medium, where a plurality of instructions are stored, and the instructions are adapted to be loaded by a processor to execute the shooting method described above.
In a fourth aspect, an embodiment of the present application further provides a terminal, including a processor and a memory, where the processor is electrically connected to the memory, and the memory is used to store instructions and data; the processor is used for executing the shooting method.
In the implementation of the application, when the terminal shoots through the current camera, the distance information between the terminal and the shot object is acquired, and then whether the distance information meets the preset condition or not is judged based on the camera parameter of the current camera. If not, determining a target camera from at least one candidate camera according to the distance information, and switching the current camera to the target camera for shooting. According to the scheme, based on the distance of the shot object, when the current camera is fuzzy in imaging, the camera is switched to other cameras in the terminal to shoot so as to obtain clear pictures, and the imaging quality of the camera in the terminal is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a shooting method according to an embodiment of the present disclosure.
Fig. 2 is another schematic flow chart of the shooting method provided in the embodiment of the present application.
Fig. 3 is a schematic view of an application scenario of the shooting method provided in the embodiment of the present application.
Fig. 4 is a schematic structural diagram of a shooting device provided in an embodiment of the present application.
Fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Fig. 6 is another schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application provides a shooting method, a shooting device, a storage medium and a terminal. The details will be described below separately.
In an embodiment, a shooting method is provided and applied to terminal devices such as smart phones, tablet computers, and notebook computers. The terminal equipment comprises a plurality of cameras. The camera 407 may be a front camera or a rear camera, so as to acquire image information of a subject. The multiple cameras may be fixed-focus cameras and/or zoom cameras with different camera parameters (such as focal length parameters). Referring to fig. 1, a specific flow of the photographing method may be as follows:
101. when shooting is carried out through the current camera, distance information between the camera and a shot object is acquired.
The terminal may include a ranging sensor. When the terminal acquires the distance information between the terminal and the shot object, the distance between the terminal and the shot object can be detected through the distance measuring sensor, and the data detected by the distance measuring sensor can be analyzed in real time to obtain the distance information.
Wherein the ranging sensor may include a variety of types. For example, the distance measuring sensor may be a laser distance measuring sensor, an infrared distance measuring sensor, an ultrasonic distance measuring sensor, or the like. In the present embodiment, the distance measuring sensor is preferably a laser distance measuring sensor.
102. And acquiring the camera parameters of the current camera.
Wherein, the current camera can be a fixed focus camera. The camera parameters may include model, aperture parameters, focal length parameters, light sensitivity parameters, shutter parameters, and the like. The camera parameters may be pre-stored locally in the terminal or in the cloud server.
103. Judging whether the distance information meets a preset condition or not based on the camera parameters; if so, the process ends, otherwise, go to step 104.
Specifically, the characteristics of the current camera may be determined based on the camera parameters, and it is determined whether the camera satisfies the shooting requirement in a scene where the distance from the object is the distance information based on the characteristics of the camera.
In this embodiment, the manner of determining whether the camera satisfies the shooting requirement may be various. For example, the shooting requirement may be that the object is imaged clearly on the imaging surface of the camera. That is, in the current scene, it is determined whether the distance information satisfies the requirement for clear imaging. Referring to fig. 2, in some embodiments, the step of "determining whether the distance information satisfies the preset condition based on the camera parameter" may include the following processes:
1031. acquiring the depth of field information of the current camera according to the camera parameters;
1032. and judging whether the distance information meets a preset condition or not based on the depth of field information.
Specifically, the focal length parameter may be extracted from the camera parameter, and the depth of field information of the camera may be calculated according to the focal length parameter. Wherein the depth information may include: the range of the front and back distances of the subject measured by imaging that can take a sharp image at the front edge of the camera lens or other imager.
Then, a comparison determination is made based on the calculated depth of field information and the distance information to determine whether the distance information satisfies a preset condition.
In some embodiments, the distance information comprises a first distance value and the depth information comprises a first distance range. When it is determined whether the distance information satisfies a preset condition based on the depth of field information, it may be determined whether the first distance value is within a first distance range; if so, judging that the distance information meets a preset condition; if not, judging that the distance information does not meet the preset condition.
In practical application, if the first distance is within the first distance range, it indicates that the current shot object can obtain imaging of a clear image; if the first distance is out of the first distance range, the imaging of the current shot object cannot be obtained. Therefore, whether the current distance information meets the preset condition of clear imaging or not can be judged.
For example, referring to fig. 3, L1 is the distance between the subject and the lens (i.e., the first distance), L2 is the distance between the near point of the depth of field range and the lens, and L3 is the distance between the far point of the depth of field range and the lens. When L1 (i.e., the first distance) is located between L2 and L3 (i.e., the first distance range), the subject can be clearly imaged on the imaging surface of the camera. Based on the distance information, whether the current distance information meets the preset condition that the shot object can clearly form images on the camera can be judged.
104. And determining a target camera from at least one candidate camera according to the distance information, wherein the candidate camera is the other cameras except the current camera in the plurality of cameras.
It should be noted that the camera parameters of the target camera are different from the camera parameters (at least including the focal length parameters) of the current camera, and the light incident surface of the target camera and the light incident surface of the current camera are located on the same side. The candidate camera may be a camera whose focal length is not adjustable (such as a fixed-focus wide-angle camera), or may be a camera whose focal length is adjustable.
With continued reference to fig. 2, in some embodiments, the step "determining a target camera from at least one candidate camera based on distance information" may include the following process:
1041. acquiring camera parameters of each candidate camera to obtain a first candidate camera parameter set;
1042. determining candidate camera parameters meeting preset conditions from the first candidate camera parameter set based on the distance information to obtain a second candidate camera parameter set;
1043. a target camera is determined from the at least one candidate camera based on the second set of candidate camera parameters.
Specifically, under the condition that the distance between the shot object and the terminal is the distance information is screened from one or more first candidate cameras, the first candidate cameras which can enable the shot object to clearly image on the imaging surface can be obtained. In specific implementation, whether the distance information meets the condition that the shot object can clearly image on the corresponding camera or not can be judged, and whether the shot object can clearly image or not can be judged based on the distance information and the camera parameters. Thereby determining a second set of candidate camera parameters from the first set of candidate camera parameters.
Then, the required target camera can be selected from the candidate cameras corresponding to the second candidate camera parameter set based on the actual requirement. In practical application, if only one candidate camera parameter is included in the second candidate camera parameter set, the camera corresponding to the candidate camera parameter is directly used as the target camera.
And if the second candidate camera parameter set comprises a plurality of candidate camera parameters, enabling the candidate camera corresponding to the camera parameter with the highest imaging definition degree to serve as the target camera. That is, in some embodiments, the step of "determining a target camera from among the at least one candidate camera based on the second set of candidate camera parameters" may include the following process:
(21) sorting the candidate camera parameters in the second candidate parameter set based on the distance information to obtain a sorting result;
(22) and determining a target camera from at least one candidate camera based on the sorting result.
Specifically, the ranking result may be obtained based on the corresponding imaging sharpness of different candidate camera parameters in the scene of the distance information. That is, in a scene where the distance between the camera and the object to be photographed is the distance information, the corresponding imaging sharpness may be respectively calculated according to different candidate camera parameters, and then the ranking result is generated according to the imaging sharpness. Wherein the ranking result may include a ranking of the candidate cameras.
In some embodiments, the distance information may include a second distance value, and the candidate camera parameters include a second distance range corresponding to the depth of field region. Then, the step "rank the candidate camera parameters in the second candidate parameter set based on the distance information to obtain a rank result" may include the following steps:
(211) obtaining a central distance value of each second distance range to obtain at least one central distance value;
(212) obtaining a difference value between a second distance value and the central distance value;
(213) and sequencing at least one center distance value according to the difference value to obtain a sequencing result.
The second distance value may be equal to the first distance value, and the second distance range may be equal to the first distance range. Specifically, a central value (i.e., a central distance value) of the second distance range is determined, and the central value is a position distance at which the subject is most clearly imaged on the camera. Therefore, the object distance (i.e., the distance between the camera and the subject) at which each camera images the clearest, i.e., the center distance value of the second distance range, can be obtained. Then, the center distance value corresponding to each camera is compared with the second distance value, and the closer the two values are, the smaller the difference is, and the clearer the imaging of the object in the camera is. Thus, the resulting center distance values may be sorted based on the results of the comparison or the calculated difference values.
105. And switching the current camera to a target camera for shooting.
Specifically, after the target camera is determined, the current camera is stopped to be called, and the target camera is started to shoot. In specific implementation, the power supply to the current camera can be stopped to stop the current camera from acquiring the picture, and the target camera is powered on through the driving circuit to drive the target camera to execute the picture acquisition operation. Therefore, when the current camera does not meet the shooting condition corresponding to the shot object, the shooting of the shot object is switched to be carried out by other cameras, and the image shooting efficiency is improved.
As can be seen from the above, in the shooting method provided in this embodiment, when the terminal shoots through the current camera, the distance information between the terminal and the object to be shot and the terminal is obtained, and then, based on the camera parameter of the current camera, whether the distance information meets the preset condition is determined. If not, determining a target camera from at least one candidate camera according to the distance information, and switching the current camera to the target camera for shooting. According to the scheme, based on the distance of the shot object, when the current camera forms images in a fuzzy mode, the camera is switched to other cameras in the terminal to shoot so as to obtain clear pictures, the imaging quality of the camera in the terminal is improved, and the shooting efficiency is guaranteed.
In another embodiment of the present application, a camera may be integrated in a terminal in a form of software or hardware, where the terminal may specifically include a mobile phone, a tablet computer, a notebook computer, and the like. As shown in fig. 4, the photographing apparatus 300 may include: a first acquisition unit 301, a second acquisition unit 302, a judgment unit 303, a determination unit 304, and a switching unit 305, wherein:
a first acquisition unit 301 configured to acquire distance information with respect to a subject when shooting with a current camera;
a second obtaining unit 302, configured to obtain a camera parameter of the current camera;
a judging unit 303, configured to judge whether the distance information satisfies a preset condition based on the camera parameter;
a determining unit 304, configured to determine, when the determining module determines that the target camera is not the target camera, a target camera from at least one candidate camera according to the distance information, where the candidate camera is another camera of the multiple cameras except the current camera;
a switching unit 305, configured to switch the current camera to the target camera for shooting.
In some embodiments, the determining unit 303 may include:
the depth of field acquisition subunit is used for acquiring depth of field information of the current camera according to the camera parameters;
and the judging subunit is used for judging whether the distance information meets a preset condition or not based on the depth information.
In some embodiments, the distance information comprises a first distance value and the depth information comprises a first distance range. The determining subunit may be specifically configured to:
judging whether the first distance value is within the first distance range;
if so, judging that the distance information meets a preset condition;
if not, judging that the distance information does not meet the preset condition.
In some embodiments, the determining unit 304 may include:
the parameter acquisition subunit is used for acquiring the camera parameters of each candidate camera to obtain a first candidate camera parameter set;
a first determining subunit, configured to determine, from the first candidate camera parameter set based on the distance information, a candidate camera parameter that meets the preset condition, to obtain a second candidate camera parameter set;
a second determining subunit for determining the target camera from the at least one candidate camera based on the second set of candidate camera parameters.
In some embodiments, the second determining subunit may be to:
based on the distance information, sorting candidate camera parameters in the second candidate parameter set to obtain a sorting result;
and determining a target camera from at least one candidate camera based on the sorting result.
In some embodiments, the distance information includes a second distance value, and the candidate camera parameters include a second distance range corresponding to a depth of field region. The second determining subunit may be further configured to:
obtaining a central distance value of each second distance range to obtain at least one central distance value;
obtaining a difference value between the second distance value and the center distance value;
and sequencing the at least one center distance value according to the difference value to obtain a sequencing result.
In some embodiments, the terminal may also include a ranging sensor. The first obtaining module may specifically obtain distance information between the first obtaining module and the object through the ranging sensor.
Therefore, the shooting device provided by the embodiment of the application acquires the distance information between the shooting device and the terminal when shooting through the current camera, and then judges whether the distance information meets the preset condition or not based on the camera parameter of the current camera. If not, determining a target camera from at least one candidate camera according to the distance information, and switching the current camera to the target camera for shooting. According to the scheme, based on the distance of the shot object, when the current camera forms images in a fuzzy mode, the camera is switched to other cameras in the terminal to shoot so as to obtain clear pictures, the imaging quality of the camera in the terminal is improved, and the shooting efficiency of the pictures is guaranteed.
In another embodiment of the present application, a terminal is further provided, where the terminal may be a terminal device such as a smart phone and a tablet computer. As shown in fig. 5, the terminal 400 includes a processor 401, a memory 402, and a camera 407. The processor 401 is electrically connected to the memory 402.
The processor 401 is a control center of the terminal 400, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by running or loading an application stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the terminal.
In this embodiment, the processor 401 in the terminal 400 loads instructions corresponding to one or more application processes into the memory 402 according to the following steps, and the processor 401 runs the application stored in the memory 402, thereby implementing various functions:
when shooting is carried out through a current camera, obtaining distance information between the current camera and a shot object;
acquiring camera parameters of the current camera;
judging whether the distance information meets a preset condition or not based on the camera parameters;
if not, determining a target camera from at least one candidate camera according to the distance information, wherein the candidate camera is other cameras except the current camera in the multiple cameras;
and switching the current camera to the target camera for shooting.
In some embodiments, when determining whether the distance information satisfies a preset condition based on the camera parameter, the processor 401 may perform the following operations:
acquiring the depth of field information of the current camera according to the camera parameters;
and judging whether the distance information meets a preset condition or not based on the depth of field information.
In some embodiments, the distance information comprises a first distance value and the depth information comprises a first distance range. When determining whether the distance information satisfies a preset condition based on the depth information, the processor 401 may perform the following operations:
judging whether the first distance value is within the first distance range;
if so, judging that the distance information meets a preset condition;
if not, judging that the distance information does not meet the preset condition.
In some embodiments, in determining a target camera from the at least one candidate camera according to the distance information, processor 401 may perform the following operations:
acquiring camera parameters of each candidate camera to obtain a first candidate camera parameter set;
determining candidate camera parameters meeting the preset condition from the first candidate camera parameter set based on the distance information to obtain a second candidate camera parameter set;
a target camera is determined from the at least one candidate camera based on the second set of candidate camera parameters.
In some embodiments, when determining the target camera from the at least one candidate camera based on the second set of candidate camera parameters, the processor 401 may perform the following operations:
based on the distance information, sorting candidate camera parameters in the second candidate parameter set to obtain a sorting result;
and determining a target camera from at least one candidate camera based on the sorting result.
In some embodiments, the distance information includes a second distance value, and the candidate camera parameters include a second distance range corresponding to a depth of field region. When ranking the candidate camera parameters in the second candidate parameter set based on the distance information to obtain a ranking result, the processor 401 may perform the following operations:
obtaining a central distance value of each second distance range to obtain at least one central distance value;
obtaining a difference value between the second distance value and the center distance value;
and sequencing the at least one center distance value according to the difference value to obtain a sequencing result.
In some embodiments, the terminal further comprises a ranging sensor. In acquiring the distance information between the subject and the terminal, the processor 401 may execute to acquire the distance information with the subject by the ranging sensor.
The memory 402 may be used to store applications and data. The memory 402 stores applications containing instructions executable in the processor. Applications may constitute various functional modules. The processor 401 executes various functional applications and data processing by running applications stored in the memory 402.
The camera 407 may be used to collect image information. In this embodiment, the terminal 400 may include a plurality of cameras 407. The camera 407 may be a front camera or a rear camera, so as to acquire image information of a subject. The plurality of cameras 407 may be fixed focus cameras and/or zoom cameras with different focal length parameters.
In some embodiments, as shown in fig. 6, the terminal 400 further includes: display 403, control circuit 404, radio frequency circuit 405, input unit 406, sensor 408, and power supply 409. The processor 401 is electrically connected to the display 403, the control circuit 404, the rf circuit 405, the input unit 406, the sensor 408, and the power source 409.
The display screen 403 may be used to display information input by or provided to the user as well as various graphical user interfaces of the terminal, which may be constituted by images, text, icons, video, and any combination thereof.
The control circuit 404 is electrically connected to the display 403, and is configured to control the display 403 to display information.
The rf circuit 405 is configured to transmit and receive rf signals, so as to establish wireless communication with a network device or other terminals through wireless communication, and transmit and receive signals with the network device or other terminals.
The input unit 406 may be used to receive input numbers, character information, or user characteristic information (e.g., fingerprint), and to generate keyboard, mouse, joystick, optical, or trackball signal inputs related to user settings and function control. The input unit 406 may include a fingerprint recognition module.
The sensor 408 is used to collect external environmental information. The sensors 408 may include ambient light sensors, acceleration sensors, light sensors, motion sensors, ranging sensors (e.g., laser ranging sensors, ultrasonic ranging sensors), and other sensing devices.
The power supply 409 is used to power the various components of the terminal 400. In some embodiments, the power source 409 may be logically connected to the processor 401 through a power management system, so that functions of managing charging, discharging, and power consumption are implemented through the power management system.
Although not shown in fig. 6, the terminal 400 may further include a speaker, a bluetooth module, and the like, which will not be described in detail herein.
Therefore, the terminal provided by the embodiment of the application acquires the distance information between the terminal and the object to be shot when shooting is performed by the current camera, and then judges whether the distance information meets the preset condition or not based on the camera parameter of the current camera. If not, determining a target camera from at least one candidate camera according to the distance information, and switching the current camera to the target camera for shooting. According to the scheme, based on the distance of the shot object, when the current camera is fuzzy in imaging, the camera is switched to other cameras in the terminal to shoot so as to obtain clear pictures, and the imaging quality of the camera in the terminal is improved.
In some embodiments, a computer-readable storage medium is also provided, having stored therein a plurality of instructions adapted to be loaded by a processor to perform any of the above-described photographing methods.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
The shooting method, the shooting device, the storage medium and the terminal provided by the embodiment of the application are described in detail, a specific example is applied in the description to explain the principle and the implementation of the application, and the description of the embodiment is only used for helping to understand the method and the core idea of the application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A shooting method is applied to a terminal, and is characterized in that the terminal comprises a plurality of cameras, and the method comprises the following steps:
when shooting is carried out through a current camera, obtaining distance information between the current camera and a shot object;
acquiring camera parameters of the current camera;
judging whether the distance information meets a preset condition or not based on the camera parameters;
if not, determining a target camera from at least one candidate camera according to the distance information, wherein the candidate camera is other cameras except the current camera in the multiple cameras;
and switching the current camera to the target camera for shooting.
2. The shooting method according to claim 1, wherein the determining whether the distance information satisfies a preset condition based on the camera parameter includes:
acquiring the depth of field information of the current camera according to the camera parameters;
and judging whether the distance information meets a preset condition or not based on the depth of field information.
3. The photographing method according to claim 2, wherein the distance information includes a first distance value, and the depth information includes a first distance range;
the determining whether the distance information satisfies a preset condition based on the depth of field information includes:
judging whether the first distance value is within the first distance range;
if so, judging that the distance information meets a preset condition;
if not, judging that the distance information does not meet the preset condition.
4. The shooting method according to claim 1, wherein the determining a target camera from at least one candidate camera according to the distance information comprises:
acquiring camera parameters of each candidate camera to obtain a first candidate camera parameter set;
determining candidate camera parameters meeting the preset condition from the first candidate camera parameter set based on the distance information to obtain a second candidate camera parameter set;
a target camera is determined from the at least one candidate camera based on the second set of candidate camera parameters.
5. The capture method of claim 4, wherein determining the target camera from the at least one candidate camera based on the second set of candidate camera parameters comprises:
based on the distance information, sorting candidate camera parameters in the second candidate parameter set to obtain a sorting result;
and determining a target camera from at least one candidate camera based on the sorting result.
6. The shooting method according to claim 5, wherein the distance information includes a second distance value, and the candidate camera parameters include a second distance range corresponding to a depth area;
the ranking the candidate camera parameters in the second candidate parameter set based on the distance information to obtain a ranking result, including:
obtaining a central distance value of each second distance range to obtain at least one central distance value;
obtaining a difference value between the second distance value and the center distance value;
and sequencing the at least one center distance value according to the difference value to obtain a sequencing result.
7. The photographing method according to any one of claims 1 to 6, wherein the terminal further includes a ranging sensor; the acquiring of the distance information between the object and the terminal includes:
and acquiring distance information between the distance sensor and the shot object.
8. A shooting device is applied to a terminal and is characterized in that the terminal comprises a plurality of cameras, and the device comprises:
the first acquisition unit is used for acquiring distance information between the first acquisition unit and a shot object when shooting is carried out through a current camera;
the second acquisition unit is used for acquiring the camera parameters of the current camera;
a judging unit configured to judge whether the distance information satisfies a preset condition based on the camera parameter;
the determining unit is used for determining a target camera from at least one candidate camera according to the distance information when the judging module judges that the target camera is not the current camera, wherein the candidate camera is the other cameras except the current camera in the plurality of cameras;
and the switching unit is used for switching the current camera to the target camera for shooting.
9. A computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor to perform the photographing method according to any one of claims 1 to 7.
10. A terminal is characterized by comprising a processor and a memory, wherein the processor is electrically connected with the memory, and the memory is used for storing instructions and data; the processor is configured to execute the photographing method of any one of claims 1 to 7.
CN201910903949.5A 2019-09-24 2019-09-24 Shooting method, shooting device, storage medium and terminal Active CN110677580B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910903949.5A CN110677580B (en) 2019-09-24 2019-09-24 Shooting method, shooting device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910903949.5A CN110677580B (en) 2019-09-24 2019-09-24 Shooting method, shooting device, storage medium and terminal

Publications (2)

Publication Number Publication Date
CN110677580A true CN110677580A (en) 2020-01-10
CN110677580B CN110677580B (en) 2021-09-28

Family

ID=69078533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910903949.5A Active CN110677580B (en) 2019-09-24 2019-09-24 Shooting method, shooting device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110677580B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113079369A (en) * 2021-03-30 2021-07-06 浙江大华技术股份有限公司 Method and device for determining image pickup equipment, storage medium and electronic device
CN113852795A (en) * 2021-11-29 2021-12-28 新石器慧通(北京)科技有限公司 Video picture adjusting method and device, electronic equipment and storage medium
CN113873146A (en) * 2021-09-10 2021-12-31 维沃移动通信(杭州)有限公司 Shooting method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363379A (en) * 2014-11-28 2015-02-18 广东欧珀移动通信有限公司 Shooting method by use of cameras with different focal lengths and terminal
CN106506957A (en) * 2016-11-17 2017-03-15 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN106990646A (en) * 2016-01-20 2017-07-28 深圳富泰宏精密工业有限公司 Many lens systems, its method of work and portable electron device
US20170324899A1 (en) * 2016-05-09 2017-11-09 Sony Interactive Entertainment Inc. Image pickup apparatus, head-mounted display apparatus, information processing system and information processing method
CN110248081A (en) * 2018-10-12 2019-09-17 华为技术有限公司 Image capture method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363379A (en) * 2014-11-28 2015-02-18 广东欧珀移动通信有限公司 Shooting method by use of cameras with different focal lengths and terminal
CN106990646A (en) * 2016-01-20 2017-07-28 深圳富泰宏精密工业有限公司 Many lens systems, its method of work and portable electron device
US20170324899A1 (en) * 2016-05-09 2017-11-09 Sony Interactive Entertainment Inc. Image pickup apparatus, head-mounted display apparatus, information processing system and information processing method
CN106506957A (en) * 2016-11-17 2017-03-15 维沃移动通信有限公司 A kind of photographic method and mobile terminal
CN110248081A (en) * 2018-10-12 2019-09-17 华为技术有限公司 Image capture method and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113079369A (en) * 2021-03-30 2021-07-06 浙江大华技术股份有限公司 Method and device for determining image pickup equipment, storage medium and electronic device
CN113873146A (en) * 2021-09-10 2021-12-31 维沃移动通信(杭州)有限公司 Shooting method and device and electronic equipment
CN113852795A (en) * 2021-11-29 2021-12-28 新石器慧通(北京)科技有限公司 Video picture adjusting method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110677580B (en) 2021-09-28

Similar Documents

Publication Publication Date Title
KR102598109B1 (en) Electronic device and method for providing notification relative to image displayed via display and image stored in memory based on image analysis
CN108886582B (en) Image pickup apparatus and focus control method
US20210374447A1 (en) Method and device for processing image, electronic equipment, and storage medium
CN110677580B (en) Shooting method, shooting device, storage medium and terminal
CN107395957B (en) Photographing method and device, storage medium and electronic equipment
CN109639896A (en) Block object detecting method, device, storage medium and mobile terminal
CN110661970B (en) Photographing method and device, storage medium and electronic equipment
EP3062513B1 (en) Video apparatus and photography method thereof
CN107360366B (en) Photographing method and device, storage medium and electronic equipment
KR20200101741A (en) An electronic dievice applying bokeh effect to image and controlling method thereof
CN103945109A (en) Image pickup apparatus, remote control apparatus, and methods of controlling image pickup apparatus and remote control apparatus
CN105635614A (en) Recording and photographing method, device and terminal electronic equipment
CN103402058A (en) Shot image processing method and device
CN105391940A (en) Image recommendation method and apparatus
CN112352417B (en) Focusing method of shooting device, system and storage medium
CN108259767B (en) Image processing method, image processing device, storage medium and electronic equipment
CN113866782A (en) Image processing method and device and electronic equipment
CN107180417B (en) Photo processing method and device, computer readable storage medium and electronic equipment
CN109218620B (en) Photographing method and device based on ambient brightness, storage medium and mobile terminal
US10154196B2 (en) Adjusting length of living images
CN108495038B (en) Image processing method, image processing device, storage medium and electronic equipment
CN112653841B (en) Shooting method and device and electronic equipment
CN112468722B (en) Shooting method, device, equipment and storage medium
CN112887606B (en) Shooting method and device and electronic equipment
CN113709353B (en) Image acquisition method and device

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