CN110602409A - Photographing method and device, electronic equipment and storage medium - Google Patents

Photographing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110602409A
CN110602409A CN201911011114.5A CN201911011114A CN110602409A CN 110602409 A CN110602409 A CN 110602409A CN 201911011114 A CN201911011114 A CN 201911011114A CN 110602409 A CN110602409 A CN 110602409A
Authority
CN
China
Prior art keywords
lens
preview
focusing
shooting
distance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911011114.5A
Other languages
Chinese (zh)
Other versions
CN110602409B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911011114.5A priority Critical patent/CN110602409B/en
Publication of CN110602409A publication Critical patent/CN110602409A/en
Application granted granted Critical
Publication of CN110602409B publication Critical patent/CN110602409B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Landscapes

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

Abstract

The invention discloses a photographing method, a photographing device, electronic equipment and a storage medium. The method comprises the following steps: displaying a first preview picture imaged by a first lens of the electronic equipment in a preview window; superposing a display mark on the first preview picture; when the first position is superposed with the set position, displaying a second preview picture imaged by using the second lens in the preview window; the shooting target positioned at the set position in the first preview picture is positioned in a first area in the second preview picture; a first closest focus distance of the first lens is greater than a second closest focus distance of the second lens; focusing the shooting target through a second lens of the electronic equipment by using a second preview picture and finishing shooting; wherein the focus of the second preview screen is located in the first area; the first closest focus distance of the first lens is greater than the second closest focus distance of the second lens.

Description

