Photographing, photo processing method, system, device and storage medium
By collecting multiple images within the depth of field range and fusion of images, the problem of being unable to clearly capture objects with large front and back distances in the distance when the depth of field is large in the prior art, and the improvement of image quality and complete retention of information are achieved.
Patent Information
- Application Number
- CN202111395860.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-23
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2041-11-23
AI Technical Summary
When the depth of field is large, existing mobile phone photography technology cannot clearly capture two objects with a large distance between the front and back, resulting in lower image quality and loss of information.
The final captured photos are generated by collecting multiple images at different locations within the depth of field and using the contrast pyramid algorithm to perform image fusion.
Make full use of depth of field information, improve image quality, reduce information loss, and ensure that the captured image content is as complete as possible.
Smart Images

Figure CN114222059B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of photographic processing technology, and in particular relates to a photographic, photographic processing method, system, device and storage medium. Background Art
[0002] With the continuous development of smartphone technology, smartphones have brought a lot of convenience to our daily lives, the most obvious of which is photography technology, which is becoming more and more intelligent. Generally speaking, the mobile phone lens is equipped with an optical system, and its optical system has a certain depth of field. The depth of field refers to the distance range of the object in front and behind that can be measured by the imaging in front of the camera lens to obtain a clear image, and there will be a focus position in the middle. Based on the imaging principle of the optical system, the image is clearest at the focus position.
[0003] Currently, the mobile phone photography technology on the market increases the range of clear imaging by increasing the depth of field, thereby improving the quality of the final image. However, due to the limitations of the optical system itself, when the depth of field is large, although the range of clear imaging is larger, if the distance between the two objects in the distant scene is large, the two objects cannot be clearly photographed even in the focused position. At this time, objects in other focal planes will appear blurry. Although this method increases the range of clear imaging, it still causes some information loss in the captured two-dimensional picture. Information outside the focused plane cannot be retained in an image, so the captured image quality will be lower. Summary of the invention
[0004] The technical problem to be solved by the present invention is to overcome the above-mentioned defects in the prior art and provide a method, system, device and storage medium for taking pictures and processing pictures.
[0005] The present invention solves the above technical problems through the following technical solutions:
[0006] A photograph processing method, the photograph processing method comprising:
[0007] After receiving a photo request, obtain the shooting depth of field;
[0008] Shooting and acquiring a plurality of collected images at different positions within the shooting depth of field;
[0009] The multiple collected images are fused to obtain a captured photo.
[0010] Preferably, the capturing of a plurality of collected images at different positions within the shooting depth of field specifically includes:
[0011] Preset shooting parameters, wherein the shooting parameters include the number of images to be captured;
[0012] A plurality of collected images are acquired by shooting at equally spaced positions within the shooting depth of field based on the collected number.
[0013] Preferably, the capturing of a plurality of collected images at different positions within the shooting depth of field specifically includes:
[0014] Get the focus position of the shot;
[0015] determining a plurality of shooting positions based on the focus position and the shooting depth of field, the shooting positions including the focus position;
[0016] A plurality of collected images are captured at the plurality of shooting positions.
[0017] Preferably, the photographing processing method further includes:
[0018] Preset shooting parameters, wherein the shooting parameters include the number of images to be captured;
[0019] The determining of a plurality of shooting positions based on the focus position and the shooting depth of field, wherein the shooting positions include the focus position, comprises:
[0020] Determine the plurality of shooting positions based on the acquisition quantity, the focus position and the shooting depth of field;
[0021] The focusing position and the closest depth position within the shooting depth of field range have the same spacing distance between two adjacent shooting positions, and the focusing position and the farthest depth position within the shooting depth of field range have the same spacing distance between two adjacent shooting positions.
[0022] Preferably, the fusing of the plurality of collected images to obtain a photograph comprises:
[0023] The captured photo is obtained by fusing the multiple collected images based on a contrast pyramid algorithm.
[0024] A photographing method, the photographing method comprising:
[0025] Receive the user's photo request;
[0026] Get the shooting depth of field;
[0027] Shooting and acquiring a plurality of collected images at different positions within the shooting depth of field;
[0028] fusing the multiple collected images to obtain a photograph;
[0029] The captured photo is saved.
[0030] Preferably, the photographing method further comprises:
[0031] Determining a target shooting mode in response to a user request;
[0032] Prompt information is generated, where the prompt information is used to prompt the user to maintain the same position for shooting.
[0033] A photograph processing system, the photograph processing system comprising:
[0034] A depth-of-field acquisition module is used to obtain the shooting depth of field after receiving a photo request;
[0035] An acquisition module, used for acquiring a plurality of acquired images by shooting at different positions within the shooting depth of field;
[0036] The fusion module is used to fuse the multiple collected images to obtain the captured photos.
[0037] Preferably, the photo processing system further includes:
[0038] A preset module, used to preset shooting parameters, wherein the shooting parameters include the number of images to be captured;
[0039] The acquisition module is used to acquire a plurality of acquired images by shooting at equally spaced positions within the shooting depth of field based on the acquisition quantity.
[0040] Preferably, the photo processing system further includes:
[0041] A focus position acquisition module, used to acquire the focus position of the shooting;
[0042] a shooting position determination module, configured to determine a plurality of shooting positions based on the focus position and the shooting depth of field, wherein the shooting positions include the focus position;
[0043] The acquisition module is used to capture multiple images at the multiple shooting positions.
[0044] Preferably, the photo processing system further includes:
[0045] A preset module, used to preset shooting parameters, wherein the shooting parameters include the number of images to be captured;
[0046] The shooting position determination module is used to determine the multiple shooting positions based on the acquisition quantity, the focus position and the shooting depth of field;
[0047] The focusing position and the closest depth position within the shooting depth of field range have the same spacing distance between two adjacent shooting positions, and the focusing position and the farthest depth position within the shooting depth of field range have the same spacing distance between two adjacent shooting positions.
[0048] Preferably, the fusion module is used to fuse the multiple collected images based on a contrast pyramid algorithm to obtain the captured photo.
[0049] A photographing system, comprising:
[0050] An interactive module, used to receive a user's photo-taking request;
[0051] A photographing module, used to obtain a photographing depth of field, and photograph at different positions within the photographing depth of field to obtain a plurality of collected images;
[0052] An image processing module, used for fusing the multiple collected images to obtain a photograph;
[0053] The storage module is used to store the taken photos.
[0054] Preferably, the interaction module is further used to determine the target shooting mode in response to a user request;
[0055] The photographing system further includes:
[0056] The display module is used to generate prompt information, where the prompt information is used to prompt the user to keep the same position for shooting.
[0057] An electronic device comprises a camera, a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned photo processing method when executing the computer program;
[0058] And / or, the processor implements the above-mentioned photographing method when executing the computer program.
[0059] A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the above-mentioned photographing processing method when executed by a processor;
[0060] And / or, the computer program implements the above-mentioned photographing method when executed by the processor.
[0061] The positive and progressive effect of the present invention is that after starting to take pictures, multiple images are quickly collected within the depth of field range according to set equal intervals or in other ways, and then the multiple images are fused through an image fusion algorithm, and the result is used as the final photo, so as to make full use of the depth of field information of the image, improve the image quality by fusing images with different depths of field, and achieve the effect of minimizing the loss of image content. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 Flow chart of the photo processing method according to embodiment 1 of the present invention.
[0063] Figure 2This is a flowchart of a first specific implementation method of step 12 in the photo processing method of embodiment 1 of the present invention.
[0064] Figure 3 This is a flowchart of a second specific implementation method of step 12 in the photo processing method of embodiment 1 of the present invention.
[0065] Figure 4 This is a flowchart of a third specific implementation method of step 12 in the photo processing method of embodiment 1 of the present invention.
[0066] Figure 5 Flow chart of the photographing method according to Embodiment 2 of the present invention.
[0067] Figure 6 Schematic diagram of the modules of the photo processing system according to the third embodiment of the present invention.
[0068] Figure 7 Schematic diagram of the modules of the photo processing system according to the fourth embodiment of the present invention.
[0069] Figure 8 This is a schematic diagram of the structure of an electronic device according to Embodiment 5 of the present invention. DETAILED DESCRIPTION
[0070] The present invention is further described below by way of examples, but the present invention is not limited to the scope of the examples.
[0071] Example 1
[0072] A method for photographing, such as Figure 1 As shown, the photo processing method includes:
[0073] Step 11: After receiving a photo request, obtain the shooting depth of field;
[0074] It should be noted that general optical systems have a certain depth of field. The depth of field refers to the distance range in front of and behind the object measured by the imaging that can obtain a clear image in front of the shooting lens. This value can be obtained using the equipment in the existing terminal.
[0075] Step 12, photographing and acquiring a plurality of collected images at different positions within the shooting depth of field;
[0076] Among them, the lens can be controlled to form images at different positions within the depth of field by moving the lens motor and the images obtained on the CCD target surface can be collected by CCD (photosensitive element). In this way, objects at different distances and nearnesses can all be in the focused position. Since different objects are photographed at the focused position, the different images collected are all the clearest.
[0077] Step 13: fuse multiple collected images to obtain a captured photo.
[0078] Specifically, the multiple collected images are fused based on the contrast pyramid algorithm to obtain the photograph. For example, a region-based contrast pyramid image fusion method is preferably used. The method is to first select a window, calculate the Laplace energy for the same pixel position of all collected images, and the maximum value of the Laplace energy is used as the clear pixel point of the pixel position and the position of the pixel point is marked in the mask image; then the mask image is optimized and the noise is removed by using a filtering algorithm to obtain the position and mark of the clear area in each collected image, and the mask pyramid image is constructed by pyramid decomposition; then the contrast pyramid algorithm is used to calculate the collected source image, and the contrast pyramid image calculated for each source image is obtained; then the clear area marked in the mask image pyramid and each layer image of the contrast pyramid are used; finally, a full clear image is reconstructed using the fused contrast pyramid and the bottom layer image.
[0079] In this embodiment, a first specific implementation method of step 12 is provided, such as Figure 2 As shown, specifically including:
[0080] Step 1211, preset shooting parameters, the shooting parameters including the number of images to be captured;
[0081] Step 1212: acquiring a plurality of acquired images by shooting at equally spaced positions within the shooting depth of field based on the acquisition quantity.
[0082] The larger the number of acquisitions, the clearer the final fused image will be, taking into account both data processing speed and complexity. The number of acquisitions can be set or a setting port can be provided as needed, and the user can set it by himself. For example, if the set number of acquisitions is 10 and the acquired shooting depth of field is 50mm, then an acquisition image is acquired at a distance of 5mm, and 10 images are acquired by moving 9 times from the farthest position to the closest position within the depth of field range.
[0083] In this embodiment, a second specific implementation of step 12 is provided, such as Figure 3 As shown, specifically including:
[0084] Step 1221, obtaining the focus position of the shooting;
[0085] Among them, in ordinary photography, the lens motor is usually used to move within the depth of field and collect pictures. The collected pictures are calculated using a clarity evaluation function, and the clarity evaluation function of each picture is compared, and finally the position with the highest clarity is selected as the focus position.
[0086] Step 1222: determining a plurality of shooting positions based on the focus position and the shooting depth of field, where the shooting positions include the focus position;
[0087] Among them, the best picture obtained by the existing technology, such as the clarity evaluation function, is taken into account, and other collected images are comprehensively integrated to improve the clarity of the final photo.
[0088] Step 1223: photograph at multiple shooting positions to obtain multiple collected images.
[0089] In this embodiment, a third specific implementation of step 12 is provided, such as Figure 4 As shown, specifically including:
[0090] Step 1231, obtaining the focus position of the shooting;
[0091] Step 1232, preset shooting parameters, the shooting parameters including the number of images to be captured;
[0092] Step 1232: determining a plurality of shooting positions based on the acquisition quantity, the focus position and the shooting depth of field;
[0093] Step 1234: photograph at multiple shooting positions to obtain multiple collected images.
[0094] The focusing position and the closest depth position within the shooting depth of field range have the same spacing distance between two adjacent shooting positions, and the focusing position and the farthest depth position within the shooting depth of field range have the same spacing distance between two adjacent shooting positions.
[0095] For example, if the number of acquisitions is set to 10, the depth of field is 50mm, and the focus position is 23mm, according to the ratio principle, 23 / 50=4.6, then 5 images are collected at equal intervals between 0 and 23mm, that is, one image is collected every 4.6mm, and 5 images are collected at equal intervals between 23mm and 50mm, that is, one image is collected every 5.4mm. It should be noted that the above is only an example of a method for determining the shooting position, and other methods such as setting according to a preset step length can also be used.
[0096] In this embodiment, after the photo taking is turned on, multiple images are quickly collected within the depth of field range according to set equal intervals or in other ways, and then the multiple images are fused through an image fusion algorithm, and the result is used as the final photo taken, so as to make full use of the depth of field information of the image, improve the image quality by fusing images with different depths of field, and achieve the effect of minimizing the loss of image content.
[0097] Example 2
[0098] A method of taking a photo, such as Figure 5 As shown, the photographing method includes:
[0099] Step 21, determining a target shooting mode in response to a user request;
[0100] Step 22: Generate prompt information, which is used to prompt the user to keep the same position to shoot. For example, the prompt information is "Try to keep the phone still".
[0101] It should be noted that in addition to reminding users to keep their phones as still as possible, it is also necessary to consider the manual problems and other environmental factors that may cause changes in the shooting scene during the shooting process. Therefore, this solution can also be combined with the existing "anti-shake" technology. The principle is that the lens module is "suspended" inside the camera, and the gyroscope is used to detect the camera's shake. When the camera moves, the lens module is controlled to move relative to the image sensor to offset the image offset caused by the hand shake, so that when the camera or the body moves, the original scene can still be captured, thereby ensuring that the scenes of the captured images have not changed.
[0102] Step 23: receiving a user's photo taking request;
[0103] Step 24, obtaining the shooting depth of field;
[0104] Step 25, photographing and acquiring a plurality of collected images at different positions within the shooting depth of field;
[0105] Step 26: fuse multiple collected images to obtain a photograph;
[0106] Step 27: Save the photo.
[0107] In this embodiment, a photo taking mode is set in the mobile phone camera. When this mode is selected, the user is prompted to "keep the phone as still as possible" and then start taking pictures. Multiple images are quickly collected within the depth of field range at set equal intervals or in other ways. The multiple images are then fused through an image fusion algorithm, and the result is used as the final photo. The depth of field information of the image is fully utilized, and the image quality is improved by fusing images with different depths of field, so as to achieve the effect of minimizing the loss of image content.
[0108] Example 3
[0109] A photo processing system, such as Figure 6 As shown, the photo processing system includes:
[0110] Depth of field acquisition module 1, used to obtain the shooting depth of field after receiving a photo request;
[0111] It should be noted that general optical systems have a certain depth of field. The depth of field refers to the distance range in front of and behind the object measured by the imaging that can obtain a clear image in front of the shooting lens. This value can be obtained using the equipment in the existing terminal.
[0112] Capturing module 2, used for capturing multiple captured images at different positions within the shooting depth of field;
[0113] Among them, the lens can be controlled to form images at different positions within the depth of field by moving the lens motor and the images obtained on the CCD target surface can be collected by CCD (photosensitive element). In this way, objects at different distances and nearnesses can all be in the focused position. Since different objects are photographed at the focused position, the different images collected are all the clearest.
[0114] The fusion module 3 is used to fuse the multiple collected images to obtain the captured photos.
[0115] Specifically, the fusion module 3 is used to fuse the multiple collected images based on the contrast pyramid algorithm to obtain the photograph. For example, a region-based contrast pyramid image fusion method is preferably used. The method is to first select a window, calculate the Laplace energy for the same pixel position of all collected images, and use the maximum Laplace energy value as the clear pixel point of the pixel position and mark the position of the pixel point in the mask image; then use the filtering algorithm to optimize the mask image and remove noise, obtain the position and mark of the clear area in each collected image, and construct the mask pyramid image through pyramid decomposition; then use the contrast pyramid algorithm to calculate the collected source image, and obtain the contrast pyramid image after each source image is calculated; then use the clear area marked in the mask image pyramid and each layer of the contrast pyramid image; finally, use the fused contrast pyramid and the bottom layer image to reconstruct a full clear image.
[0116] In this embodiment, see Figure 6 , the photo processing system further includes:
[0117] A preset module 4 is used to preset shooting parameters, wherein the shooting parameters include the number of images to be captured;
[0118] The acquisition module 2 is used for acquiring a plurality of acquired images by shooting at equally spaced positions within the shooting depth of field based on the acquisition quantity.
[0119] The larger the number of acquisitions, the clearer the final fused image will be, taking into account both data processing speed and complexity. The number of acquisitions can be set or a setting port can be provided as needed, and the user can set it by himself. For example, if the set number of acquisitions is 10 and the acquired shooting depth of field is 50mm, then an acquisition image is acquired at a distance of 5mm, and 10 images are acquired by moving 9 times from the farthest position to the closest position within the depth of field range.
[0120] In this embodiment, see Figure 6 , the photo processing system further includes:
[0121] A focus position acquisition module 5, used to acquire the focus position of the shooting;
[0122] Among them, in ordinary photography, the lens motor is usually used to move within the depth of field and collect pictures. The collected pictures are calculated using a clarity evaluation function, and the clarity evaluation function of each picture is compared, and finally the position with the highest clarity is selected as the focus position.
[0123] A shooting position determination module 6, configured to determine a plurality of shooting positions based on the focus position and the shooting depth of field, wherein the shooting positions include the focus position;
[0124] Among them, the best picture obtained by the existing technology, such as the clarity evaluation function, is taken into account, and other collected images are comprehensively integrated to improve the clarity of the final photo.
[0125] The acquisition module 2 is used to capture multiple images at the multiple shooting positions.
[0126] In this embodiment, the shooting position determination module 6 is used to determine the multiple shooting positions based on the acquisition quantity, the focus position and the shooting depth of field;
[0127] The focusing position and the closest depth position within the shooting depth of field range have the same spacing distance between two adjacent shooting positions, and the focusing position and the farthest depth position within the shooting depth of field range have the same spacing distance between two adjacent shooting positions.
[0128] For example, if the number of acquisitions is set to 10, the depth of field is 50mm, and the focus position is 23mm, according to the ratio principle, 23 / 50=4.6, then 5 images are collected at equal intervals between 0 and 23mm, that is, one image is collected every 4.6mm, and 5 images are collected at equal intervals between 23mm and 50mm, that is, one image is collected every 5.4mm. It should be noted that the above is only an example of a method for determining the shooting position, and other methods such as setting according to a preset step length can also be used.
[0129] In this embodiment, after the photo taking is turned on, multiple images are quickly collected within the depth of field range according to set equal intervals or in other ways, and then the multiple images are fused through an image fusion algorithm, and the result is used as the final photo taken, so as to make full use of the depth of field information of the image, improve the image quality by fusing images with different depths of field, and achieve the effect of minimizing the loss of image content.
[0130] Example 4
[0131] A camera system, such as Figure 7 As shown, the photographing system includes:
[0132] An interaction module 71 is used to receive a user's photo taking request;
[0133] A photographing module 72 is used to obtain a photographing depth of field, and to photograph at different positions within the photographing depth of field to obtain a plurality of collected images;
[0134] An image processing module 73, used for fusing the multiple collected images to obtain a photograph;
[0135] The storage module 74 is used to store the taken photos.
[0136] In this embodiment, the interaction module is also used to respond to a user request to determine a target shooting mode;
[0137] The photographing system further includes:
[0138] The display module 75 is used to generate prompt information, and the prompt information is used to prompt the user to keep the same position to shoot. For example, the prompt information is "Try to keep the phone still".
[0139] It should be noted that in addition to reminding users to keep their phones as still as possible, it is also necessary to consider the manual problems and other environmental factors that may cause changes in the shooting scene during the shooting process. Therefore, this solution can also be combined with the existing "anti-shake" technology. The principle is that the lens module is "suspended" inside the camera, and the gyroscope is used to detect the camera's shake. When the camera moves, the lens module is controlled to move relative to the image sensor to offset the image offset caused by the hand shake, so that when the camera or the body moves, the original scene can still be captured, thereby ensuring that the scenes of the captured images have not changed.
[0140] In this embodiment, a photo taking mode is set in the mobile phone camera. When this mode is selected, the user is prompted to "keep the phone as still as possible" and then start taking pictures. Multiple images are quickly collected within the depth of field range at set equal intervals or in other ways. The multiple images are then fused through an image fusion algorithm, and the result is used as the final photo. The depth of field information of the image is fully utilized, and the image quality is improved by fusing images with different depths of field, so as to achieve the effect of minimizing the loss of image content.
[0141] Example 5
[0142] An electronic device includes a camera, a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the photographing method described in Example 1 or the photographing method described in Example 2 is implemented.
[0143] Figure 8 A schematic diagram of the structure of an electronic device provided in this embodiment. Figure 8 A block diagram of an exemplary electronic device 90 suitable for use in implementing embodiments of the present invention is shown. Figure 8 The electronic device 90 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0144] like Figure 8 As shown, the electronic device 90 may be in the form of a general-purpose computing device, for example, it may be a server device. The components of the electronic device 90 may include, but are not limited to: at least one processor 91, at least one memory 92, and a bus 93 connecting different system components (including the memory 92 and the processor 91).
[0145] The bus 93 includes a data bus, an address bus, and a control bus.
[0146] The memory 92 may include a volatile memory, such as a random access memory (RAM) 921 and / or a cache memory 922 , and may further include a read-only memory (ROM) 923 .
[0147] The memory 92 may also include a program tool 925 having a set (at least one) of program modules 924, such program modules 924 including but not limited to: an operating system, one or more application programs, other program modules and program data, each of which or some combination may include the implementation of a network environment.
[0148] The processor 91 executes various functional applications and data processing by running computer programs stored in the memory 92 .
[0149] The electronic device 90 may also communicate with one or more external devices 94 (e.g., keyboards, pointing devices, etc.). Such communication may be performed via an input / output (I / O) interface 95. Furthermore, the electronic device 90 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 96. The network adapter 96 communicates with other modules of the electronic device 90 via a bus 93. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 90, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
[0150] It should be noted that although several units / modules or sub-units / modules of the electronic device are mentioned in the above detailed description, this division is merely exemplary and not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more units / modules described above can be embodied in one unit / module. Conversely, the features and functions of one unit / module described above can be further divided into multiple units / modules to be embodied.
[0151] Example 6
[0152] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the photographing processing method described in Example 1 or the photographing method described in Example 2 is implemented.
[0153] The readable storage medium may include but is not limited to: a portable disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical storage device, a magnetic storage device or any suitable combination of the above.
[0154] In a possible implementation manner, the present invention can also be implemented in the form of a program product, which includes a program code. When the program product is run on a terminal device, the program code is used to enable the terminal device to execute the photo processing method described in Example 1, or the photo taking method described in Example 2.
[0155] The program code for executing the present invention may be written in any combination of one or more programming languages, and may be executed entirely on a user device, partially on a user device, as an independent software package, partially on a user device and partially on a remote device, or entirely on a remote device.
[0156] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that this is only for illustration and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, but these changes and modifications all fall within the protection scope of the present invention.
Claims
1. A photo processing method, characterized in that: The photographing processing method comprises: After receiving a photo request, obtain the shooting depth of field; Shooting and acquiring a plurality of collected images at different positions within the shooting depth of field; fusing the multiple collected images to obtain a photograph; The acquiring of a plurality of collected images by shooting at different positions within the shooting depth of field specifically includes: Get the focus position of the shot; determining a plurality of shooting positions based on the focus position and the shooting depth of field, the shooting positions including the focus position; Shooting and acquiring a plurality of collected images at the plurality of shooting positions; The photographing processing method further includes: Preset shooting parameters, wherein the shooting parameters include the number of images to be captured; The step of determining a plurality of shooting positions based on the focus position and the shooting depth of field, wherein the shooting positions include the focus position, comprises: Determine the plurality of shooting positions based on the acquisition quantity, the focus position and the shooting depth of field; The focusing position and the closest depth position within the shooting depth of field range have the same spacing distance between two adjacent shooting positions, and the focusing position and the farthest depth position within the shooting depth of field range have the same spacing distance between two adjacent shooting positions.
2. The photographing processing method according to claim 1, characterized in that: The fusing of the multiple collected images to obtain the photograph comprises: The captured photo is obtained by fusing the multiple collected images based on a contrast pyramid algorithm.
3. A photographing method, characterized in that: The photographing method comprises: Receive the user's photo request; Get the shooting depth of field; Shooting and acquiring a plurality of collected images at different positions within the shooting depth of field; fusing the multiple collected images to obtain a photograph; Saving the taken photos; The method of acquiring a plurality of collected images by shooting at different positions within the shooting depth of field includes: Get the focus position of the shot; Preset shooting parameters, including the number of images to be captured; Determine multiple shooting positions based on the number of acquisitions, the focus position, and the shooting depth of field; Shooting at multiple shooting positions to obtain multiple collected images; wherein the interval distance between the focus position and the closest depth of field position within the shooting depth of field range is the same as the interval distance between two adjacent shooting positions, and the interval distance between the focus position and the farthest depth of field position within the shooting depth of field range is the same as the interval distance between two adjacent shooting positions.
4. The photographing method according to claim 3, characterized in that: The photographing method further comprises: determining a target shooting mode in response to a user request; Prompt information is generated, where the prompt information is used to prompt the user to maintain the same position for shooting.
5. A photo processing system, characterized in that: The photographing processing system comprises: A depth-of-field acquisition module is used to obtain the shooting depth of field after receiving a photo request; An acquisition module, used for acquiring a plurality of acquired images by shooting at different positions within the shooting depth of field; A fusion module, used for fusing the multiple collected images to obtain a photograph; The photographing processing system further includes: A focus position acquisition module, used to acquire the focus position of the shooting; a shooting position determining module, configured to determine a plurality of shooting positions based on the focus position and the shooting depth of field, wherein the shooting positions include the focus position; The acquisition module is used to acquire multiple acquired images by photographing at the multiple shooting positions; The photographing processing system further includes: A preset module, used to preset shooting parameters, wherein the shooting parameters include the number of images to be captured; The shooting position determination module is further used to determine the multiple shooting positions based on the acquisition quantity, the focus position and the shooting depth of field; The focusing position and the closest depth position within the shooting depth of field range have the same spacing distance between two adjacent shooting positions, and the focusing position and the farthest depth position within the shooting depth of field range have the same spacing distance between two adjacent shooting positions.
6. The photograph processing system according to claim 5, characterized in that: The fusion module is used to fuse the multiple collected images based on a contrast pyramid algorithm to obtain the captured photo.
7. An electronic device comprising a camera, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the photographing processing method according to any one of claims 1 to 2 is implemented; And / or, the processor implements the photographing method described in claim 3 or 4 when executing the computer program.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the photographing processing method according to any one of claims 1 to 2 is implemented; And / or, when the computer program is executed by a processor, it implements the photographing method described in claim 3 or 4.
Citation Information
Patent Citations
Mobile terminal picture shooting method and system
CN103685962A
Method and apparatus for obtaining extended depth of field image, and electronic device
WO2021052487A1