Photographing method, photographing device, electronic equipment and readable storage medium
By adjusting the frame acquisition strategy and synthesis process according to the working status of the flash, the problem of inconsistency in image in photography technology is solved, and a better photography experience and effect is achieved.
Patent Information
- Application Number
- CN202311394325.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-25
- Publication Date
- 2025-04-25
AI Technical Summary
In the existing photography technology, when synthesising multiple frames of original images, the images displayed quickly and the final image are prone to inconsistent images, resulting in user visual jumps and reducing the photography experience.
Determine the target frame acquisition strategy based on the working state of the flash, obtain the preset target frame number original images, determine the basic image for display, and perform multi-frame synthesis based on the basic image, generate a second target image, and update the display to ensure consistency.
By ensuring consistency between the first target image and the second target image, visual jumps are avoided, the user's photography experience is improved, and the photography effect is improved.
Smart Images

Figure CN119893266A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic technology, and in particular to a photographing method, a photographing device, an electronic device and a readable storage medium. Background Art
[0002] With the popularization of photographing equipment, many different photographing technologies have emerged. In order to improve the clarity of the captured image, multiple frames of original images are usually synthesized to obtain the final captured image. In the related art, when taking a photo based on the synthesis of multiple frames of original images, the image used for quick display and the final image are prone to image inconsistency, causing serious visual jumps to users, resulting in a poor user photography experience. Summary of the invention
[0003] In order to overcome the problems existing in the related art, the present disclosure provides a photographing method, a photographing device, an electronic device and a readable storage medium.
[0004] According to a first aspect of an embodiment of the present disclosure, a photographing method is provided, the photographing method comprising:
[0005] Determine a target frame grabbing strategy corresponding to the working state according to the working state of the flash, wherein the target frame grabbing strategies corresponding to different working states have different frame grabbing waiting times;
[0006] According to the target frame acquisition strategy, a preset number of target frames of the first original image are acquired during this photo shooting;
[0007] Determine a basic image for multi-frame synthesis from the preset target frame number of first original images;
[0008] Displaying the basic image as the first target image of this photography;
[0009] Taking the basic image as a reference, synthesizing multiple frames of other first original images except the basic image to generate a second target image for this shooting;
[0010] The first target image is updated to the second target image for display.
[0011] Optionally, when the working state of the flash is enabled, acquiring a preset target number of frames of the first original image during this photo shooting according to the target frame acquisition strategy includes:
[0012] Determine the target exposure time of the image acquisition device for this photo shooting according to the current environmental parameters of the photo shooting scene;
[0013] Determine the frame acquisition waiting time according to the target exposure time and the preset target number of frames;
[0014] The original image is acquired within the frame acquisition waiting time to acquire the first original image of the preset target frame number during the current photo shooting.
[0015] Optionally, determining the frame acquisition waiting time according to the target exposure time and a preset target number of frames includes:
[0016] The product of the target exposure time and the preset target number of frames is determined as the frame acquisition waiting time.
[0017] Optionally, before determining the frame acquisition waiting time according to the exposure time and the preset target number of frames, the method further includes:
[0018] It is determined that the target exposure time of the image acquisition device during this photo shooting is greater than the first exposure time, where the first exposure time is the exposure time of the image acquisition device when the working state of the flash is a disabled state.
[0019] Optionally, the current environmental parameter includes at least one of the following: an identifier for characterizing the working state of the flash, the size of the aperture of the image acquisition device, the amount of light entering, and the light intensity.
[0020] Optionally, determining a basic image for multi-frame synthesis from the preset target number of first original images includes:
[0021] According to the sharpness of each of the first original images, a basic image for multi-frame synthesis is determined from the preset target number of first original images.
[0022] Optionally, after generating the second target image of this photographing, the photographing method further includes:
[0023] The second target image is stored.
[0024] Optionally, the photographing method further includes:
[0025] In response to receiving a photographing instruction, the working state of the flash is determined, where the working state includes an enabled state and a disabled state.
[0026] According to a second aspect of an embodiment of the present disclosure, a photographing device is provided, the photographing device comprising:
[0027] A first determination module is configured to determine a target frame acquisition strategy corresponding to the working state according to the working state of the flash, wherein the target frame acquisition strategies corresponding to different working states have different frame acquisition waiting times;
[0028] An acquisition module is configured to acquire a preset target number of frames of the first original image during this photo shooting according to the target frame acquisition strategy;
[0029] A second determining module is configured to determine a basic image for multi-frame synthesis from the preset target number of first original images;
[0030] A first display module is configured to display the basic image as a first target image for this shooting;
[0031] A generating module is configured to perform a multi-frame synthesis of other first original images except the basic image based on the basic image to generate a second target image for this shooting;
[0032] The second display module is configured to update the first target image to the second target image for display.
[0033] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0034] Image acquisition device;
[0035] processor;
[0036] a memory for storing processor-executable instructions;
[0037] Wherein, the processor is configured to:
[0038] Determine a target frame grabbing strategy corresponding to the working state according to the working state of the flash, wherein the target frame grabbing strategies corresponding to different working states have different frame grabbing waiting times;
[0039] According to the target frame acquisition strategy, a preset number of target frames of the first original image are acquired during this photo shooting;
[0040] Determine a basic image for multi-frame synthesis from the preset target frame number of first original images;
[0041] Displaying the basic image as the first target image of this photography;
[0042] Taking the basic image as a reference, synthesizing multiple frames of other first original images except the basic image to generate a second target image for this shooting;
[0043] The first target image is updated to the second target image for display.
[0044] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the photographing method provided in the first aspect of the present disclosure are implemented.
[0045] By adopting the above technical solution, according to the target frame-taking strategy corresponding to the working state of the flash, the first original image of the preset target frame number is obtained for this photo shooting, wherein the frame-taking waiting time of the target frame-taking strategy corresponding to different working states is different. That is, no matter what the working state of the flash is, the first original image of the preset target frame number can be obtained, and then when the first target image and the second target image of this photo shooting are obtained based on the first original image of the preset target frame number, the consistency of the first target image and the second target image generated based on the multi-frame synthesis technology can be ensured, the photo shooting effect is improved, and when the first target image is updated to the second target image for display, it is avoided to cause a serious visual jump to the user, thereby improving the user's photo shooting experience.
[0046] 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
[0047] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0048] Figure 1 The figure is a flow chart of a photographing method according to an exemplary embodiment.
[0049] Figure 2 The figure is a schematic diagram showing a first interface and a second interface according to an exemplary embodiment.
[0050] Figure 3 is a flow chart of another photographing method according to an exemplary embodiment.
[0051] Figure 4 The invention is a block diagram of a photographing device according to an exemplary embodiment.
[0052] Figure 5 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION
[0053] 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.
[0054] It should be noted that all actions of acquiring signals, information or data in the present disclosure are carried out in compliance with the relevant data protection laws and policies of the country where the device is located and with the authorization given by the owner of the corresponding device.
[0055] When the flash is off (i.e., the flash is not enabled), the exposure time of the camera, i.e., the time it takes for the sensor in the camera to produce one frame of raw image, is usually 33ms. For example, the number of frames of raw images required by the multi-frame noise reduction technology for multi-frame synthesis is usually 8 frames, and the required frame waiting time is 264ms. That is, in the related technology, the default frame waiting time is 264ms, and the backend will successfully obtain 8 frames of raw images within 264ms, and then perform synthesis operations based on the 8 frames of raw images to obtain the final stored second target image.
[0056] When the light for taking pictures is dim, that is, the flash is on (that is, the flash is enabled), the exposure time of the camera, that is, the time it takes for the sensor to produce one frame of raw image, will usually increase, for example, to 70ms. Then, within the default frame waiting time of 264ms, the back end cannot obtain 8 frames of raw images in the frame acquisition operation. For example, only 3 frames of raw images can be obtained or 8 frames of raw images from the last photo can be obtained. Therefore, a synthesis operation is subsequently performed based on the obtained 3 frames of raw images or the 8 frames of raw images from the last photo to obtain the final stored second target image.
[0057] For example, when the flash is enabled, the exposure time output by the exposure time algorithm library increases, for example, to 70ms. Within the default frame waiting time, the original image required by the multi-frame noise reduction technology for this photo cannot be obtained. For example, 3 frames of original images are obtained in 264ms under a photo request with original frames, or 8 frames of original images are obtained when the last photo is taken under a photo request without original frames. After that, one frame of image is selected from the 3 frames of original images or the 8 frames of original images as the basic image, wherein the basic image is displayed as the first target image on the one hand, and is synthesized as a synthetic reference image for multiple frames to obtain the final second target image on the other hand, and then the first target image is updated to the second target image for display. However, for photo requests with original frames, the number of original images obtained for synthesis does not meet the requirements of the multi-frame noise reduction technology. For photo requests without original frames, the 8 frames of original images obtained are inconsistent with the time of this photo, that is, the 8 frames of original images obtained may be quite different from the current photo scene, resulting in a large difference between the final synthesized photo image, i.e., the second target image, and the first target image quickly displayed at the end of the photo shooting, resulting in a poor photo effect, which causes a serious visual jump to the user and a poor photo experience for the user.
[0058] It should be understood that when the flash is not enabled, the exposure time is usually related to the camera hardware, which can be 33ms or other times, and the present disclosure does not limit this. In addition, the number of frames of the original image required by the multi-frame noise reduction technology is related to the accuracy of the synthesis algorithm. If the accuracy of the synthesis algorithm is high, the number of frames of the original image required is 6, and if the accuracy of the synthesis algorithm is low, the number of frames of the original image required is 8. Of course, the number of frames of the original image required can also be other values, and the present disclosure does not specifically limit this.
[0059] In order to ensure the consistency between the final synthesized second target image and the first target quickly displayed when shooting is completed, avoid causing serious visual jumps to the user, and improve the user's shooting experience, the present disclosure provides a shooting method, a shooting device, an electronic device and a readable storage medium.
[0060] Figure 1 FIG. 1 is a flow chart of a method for taking photos according to an exemplary embodiment. Figure 1 As shown, the photographing method may include the following steps.
[0061] In step S11, according to the working state of the flash, a target frame acquisition strategy corresponding to the working state is determined.
[0062] Among them, the frame fetching waiting time of the target frame fetching strategy corresponding to different working states is different.
[0063] For example, the image acquisition device may be any device having an image acquisition function and an image preview interface, for example, the image acquisition device may be a camera on an electronic device, the camera may include a sensor of the camera, and the sensor of the camera may be able to acquire and output an original image, that is, a raw image. The original image may be an RGB image.
[0064] It should be understood that when the ambient brightness of the photo is poor and the exposure is insufficient, the user or the image acquisition device automatically turns on the flash, so that the flash is in an enabled state, and the exposure is enhanced by the flash. The flash can be turned on in a manner that, when the user clicks on the flash icon displayed on the interface of the image acquisition device, the image acquisition device controls the flash to be turned on, so that the flash is in an enabled state, which is not elaborated in this disclosure.
[0065] In the present disclosure, the working state of the flash can be determined when the photo application is opened, wherein the working state of the flash includes an enabled state and a disabled state. Afterwards, the target frame strategy corresponding to the working state is determined according to the working state of the flash. However, considering that the time of opening the photo application and the time of actually taking the photo may be quite different, the result determined when the application is opened may be inconsistent with the result when the photo is actually taken. Therefore, in order to improve the accuracy of the above-mentioned determination result, in one embodiment, before step S11, the photo method further includes: in response to receiving a photo instruction, determining the working state of the flash, wherein the working state includes an enabled state and a disabled state.
[0066] For example, when it is detected that the photo button is pressed, a photo instruction is generated. When the back end receives the photo instruction, it determines the working state of the flash, and then determines the target frame strategy corresponding to the working state according to the working state of the flash.
[0067] In this way, the working state of the flash is determined when a photographing instruction is received, thereby improving the reliability and accuracy of the determined working state of the flash.
[0068] In step S12, according to the target frame acquisition strategy, a preset target frame number of first original images in this photo shooting is acquired.
[0069] For example, a preset target frame number of first original images may be acquired from a sensor for collecting images.
[0070] In order to ensure that a preset target number of frames of the first original image can be obtained, in one embodiment of the present disclosure, the number of the first original images obtained can be counted in real time until the preset target number of frames of the first original image is obtained. For example, the sensor will store the first original image after each frame of the first original image is output, and the backend executing the photographing method will count the number of first original images stored during this photographing, until the number of stored first original images reaches the preset target number of frames, and the stored preset target number of frames of the first original image is obtained.
[0071] The preset target frame number may be 6 frames or 8 frames. In the present disclosure, the preset target frame number of 8 may be taken as an example for explanation.
[0072] In step S13, a basic image for multi-frame synthesis is determined from a preset target number of first original images.
[0073] After obtaining a preset target number of first original images, the preset target number of first original images are input into an anchor picking algorithm, and the algorithm is used to determine a basic image for multi-frame synthesis from the preset target number of first original images.
[0074] In the present disclosure, a basic image for multi-frame synthesis can be determined from a preset number of target frames of first original images according to image evaluation indicators, wherein the image evaluation indicators may include but are not limited to: image saliency and noise indicators, clarity indicators, contrast indicators, and blurriness.
[0075] In one embodiment, the basic image may be determined according to a clarity index of each first original image. The clarity index may be sharpness. The above step S13 determines the basic image for multi-frame synthesis from a preset target number of first original images, including: determining the basic image for multi-frame synthesis from a preset target number of first original images according to the sharpness of each first original image.
[0076] For example, after the sharpness of each first original image is determined, the first original image with the greatest sharpness is determined as the basic image for multi-frame synthesis.
[0077] In this way, by determining the basic image according to the sharpness of each first original image, a clearer basic image can be determined. When subsequently displayed or synthesized based on the basic image, the clarity of the displayed image and the final synthesized second target image can be improved, thereby improving the user's photo-taking experience.
[0078] In step S14, the basic image is displayed as the first target image of this photographing.
[0079] In the present disclosure, after determining the basic image, the back end sends the basic image to the image acquisition device, so that the image acquisition device displays the basic image as the first target image quick view. Among them, when taking a photo, when the user clicks the photo button, a frame of image will be displayed at the bottom left of the mobile phone display, and this image is the first target image. In addition, when the user clicks the photo button, the first interface of the mobile phone will also display a preview image of the moment of taking the photo. The mobile phone display includes a first interface and a second interface. The first interface can be a preview interface, that is, an interface for displaying a preview image of the moment of taking the photo, and the second interface is used to display the first target image, the photo button, the camera working scene, etc.
[0080] Figure 2 FIG. 1 is a schematic diagram showing a first interface and a second interface according to an exemplary embodiment. Figure 2 As shown, the first target image is displayed in area a of the second interface of the mobile phone display screen, and the preview image at the moment of taking a photo is displayed on the first interface b at the moment the user presses the photo button. Figure 2 The second interface also includes a camera button 100 and a camera working scene. The camera working scene may include a professional scene, a movie scene, a video scene, a photo scene, a portrait scene, a document scene and more scenes. In addition, the second interface also displays a flash icon. Figure 2 The working state of the flash lamp 200 shown is an enabled state.
[0081] For example, after determining the base image, the backend saves the timestamp of the base image to the request corresponding to this photo, and then sends the request to the image acquisition device. The image acquisition device obtains the timestamp from the request, determines the base image based on the timestamp, and displays it as the first target image quickview of this photo at the lower left of the mobile phone display.
[0082] In step S15, the basic image is used as a reference, and multiple frames of other first original images except the basic image are synthesized to generate a second target image for this shooting.
[0083] In step S16, the first target image is updated to the second target image for display.
[0084] In the present disclosure, after determining the base image, the back end also uses the base image as a reference to perform multi-frame synthesis on other first original images other than the base image to generate the second target image of this photo. For example, the back end converts the first original images of the acquired target frames into Bayer 2yuv format, that is, converts the RGB image into a yuv image, and then inputs the yuv image, multi-frame synthesis related parameters, and the timestamp of the base image into the multi-frame noise reduction algorithm library to perform multi-frame synthesis using the algorithm library. Among them, the yuv image is an image encoded using the color encoding method such as YUV. For example, the multi-frame noise reduction algorithm library determines the base image according to the timestamp of the base image, and then, based on the base image, performs multi-frame synthesis on the yuv images of other first original images other than the base image to generate a second target image with higher clarity. Among them, the multi-frame synthesis related parameters refer to the related parameters required for synthesis.
[0085] After the second target image is generated, the first target image displayed on the lower left of the mobile phone interface is updated to the second target image, so that the image viewed by the user is the second target image finally generated. In addition, since the first target image and the second target image are consistent, after the update, there will be no visual jump to the user, thus improving the user's photo taking experience.
[0086] It should be understood that step S14 and step S15 are processed in parallel. Before the synthesis operation is completed, that is, before the second target image is generated, the image of the current photo taken by the user is the first target image. After the second target is generated, the first target image is updated to the second target image for display, so that the user can see a clearer synthesized second target image. Therefore, if the first target image is consistent with the second target image generated by multi-frame synthesis, it will not cause visual jumps to the user.
[0087] By adopting the above technical solution, according to the target frame-taking strategy corresponding to the working state of the flash, the first original image of the preset target frame number is obtained for this photo shooting, wherein the frame-taking waiting time of the target frame-taking strategy corresponding to different working states is different. That is, no matter what the working state of the flash is, the first original image of the preset target frame number can be obtained, and then when the first target image and the second target image of this photo shooting are obtained based on the first original image of the preset target frame number, the consistency of the first target image and the second target image generated based on the multi-frame synthesis technology can be ensured, the photo shooting effect is improved, and when the first target image is updated to the second target image for display, it is avoided to cause a serious visual jump to the user, thereby improving the user's photo shooting experience.
[0088] In addition, the above-mentioned technical solution can also ensure the consistency among the preview image at the moment of taking a picture, the first target image and the finally generated second target image, avoid the jump among the preview image at the moment of taking a picture, the first target image and the finally generated second target image, and further enhance the user's photo-taking experience.
[0089] In accordance with Figure 1 After the photographing method shown generates the second target image of the current photographing, the photographing method may further include: storing the second target image. In this way, the finally generated second target image is stored, and the user can view a clearer image when viewing the image later, further improving the user's photographing experience.
[0090] In one embodiment, when the working state of the flash is enabled, obtaining a preset target number of frames of the first original image during the current photo shooting according to the target frame acquisition strategy may include:
[0091] Determine the target exposure time of the image acquisition device for this photo shooting according to the current environmental parameters of the photo shooting scene;
[0092] In the present disclosure, the target exposure time of the image acquisition device refers to the exposure time of the sensor of the image acquisition device, or the time it takes for the sensor to produce one frame of image. The current environmental parameters of the photographing scene include at least one of the following: an identifier for representing whether the flash is in an on state, the size of the aperture of the image acquisition device, the amount of light entering, and the light intensity lux. Exemplarily, the current environmental parameters are input into the exposure time algorithm library to obtain the target exposure time of the image acquisition device during this photographing. The exposure time algorithm library includes an algorithm for calculating the exposure time. For example, the identifier for representing whether the flash is in an on state can be 0 or 1, wherein 1 represents that the flash is in an on state, and 0 represents that the flash is in an off state.
[0093] In one possible manner, the exposure time algorithm library calculates the target exposure time of the image acquisition device during this photo shooting according to the current environmental parameters and outputs it.
[0094] In another possible manner, the exposure time algorithm library calculates the exposure range of the image acquisition device during this photo shooting according to the current environmental parameters, and the exposure range includes the number of exposure lines. Then, according to the number of exposure lines and the default exposure time of each line, the target exposure time for the image acquisition device to acquire a frame of image during this photo shooting is determined. For example, the product of the number of exposure lines and the default exposure time of each line is determined as the target exposure time.
[0095] Determine the frame acquisition waiting time according to the target exposure time and the preset target frame number;
[0096] The frame acquisition waiting time refers to the time used to acquire a preset target number of first original images.
[0097] In one implementation, the frame fetching waiting time is determined according to the product of the target exposure time and the preset target number of frames.
[0098] For example, the frame-taking waiting time is determined by multiplying the target exposure time and the preset target number of frames. For example, assuming that the target exposure time is 70 ms and the target number of frames is 8, the frame-taking waiting time is 560 ms.
[0099] As another example, the frame waiting time can also be determined by multiplying the exposure time and the preset target frame number by the sum of the preset value. For example, assuming the target exposure time is 70ms, the target frame number is 8, and the preset value is 10ms, the frame waiting time is 570ms.
[0100] The original image is acquired within the frame acquisition waiting time to acquire the first original image of the preset target frame number during the current photo shooting.
[0101] For example, after determining the frame waiting time, the frame waiting time can be sent to the frame taking logic, where the frame taking logic refers to the logic for obtaining the preset target number of first original images. For example, if the default frame waiting time of the frame taking logic is 264ms, and the frame waiting time of this photo is 560ms, the frame waiting time is updated from 264ms to 560ms, so that the frame taking logic can obtain the preset target number of first original images according to the updated frame waiting time, i.e., 560ms.
[0102] In order to ensure that the preset target number of frames of the first original image can be obtained, the target exposure time determined is greater than the time it takes for the sensor to actually produce a frame of image, and the frame waiting time determined is greater than the total time it takes for the sensor to actually produce the preset target number of frames of image. In order to increase the shooting rate and avoid a long waiting time, in the present disclosure, when the preset target number of frames of the first original image is obtained during the frame waiting time, the operation of obtaining the original image can be stopped, that is, the frame taking operation is ended, and the operation is directly executed regardless of whether the frame waiting time is over. Figure 1 Steps S13 to S16 in .
[0103] When the working state of the flash is an enabled state, the exposure time of the image acquisition device should be greater than the exposure time of the image acquisition device when the working state of the flash is a disabled state. Therefore, before determining the frame acquisition waiting time according to the exposure time and the preset target frame number, according to the target frame acquisition strategy, the first original image of the preset target frame number during this photo shooting is obtained, which also includes: determining that the target exposure time of the image acquisition device during this photo shooting is greater than the first exposure time, and the first exposure time is the exposure time of the image acquisition device when the working state of the flash is a disabled state.
[0104] The adoption of the above technical solution improves the accuracy of the determined target exposure time, and thus can accurately determine the frame waiting time for this photo shooting, further ensuring the consistency of the first target image and the second target image generated based on the multi-frame synthesis technology, improving the photo shooting effect, and avoiding serious visual jumps for users.
[0105] Figure 3 FIG. 1 is a flow chart of another method for taking photos according to an exemplary embodiment. Figure 3 As shown, the photographing method may include:
[0106] In step S31 , a camera application is started.
[0107] In step S32, when receiving the photo taking instruction, the working state of the flash is determined. If the working state is disabled, the following step S33 is executed, and if the working state is enabled, step S34 is executed.
[0108] In step S33, according to the standard of exposure time of 33 ms, the first original image is acquired within the frame waiting time of 264 ms, so as to acquire the first original image of the preset target frame number in this photo shooting.
[0109] In step S34, the current environmental parameters of the photographing scene are obtained.
[0110] The current environmental parameters include at least one of the following: an identifier for characterizing the working state of the flash, the size of the aperture of the image acquisition device, the amount of light entering, and the light intensity.
[0111] In step S35, the current environmental parameters are input into the AE algorithm library to obtain the exposure range.
[0112] In step S36, the target exposure time of the image acquisition device during this photo shooting is determined according to the exposure range.
[0113] For example, the exposure range includes the number of exposure rows, and the product of the number of exposure rows and the preset exposure time of each row is determined as the target exposure time.
[0114] In step S37, the product of the target exposure time and the preset target number of frames is determined as the frame acquisition waiting time.
[0115] In step S38, a preset target number of first original images of the current photographing is acquired within the frame acquisition waiting time.
[0116] In step S39, a basic image for multi-frame synthesis is determined from a preset target number of first original images.
[0117] In step S310, the basic image is displayed as the first target image of this photographing.
[0118] For example, the basic image is sent to the front end of the camera so as to be displayed as the first target image of the current photo shooting in a preset area, for example, the lower left area of the camera interface.
[0119] In step S311, the basic image is used as a reference, and multiple frames of other first original images except the basic image are synthesized to generate a second target image for this shooting.
[0120] In step S312, the first target image is updated to a second target image for display, and the target image is stored.
[0121] The implementation methods of the above steps have been described in detail above and will not be repeated here.
[0122] Based on the same inventive concept, the present disclosure provides a photographing device. Figure 4 FIG. 1 is a block diagram of a photographing device according to an exemplary embodiment. Figure 4 As shown, the photographing device 400 includes:
[0123] The first determination module 401 is configured to determine a target frame acquisition strategy corresponding to the working state according to the working state of the flash, wherein the target frame acquisition strategies corresponding to different working states have different frame acquisition waiting times;
[0124] The acquisition module 402 is configured to acquire a preset target number of frames of the first original image during the current photo shooting according to the target frame acquisition strategy;
[0125] The second determining module 403 is configured to determine a basic image for multi-frame synthesis from the preset target number of first original images;
[0126] A first display module 404 is configured to display the basic image as a first target image for this shooting;
[0127] The generating module 405 is configured to perform a multi-frame synthesis on other first original images except the basic image based on the basic image to generate a second target image for this shooting;
[0128] The second display module 406 is configured to update the first target image to the second target image for display.
[0129] Optionally, when the working state of the flashlight is enabled, the acquisition module 402 may include:
[0130] A first determination submodule is configured to determine a target exposure time of the image acquisition device during this photo shooting according to current environmental parameters of the photo shooting scene;
[0131] A second determination submodule is configured to determine a frame acquisition waiting time according to the target exposure time and a preset target number of frames;
[0132] The acquisition submodule is configured to acquire the original image within the frame acquisition waiting time to acquire the first original image of the preset target frame number during the current photo shooting.
[0133] Optionally, the second determination submodule is configured to: determine the product of the target exposure time and a preset target number of frames as the frame fetching waiting time.
[0134] Optionally, before determining the frame acquisition waiting time according to the target exposure time and the preset target number of frames, the acquisition module 402 may further include:
[0135] The third determination submodule is configured to determine that the target exposure time of the image acquisition device during this photo shooting is greater than the first exposure time, where the first exposure time is the exposure time of the image acquisition device when the working state of the flash is disabled.
[0136] The current environmental parameters include at least one of the following: an identifier for characterizing the working state of the flash, the size of the aperture of the image acquisition device, the amount of light entering, and the light intensity.
[0137] Optionally, the second determination module 403 is configured to determine a basic image for multi-frame synthesis from the preset target number of first original images according to the sharpness of each of the first original images.
[0138] Optionally, after generating the second target image of this photographing, the photographing device 400 may further include:
[0139] A storage module is configured to store the second target image.
[0140] Optionally, the photographing device 400 further includes:
[0141] The third determination module is configured to determine the working state of the flash in response to receiving a photo taking instruction, wherein the working state includes an enabled state and a disabled state.
[0142] Regarding the device in the above embodiment, the manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0143] The present disclosure also provides a computer-readable storage medium on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the photographing method provided by the present disclosure are implemented.
[0144] Figure 5 8 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 800 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.
[0145] Reference Figure 5 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output interface 812 , a sensor component 814 , and a communication component 816 .
[0146] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0147] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 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.
[0148] The power supply component 806 provides power to the various components of the electronic device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 800.
[0149] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 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 808 includes a front camera and / or a rear camera. When the electronic device 800 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.
[0150] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.
[0151] The input / output interface 812 provides an interface between the processing component 802 and the peripheral interface modules, which may be 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.
[0152] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the electronic device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of contact between the user and the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 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 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0153] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 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 816 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.
[0154] In an exemplary embodiment, the electronic device 800 may 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 photographing method.
[0155] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to complete the above-mentioned photographing 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.
[0156] In another exemplary embodiment, a computer program product is further provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above-mentioned photographing method when executed by the programmable device.
[0157] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the present disclosure. 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 as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0158] 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.
Claims
1. A photographing method, characterized in that: The photographing method comprises: Determine a target frame grabbing strategy corresponding to the working state according to the working state of the flash, wherein the target frame grabbing strategies corresponding to different working states have different frame grabbing waiting times; According to the target frame acquisition strategy, a preset number of target frames of the first original image are acquired during this photo shooting; Determine a basic image for multi-frame synthesis from the preset target frame number of first original images; Displaying the basic image as the first target image of this photography; Taking the basic image as a reference, synthesizing multiple frames of other first original images except the basic image to generate a second target image for this shooting; The first target image is updated to the second target image for display.
2. The photographing method according to claim 1, characterized in that: When the working state of the flash is enabled; obtaining a preset number of target frames of the first original image during this photo shooting according to the target frame acquisition strategy, including: Determine the target exposure time of the image acquisition device for this photo shooting according to the current environmental parameters of the photo shooting scene; Determine the frame acquisition waiting time according to the target exposure time and the preset target number of frames; The original image is acquired within the frame acquisition waiting time to acquire the first original image of the preset target frame number during the current photo shooting.
3. The method according to claim 2, characterized in that Determining the frame acquisition waiting time according to the target exposure time and the preset target number of frames includes: The product of the target exposure time and the preset target number of frames is determined as the frame acquisition waiting time.
4. The method according to claim 2, characterized in that: Before determining the frame acquisition waiting time according to the exposure time and the preset target number of frames, the method further includes: It is determined that the target exposure time of the image acquisition device during this photo shooting is greater than the first exposure time, where the first exposure time is the exposure time of the image acquisition device when the working state of the flash is a disabled state.
5. The method according to claim 1, characterized in that The current environmental parameters include at least one of the following: an identifier for characterizing the working state of the flash, the size of the aperture of the image acquisition device, the amount of light entering, and the light intensity.
6. The photographing method according to claim 1, characterized in that: The step of determining a basic image for multi-frame synthesis from the preset target number of first original images includes: According to the sharpness of each of the first original images, a basic image for multi-frame synthesis is determined from the preset target number of first original images.
7. The photographing method according to any one of claims 1 to 6, characterized in that: After generating the second target image of this photographing, the photographing method further includes: The second target image is stored.
8. The photographing method according to any one of claims 1 to 6, characterized in that: The photographing method further comprises: In response to receiving a photographing instruction, the working state of the flash is determined, where the working state includes an enabled state and a disabled state.
9. A photographing device, characterized in that: The photographing device comprises: A first determination module is configured to determine a target frame acquisition strategy corresponding to the working state according to the working state of the flash, wherein the target frame acquisition strategies corresponding to different working states have different frame acquisition waiting times; An acquisition module is configured to acquire a preset target number of frames of the first original image during this photo shooting according to the target frame acquisition strategy; A second determining module is configured to determine a basic image for multi-frame synthesis from the preset target number of first original images; A first display module is configured to display the basic image as a first target image for this shooting; A generating module is configured to perform a multi-frame synthesis of other first original images except the basic image based on the basic image to generate a second target image for this shooting; The second display module is configured to update the first target image to the second target image for display.
10. An electronic device, characterized in that: include: Image acquisition device; processor; a memory for storing processor-executable instructions; Wherein, the processor is configured to: Determine a target frame grabbing strategy corresponding to the working state according to the working state of the flash, wherein the target frame grabbing strategies corresponding to different working states have different frame grabbing waiting times; According to the target frame acquisition strategy, a preset number of target frames of the first original image are acquired during this photo shooting; Determine a basic image for multi-frame synthesis from the preset target frame number of first original images; Displaying the basic image as the first target image of this photography; Taking the basic image as a reference, multiple frames of other first original images except the basic image are synthesized to generate a second target image for this shooting; The first target image is updated to the second target image for display.
11. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the program instructions are executed by a processor, the steps of the method described in any one of claims 1 to 8 are implemented.