Photographing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of photographing technologies, and in particular, to a photographing method, an electronic device, and a storage medium.
Background
At present, electronic equipment such as a mobile phone and the like has a macro-shooting function, and can shoot tiny objects at a short distance. Because the field angle and the object distance of the macro lens are very small during shooting, the focusing difficulty in the shooting process is increased.
Disclosure of Invention
In view of this, embodiments of the present invention provide a photographing method, a photographing apparatus, an electronic device, and a storage medium, so as to at least solve the problem of a large focusing difficulty in a photographing process of a macro lens in the related art.
The technical scheme of the embodiment of the invention is realized as follows:
the embodiment of the invention provides a photographing method, which is applied to electronic equipment and comprises the following steps:
displaying a first preview picture imaged by a first lens of the electronic equipment in a preview window;
superposing a display mark on the first preview picture; the mark is fixedly displayed at the set position of the preview window and used for indicating to move the electronic equipment until the first position of the shooting target in the first preview picture is superposed with the set position;
when the first position is superposed with the set position, displaying a second preview picture imaged by using the second lens in the preview window; the shooting target positioned at the set position in the first preview picture is positioned in a first area in the second preview picture; a first closest focus distance of the first lens is greater than a second closest focus distance of the second lens;
focusing the shooting target through a second lens of the electronic equipment by using a second preview picture and finishing shooting; wherein an in-focus point of the second preview screen is located in the first area.
In the above solution, before displaying a first preview screen imaged by a first lens of the electronic device in a preview window, the method further includes:
focusing and shooting by using the second lens to obtain a first image; the focusing distance corresponding to the first image is smaller than the first closest focusing distance;
determining the first area in the first image and determining image content in the first area; focusing and shooting by using the first lens to obtain a second image containing the image content;
determining a position of the image content in the second image in the preview window as the set position.
In the foregoing solution, the obtaining a second image including the image content by focusing and shooting through the first lens includes:
focusing and shooting at a first focusing distance by using the first lens to obtain the second image; the first focus distance is less than the second focus distance; the second focus distance is greater than the first closest focus distance.
In the above scheme, the method further comprises:
when the focusing distance of the first lens is smaller than the second focusing distance, outputting first prompt information; the first prompt information is used for indicating that the first lens is used for focusing and shooting.
In the foregoing solution, the obtaining a first image by focusing and shooting through the second lens includes:
and focusing and shooting the object with scales by using the second lens to obtain the first image.
In the foregoing solution, the overlaying a display mark on a first preview screen includes:
determining a third focusing distance of the first lens corresponding to the first preview picture;
determining a set position corresponding to the third focusing distance;
and displaying the mark on the first preview picture in an overlapping manner according to the set position corresponding to the third focusing distance.
In the above scheme, while displaying the mark, the method further includes:
detecting the moving direction of the electronic equipment to obtain a detection result; outputting second prompt information according to the detection result; the second prompt message is used for indicating that the electronic equipment keeps moving on a first plane; the first plane is parallel to a second plane where the first lens is located.
The embodiment of the invention also provides a photographing device, which is applied to electronic equipment, and the device comprises:
a first display unit configured to display a first preview screen imaged by a first lens of the electronic device in a preview window;
a second display unit configured to superimpose a display mark on the first preview screen; the mark is fixedly displayed at the set position of the preview window and used for indicating to move the electronic equipment until the first position of the shooting target in the first preview picture is superposed with the set position;
a third display unit, configured to display a second preview screen imaged by using the second lens in the preview window after the first position coincides with the set position; the shooting target positioned at the set position in the first preview picture is positioned in a first area in the second preview picture; a first closest focus distance of the first lens is greater than a second closest focus distance of the second lens;
the shooting unit is used for focusing the shooting target through a second lens of the electronic equipment by utilizing a second preview picture and finishing shooting; wherein an in-focus point of the second preview screen is located in the first area.
An embodiment of the present invention further provides an electronic device, including: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is configured to perform the steps of any of the above methods when running the computer program.
An embodiment of the present invention further provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any one of the above methods.
In the embodiment of the invention, the mode of switching the lenses with different closest focusing distances is adopted, the lens with the larger closest focusing distance is firstly utilized to carry out coarse focusing on the shooting target, and then the lens with the smaller closest focusing distance is utilized to carry out fine focusing on the shooting target, so that the focusing range is gradually reduced, the focusing difficulty is reduced, and the efficiency of the shooting operation is improved.
Drawings
Fig. 1 is a schematic view of an implementation flow of a photographing method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a positional relationship between at least two lenses disposed on a housing of an electronic device according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a mobile electronic device provided by an embodiment of the present invention until a first position coincides with a set position;
fig. 4 is a schematic view of a flowchart of a photographing method according to another embodiment of the present invention;
fig. 5 is a schematic view of a flowchart of a photographing method according to another embodiment of the present invention;
fig. 6 is a schematic diagram of screen contents of a first preview screen and a second preview screen according to an embodiment of the present invention;
fig. 7 is a schematic view of an implementation flow of setting position calibration in the photographing method according to the embodiment of the present invention;
FIG. 8 is a schematic view of a scale according to an embodiment of the present invention;
fig. 9 is a schematic view of a flow chart for implementing position calibration setting of a photographing method according to another embodiment of the present invention;
fig. 10 is a schematic diagram of a picture taken by a main camera lens according to an embodiment of the present invention;
FIG. 11 is a diagram illustrating a setting position in a preview window according to an embodiment of the present invention;
fig. 12 is a schematic structural diagram of a photographing apparatus according to an embodiment of the present invention;
fig. 13 is a schematic diagram of a hardware component structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
The technical means described in the embodiments of the present invention may be arbitrarily combined without conflict.
In addition, in the present examples, "first", "second", and the like are used for distinguishing similar objects, and are not necessarily used for describing a particular order or sequence.
As described above, when a macro lens is used to shoot a tiny object, since the field angle and the object distance of the macro lens during shooting are both small, especially for a macro lens, the corresponding object distance is substantially in the range of 0.5cm to 1cm, thereby increasing the focusing difficulty during shooting. Here, focusing includes a case where a subject is imaged clearly in an image, and also includes a case where the subject is located at the center of the image, that is, aligned. In the related art, taking an example of using an electronic device to shoot a tiny spot on a butterfly wing, a mirror surface of a macro lens is almost photographed by attaching the butterfly wing, in order to achieve accurate focusing under the condition of a very small object distance, the lens is usually required to be observed from the side surface of the electronic device through human eyes, the lens is slowly moved so that the lens can be aligned with the spot, and then the alignment effect is observed through a screen of the electronic device.
Based on this, in various embodiments of the present invention, a manner of switching lenses with different closest focusing distances is adopted, a first lens with a larger closest focusing distance is used to perform coarse focusing on a shooting target, and a second lens with a smaller closest focusing distance is used to perform fine focusing on the shooting target, so that a focusing range is gradually reduced, focusing difficulty is reduced, and photographing operation efficiency is improved.
Fig. 1 shows an implementation flow of a photographing method provided in an embodiment of the present invention, and in the embodiment of the present invention, an execution subject of the photographing method may be an electronic device such as a mobile phone, a tablet, a camera, and the like.
Referring to fig. 1, a photographing method provided in an embodiment of the present invention includes:
s101: and displaying a first preview picture imaged by using a first lens of the electronic equipment in a preview window.
In the embodiment of the present invention, the electronic device is at least provided with a first lens and a second lens, wherein a first closest focusing distance corresponding to the first lens is greater than a second closest focusing distance corresponding to the second lens. Here, the focus distance refers to a distance from a surface of a first lens of the lens to an object, where the first lens refers to a lens closest to the object in the lens, and the object is a subject. Each lens has a corresponding focusing distance range, and when a picture is taken, the focusing distance of the lens needs to be within the corresponding focusing distance range, and a shot object can clearly form an image. The close-up focusing distance, namely the shortest focusing distance at which the lens can successfully focus on a shot object, different types of lenses have different close-up focusing distances, and for a macro lens, the micro lens has a smaller close-up focusing distance than other types of lenses, and the close-up focusing distance of the macro lens is usually less than 3mm, so that close-up magnifying shooting of a tiny object is realized.
Generally, when at least two lenses are disposed on an electronic device, the two lenses are disposed in a certain positional relationship on a housing of the electronic device. For example, referring to fig. 2, a main camera lens 21 and a macro lens 22 are disposed on a mobile phone, and the two lenses are arranged side by side in a vertical direction of a back housing of the mobile phone, when an object distance to be photographed is small, as shown in fig. 2, different field angles exist between the main camera lens 21 and the macro lens 22, which causes different imaging ranges of the two lenses on the same object plane, and due to different positions of the two lenses, a photographed object is located at different positions in a picture imaged by the two lenses respectively.
Since the larger the closest focusing distance of the lens is, the larger the field angle is, that is, the more picture contents are presented in the preview image, in at least two lenses set on the electronic device, the first lens with the larger closest focusing distance is selected first, and the first preview picture imaged by using the lens is displayed, so as to implement the coarse focusing on the object to be photographed through the first preview picture, and place the object to be photographed in a coarse focus range corresponding to the second lens.
Here, a preview window is loaded on a display screen of the electronic device to display a picture imaged by a lens in the electronic device, and in an actual application, the preview window displays a preview picture imaged by the lens in real time.
S102: superposing a display mark on the first preview picture; the mark is fixedly displayed at the set position of the preview window and used for indicating to move the electronic equipment until the first position of the shooting target in the first preview picture is superposed with the set position.
And displaying the first preview picture in the preview window, and simultaneously superposing a display mark on the first preview picture. Here, the display position of the mark in the preview window is a set position that is related only to the focal distance at the time of the first lens imaging when the first preview screen imaged with the first lens is displayed in the preview window. That is, when the first preview screen imaged by using the first lens is displayed in the preview window in real time, in the process, if the first lens is displaced, the screen content of the first preview screen may be changed, but if the focus distance of the first lens is not changed in the displacement process, the display position marked in the preview window may not be changed.
Here, the mark displayed in the preview window is used as a position reference to instruct the mobile electronic device to change the first position of the photographic target in the first preview screen until the first position of the photographic target in the first preview screen coincides with the set position in the preview window where the mark is located.
The first position of the shooting target in the first preview screen coincides with the set position of the mark in the preview window, and it can be understood that the shooting target displayed in the preview window overlaps or partially overlaps with the mark at the set position of the preview window, for example, the mark is covered by the position area of the shooting target, the shooting target is covered by the position area of the mark, or the position area of the shooting target and the position area of the mark partially overlap. Fig. 3 is a schematic diagram illustrating the electronic device being moved until the first position coincides with the set position, and referring to fig. 3, the shooting target is the sphere 31 in fig. 3, the sphere 31 in the first preview screen is located at the middle position of the left portion of the first preview screen, the mark 32 is located at the middle position of the right portion of the preview window, the electronic device is moved leftward and in parallel based on the instruction of the mark 32, the position of the sphere 31 in the first preview screen is gradually moved rightward until the position area where the sphere 31 is located covers the mark 32, and at this time, the sphere 31 in the first preview screen is considered to coincide with the position of the mark 32.
In practical applications, the mark may be presented in a cross, star, etc. pattern, and may be rendered by a bright color system, such as a bright red, a bright green, a highlight yellow, etc., so as to serve as an obvious indication.
In one embodiment, as shown in fig. 4, when the mark is displayed in an overlapping manner on the first preview screen, the method further includes:
s105: and detecting the moving direction of the electronic equipment to obtain a detection result.
And when the mark is superposed and displayed on the first preview picture, in order to enable the first position corresponding to the shot target to coincide with the set position, the moving direction of the electronic equipment is detected in real time in the moving process of the electronic equipment through a gyroscope arranged in the electronic equipment, and the detection result is output in real time.
S106: outputting second prompt information according to the detection result; the second prompt message is used for indicating that the electronic equipment keeps moving on a first plane; the first plane is parallel to a second plane where the first lens is located.
When the focus distance of the first lens changes, the picture content of the first preview picture also changes, that is, different focus distances are corresponding to different setting positions, and in order to ensure that the setting positions can be kept fixed in the preview window in the process of moving the electronic device so that the first position corresponding to the object to be photographed coincides with the setting positions, the electronic device needs to be kept moving on a first plane, wherein the first plane is parallel to a second plane where the first lens is located, and thus, the focus distance of the first lens can be kept stable. In practical application, according to the detection result of the gyroscope, when the electronic equipment moves to the position above the first plane, second prompt information for indicating the electronic equipment to move to the position below the first plane is output; when the electronic equipment moves below the first plane, second prompt information used for indicating the electronic equipment to move above the first plane is output. By outputting the second prompt information, the position of the set position in the preview window can be kept unchanged, so that the focusing process is accelerated, and the photographing efficiency is improved.
In one embodiment, referring to fig. 5, the overlaying of the display mark on the first preview screen includes:
s1021: determining a third focus distance of the first lens corresponding to the first preview screen.
When the focus distance of the first lens changes, the image content of the first preview image also changes, that is, different focus distances are corresponding to different set positions, so that before the mark is superimposed and displayed, a third focus distance of the first lens is determined, and the third focus distance corresponds to the first preview image displayed in the current preview window.
S1022: and determining a set position corresponding to the third focusing distance.
S1023: and displaying the mark on the first preview picture in an overlapping manner according to the set position corresponding to the third focusing distance.
The set position in the preview window is determined according to the focusing distance of the first lens, so that the accuracy of rough focusing is ensured, and the smooth completion of focusing of the second lens can be ensured on the basis.
S103: when the first position is superposed with the set position, displaying a second preview picture imaged by using the second lens in the preview window; the shooting target located at the set position in the first preview picture is located in a first area in the second preview picture.
And when the first position of the shooting target in the first preview picture is overlapped with the set position of the mark in the preview window, the preview window switches the displayed preview picture, and the displayed preview picture is switched from the first preview picture to a second preview picture formed by the second lens. In practical application, the switching of the preview picture can be realized by issuing a switching instruction, for example, after a first position where a shooting target is located is overlapped with a set position, the user issues the switching instruction by clicking a switching button in a preview window, so that the switching of the preview picture is realized; for another example, the shooting target is determined in the first preview picture through the selection instruction, and after the first position where the shooting target is located is determined to be coincident with the set position through target tracking detection, the issuing of the switching instruction is triggered, so that the switching of the preview pictures is realized.
When the display is switched to the second preview picture, the position of the shooting target is changed from the set position in the first preview picture to one position in the first area in the second preview picture, wherein after the second lens focuses on the shooting target, the generated focusing point is positioned in the first area.
S104: and focusing the shooting target through a second lens of the electronic equipment by using a second preview picture and finishing shooting.
Because the closest focusing distance of the second lens is smaller than that of the first lens, when the photographed object distance is not changed and the preview window is switched to display the second preview picture, the photographing content in the first preview picture is zoomed in, and the photographing target is approximately positioned in the central area in the second preview picture, so that the second lens can focus the photographing target conveniently. On the basis, the shooting target is focused through the second lens, namely, the shooting target is finely focused, so that the focusing process can be smoothly completed, and the shooting is completed.
Fig. 6 is a schematic diagram showing screen contents of the first preview screen and the second preview screen, and based on the positional relationship between the main lens 21 and the macro lens 22 shown in fig. 2, when the subject is located at the center of the field of view of the macro lens 22, the subject is located to the right in the field of view of the main lens 21. Referring to fig. 6, the sphere 61 in the first preview screen is overlapped with the mark 62 and positioned at the middle position of the right portion of the first preview screen, and at this time, the display is switched from the first preview screen to the second preview screen, the sphere 61 is positioned at the middle portion of the second preview screen, and the area occupied by the sphere 61 in the second preview screen is increased, so that the focus shooting of the sphere 61 through the second lens can be smoothly realized.
Therefore, in the embodiment of the present invention, a mode of switching lenses with different closest focusing distances is adopted, the first lens with a larger closest focusing distance is used to perform coarse focusing on the shooting target, and the second lens with a smaller closest focusing distance is used to perform fine focusing on the shooting target, so as to gradually reduce the focusing range, reduce the focusing difficulty, and improve the efficiency of the shooting operation.
The following describes a calibration process of a set position by an embodiment, and referring to fig. 7, before a first preview screen imaged by using a first lens of the electronic device is displayed in a preview window, the method further includes:
s701: focusing and shooting by using the second lens to obtain a first image; the focus distance corresponding to the first image is smaller than the first closest focus distance.
First, a first image is obtained by focusing and shooting with a second lens, where a focusing distance when the second lens shoots the first image needs to be smaller than a first nearest focusing distance of the first lens, so as to ensure that there is a sufficient angular difference between a first image shot by the second lens and a second image shot by the first lens later.
S702: the first region is determined in the first image and the image content in the first region is determined.
Here, the first region is a region of the first image having the highest image sharpness, that is, a region representing a focus in the first image.
In one embodiment, the focusing and shooting with the second lens to obtain the first image includes:
focusing and shooting an object with a fine pattern by using the second lens; or, focusing and shooting the object with scales by using the second lens to obtain the first image.
Further, the first image may be obtained by focusing and photographing a scale as shown in fig. 8 using the second lens.
Here, the object with scale is shot in the first image, on one hand, the scale is considered to be marked with scale value usually, so that the first area is conveniently marked through the scale value, and on the other hand, the representation of the scale line on the image definition is considered to be very intuitive, so that the first area is conveniently, efficiently and accurately determined.
S703: and focusing and shooting by using the first lens to obtain a second image containing the image content.
In one embodiment, as shown in fig. 9, the focusing and capturing a second image containing the image content by using the first lens includes:
s7031: focusing and shooting at a first focusing distance by using the first lens to obtain the second image; the first focus distance is less than the second focus distance; the second focus distance is greater than the first closest focus distance.
Here, the second focusing distance is set and focus shooting is performed at a position smaller than the second focusing distance using the first lens to ensure that the difference between the first focusing distance and the first focusing distance is not too large while ensuring that there is a field angle difference between the first image and the second image, thereby ensuring a proper coarse focusing range. Wherein the second focus distance may be equal to the first closest focus distance of the first lens.
In one embodiment, when the focus distance of the first lens is smaller than the second focus distance, outputting first prompt information; the first prompt information is used for indicating that the first lens is used for focusing and shooting. Therefore, the determined set position can ensure a more proper coarse focusing range.
S704: determining a position of the image content in the second image in the preview window as the set position.
In one application embodiment, the main camera lens and the macro lens with the closest focusing distance of 8cm are adopted to calibrate the set positions: first, a macro lens is used, a scale is placed in the center of the field of view of the macro lens within the focus distance range of the macro lens, and then the macro lens is used for focusing and shooting at the focus distance of 3mm, so that a scale image shown in fig. 8 is obtained. As can be seen from fig. 8, in the case of a focus distance of 3mm, the imaging at the scale 0mm scale is the clearest and is also located in the middle of the scale image. Subsequently, the scale is held fixed, the electronic apparatus is vertically moved to a position where the focal distance of the main camera lens is 8cm, and focus shooting is performed with the main camera lens, resulting in a picture as shown in fig. 10 in which the scale is located in the middle of the right side of the image. Finally, the position of 0mm in the picture shown in fig. 10 is designated as a set position, and the position of the set position in the preview window is shown in fig. 11.
In order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides a photographing apparatus, which is disposed on an electronic device such as a mobile phone, a tablet, a camera, and the like, as shown in fig. 12, the photographing includes:
a first display unit 1201 for displaying a first preview screen imaged with a first lens of the electronic apparatus in a preview window;
a second display unit 1202 for superimposing a display mark on the first preview screen; the mark is fixedly displayed at the set position of the preview window and used for indicating to move the electronic equipment until the first position of the shooting target in the first preview picture is superposed with the set position;
a third display unit 1203, configured to display a second preview screen formed by using the second lens in the preview window after the first position coincides with the set position; the shooting target positioned at the set position in the first preview picture is positioned in a first area in the second preview picture; a first closest focus distance of the first lens is greater than a second closest focus distance of the second lens;
a shooting unit 1204, configured to focus the shooting target through a second lens of the electronic device by using a second preview screen and complete shooting; wherein an in-focus point of the second preview screen is located in the first area.
Wherein, in an embodiment, the apparatus further comprises:
the first photographing unit is used for focusing and photographing by using the second lens to obtain a first image; the focusing distance corresponding to the first image is smaller than the first closest focusing distance;
a first determination unit configured to determine the first region in the first image and determine image content in the first region;
the second photographing unit is used for focusing and photographing by using the first lens to obtain a second image containing the image content;
a second determining unit configured to determine a position of the image content in the second image in the preview window as the set position.
In an embodiment, the second photographing unit is configured to:
focusing and shooting at a first focusing distance by using the first lens to obtain the second image; the first focus distance is less than the second focus distance; the second focus distance is greater than the first closest focus distance.
In one embodiment, the apparatus further comprises:
the first prompting unit is used for outputting first prompting information when the focusing distance of the first lens is smaller than the second focusing distance; the first prompt information is used for indicating that the first lens is used for focusing and shooting.
In one embodiment, the first photographing unit is configured to:
and focusing and shooting the object with scales by using the second lens to obtain the first image.
In one embodiment, the second display unit 1202 is configured to:
determining a third focusing distance of the first lens corresponding to the first preview picture;
determining a set position corresponding to the third focusing distance;
and displaying the mark on the first preview picture in an overlapping manner according to the set position corresponding to the third focusing distance.
In one embodiment, the apparatus further comprises:
the detection unit is used for detecting the moving direction of the electronic equipment while displaying the mark to obtain a detection result;
the second prompting unit is used for outputting second prompting information according to the detection result; the second prompt message is used for indicating that the electronic equipment keeps moving on a first plane; the first plane is parallel to a second plane where the first lens is located.
In practical application, the first display unit 1201, the second display unit 1202, the third display unit 1203, the shooting unit 1204, the first shooting unit, the first determining unit, the second shooting unit, the second determining unit, the first prompting unit, the detecting unit, and the second prompting unit may be implemented by a processor in an electronic device. Of course, the processor needs to run the program stored in the memory to realize the functions of the above-described program modules.
It should be noted that: in the photographing apparatus provided in the above embodiment, only the division of the program modules is exemplified when photographing, and in practical applications, the processing distribution may be completed by different program modules according to needs, that is, the internal structure of the photographing apparatus is divided into different program modules to complete all or part of the processing described above. In addition, the photographing apparatus and the photographing method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments in detail and are not described herein again.
Based on the hardware implementation of the program module, in order to implement the method according to the embodiment of the present invention, an embodiment of the present invention further provides an electronic device. Fig. 13 is a schematic diagram of a hardware composition structure of an electronic device according to an embodiment of the present invention, and as shown in fig. 13, the electronic device includes:
a communication interface 1 capable of information interaction with other devices such as network devices and the like;
and the processor 2 is connected with the communication interface 1 to realize information interaction with other equipment, and is used for executing the photographing method provided by one or more technical schemes when running a computer program. And the computer program is stored on the memory 3.
In practice, of course, the various components in the electronic device are coupled together by the bus system 4. It will be appreciated that the bus system 4 is used to enable connection communication between these components. The bus system 4 comprises, in addition to a data bus, a power bus, a control bus and a status signal bus. For clarity of illustration, however, the various buses are labeled as bus system 4 in fig. 13.
The memory 3 in the embodiment of the present invention is used to store various types of data to support the operation of the electronic device. Examples of such data include: any computer program for operating on an electronic device.
It will be appreciated that the memory 3 may be either volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic random access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical disk, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced DRAM), Synchronous Dynamic Random Access Memory (SLDRAM), Direct Memory (DRmb Access), and Random Access Memory (DRAM). The memory 2 described in the embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The method disclosed by the above embodiment of the present invention can be applied to the processor 2, or implemented by the processor 2. The processor 2 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 2. The processor 2 described above may be a general purpose processor, a DSP, or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor 2 may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the memory 3, and the processor 2 reads the program in the memory 3 and in combination with its hardware performs the steps of the aforementioned method.
When the processor 2 executes the program, the corresponding processes in the methods according to the embodiments of the present invention are realized, and for brevity, are not described herein again.
In an exemplary embodiment, the present invention further provides a storage medium, i.e. a computer storage medium, in particular a computer readable storage medium, for example comprising a memory 3 storing a computer program, which is executable by a processor 2 to perform the steps of the aforementioned method. The computer readable storage medium may be Memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface Memory, optical disk, or CD-ROM.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus, terminal and method may be implemented in other manners. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling an electronic device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a RAM, a magnetic or optical disk, or various other media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. A photographing method is applied to an electronic device, and the method comprises the following steps:
displaying a first preview picture imaged by a first lens of the electronic equipment in a preview window;
superposing a display mark on the first preview picture; the mark is fixedly displayed at the set position of the preview window and used for indicating to move the electronic equipment until the first position of the shooting target in the first preview picture is superposed with the set position;
when the first position is superposed with the set position, displaying a second preview picture imaged by using the second lens in the preview window; the shooting target positioned at the set position in the first preview picture is positioned in a first area in the second preview picture; a first closest focus distance of the first lens is greater than a second closest focus distance of the second lens;
focusing the shooting target through a second lens of the electronic equipment by using a second preview picture and finishing shooting; wherein an in-focus point of the second preview screen is located in the first area.
2. The method of claim 1, wherein before displaying the first preview screen imaged with the first lens of the electronic device in the preview window, the method further comprises:
focusing and shooting by using the second lens to obtain a first image; the focusing distance corresponding to the first image is smaller than the first closest focusing distance;
determining the first area in the first image and determining image content in the first area;
focusing and shooting by using the first lens to obtain a second image containing the image content;
determining a position of the image content in the second image in the preview window as the set position.
3. The method of claim 2, wherein focusing and capturing a second image containing the image content using the first lens comprises:
focusing and shooting at a first focusing distance by using the first lens to obtain the second image; the first focus distance is less than the second focus distance; the second focus distance is greater than the first closest focus distance.
4. The method of claim 3, further comprising:
when the focusing distance of the first lens is smaller than the second focusing distance, outputting first prompt information; the first prompt information is used for indicating that the first lens is used for focusing and shooting.
5. The method according to any one of claims 2 to 4, wherein the focusing and shooting with the second lens to obtain the first image comprises:
and focusing and shooting the object with scales by using the second lens to obtain the first image.
6. The method according to claim 1, wherein the superimposing a display mark on the first preview screen includes:
determining a third focusing distance of the first lens corresponding to the first preview picture;
determining a set position corresponding to the third focusing distance;
and displaying the mark on the first preview picture in an overlapping manner according to the set position corresponding to the third focusing distance.
7. The method of claim 1, wherein while displaying the indicia, the method further comprises:
detecting the moving direction of the electronic equipment to obtain a detection result;
outputting second prompt information according to the detection result; the second prompt message is used for indicating that the electronic equipment keeps moving on a first plane; the first plane is parallel to a second plane where the first lens is located.
8. A photographing apparatus applied to an electronic device, the apparatus comprising:
a first display unit configured to display a first preview screen imaged by a first lens of the electronic device in a preview window;
a second display unit configured to superimpose a display mark on the first preview screen; the mark is fixedly displayed at the set position of the preview window and used for indicating to move the electronic equipment until the first position of the shooting target in the first preview picture is superposed with the set position;
a third display unit, configured to display a second preview screen imaged by using the second lens in the preview window after the first position coincides with the set position; the shooting target positioned at the set position in the first preview picture is positioned in a first area in the second preview picture; a first closest focus distance of the first lens is greater than a second closest focus distance of the second lens;
the shooting unit is used for focusing the shooting target through a second lens of the electronic equipment by utilizing a second preview picture and finishing shooting; wherein an in-focus point of the second preview screen is located in the first area.
9. An electronic device, comprising: a processor and a memory for storing a computer program capable of running on the processor,
wherein the processor is adapted to perform the steps of the method of any one of claims 1 to 7 when running the computer program.
10. A storage medium having a computer program stored thereon, the computer program, when being executed by a processor, performing the steps of the method of any one of claims 1 to 7.
CN201911011114.5A 2019-10-23 2019-10-23 Photographing method and device, electronic equipment and storage medium Active CN110602409B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911011114.5A CN110602409B (en) 2019-10-23 2019-10-23 Photographing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911011114.5A CN110602409B (en) 2019-10-23 2019-10-23 Photographing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110602409A true CN110602409A (en) 2019-12-20
CN110602409B CN110602409B (en) 2021-06-04

