Shooting method and device, equipment and storage medium
By selecting a clearer second shooting lens based on the focus distance of the target object and synthesizing the captured images with the image of the first shooting lens, the problem that the user-selected shooting lens cannot clearly capture the target object, and a higher definition image effect is achieved.
Patent Information
- Application Number
- CN202311322281.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-12
- Publication Date
- 2025-04-15
AI Technical Summary
The shooting lens selected by the user may not be able to capture the target object clearly, especially when shooting from a distance, the wide-angle lens has limited clarity to the long-range view, and the telephoto lens will cause face blur when there is a face close to it.
By determining the focus distance between the target object and the first photographing lens currently used, the second photographing lens is selected to generate a clearer image, and the target object area captured by the second photographing lens is replaced with a corresponding position in the image captured by the first photographing lens.
It is realized that when shooting with the first shooting lens, the sharpness of the target object in the image is higher than expected, and the user can obtain a higher definition image even if using the first shooting lens.
Smart Images

Figure CN119835502A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a shooting method, device, equipment and computer-readable storage medium. Background Art
[0002] The terminal can be equipped with multiple shooting lenses, but when shooting, generally only one of the lenses is selected for shooting.
[0003] However, the shooting lens selected by the user may not be able to capture the target object in the shooting picture clearly.
[0004] For example, when a user wants to take a picture of a person or scenery from a distance, he or she uses a wide-angle lens with a large field of view. However, the clarity of the distant view is limited by the wide-angle lens, resulting in unclear shots of the target object. For example, there may be a certain loss in image quality when enlarging the face area after shooting.
[0005] For example, when a user uses a telephoto lens to shoot a distant landscape, if there is a face near the lens, the face will be blurred and not clear enough.
[0006] In the related technology, after the lens recognizes the target object, special automatic exposure (AE), automatic white balance (AWB) and auto focus (AF) adjustments are performed on the area where the target object is located, and an enhancement algorithm for the target object is used to optimize the clarity of the area.
[0007] However, the optimization scheme in the related art only compensates the lens from a software perspective and cannot break through the hardware limitations of the shooting lens selected by the user, and the compensation effect is extremely limited. Summary of the invention
[0008] In order to overcome the problems existing in the related art, the present disclosure provides a shooting method, device, equipment and computer-readable storage medium, which can solve the above problems.
[0009] According to a first aspect of an embodiment of the present disclosure, a shooting method is provided, which is executed by a terminal, and the terminal is equipped with multiple shooting lenses. The method includes: determining a first focusing distance between a target object and a first shooting lens currently in use; selecting a second shooting lens according to the first focusing distance, and shooting the target object through the second shooting lens to generate a first image, wherein the shooting clarity of the target object by the second shooting lens is better than that of the first shooting lens; and replacing the area of the target object in the first image with the position of the target object in the second image shot by the first shooting lens.
[0010] According to a second aspect of an embodiment of the present disclosure, a shooting device is provided, which is configured in a terminal, and the terminal is equipped with multiple shooting lenses. The device includes: a determination unit, configured to determine a first focusing distance between a target object and a first shooting lens currently in use; a shooting unit, configured to select a second shooting lens according to the first focusing distance, and shoot the target object through the second shooting lens to generate a first image, wherein the shooting clarity of the target object by the second shooting lens is better than that of the first shooting lens; a replacement unit, configured to replace the area of the target object in the first image with the position of the target object in the second image shot by the first shooting lens.
[0011] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, including: a processor and a memory; the memory is used to store a computer program; the processor is used to execute the shooting method as described in the first aspect by calling the computer program.
[0012] According to a fourth aspect of an embodiment of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the shooting method as described in the first aspect is implemented.
[0013] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:
[0014] The present disclosure determines a first focus distance of a target object, selects a second camera lens that can take clearer photos according to the first focus distance, and replaces the corresponding position of the image taken by the first camera lens with the target object taken by the second camera lens, so that when a user uses the first camera lens to take photos, the clarity of the target object in the image is higher than expected. The present disclosure uses the second camera lens to take photos of the target object, and synthesizes the image obtained by the photo with the image obtained by the first camera lens, so that the user can obtain a higher definition image even if the user uses the first camera lens to take photos.
[0015] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this disclosure, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0017] Figure 1 is a schematic flow chart of a shooting method according to an exemplary embodiment of the present disclosure.
[0018] Figure 2It is a schematic diagram showing a method of selecting a second shooting lens according to a first focusing distance according to an exemplary embodiment of the present disclosure.
[0019] Figure 3 is a schematic diagram of a field of view angle of a shooting lens according to an exemplary embodiment of the present disclosure.
[0020] Figure 4A , 4B 4C is a schematic diagram of selecting a second shooting lens according to an exemplary embodiment of the present disclosure.
[0021] Figure 5 is a block diagram of a photographing device according to an exemplary embodiment of the present disclosure.
[0022] Figure 6 is a schematic block diagram of a shooting device according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0023] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0024] The terms used in this disclosure are for the purpose of describing specific embodiments only and are not intended to limit the disclosure. The singular forms of "a", "said" and "the" used in this disclosure and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0025] It should be understood that although the terms first, second, third, etc. may be used in the present disclosure to describe various information, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present disclosure, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0026] Figure 1The present invention is a schematic flow chart of a shooting method according to an embodiment of the present invention, and the shooting method can be performed by a terminal. The terminal includes but is not limited to a communication device such as a mobile phone, a tablet computer, a wearable device, a sensor, an Internet of Things device, etc., and the terminal is equipped with multiple shooting lenses.
[0027] like Figure 1 As shown, the shooting method includes:
[0028] In step S101, a first focusing distance between a target object and a first shooting lens currently in use is determined;
[0029] In step S102, a second shooting lens is selected according to the first focusing distance, and the target object is photographed by the second shooting lens to generate a first image, wherein the second shooting lens has a better shooting clarity for the target object than the first shooting lens;
[0030] In step S103, the area of the target object in the first image is replaced with the position of the target object in the second image captured by the first shooting lens.
[0031] In some embodiments, the terminal is equipped with multiple shooting lenses, and the multiple shooting lenses may include: a main wide-angle lens (wide), an ultra-wide-angle lens (ultrawide), and a telephoto lens (tele).
[0032] Among them, the main wide-angle lens is usually the most commonly used lens for terminals, adapting to most application scenarios and able to meet most of the users' shooting needs; the field of view of the ultra-wide-angle lens is larger than that of the main wide-angle lens, but the relative focusing distance is smaller than that of the main wide-angle lens; the field of view of the telephoto lens is smaller than that of the main wide-angle lens, but the focusing distance is greater than that of the main wide-angle lens.
[0033] In some embodiments, in the default photo mode, the magnification is 0.5 to 1 times for the ultra-wide-angle focal length, the magnification is 1 to 3 times for the wide-angle focal length, and the magnification is above 3 times for the telephoto focal length; or, the magnification is 0.5 to 1 times for the ultra-wide-angle focal length, the magnification is 1 to 5 times for the wide-angle focal length, and the magnification is above 5 times for the telephoto focal length.
[0034] It should be noted that the above embodiment is only an illustrative example of the present disclosure and cannot limit the present disclosure. In fact, the focal length corresponding to the magnification can be flexibly set according to needs.
[0035] In some embodiments, the terminal may determine the first focus distance according to the image distance of the image of the target object presented by the first shooting lens.
[0036] The first focusing distance refers to the distance from the target object to the presented image.
[0037] Different shooting lenses correspond to different focus ranges. When a target object is within the focus range of the shooting lens, the shooting lens can focus on the target object, and the captured image has a higher definition.
[0038] In some embodiments, the target object may include a human face.
[0039] In general, users hope that the faces in the captured images are clearer, so the target object may include the face, so that during the shooting process, when the terminal recognizes the face, the method proposed in the present disclosure is executed, so that the face in the captured image is clearer, giving the user a better experience.
[0040] In some embodiments, the target object may also include an object within a range area selected by a user.
[0041] The user can select a range area on the preview image by clicking, selecting a frame, etc., and identify the range area or the object within the range area as the target object.
[0042] The user can select the content of interest to make the content of interest clearer in the captured image.
[0043] In some embodiments, the terminal can determine whether the first focusing distance of the target object is within the focusing range of the first camera lens. If it is within the focusing range of the first camera lens, it indicates that the first camera lens is able to focus on the target object, and the clarity of the target object in the captured image is relatively high. At this time, there is no need to select the second camera lens; if the first focusing distance of the target object is outside the focusing range of the first camera lens, it indicates that the first camera lens is unable to focus on the target object, and the clarity of the target object in the captured image is relatively low. If the user zooms in on the target object area, the image quality of the target object will be greatly lost.
[0044] In some embodiments, when it is determined that a first focusing distance of the target object is outside the focusing range of a first shooting lens, a second shooting lens is selected according to the first focusing distance, and the target object is photographed by the second shooting lens to generate a first image, wherein the shooting clarity of the target object by the second shooting lens is better than that of the first shooting lens.
[0045] In some embodiments, the first focus distance of the target object is within the focus range of the second shooting lens.
[0046] In this case, the second shooting lens can focus on the target object, and the image of the target object captured by the second shooting lens must be clearer than that captured by the first shooting lens outside the focus range.
[0047] In some embodiments, the first focus distance of the target object is outside the focus ranges of the first photographing lens and the second photographing lens, but closer to the focus range of the second photographing lens.
[0048] In this case, although neither the first camera lens nor the second camera lens can focus on the target object, since the target object is closer to the focusing range of the second camera lens, even if neither the first camera lens nor the second camera lens can focus, the image of the target object obtained by the second camera lens is still clearer than the image of the target object obtained by the first camera lens.
[0049] In some embodiments, the area of the target object in the first image is replaced with the position of the target object in the second image captured by the first shooting lens.
[0050] Since the image of the target object captured by the second camera lens will be clearer, the area where the target object is located in the first image can be replaced with the corresponding position in the image captured by the first camera lens through image synthesis, so that the user can obtain a clearer image of the target object when shooting with the first camera lens.
[0051] The present disclosure uses a second camera lens to shoot a target object, and after shooting, replaces the relatively clear target object area captured by the second camera lens with the corresponding position of the image captured by the first camera lens used by the user through image synthesis, so that when the user uses the first camera lens to shoot an image, the target object can have better clarity, thereby improving the user experience.
[0052] In some embodiments, the minimum focusing distance of the lens may be used to determine whether the target object can be focused by the shooting lens, so as to determine a second shooting lens with higher shooting clarity.
[0053] Generally, different shooting lenses have different focus ranges, and there is no overlap in the focus ranges. Therefore, it can be considered that when the first focus distance corresponding to the target object is greater than the minimum focus distance of the shooting lens, the shooting lens can obtain a clearer image, and the closer the minimum focus distance of the shooting lens is to the first focus distance, the clearer the image is.
[0054] In some embodiments, the selecting the second shooting lens according to the first focusing distance includes: when the minimum focusing distance of the first shooting lens is greater than the first focusing distance, the minimum focusing distance of the selected second shooting lens is less than the first focusing distance and the target object is within the field of view angle of the second shooting lens; when the minimum focusing distance of the first shooting lens is less than the first focusing distance, the minimum focusing distance of the selected second shooting lens is less than the first focusing distance but greater than the minimum focusing distance of the first shooting lens and the target object is within the field of view angle of the second shooting lens.
[0055] The following will be Figure 2 and Figure 3 The embodiment of the present invention specifically introduces how to select the second shooting lens.
[0056] Figure 2 It is a schematic diagram showing a method of selecting a second shooting lens according to a first focusing distance according to an embodiment of the present disclosure.
[0057] like Figure 2 As shown, terminal 210 has three shooting lenses, namely lens 1, lens 2, and lens 3. The minimum focusing distances corresponding to the three lenses are shown in the figure, from near to far, they are the minimum focusing distance of lens 1, the minimum focusing distance of lens 2, and the minimum focusing distance of lens 3, that is, the minimum focusing distance of lens 1 is smaller than the minimum focusing distance of lens 2, which is smaller than the minimum focusing distance of lens 3.
[0058] in, Figure 2 3 possible positions of the target object are shown in the figure, position 1 is between the minimum focusing distance of lens 1 and the minimum focusing distance of lens 2, position 2 is between the minimum focusing distance of lens 2 and the minimum focusing distance of lens 3, and the first focusing distance of position 3 is greater than the minimum focusing distance of lens 3.
[0059] When the first shooting lens selected by the user is lens 3, and the position of the target object is at position 2, the minimum focusing distance of the first shooting lens is greater than the first focusing distance. Without considering the field of view angle, the second shooting lens selected according to the first focusing distance can be lens 1 and lens 2 whose minimum focusing distance is less than that of position 2. Among them, since the minimum focusing distance of lens 2 is closer to position 2 than the minimum focusing distance of lens 1, if lens 2 is used, the image of the target object captured will be clearer than the image of the target object captured with lens 1.
[0060] When the first shooting lens selected by the user is lens 1, and the position of the target object is at position 3, the minimum focusing distance of the first shooting lens is less than the first focusing distance. Without considering the field of view angle, the second shooting lens selected according to the first focusing distance can be lens 2 and lens 3, whose minimum focusing distance is less than the first focusing distance but greater than the minimum focusing distance of lens 1. Among them, since the minimum focusing distance of lens 3 is closer to position 3 than the minimum focusing distance of lens 2, if lens 3 is used, the image of the target object captured will be clearer than the image of the target object captured by lens 2.
[0061] Of course, the above embodiment is only a specific example. According to the minimum focusing distance of the first shooting lens and the first focusing distance, there are many situations to select a suitable second shooting lens, which are not listed one by one in the present disclosure.
[0062] In some embodiments, in addition to determining the second photographing lens according to the minimum focusing distance of the plurality of photographing lenses and the first focusing distance, the second photographing lens also needs to meet the condition that the target object is included in the field of view.
[0063] Figure 3 is a schematic diagram showing a field of view angle of a shooting lens according to an embodiment of the present disclosure.
[0064] like Figure 3 As shown, the minimum focusing distances of the three lenses of terminal 210, lens 1, lens 2, and lens 3 are as follows: Figure 2 As shown, the field of view of each lens can be found in Figure 3 , the field of view angle of lens 1 with the smallest minimum focusing distance is the largest, and the field of view angle of lens 3 with the largest minimum focusing distance is the smallest.
[0065] The field of view of the selected second camera lens must include the target object. If the field of view of the camera lens does not include the target object, when the terminal is at the current position, the target object will be outside the image range captured by the camera lens, that is, the target object cannot be photographed.
[0066] For example, when the first shooting lens is lens 1, the position of the target object is at position 4. At this time, based on the judgment of the above-mentioned minimum focusing distance, the second shooting lens that can be used can be lens 2 and lens 3, among which the shooting effect of lens 3 is clearer. However, since position 4 is outside the field of view of lens 3, if lens 3 is used for shooting, the target object will not exist in the captured image. Therefore, at this time, only lens 2 whose field of view includes position 4 can be selected as the second shooting lens.
[0067] In summary, when selecting the second shooting lens, the shooting lens with higher shooting clarity can be determined based on the relationship between the minimum focusing distance and the first focusing distance, and whether the target object can appear in the image captured by the shooting lens can be determined based on the field of view of the lens and the position of the target object.
[0068] In some embodiments, the terminal further includes an optical image stabilizer (OIS), and the target object is within the field of view of the second camera lens, including: the target object is within the field of view of the second camera lens after being compensated by the OIS.
[0069] The terminal can compensate for the field of view angle through OIS to expand the field of view angle range of the lens, so that the target object can be located within the field of view angle of more shooting lenses.
[0070] For example, taking tele (telephoto lens) as an example, since the field of view of the tele lens is only the middle part of the field of view of wide (main camera wide-angle lens), such as one-third or one-fifth. Therefore, when the first shooting lens is a wide lens, the target object detected by the wide lens has a greater probability of falling outside the field of view of the tele, making it impossible to select the tele lens as the second shooting lens due to the field of view, so that the target object in the final captured image cannot achieve the ideal clarity. Therefore, in order to reduce the inability to select the shooting lens as the second shooting lens due to the field of view, an OIS device can be used to move the tele lens to perform a small amount of field of view compensation.
[0071] For example, a tilt-shift OIS motor can offset ±0.5°, which is more than one-fiftieth of the tele field of view. If a pan-type closed-loop OIS motor is used, it can compensate for larger jitters, and the maximum compensation angle can generally reach ±1.5°, which is about one-tenth of the tele field of view.
[0072] By compensating the field of view angle through OIS, the probability of the target object being within the field of view angle of the shooting lens can be increased, the probability of using the shooting method proposed in the present disclosure can be increased, and the selection range of the second shooting lens can also be increased.
[0073] In some embodiments, the multiple shooting lenses include a wide-angle lens, a main camera lens and a telephoto lens, wherein the minimum focusing distance of the wide-angle lens is smaller than the minimum focusing distance of the main camera lens, and the minimum focusing distance of the main camera lens is smaller than the minimum focusing distance of the telephoto lens.
[0074] The multiple shooting lenses of the terminal include an (ultra) wide - angle lens (ultrawide), a main camera (wide - angle) lens (wide), and a telephoto lens (tele). In some embodiments, the minimum focusing distance of the main camera lens can be 15 - 25 cm, the minimum focusing distance of the telephoto lens can be 80 - 120 cm, and the minimum focusing distance of the ultra - wide - angle lens is less than 15 cm.
[0075] Figure 4A 、 4B Figure 4C is a schematic diagram of selecting a second shooting lens according to an embodiment of the present disclosure.
[0076] The following will be combined with Figure 4A 、 4B Figure 4C to list some feasible selections of the second shooting lens.
[0077] The order of the minimum focusing distances of the three lenses from small to large is: ultrawide < wide < tele. The order of the field - of - view angles from large to small is: ultrawide > wide > tele.
[0078] As Figure 4A shown, when the first shooting lens is ultrawide, if the first focusing distance is greater than the minimum focusing distance of tele and within the field - of - view angle of tele, then using tele can obtain the clearest image of the target object. At this time, the second shooting lens can be tele; at the same time, the first focusing distance being greater than the minimum focusing distance of tele also means it is necessarily greater than the minimum focusing distance of wide. So when it is determined that the first focusing distance is greater than that of tele, but the target object is not within the field - of - view angle of tele, the wide lens can be considered. At this time, it is necessary to determine whether the target object is within the field - of - view angle of wide. If it is, the second shooting lens is wide; if not, the process ends. When the first focusing distance is less than the minimum focusing distance of tele, it is necessary to determine whether the first focusing distance is greater than the minimum focusing distance of wide. If not, it means the clearest shooting lens is the first shooting lens ultrawide, and the process ends. If it is greater, it is necessary to determine whether the target object is within the field - of - view angle of wide to determine whether to use the wide lens.
[0079] As Figure 4BAs shown, when the first shooting lens is wide, it is necessary to determine whether the first focusing distance is greater than the minimum focusing distance of tele. If it is, the second shooting lens is tele when the target object is within the field of view of tele. If it is not, there are two cases. When the first focusing distance is between wide and tele, the lens that takes the clearest picture is the first shooting lens wide. When the first focusing distance is between ultrawide and wide, the lens that takes the clearest picture is ultrawide. Since the field of view of ultrawide is larger than that of wide, the field of view of ultrawide must meet the condition of including the target object. Therefore, it is not necessary to determine whether the target object is within the field of view, and ultrawide can be directly selected as the second shooting lens.
[0080] like Figure 4C As shown in the figure, when the first shooting lens is tele, since tele has the smallest field of view, the target object must be within the field of view of other lenses. If the first focus distance is greater than tele, the lens that takes the clearest picture is the first shooting lens tele; when the first focus distance is between wide and tele, the second shooting lens is wide; when the first focus distance is between ultrawide and wide, the second shooting lens is ultrawide.
[0081] In some embodiments, the method also includes: determining a first coordinate position of the target object in the image corresponding to the first camera lens; determining a second coordinate position of the target object under the second camera lens based on the first coordinate position and a coordinate mapping relationship between the first camera lens and the second camera lens; photographing the target object through the second camera lens to generate a first image includes: completing focusing on the target object through the second camera lens according to the second coordinate position, and generating the first image.
[0082] Regardless of whether the user performs shooting under the first shooting lens, after recognizing the target object, the first shooting lens will determine the first coordinate position of the target object in the previewed shooting image.
[0083] Since different cameras have different installation positions and pixels, the center point of the camera lens may be offset and the coordinate system size is different. Therefore, after determining the first coordinate position, the second coordinate position of the target object under the second camera lens can be determined according to the coordinate mapping relationship.
[0084] By determining the second coordinate position, when the second shooting lens is used for shooting, the second shooting lens can focus on the target object more quickly.
[0085] In some embodiments, the second coordinate position of the target object under the second shooting lens is determined according to the first coordinate position and a coordinate mapping relationship between the first shooting lens and the second shooting lens.
[0086] For example, when the target object is a human face, the first coordinate position of the human face may be multiplied by the coordinate system ratio of the first shooting lens and the second shooting lens, and then added with the center point offset value under the two lenses to determine the second coordinate position.
[0087] In some embodiments, the method further includes: before determining a first focus distance corresponding to the target object, in response to a received shooting instruction, photographing through the first shooting lens and generating the second image; or, after photographing the target object through the second shooting lens to generate the first image, in response to a received shooting instruction, photographing through the first shooting lens and generating the second image.
[0088] That is, the shooting method of the present disclosure may have two execution stages.
[0089] In some embodiments, after the user issues a shooting command, the first shooting lens can shoot and generate a second image, and at this time, the method is executed to obtain the first image of the target object by the second shooting lens, and the final output image is obtained through image synthesis technology. In this way, after the shooting command is issued, the delay of outputting the image is high, but the power consumption of the terminal is low.
[0090] In other embodiments, when the user selects the first shooting lens and frames the area containing the target object, the second shooting lens can be used to shoot the first image and perform image synthesis in real time. That is, before the user issues a shooting command, the terminal performs image synthesis in real time based on the preview image of the first shooting lens. After the shooting command is issued, this method can obtain the final image at a faster speed, but because the terminal performs image synthesis in real time, the power consumption is relatively large.
[0091] In some embodiments, the target object includes a face, and determining a first focus distance between the target object and a first shooting lens currently in use includes: using a face detection algorithm under the first shooting lens to determine the target object and determine the first focus distance.
[0092] In some embodiments, after the user issues a shooting command, a local fusion algorithm may be used to fuse the image of the target object captured by the second camera lens with the second image captured by the first camera lens, wherein the area of the target object in the first image is replaced with the position of the target object in the second image.
[0093] Corresponding to the embodiments of the photographing method of the present disclosure, the present disclosure also provides embodiments of corresponding photographing devices.
[0094] See also Figure 5 , Figure 5 FIG. 1 is a block diagram of a shooting device in one embodiment of the present disclosure. Figure 5 As shown, the shooting device is configured in a terminal, the terminal is equipped with multiple shooting lenses, and the device includes:
[0095] A determination unit 510 is configured to determine a first focus distance between a target object and a first shooting lens currently in use;
[0096] A shooting unit 520 is configured to select a second shooting lens according to the first focusing distance, and shoot the target object through the second shooting lens to generate a first image, wherein the second shooting lens has a better shooting clarity for the target object than the first shooting lens;
[0097] The replacement unit 530 is configured to replace the area of the target object in the first image with the position of the target object in the second image captured by the first shooting lens.
[0098] In some embodiments, the selecting the second shooting lens according to the first focusing distance includes: when the minimum focusing distance of the first shooting lens is greater than the first focusing distance, the minimum focusing distance of the selected second shooting lens is less than the first focusing distance and the target object is within the field of view angle of the second shooting lens; when the minimum focusing distance of the first shooting lens is less than the first focusing distance, the minimum focusing distance of the selected second shooting lens is less than the first focusing distance but greater than the minimum focusing distance of the first shooting lens and the target object is within the field of view angle of the second shooting lens.
[0099] In some embodiments, the terminal further includes an optical image stabilizer (OIS), and the target object is within the field of view of the second camera lens, including: the target object is within the field of view of the second camera lens after being compensated by the OIS.
[0100] In some embodiments, the multiple shooting lenses include a wide-angle lens, a main camera lens and a telephoto lens, wherein the minimum focusing distance of the wide-angle lens is smaller than the minimum focusing distance of the main camera lens, and the minimum focusing distance of the main camera lens is smaller than the minimum focusing distance of the telephoto lens.
[0101] In some embodiments, the device is further configured to: determine a first coordinate position of the target object in the image corresponding to the first camera lens; determine a second coordinate position of the target object under the second camera lens based on the first coordinate position and a coordinate mapping relationship between the first camera lens and the second camera lens; photographing the target object through the second camera lens to generate a first image includes: completing focusing on the target object through the second camera lens according to the second coordinate position, and generating a first image.
[0102] In some embodiments, the device is further configured to: before determining the first focus distance corresponding to the target object, in response to a received shooting instruction, shoot through the first shooting lens and generate the second image; or, after shooting the target object through the second shooting lens to generate the first image, in response to a received shooting instruction, shoot through the first shooting lens and generate the second image.
[0103] In some embodiments, the target object includes a face, and determining a first focus distance between the target object and a first shooting lens currently in use includes: using a face detection algorithm under the first shooting lens to determine the target object and determine the first focus distance.
[0104] The implementation process of the functions and effects of each unit in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.
[0105] An embodiment of the present disclosure further proposes an electronic device, comprising: a processor and a memory; the memory is used to store a computer program; the processor is used to execute the delay mitigation method as described in any of the above embodiments by calling the computer program.
[0106] An embodiment of the present disclosure further provides a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for alleviating delay as described in any of the above embodiments is implemented.
[0107] Figure 6 600 is a schematic block diagram of a photographing device 600 according to an embodiment of the present disclosure. For example, the device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0108] Reference Figure 6, the device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .
[0109] The processing component 602 generally controls the overall operation of the device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned information receiving method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.
[0110] The memory 604 is configured to store various types of data to support operations on the device 600. Examples of such data include instructions for any application or method operating on the device 600, contact data, phone book data, messages, pictures, videos, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0111] The power supply component 606 provides power to the various components of the device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.
[0112] The multimedia component 608 includes a screen that provides an output interface between the device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the device 600 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
[0113] The audio component 610 is configured to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the device 600 is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.
[0114] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
[0115] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the device 600. For example, the sensor assembly 614 can detect the open / closed state of the device 600, the relative positioning of components, such as the display and keypad of the device 600, and the sensor assembly 614 can also detect the position change of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration / deceleration of the device 600, and the temperature change of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0116] The communication component 616 is configured to facilitate wired or wireless communication between the device 600 and other devices. The device 600 can access a wireless network based on a communication standard, such as WiFi, 2G, 3G, 4G LTE, 5G NR, or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0117] In an exemplary embodiment, the device 600 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above-mentioned information receiving method.
[0118] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of the device 600 to complete the above-mentioned information receiving method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0119] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0120] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
[0121] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprises a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0122] The method and device provided in the embodiments of the present disclosure are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present disclosure. The description of the above embodiments is only used to help understand the method of the present disclosure and its core idea. At the same time, for those skilled in the art, according to the idea of the present disclosure, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present disclosure.
Claims
1. A shooting method, characterized in that: The method comprises: Determining a first focusing distance between a target object and a first shooting lens currently in use; Selecting a second shooting lens according to the first focusing distance, and shooting the target object through the second shooting lens to generate a first image, wherein the second shooting lens has a better shooting clarity of the target object than the first shooting lens; The area of the target object in the first image is replaced with the position of the target object in the second image captured by the first shooting lens.
2. The method according to claim 1, characterized in that: The selecting a second shooting lens according to the first focusing distance includes: When the minimum focus distance of the first camera lens is greater than the first focus distance, the minimum focus distance of the selected second camera lens is less than the first focus distance and the target object is within the field of view of the second camera lens; When the minimum focusing distance of the first shooting lens is smaller than the first focusing distance, the minimum focusing distance of the selected second shooting lens is smaller than the first focusing distance but larger than the minimum focusing distance of the first shooting lens, and the target object is within the field of view of the second shooting lens.
3. The method according to claim 2, characterized in that The method is performed by a terminal, the terminal further comprising an optical image stabilizer OIS, the target object is within the field of view of the second shooting lens, and includes: The target object is within the field of view of the second shooting lens after being compensated by the OIS.
4. The method according to claim 1, characterized in that: The shooting lens includes a wide-angle lens, a main camera lens and a telephoto lens, wherein the minimum focusing distance of the wide-angle lens is smaller than the minimum focusing distance of the main camera lens, and the minimum focusing distance of the main camera lens is smaller than the minimum focusing distance of the telephoto lens.
5. The method according to claim 1, characterized in that The method further comprises: Determine a first coordinate position of the target object in the image corresponding to the first shooting lens; Determine a second coordinate position of the target object under the second shooting lens according to the first coordinate position and a coordinate mapping relationship between the first shooting lens and the second shooting lens; The step of photographing the target object through a second photographing lens to generate a first image includes: The target object is focused by the second shooting lens according to the second coordinate position, and a first image is generated.
6. The method according to claim 1, characterized in that The method further comprises: Before determining the first focus distance corresponding to the target object, in response to a received shooting instruction, shooting with the first shooting lens and generating the second image; or, After the target object is photographed through the second photographing lens to generate a first image, in response to a received photographing instruction, the first photographing lens is used to photograph and generate the second image.
7. The method according to claim 1, characterized in that The target object includes a human face, and determining a first focusing distance between the target object and a first shooting lens currently in use includes: using a face detection algorithm under the first shooting lens to determine the target object and determine the first focusing distance.
8. A photographing device, characterized in that: The device comprises: a determining unit configured to determine a first focusing distance between a target object and a first shooting lens currently in use; a photographing unit, configured to select a second photographing lens according to the first focusing distance, and photograph the target object through the second photographing lens to generate a first image, wherein the second photographing lens has a better photographing clarity of the target object than the first photographing lens; A replacement unit is configured to replace the area of the target object in the first image to a position of the target object in the second image captured by the first shooting lens.
9. An electronic device, characterized in that: include: Processor, memory; The memory is used to store computer programs; The processor is used to execute the shooting method according to any one of claims 1 to 7 by calling the computer program.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the shooting method described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Shooting method and system for camera shooting device
CN104780315A
Photographing method and mobile terminal
CN106027900A
Electronic device and lens switching method thereof
CN107800951A
Image processing method and related equipment thereof
CN114092364A
Shooting method and device and electronic equipment
CN114449174A