Family

ID=68850079

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911011114.5A Active CN110602409B (en) 2019-10-23 2019-10-23 Photographing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110602409B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111031248A (en) * 2019-12-25 2020-04-17 维沃移动通信(杭州)有限公司 Shooting method and electronic equipment
CN111314615A (en) * 2020-03-13 2020-06-19 浙江大华技术股份有限公司 Method and device for controlling binocular double-zoom camera and camera
CN112333395A (en) * 2020-12-01 2021-02-05 维沃移动通信有限公司 Focusing control method and device and electronic equipment
CN114222064A (en) * 2021-12-16 2022-03-22 Oppo广东移动通信有限公司 Auxiliary photographing method and device, terminal equipment and storage medium
CN114422687A (en) * 2020-10-28 2022-04-29 北京小米移动软件有限公司 Preview image switching method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297696A (en) * 2013-05-24 2013-09-11 北京小米科技有限责任公司 Photographing method, photographing device and photographing terminal
CN106550194A (en) * 2016-12-26 2017-03-29 珠海格力电器股份有限公司 Photographic method, device and mobile terminal
US20170134640A1 (en) * 2014-07-30 2017-05-11 Yulong Computer Telecommunication Scientific (Shenzhen) Co., Ltd. Focusing Method and Terminal
CN107026979A (en) * 2017-04-19 2017-08-08 宇龙计算机通信科技(深圳)有限公司 Double-camera photographing method and device
CN110012208A (en) * 2018-01-05 2019-07-12 广东欧珀移动通信有限公司 It takes pictures focusing method, device, storage medium and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103297696A (en) * 2013-05-24 2013-09-11 北京小米科技有限责任公司 Photographing method, photographing device and photographing terminal
US20170134640A1 (en) * 2014-07-30 2017-05-11 Yulong Computer Telecommunication Scientific (Shenzhen) Co., Ltd. Focusing Method and Terminal
CN106550194A (en) * 2016-12-26 2017-03-29 珠海格力电器股份有限公司 Photographic method, device and mobile terminal
CN107026979A (en) * 2017-04-19 2017-08-08 宇龙计算机通信科技(深圳)有限公司 Double-camera photographing method and device
CN110012208A (en) * 2018-01-05 2019-07-12 广东欧珀移动通信有限公司 It takes pictures focusing method, device, storage medium and electronic equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111031248A (en) * 2019-12-25 2020-04-17 维沃移动通信(杭州)有限公司 Shooting method and electronic equipment
CN111314615A (en) * 2020-03-13 2020-06-19 浙江大华技术股份有限公司 Method and device for controlling binocular double-zoom camera and camera
CN111314615B (en) * 2020-03-13 2021-06-15 浙江大华技术股份有限公司 Method and device for controlling binocular double-zoom camera and camera
CN114422687A (en) * 2020-10-28 2022-04-29 北京小米移动软件有限公司 Preview image switching method and device, electronic equipment and storage medium
CN114422687B (en) * 2020-10-28 2024-01-19 北京小米移动软件有限公司 Preview image switching method and device, electronic equipment and storage medium
CN112333395A (en) * 2020-12-01 2021-02-05 维沃移动通信有限公司 Focusing control method and device and electronic equipment
CN112333395B (en) * 2020-12-01 2022-05-06 维沃移动通信(杭州)有限公司 Focusing control method and device and electronic equipment
CN114222064A (en) * 2021-12-16 2022-03-22 Oppo广东移动通信有限公司 Auxiliary photographing method and device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN110602409B (en) 2021-06-04

Similar Documents

Publication Publication Date Title
CN110602409B (en) Photographing method and device, electronic equipment and storage medium
US9998650B2 (en) Image processing apparatus and image pickup apparatus for adding blur in an image according to depth map
US9172856B2 (en) Folded imaging path camera
JP6757268B2 (en) Imaging device and its control method
BR112016029714B1 (en) Multi-camera system using folded optics free from tilt and parallax artifacts
CN104238068A (en) Image pickup apparatus, method of controlling image pickup apparatus, image pickup apparatus system
JP2018125612A5 (en)
JP6405531B2 (en) Imaging device
JP4241460B2 (en) Electronic imaging device
US11178337B2 (en) Image capturing apparatus, method of controlling the same, and non-transitory computer readable storage medium for calculating a depth width for an object area based on depth information
CN112352417B (en) Focusing method of shooting device, system and storage medium
JP2013183306A (en) Imaging apparatus, imaging method, and program
JP6357646B2 (en) Imaging device
TWI693828B (en) Image-capturing device and method for operating the same
CN113067985A (en) Shooting method, shooting device, electronic equipment and storage medium
JP2016197150A (en) Imaging device and control method of the same, program, and recording medium
JP2007259002A (en) Image reproducing apparatus, its control method, and its control program
JP2018007082A (en) Image reproduction device, control method therefor, and program
JP6460310B2 (en) Imaging apparatus, image display method, and program
JP2011259503A (en) Imaging apparatus
US10924680B2 (en) Image capture control apparatus and method of controlling the same
JP4740477B2 (en) Stereoscopic imaging adapter lens and stereoscopic imaging system
JP7291859B2 (en) IMAGING SYSTEM, OPERATION METHOD OF IMAGING SYSTEM, AND PROGRAM
CN114222064A (en) Auxiliary photographing method and device, terminal equipment and storage medium
JP5209138B2 (en) Imaging 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