WO2021052232A1 - 一种延时摄影的拍摄方法及设备 - Google Patents
一种延时摄影的拍摄方法及设备 Download PDFInfo
- Publication number
- WO2021052232A1 WO2021052232A1 PCT/CN2020/114366 CN2020114366W WO2021052232A1 WO 2021052232 A1 WO2021052232 A1 WO 2021052232A1 CN 2020114366 W CN2020114366 W CN 2020114366W WO 2021052232 A1 WO2021052232 A1 WO 2021052232A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- shooting
- electronic device
- scene
- target
- time
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/62—Control of parameters via user interfaces
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/631—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/631—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
- H04N23/632—Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/63—Control of cameras or camera modules by using electronic viewfinders
- H04N23/633—Control of cameras or camera modules by using electronic viewfinders for displaying additional information relating to control or operation of the camera
- H04N23/634—Warning indications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/667—Camera operation mode switching, e.g. between still and video, sport and normal or high- and low-resolution modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/71—Circuitry for evaluating the brightness variation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/72—Combination of two or more compensation controls
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/73—Circuitry for compensating brightness variation in the scene by influencing the exposure time
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/743—Bracketing, i.e. taking a series of images with varying exposure conditions
Definitions
- the embodiments of the present application relate to the field of shooting technology, and in particular, to a shooting method and equipment for time-lapse photography.
- the electronic device may have multiple video shooting functions such as time-lapse photography, slow motion, or fast motion.
- time-lapse photography can be used to shoot various scenes such as architectural manufacturing, urban scenery, natural scenery, astronomical phenomena, urban life, or biological evolution.
- time-lapse photography can perform frame extraction processing on the captured video, thereby compressing the content captured in a relatively long period of time into a relatively short period of time and playing it in the form of video.
- the electronic device has a poor shooting effect on time-lapse photography and a poor user experience.
- the embodiments of the present application provide a shooting method and equipment for time-lapse photography, which can automatically identify the shooting scene, shoot multiple photos with better effects according to target shooting parameters that match the shooting scene, and perform video encoding on the multiple photos , So as to generate time-lapse video with better effect and better user experience.
- an embodiment of the present application provides a shooting method for time-lapse photography, including: the electronic device starts the camera after detecting the first operation instructed by the user to turn on the camera. After detecting the second operation instructed by the user to enter the time-lapse photography mode, the electronic device enters the time-lapse photography mode and displays a preview interface, where the preview interface includes the first preview image.
- the electronic device recognizes the shooting scene according to the first preview image. Among them, the shooting scene includes a high dynamic scene, a dark scene or a normal scene.
- the electronic device determines the target shooting parameters according to the shooting scene. Among them, the target shooting parameters include target sensitivity (photosensibility, ISO) and target exposure time.
- the electronic device After detecting the third operation instructed by the user to start shooting, the electronic device takes a plurality of target photos according to the target shooting parameters. In addition, the electronic device displays the shooting interface after detecting the third operation instructed by the user to start shooting. After detecting the fourth operation instructed by the user to stop shooting, the electronic device generates a time-lapse video according to the multiple target photos.
- the electronic device in the time-lapse photography mode, can automatically detect the current shooting scene, determine the target shooting parameters that match the current shooting scene, so as to take multiple photos with better effects according to the target shooting parameters, and The multiple photos are video-encoded to generate a time-lapse photography video, so that time-lapse photography can be adapted to different shooting scenes, and the effect of the time-lapse photography video obtained by shooting is better.
- the method further includes: the electronic device displays first prompt information on the preview interface, and the first prompt information is used to prompt the electronic device to recognize the shooting scene. Shooting scenes.
- the electronic device after the electronic device recognizes the shooting scene, it can prompt the user of the scene type.
- the method further includes: the electronic device determines the target according to the shooting object on the first preview image Shooting interval.
- the electronic device takes multiple photos of the target according to the target shooting parameters, including: the electronic device takes multiple photos of the target according to the target shooting parameters and the target shooting interval.
- the electronic device in the time-lapse photography mode, can take multiple target photos with better effects according to the target shooting interval and target shooting parameters that match the subject, thereby generating a better time-lapse photography video.
- the target shooting parameters corresponding to the high dynamic scene include multiple exposure times.
- the electronic device takes multiple photos of the target according to the target shooting parameters and the target shooting interval, including: the electronic device captures multiple images of a group of images with different exposure levels according to multiple exposure times; the electronic device takes multiple sets of images according to the target shooting interval Image; the electronic device merges multiple frames of images in each group of images into a target photo.
- the electronic device can use a high-dynamic algorithm to fuse multiple frames of images with different exposure levels into a target photo with a larger dynamic range and better effect.
- the first preview image is an image collected based on the first frame rate and the first shooting parameters.
- the method also Including: if the electronic device recognizes that the shooting scene is a high dynamic scene or a normal scene, the electronic device collects a display image according to the first frame rate and the first shooting parameter, and the shooting interface includes the display image.
- the electronic device can collect images with the same frame rate and exposure parameters as in the preview state and display them on the shooting interface, so that the user can display smoothly in real time. Image screen.
- the shooting interface further includes a first time control and a second time control.
- the first time control is used to indicate the shooting duration of the time-lapse photography video
- the second time control is used to indicate the time-lapse photography video. Playable time.
- the electronic device can prompt the user for the shooting time and the playable time on the shooting interface.
- the first preview image is an image collected based on the first frame rate and the first shooting parameter
- the first shooting parameter includes the first sensitivity ISO and the first exposure time. If the electronic device recognizes that the shooting scene is a dark light scene, after the electronic device determines the target shooting parameters according to the shooting scene, and before the electronic device detects the third operation of the user instructing to start shooting time-lapse video, the method further includes: The electronic device collects the target image according to the target shooting parameter and the second frame rate, the preview interface includes a second preview image, and the second preview image is the target image.
- the second frame rate is less than the first frame rate
- the target sensitivity ISO corresponding to the dark light scene is less than the first sensitivity ISO
- the target exposure time is greater than the first exposure time.
- the electronic device in the preview state, if the electronic device recognizes that the shooting scene is a dark light scene, it can reduce the frame rate (ie use a second frame rate lower than the preview frame rate), and use a larger exposure time and a smaller
- the ISO captures preview images in order to present users with better images in low light conditions.
- the electronic device if the electronic device recognizes that the shooting scene is a dark light scene, the electronic device takes multiple target photos according to the target shooting parameters and the target shooting interval, including: if the electronic device recognizes that the shooting scene is dark light For the starry sky scene in the scene, the electronic device determines the target shooting parameters and the target shooting interval corresponding to the starry sky scene; the electronic device takes multiple target photos according to the target shooting parameters and the target shooting interval corresponding to the starry sky scene. Or, if the electronic device recognizes that the shooting scene is not a starry sky scene, the electronic device takes multiple target photos according to the target shooting parameters and the target shooting interval corresponding to the dark light scene.
- the electronic device can recognize whether the current low-light scene is a starry sky scene. If it is a starry sky scene, it will take the target photo according to the target shooting parameters matched by the starry sky scene; if it is not a starry sky scene, it will match according to the low-light scene.
- the target shooting parameters to take pictures of the target.
- the method further includes: the electronic device performs image enhancement on the multiple target photos.
- the mobile phone can perform image enhancement processing such as image de-sintering and brightness enhancement of the target photo, so as to enhance the beauty of the starry sky image.
- the method further includes: the electronic device according to the dark The target shooting parameters corresponding to the light scene and the second frame rate capture the target image, and the shooting interface includes the target image.
- the shooting interface further includes second prompt information, which is used to prompt the user that the electronic device is performing optimization processing, or whether the electronic device is recognizing whether it is a starry sky scene.
- the electronic device can use the larger exposure time and the smaller ISO of the target shooting parameters to collect and display the image immediately after detecting the user's instruction to start shooting. , To present users with better images on the shooting interface in low light conditions.
- the electronic device can also display the second prompt message to prevent the user from thinking that the electronic device has stuck or other problems.
- the method further includes: if the electronic device recognizes that the shooting scene is a starry sky scene in a dark light scene, the electronic device will shoot the interface
- the target image on the switch is the target photo obtained according to the target shooting parameters corresponding to the starry sky scene and the target shooting interval.
- the electronic device recognizes that the shooting scene is a starry sky scene, it can display the target photo on the shooting interface to present a better image to the user when the ambient light is very low.
- the method further includes: the electronic device stops on the shooting interface Display the second prompt message.
- the electronic device displays the first time control and the second time control on the shooting interface.
- the first time control is used to indicate the shooting duration of the time-lapse photography video
- the second time control is used to indicate the playable duration of the time-lapse photography video.
- the electronic device can start to take a photo of the target in the starry sky scene, and can also start to display the shooting time and the available shooting time.
- the preview interface further includes a mode control
- the method further includes: the electronic device detects that the user clicks the mode control.
- the electronic device switches from automatic mode to manual mode.
- the electronic device displays the parameter setting information of the time-lapse photography on the preview interface.
- the user can instruct to switch between automatic mode and manual mode, and can also set relevant parameters of time-lapse photography in manual mode.
- the electronic device when the instruction is executed by the electronic device, the electronic device is also caused to perform the following steps: after the electronic device takes multiple target photos according to the target shooting parameters, perform inter-frame brightness smoothing processing on the multiple target photos .
- the electronic device can reduce the brightness difference between adjacent target photos through the brightness smoothing between frames, ensure the brightness smoothness and consistency of the screen, and avoid brightness jumps.
- the electronic device recognizes the shooting scene according to the first preview image, including: the electronic device according to one of the first sensitivity ISO, the first exposure time, or the brightness distribution histogram corresponding to the first preview image Or multiple items to identify the shooting scene.
- the electronic device can identify the scene type of the shooting scene through parameters such as sensitivity ISO, exposure time, or brightness distribution histogram.
- the electronic device recognizes the shooting scene according to one or more of the first sensitivity ISO, the first exposure time, or the brightness distribution histogram corresponding to the first preview image, including: if the electronic device According to the first sensitivity ISO and the first exposure time, if it is determined that the ambient light brightness is less than the first preset value, the electronic device determines that the shooting scene is a dark light scene. Alternatively, if the electronic device determines that the ambient light brightness is greater than or equal to the first preset value according to the first sensitivity ISO and the first exposure time, the electronic device determines that the shooting scene is a high dynamic scene or a normal scene.
- the electronic device determines that the preset condition is satisfied according to the brightness distribution histogram, it is determined that the shooting scene is a high dynamic scene.
- the preset condition includes that the ratio of pixels with brightness in the first brightness range and the second brightness range on the first preview image is greater than or equal to the second preset value, the first brightness range is a low brightness range, and the second brightness The range is the range of high brightness. If the electronic device determines that the preset condition is not satisfied according to the brightness distribution histogram, the electronic device determines that the shooting scene is a normal scene.
- the brightness of the ambient light in the dark scene is relatively small, and the brightness of the ambient light in the ordinary scene is relatively large, and the dynamic range of the brightness of the high dynamic scene is relatively large, including low-brightness subjects and high-brightness subjects.
- the electronic device recognizing that the shooting scene is a starry sky scene in a dark light scene includes: the electronic device uses target shooting parameters corresponding to the dark light scene to collect a reference image. If the electronic device determines that the target shooting parameters are within the preset parameter range, the exposure time within the preset parameter range is greater than or equal to the third preset value, and the electronic device recognizes that the shooting object of the reference image contains the starry sky, the electronic device determines The shooting scene is a starry sky scene.
- the electronic device can determine whether the shooting scene is a starry sky scene according to the preset parameter range and whether the shooting object contains a starry sky.
- the electronic device determines the target shooting parameters corresponding to the starry sky scene, including: if the average brightness value of the pixels on the reference image is within the third brightness range, and the pixel points within the third brightness range If the ratio is greater than or equal to 50%, the electronic device determines that the shooting parameter corresponding to the reference image is the target shooting parameter corresponding to the starry sky scene. Or, if the average brightness value of the pixels on the reference image is not in the third brightness range, or the proportion of pixels in the third brightness range is less than 50%, the electronic device adjusts the exposure time, and renews it according to the adjusted exposure time. Acquire reference images. If the electronic device determines that the duration of the third operation from the distance detection is greater than or equal to the preset duration, the electronic device stops collecting the reference image after adjusting the exposure time, and the target shooting parameter includes the adjusted exposure time.
- the electronic device can determine the target shooting parameter corresponding to the starry sky scene according to the ratio of the brightness of the pixel point and the pixel point within the preset brightness range.
- an embodiment of the present application provides a shooting method for time-lapse photography, including: the electronic device starts the camera after detecting the first operation instructed by the user to turn on the camera. After detecting the second operation instructed by the user to enter the time-lapse photography mode, the electronic device enters the time-lapse photography mode and displays a preview interface, where the preview interface includes the first preview image. After detecting the third operation instructed by the user to start shooting the time-lapse video, the electronic device takes multiple target photos. The electronic device displays the shooting interface. After detecting the fourth operation instructed by the user to stop shooting the time-lapse video, the electronic device generates the time-lapse video according to the multiple target photos.
- the electronic device in the time-lapse photography mode, can automatically take multiple photos with better effects based on the camera algorithm, and perform video encoding on the multiple photos, thereby generating better time-lapse photography videos. The experience is better.
- the method further includes: the electronic device determines the target shooting according to the shooting object on the first preview image interval.
- the electronic device takes multiple pictures of the target, including: the electronic device takes multiple pictures of the target according to the interval of taking pictures of the target.
- the electronic device in the time-lapse photography mode, can take multiple target photos with better effects according to the target photographing interval that matches the subject, thereby generating better time-lapse photography videos.
- the method further includes: the electronic device recognizes the shooting scene according to the first preview image, and the shooting scene Including high dynamic scenes, dark scenes or ordinary scenes.
- the electronic device takes multiple photos of the target according to the shooting interval of the target, including: the electronic device takes multiple photos of the target according to the shooting scene and the shooting interval of the target.
- the electronic device in the time-lapse photography mode, can automatically detect the current shooting scene and determine the target shooting interval that matches the subject, so as to take multiple photos with better effects according to the shooting scene and the target shooting interval, and The multiple photos are video-encoded to generate a time-lapse photography video, so that time-lapse photography can be adapted to different shooting scenes, and the effect of the time-lapse photography video obtained by shooting is better.
- the method further includes: the electronic device determines target shooting parameters according to the shooting scene, and the target shooting parameters include target sensitivity ISO and target exposure time.
- the electronic device takes multiple target photos according to the shooting scene and the target shooting interval, including: the electronic device takes multiple target photos according to the target shooting parameters and the target shooting interval.
- the electronic device in the time-lapse photography mode, can automatically detect the current shooting scene, determine the target shooting parameters that match the current shooting scene and the target shooting interval that matches the subject, so as to according to the target shooting parameters and target Take multiple photos with better interval shooting effect, and encode the multiple photos to generate a time-lapse video. Therefore, it can adapt to different shooting scenes for time-lapse photography and shoot the obtained time-lapse video. The effect is better.
- an embodiment of the present application provides a shooting method for time-lapse photography, including: the electronic device starts the camera after detecting the first operation instructed by the user to turn on the camera. After detecting the second operation instructed by the user to enter the time-lapse photography mode, the electronic device enters the time-lapse photography mode and displays a preview interface, where the preview interface includes the first preview image. The electronic device determines the target shooting interval according to the shooting object on the first preview image. The electronic device recognizes the shooting scene according to the first preview image, and the shooting scene includes a high dynamic scene, a dark light scene, or a normal scene. The electronic device determines the target shooting parameters according to the shooting scene, and the target shooting parameters include the target sensitivity ISO and the target exposure time.
- the electronic device After detecting the third operation instructed by the user to start shooting the time-lapse video, the electronic device takes a plurality of target photos according to the target shooting parameters and the target shooting interval. The electronic device displays the shooting interface. After detecting the fourth operation instructed by the user to stop shooting the time-lapse video, the electronic device generates the time-lapse video according to the multiple target photos.
- the electronic device in the time-lapse photography mode, can automatically detect the current shooting scene, determine the target shooting parameters that match the current shooting scene and the target shooting interval that matches the subject, so as to according to the target shooting parameters and target Take multiple photos with better interval shooting effect, and encode the multiple photos to generate a time-lapse video. Therefore, it can adapt to different shooting scenes for time-lapse photography and shoot the obtained time-lapse video. The effect is better.
- an embodiment of the present application provides an electronic device, including: a camera for capturing images; a screen for displaying an interface; one or more processors; one or more memories in which instructions are stored.
- the electronic device is caused to perform the following steps: after detecting the first operation instructed by the user to turn on the camera, start the camera; after detecting the second operation instructed by the user to enter the time-lapse photography mode, enter the time-lapse photography mode , And display the preview interface, the preview interface includes the first preview image; according to the first preview image to identify the shooting scene, the shooting scene includes high dynamic scene, low light scene or ordinary scene; according to the shooting scene to determine the target shooting parameters, the target shooting parameters include the target Sensitivity ISO and target exposure time; after detecting the third operation instructed by the user to start shooting, take multiple target photos according to the target shooting parameters; display the shooting interface; after detecting the fourth operation instructed by the user to stop shooting, according to multiple targets Photos generate time-lapse video.
- the electronic device when the instruction is executed by the electronic device, the electronic device is also caused to perform the following steps: after recognizing the shooting scene according to the first preview image, the first prompt information is displayed on the preview interface, and the first prompt information is used To prompt the shooting scene recognized by the electronic device.
- the electronic device when the instruction is executed by the electronic device, the electronic device is also caused to perform the following steps: enter the time-lapse photography mode and display a preview interface. After the preview interface includes the first preview image, according to the first preview The shooting object on the image determines the target shooting interval; taking multiple target photos according to the target shooting parameters, including: taking multiple target photos according to the target shooting parameters and the target shooting interval.
- the target shooting parameters corresponding to the high dynamic scene include multiple exposure times, and multiple target photos are taken according to the target shooting parameters and the target shooting interval, including: Shoot multiple frames of images with different exposure levels in a group of images according to multiple exposure times; shoot multiple groups of images according to the target shooting interval; merge the multiple frames of images in each group of images into a target photo.
- the first preview image is an image collected based on the first frame rate and the first shooting parameters.
- the electronic device is also caused to perform the following steps: After the third operation of shooting the time-lapse photography video, if it is recognized that the shooting scene is a high dynamic scene or a normal scene, the display image is collected according to the first frame rate and the first shooting parameter, and the shooting interface includes the display image.
- the shooting interface further includes a first time control and a second time control.
- the first time control is used to indicate the shooting duration of the time-lapse photography video
- the second time control is used to indicate the time-lapse photography video. Playable time.
- the first preview image is an image collected based on the first frame rate and the first shooting parameter
- the first shooting parameter includes the first sensitivity ISO and the first exposure time.
- the electronic device also causes the electronic device to perform the following steps: if the shooting scene is recognized as a dark light scene, after determining the target shooting parameters according to the shooting scene, and after detecting that the user has instructed to start shooting time-lapse photography video
- the target image is acquired according to the target shooting parameters and the second frame rate
- the preview interface includes a second preview image
- the second preview image is the target image.
- the second frame rate is less than the first frame rate
- the target sensitivity ISO corresponding to the dark light scene is less than the first sensitivity ISO
- the target exposure time is greater than the first exposure time.
- multiple target photos are taken according to the target shooting parameters and the target shooting interval, including: if the shooting scene is identified as a starry sky scene in a dark light scene, Then determine the target shooting parameters and the target shooting interval corresponding to the starry sky scene; take multiple target photos according to the target shooting parameters and the target shooting interval corresponding to the starry sky scene. Or, if it is recognized that the shooting scene is not a starry sky scene, multiple target photos are taken according to the target shooting parameters and the target shooting interval corresponding to the dark light scene.
- the electronic device when the instruction is executed by the electronic device, the electronic device is also caused to perform the following steps: After shooting the target photo according to the target shooting parameters and the target shooting interval corresponding to the starry sky scene, perform image enhancement on the target photo .
- the electronic device when the instruction is executed by the electronic device, the electronic device is also caused to perform the following steps: if it is recognized that the shooting scene is a dark light scene, it is detected that the user has instructed to start shooting the third time-lapse video. After the operation, the target image is collected according to the target shooting parameters corresponding to the dark light scene and the second frame rate, and the shooting interface includes the target image. Wherein, the shooting interface further includes second prompt information, which is used to prompt the user that the electronic device is performing optimization processing, or whether the electronic device is recognizing whether it is a starry sky scene.
- the electronic device when the instruction is executed by the electronic device, the electronic device is also caused to perform the following steps: after displaying the shooting interface, the shooting interface includes the target image, if the shooting scene is recognized as a starry sky scene in a dark light scene , The target image on the shooting interface is switched to the target photo obtained according to the target shooting parameters corresponding to the starry sky scene and the target shooting interval.
- the electronic device when the instruction is executed by the electronic device, the electronic device is also caused to perform the following steps: if it is recognized that the shooting scene is a starry sky scene in a dark light scene, or if it is recognized that the shooting scene is not a starry sky scene, then Stop displaying the second prompt information on the shooting interface; display the first time control and the second time control on the shooting interface.
- the first time control is used to indicate the shooting duration of the time-lapse photography video
- the second time control is used to indicate the playable duration of the time-lapse photography video.
- the electronic device when the instruction is executed by the electronic device, the electronic device is also caused to perform the following steps: after taking multiple target photos, perform inter-frame brightness smoothing processing on the multiple target photos.
- the preview interface also includes a mode control.
- the electronic device When the instruction is executed by the electronic device, the electronic device also causes the electronic device to perform the following steps: detecting the operation of the user clicking the mode control; switching from automatic mode to manual mode; In manual mode, the parameter setting information of time-lapse photography is displayed on the preview interface.
- identifying the shooting scene according to the first preview image includes: according to one or more of the first sensitivity ISO, the first exposure time, or the brightness distribution histogram corresponding to the first preview image, Identify the shooting scene.
- identifying the shooting scene according to one or more of the first sensitivity ISO, the first exposure time, or the brightness distribution histogram corresponding to the first preview image includes: If it is determined that the ambient light brightness is less than the first preset value, the shooting scene is determined to be a dark light scene. Alternatively, if it is determined that the ambient light brightness is greater than or equal to the first preset value according to the first sensitivity ISO and the first exposure time, it is determined that the shooting scene is a high dynamic scene or a normal scene.
- the shooting scene is determined to be a high dynamic scene; wherein, the preset conditions include that the ratio of pixels on the first preview image with brightness in the first brightness range and the second brightness range is greater than Or equal to the second preset value, the first brightness range is a low brightness range, and the second brightness range is a high brightness range. If it is determined according to the brightness distribution histogram that the preset condition is not satisfied, the shooting scene is determined to be a normal scene.
- identifying that the shooting scene is a starry sky scene in a dark light scene includes: acquiring a reference image by using target shooting parameters corresponding to the dark light scene. If it is determined that the target shooting parameters are within the preset parameter range, the exposure time within the preset parameter range is greater than or equal to the third preset value, and it is recognized that the shooting object of the reference image includes a starry sky, the shooting scene is determined to be a starry sky scene.
- determining the target shooting parameters corresponding to the starry sky scene includes: if the average brightness value of the pixels on the reference image is within the third brightness range, and the proportion of pixels in the third brightness range is greater than Or equal to 50%, it is determined that the shooting parameter corresponding to the reference image is the target shooting parameter corresponding to the starry sky scene. Or, if the average brightness value of pixels on the reference image is not in the third brightness range, or the proportion of pixels in the third brightness range is less than 50%, adjust the exposure time, and re-collect the reference according to the adjusted exposure time image. If it is determined that the duration of the third operation from the distance detection is greater than or equal to the preset duration, after adjusting the exposure time, stop collecting the reference image, and the target shooting parameter includes the adjusted exposure time.
- an embodiment of the present application provides a photographing device, which is included in an electronic device.
- the device has the function of realizing the behavior of the electronic device in any of the above aspects and possible design methods.
- This function can be realized by hardware, or by hardware executing corresponding software.
- the hardware or software includes at least one module or unit corresponding to the above-mentioned functions. For example, detection module/unit, display module/unit, determination module/unit, shooting module/unit, processing module/unit, generating module/unit, etc.
- an embodiment of the present application provides a computer storage medium, including computer instructions, which when the computer instructions run on an electronic device, cause the electronic device to execute the time-lapse photography shooting method in any one of the above-mentioned aspects. .
- the embodiments of the present application provide a computer program product, which when the computer program product runs on a computer, causes the computer to execute the time-lapse photography shooting method in any one of the possible designs in the foregoing aspects.
- an embodiment of the present application provides a chip system, which is applied to an electronic device.
- the chip system includes one or more interface circuits and one or more processors; the interface circuit and the processor are interconnected by wires; the interface circuit is used to receive signals from the memory of the electronic device and send signals to the processor.
- the signals include the memory Stored computer instructions; when the processor executes the computer instructions, the electronic device executes the time-lapse photography shooting method in any one of the possible designs of the above aspects.
- FIG. 1 is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the application.
- FIG. 2 is a shooting flowchart of a time-lapse photography according to an embodiment of the application
- Figure 3 is a schematic diagram of a set of interfaces provided by an embodiment of the application.
- FIG. 4 is a schematic diagram of another set of interfaces provided by an embodiment of the application.
- FIG. 5 is a schematic diagram of an interface provided by an embodiment of the application.
- FIG. 6 is a schematic diagram of a group of high dynamic scenes provided by an embodiment of the application.
- FIG. 7 is a schematic diagram of a group of dark light scenes provided by an embodiment of the application.
- FIG. 8 is a schematic diagram of a group of common scenarios provided by an embodiment of the application.
- FIG. 9 is a schematic diagram of a set of effects before and after image enhancement provided by an embodiment of the application.
- FIG. 10A is a brightness effect diagram of a target photo before inter-frame brightness smoothing provided by an embodiment of the application.
- FIG. 10B is a brightness effect diagram of a target photo after inter-frame brightness smoothing provided by an embodiment of the application.
- FIG. 11 is a comparison diagram of brightness curves before and after brightness smoothing between frames provided by an embodiment of the application.
- FIG. 12 is a schematic diagram of another set of interfaces provided by an embodiment of the application.
- FIG. 13 is a schematic diagram of another interface provided by an embodiment of the application.
- FIG. 14 is a schematic diagram of another interface provided by an embodiment of the application.
- FIG. 15 is a schematic diagram of another interface provided by an embodiment of this application.
- FIG. 16 is a schematic diagram of another interface provided by an embodiment of the application.
- FIG. 17 is a processing flowchart of a time-lapse photography according to an embodiment of the application.
- FIG. 18 is a schematic diagram of another interface provided by an embodiment of this application.
- FIG. 19 is a schematic diagram of another interface provided by an embodiment of the application.
- FIG. 20 is a schematic diagram of another set of interfaces provided by an embodiment of the application.
- FIG. 21 is a screenshot of a log log provided by an embodiment of the application.
- FIG. 22 is a schematic diagram of modules of an electronic device provided by an embodiment of this application.
- FIG. 23 is a schematic diagram of a software architecture of an electronic device provided by an embodiment of the application.
- first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the present embodiment, unless otherwise specified, "plurality" means two or more.
- Time-lapse photography can play back the image content captured by the camera for a long period of time as a video in a short period of time.
- time-lapse photography can be used to shoot scenes such as clouds, clouds, stars, sunrise and sunset, busy traffic, or flowers blooming and falling.
- professional cameras such as single-lens reflex cameras can be used for time-lapse photography.
- the user needs to actively set multiple parameters related to time-lapse photography, so that professional cameras such as SLRs can shoot time-lapse photography image frames according to the parameters instructed by the user.
- the image frames captured by professional cameras such as SLR also need to be processed by special time-lapse photography software to obtain time-lapse video.
- electronic devices such as mobile phones or tablet computers can use the camera function to automatically perform time-lapse photography without the user's need to manually set the shooting parameters.
- electronic devices such as mobile phones or tablet computers adopt a unified mode for time-lapse photography for various shooting scenes. This unified mode cannot be adapted to various shooting scenes, and cannot be obtained in various shooting scenes. Better shooting effect.
- electronic devices such as mobile phones or tablet computers can shoot a video frame of an original video at the video capture frame rate based on a video processing algorithm, and then perform frame extraction and video encoding on the video frame of the original video, thereby generating time-lapse photography Video.
- the video capture frame rate of the original video is larger, the capture interval between the video frames of the original video is shorter, the processing time of the video frame is shorter, and the processing effect of the video processing algorithm is poor, so the image of the video frame The effect is poor, and the effect of the image frames in the generated time-lapse video is also poor.
- the embodiment of the present application provides a shooting method for time-lapse photography, which can be applied to electronic equipment.
- the electronic device in the time-lapse photography mode, can take multiple photos with better effects based on the photography algorithm, and perform video encoding on the multiple photos, thereby automatically generating better time-lapse photography Video, without the need to resort to other time-lapse photography processing software.
- the electronic device in the time-lapse photography mode, can determine a target photographing interval that matches the subject, so as to take multiple photos with better effects according to the target photographing interval, and perform video encoding on the multiple photos , So as to automatically generate better time-lapse photography video, without the need to resort to other time-lapse photography processing software.
- the electronic device in the time-lapse photography mode, can automatically detect the current shooting scene, and use target shooting parameters (such as exposure time or ISO sensitivity) that match the current shooting scene. Multiple photos with better effects matching the scenes, and video encoding the multiple photos to generate a time-lapse video. That is to say, in the shooting method for time-lapse photography provided in the embodiments of the present application, the user does not need to manually set the shooting parameters, nor does it need to resort to other time-lapse photography processing software, and the electronic device can adapt to different shooting scenes for delay. Time-lapse photography to obtain better time-lapse video.
- target shooting parameters such as exposure time or ISO sensitivity
- the electronic device in the time-lapse photography mode, can automatically detect the current shooting scene, and adopt the target shooting parameters that match the current shooting scene and the target shooting interval that matches the subject. The shooting is different from the current shooting. Multiple photos with better effects matching the scenes, and video encoding the multiple photos to generate a time-lapse video. That is to say, in the shooting method for time-lapse photography provided in the embodiments of the present application, the user does not need to manually set the shooting parameters, nor does it need to resort to other time-lapse photography processing software, and the electronic device can adapt to different shooting scenes for delay Time-lapse photography to obtain better time-lapse video.
- the embodiment of the present application shoots the photo based on the special photo processing algorithm that matches the current shooting scene, and the effect of the photo is better; and Use the shooting interval that matches the current subject to shoot.
- the shooting interval is larger than the video capture frame rate, the processing time of the photo image is longer, and the quality of the processed photo is better.
- the image frames in the generated time-lapse video The effect is also better.
- the electronic device may specifically be a mobile phone, a tablet computer, a wearable device, a vehicle-mounted device, an augmented reality (AR)/virtual reality (VR) device, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer).
- Personal computer UMPC
- netbook personal digital assistant
- PDA personal digital assistant
- special camera such as single-lens reflex camera, card camera
- FIG. 1 shows a schematic structural diagram of the electronic device 100.
- the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, and an antenna 2.
- Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194, and Subscriber identification module (subscriber identification module, SIM) card interface 195, etc.
- SIM Subscriber identification module
- the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
- the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100.
- the electronic device 100 may include more or fewer components than shown, or combine certain components, or split certain components, or arrange different components.
- the illustrated components can be implemented in hardware, software, or a combination of software and hardware.
- the processor 110 may include one or more processing units.
- the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
- AP application processor
- modem processor modem processor
- GPU graphics processing unit
- image signal processor image signal processor
- ISP image signal processor
- controller memory
- video codec digital signal processor
- DSP digital signal processor
- NPU neural-network processing unit
- the different processing units may be independent devices or integrated in one or more processors.
- the controller may be the nerve center and command center of the electronic device 100.
- the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
- a memory may also be provided in the processor 110 to store instructions and data.
- the memory in the processor 110 is a cache memory.
- the memory can store instructions or data that the processor 110 has just used or used cyclically. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. Repeated accesses are avoided, the waiting time of the processor 110 is reduced, and the efficiency of the system is improved.
- the processor 110 may include one or more interfaces.
- the interface can include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous) interface.
- I2C integrated circuit
- I2S integrated circuit built-in audio
- PCM pulse code modulation
- UART universal asynchronous transmitter
- MIPI mobile industry processor interface
- GPIO general-purpose input/output
- SIM subscriber identity module
- USB Universal Serial Bus
- the I2C interface is a bidirectional synchronous serial bus, which includes a serial data line (SDA) and a serial clock line (SCL).
- the processor 110 may include multiple sets of I2C buses.
- the processor 110 may couple the touch sensor 180K, the charger, the flash, the camera 193, etc., respectively through different I2C bus interfaces.
- the processor 110 may couple the touch sensor 180K through an I2C interface, so that the processor 110 and the touch sensor 180K communicate through an I2C bus interface to implement the touch function of the electronic device 100.
- the I2S interface can be used for audio communication.
- the processor 110 may include multiple sets of I2S buses.
- the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170.
- the audio module 170 may transmit audio signals to the wireless communication module 160 through an I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
- the PCM interface can also be used for audio communication to sample, quantize and encode analog signals.
- the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
- the audio module 170 may also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both I2S interface and PCM interface can be used for audio communication.
- the UART interface is a universal serial data bus used for asynchronous communication.
- the bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication.
- the UART interface is generally used to connect the processor 110 and the wireless communication module 160.
- the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to realize the Bluetooth function.
- the audio module 170 may transmit audio signals to the wireless communication module 160 through a UART interface, so as to realize the function of playing music through a Bluetooth headset.
- the MIPI interface can be used to connect the processor 110 with the display screen 194, the camera 193 and other peripheral devices.
- the MIPI interface includes a camera serial interface (camera serial interface, CSI), a display serial interface (display serial interface, DSI), and so on.
- the processor 110 and the camera 193 communicate through a CSI interface to implement the shooting function of the electronic device 100.
- the processor 110 and the display screen 194 communicate through a DSI interface to realize the display function of the electronic device 100.
- the GPIO interface can be configured through software.
- the GPIO interface can be configured as a control signal or as a data signal.
- the GPIO interface can be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and so on.
- the GPIO interface can also be configured as an I2C interface, I2S interface, UART interface, MIPI interface, etc.
- the USB interface 130 is an interface that complies with the USB standard specification, and specifically may be a Mini USB interface, a Micro USB interface, a USB Type C interface, and so on.
- the USB interface 130 can be used to connect a charger to charge the electronic device 100, and can also be used to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect earphones and play audio through earphones. This interface can also be used to connect to other electronic devices, such as AR devices.
- the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the electronic device 100.
- the electronic device 100 may also adopt different interface connection modes in the foregoing embodiments, or a combination of multiple interface connection modes.
- the charging management module 140 is used to receive charging input from the charger.
- the charger can be a wireless charger or a wired charger.
- the charging management module 140 may receive the charging input of the wired charger through the USB interface 130.
- the charging management module 140 may receive the wireless charging input through the wireless charging coil of the electronic device 100. While the charging management module 140 charges the battery 142, it can also supply power to the electronic device through the power management module 141.
- the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
- the power management module 141 receives input from the battery 142 and/or the charge management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
- the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, and battery health status (leakage, impedance).
- the power management module 141 may also be provided in the processor 110.
- the power management module 141 and the charging management module 140 may also be provided in the same device.
- the wireless communication function of the electronic device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
- the antenna 1 and the antenna 2 are used to transmit and receive electromagnetic wave signals.
- Each antenna in the electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
- Antenna 1 can be multiplexed as a diversity antenna of a wireless local area network.
- the antenna can be used in combination with a tuning switch.
- the mobile communication module 150 can provide a wireless communication solution including 2G/3G/4G/5G and the like applied to the electronic device 100.
- the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc.
- the mobile communication module 150 can receive electromagnetic waves by the antenna 1, and perform processing such as filtering, amplifying and transmitting the received electromagnetic waves to the modem processor for demodulation.
- the mobile communication module 150 can also amplify the signal modulated by the modem processor, and convert it into electromagnetic wave radiation via the antenna 1.
- at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110.
- at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
- the modem processor may include a modulator and a demodulator.
- the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
- the demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor.
- the application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194.
- the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be provided in the same device as the mobile communication module 150 or other functional modules.
- the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), and global navigation satellites.
- WLAN wireless local area networks
- BT wireless fidelity
- GNSS global navigation satellite system
- FM frequency modulation
- NFC near field communication technology
- infrared technology infrared, IR
- the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
- the wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110.
- the wireless communication module 160 may also receive the signal to be sent from the processor 110, perform frequency modulation, amplify it, and convert it into electromagnetic waves to radiate through the antenna 2.
- the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
- Wireless communication technologies can include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), and broadband code division. Multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM , And/or IR technology, etc.
- GSM global system for mobile communications
- GPRS general packet radio service
- CDMA code division multiple access
- CDMA broadband code division. Multiple access (wideband code division multiple access, WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM , And/or IR technology, etc.
- GNSS can include global positioning system (GP
- the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
- the GPU is a microprocessor for image processing, connected to the display 194 and the application processor.
- the GPU is used to perform mathematical and geometric calculations for graphics rendering.
- the processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
- the display screen 194 is used to display images, videos, and the like.
- the display screen 194 includes a display panel.
- the display panel can use liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
- LCD liquid crystal display
- OLED organic light-emitting diode
- active-matrix organic light-emitting diode active-matrix organic light-emitting diode
- AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
- the electronic device 100 may include one or N display screens 194, and N is a positive integer greater than one.
- the display screen 194 may display a preview interface and a shooting interface in the time-lapse photography mode, and may also provide relevant prompt
- the electronic device 100 can realize a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
- the ISP is used to process the data fed back by the camera 193. For example, when taking a picture, the shutter is opened, and the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transmits the electrical signal to the ISP for processing, which is converted into an image visible to the naked eye.
- ISP can also optimize the image noise, brightness, and skin color.
- ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
- the ISP may be provided in the camera 193.
- the ISP can control the photosensitive element to perform exposure and photographing according to the shooting parameters.
- the camera 193 is used to capture still images or videos.
- the object generates an optical image through the lens and is projected to the photosensitive element.
- the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
- CMOS complementary metal-oxide-semiconductor
- the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
- ISP outputs digital image signals to DSP for processing.
- DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
- the electronic device 100 may include one or N cameras 193, and N is a positive integer greater than one.
- the camera 193 may be located at the edge area of the electronic device, and may be an under-screen camera or a camera that can be raised and lowered. The specific position and form of the camera 193 are not limited in the embodiment of the present application.
- the electronic device 100 may include cameras with one or more focal lengths. For example, cameras with different focal lengths may include ultra-wide-angle cameras, wide-angle cameras, medium-focus cameras, or telephoto cameras.
- the photosensitive element can collect images according to the shooting parameters indicated by the ISP.
- the working mode of the photosensitive element may include a high dynamic range (HDR) mode.
- HDR high dynamic range
- the photosensitive element can take a group of multiple single-frame images with different exposure levels, and these single-frame images can be fused to obtain an image with a larger dynamic range.
- Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
- Video codecs are used to compress or decompress digital video.
- the electronic device 100 may support one or more video codecs. In this way, the electronic device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
- MPEG moving picture experts group
- MPEG2 MPEG2, MPEG3, MPEG4, and so on.
- NPU is a neural-network (NN) computing processor.
- NN neural-network
- applications such as intelligent cognition of the electronic device 100 can be realized, such as image recognition, face recognition, voice recognition, text understanding, and so on.
- the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100.
- the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, video and other files in an external memory card.
- the internal memory 121 may be used to store computer executable program code, and the executable program code includes instructions.
- the processor 110 executes various functional applications and data processing of the electronic device 100 by running instructions stored in the internal memory 121.
- the internal memory 121 may include a storage program area and a storage data area.
- the storage program area can store an operating system, at least one application program (such as a sound playback function, an image playback function, etc.) required by at least one function.
- the storage data area can store data created during the use of the electronic device 100 (for example, photos taken by the electronic device 100, determined target shooting parameters, audio data, phone book, etc.) and the like.
- the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
- UFS universal flash storage
- the processor 110 can detect the current shooting scene by running the instructions stored in the internal memory 121, determine the target shooting parameters according to the current shooting scene, and determine the target shooting interval according to the shooting object, so as to determine the target shooting interval according to the target Shooting parameters and target shooting interval to take multiple photos, and video encoding multiple photos to generate time-lapse video.
- the electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
- the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
- the audio module 170 can also be used to encode and decode audio signals.
- the audio module 170 may be provided in the processor 110, or part of the functional modules of the audio module 170 may be provided in the processor 110.
- the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
- the electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
- the receiver 170B also called “earpiece” is used to convert audio electrical signals into sound signals.
- the electronic device 100 answers a call or voice message, it can receive the voice by bringing the receiver 170B close to the human ear.
- the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
- the user can make a sound by approaching the microphone 170C through the human mouth, and input the sound signal into the microphone 170C.
- the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which can implement noise reduction functions in addition to collecting sound signals. In other embodiments, the electronic device 100 may also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and realize directional recording functions.
- the earphone interface 170D is used to connect wired earphones.
- the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association of the USA (CTIA) standard interface.
- OMTP open mobile terminal platform
- CTIA cellular telecommunications industry association of the USA
- the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
- the pressure sensor 180A may be provided on the display screen 194.
- the gyro sensor 180B may be used to determine the movement posture of the electronic device 100.
- the angular velocity of the electronic device 100 around three axes ie, x, y, and z axes
- the gyro sensor 180B can be used for image stabilization.
- the gyro sensor 180B detects the shake angle of the electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to counteract the shake of the electronic device 100 through reverse movement to achieve anti-shake.
- the gyro sensor 180B can also be used for navigation and somatosensory game scenes.
- the air pressure sensor 180C is used to measure air pressure.
- the electronic device 100 calculates the altitude based on the air pressure value measured by the air pressure sensor 180C to assist positioning and navigation.
- the magnetic sensor 180D includes a Hall sensor.
- the electronic device 100 may use the magnetic sensor 180D to detect the opening and closing of the flip holster.
- the electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D.
- features such as automatic unlocking of the flip cover are set.
- the acceleration sensor 180E can detect the magnitude of the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices, and apply to applications such as horizontal and vertical screen switching, pedometers and so on.
- the electronic device 100 can measure the distance by infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may use the distance sensor 180F to measure the distance to achieve fast focusing.
- the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
- the electronic device 100 can use the proximity light sensor 180G to detect that the user holds the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
- the proximity light sensor 180G can also be used in leather case mode, and the pocket mode will automatically unlock and lock the screen.
- the ambient light sensor 180L is used to sense the brightness of the ambient light.
- the electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
- the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
- the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the electronic device 100 is in the pocket to prevent accidental touch.
- the fingerprint sensor 180H is used to collect fingerprints.
- the electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
- the temperature sensor 180J is used to detect temperature.
- the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
- Touch sensor 180K also called “touch panel”.
- the touch sensor 180K may be disposed on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
- the touch sensor 180K is used to detect touch operations acting on or near it.
- the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
- the visual output related to the touch operation can be provided through the display screen 194.
- the touch sensor 180K may also be disposed on the surface of the electronic device 100, which is different from the position of the display screen 194.
- the electronic device 100 may detect the user's instruction to start and/or stop shooting a time-lapse video through the touch sensor 180K.
- the bone conduction sensor 180M can acquire vibration signals.
- the bone conduction sensor 180M can obtain the vibration signal of the vibrating bone mass of the human voice.
- the bone conduction sensor 180M can also contact the human pulse and receive the blood pressure pulse signal.
- the bone conduction sensor 180M may also be provided in the earphone, combined with the bone conduction earphone.
- the audio module 170 can parse the voice signal based on the vibration signal of the vibrating bone block of the voice obtained by the bone conduction sensor 180M, and realize the voice function.
- the application processor can analyze the heart rate information based on the blood pressure beating signal obtained by the bone conduction sensor 180M, and realize the heart rate detection function.
- the button 190 includes a power-on button, a volume button, and so on.
- the button 190 may be a mechanical button. It can also be a touch button.
- the electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the electronic device 100.
- the motor 191 can generate vibration prompts.
- the motor 191 can be used for incoming call vibration notification, and can also be used for touch vibration feedback.
- touch operations that act on different applications can correspond to different vibration feedback effects.
- Acting on touch operations in different areas of the display screen 194, the motor 191 can also correspond to different vibration feedback effects.
- Different application scenarios for example: time reminding, receiving information, alarm clock, games, etc.
- the touch vibration feedback effect can also support customization.
- the indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, or to indicate messages, missed calls, notifications, and so on.
- the SIM card interface 195 is used to connect to the SIM card.
- the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the electronic device 100.
- the electronic device 100 may support 1 or N SIM card interfaces, and N is a positive integer greater than 1.
- the SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc.
- the display screen 194 may display interfaces such as a preview interface or a shooting interface.
- the processor 110 can detect the current shooting scene by running the instructions stored in the internal memory 121, determine the target shooting parameters that match the shooting scene, and determine the target shooting interval that matches the shooting object, so as to take pictures according to the target shooting parameters and the target. Interval shooting multiple photos with better effects in the current shooting scene, and then video encoding the multiple photos to generate a better time-lapse video.
- the method may include:
- the mobile phone starts the camera after detecting an operation instructed by the user to turn on the camera.
- the user can instruct the mobile phone to start the camera through various methods such as touch operation, key operation, gesture operation in the air, or voice operation.
- the mobile phone activates the camera function after detecting the user's operation of clicking the camera icon 301.
- the mobile phone enters the time-lapse photography mode and displays the preview interface in the preview state.
- the mobile phone After starting the camera, the mobile phone can automatically enter the photo mode, video mode, time-lapse photography mode or other shooting modes, and display the preview interface of the corresponding shooting mode in the preview state.
- the mobile phone can automatically enter the time-lapse photography mode after detecting that the user has clicked the camera icon 301 as shown in (a) in FIG. 3. After the mobile phone enters the time-lapse photography mode, it can display a preview interface 302 as shown in (b) of FIG. 3, and a preview image is displayed on the preview interface.
- the mobile phone collects images according to a preset preview frame rate (for example, 30 fps (frames per second)).
- the mobile phone can determine the preview shooting parameters in real time according to the current environment (for example, environmental light and other factors), and perform exposure according to the preview shooting parameters, thereby generating a preview image and displaying it on the preview interface.
- the preview shooting parameters may include parameters such as exposure time and sensitivity ISO.
- the mobile phone may include an automatic exposure (AE) module, and the automatic exposure module may determine the preview shooting parameters in real time according to the current environment.
- the mobile phone can also perform auto focus (AF) processing to generate a clearer preview image.
- AF auto focus
- the camera used to capture images can be switched.
- the control 303 on the preview interface 302 indicates that the camera currently used by the mobile phone to collect images is a wide-angle camera.
- the control 303 After the mobile phone detects that the user clicks on the control 303, it can display the options of other cameras such as a medium-focus camera, a telephoto camera, or an ultra-wide-angle camera, so that the user can instruct to switch to another camera to capture images.
- the preview interface 302 may also include a function control 304. After the mobile phone detects that the user clicks on the control 304, the function and characteristics of the current shooting mode can be displayed.
- the mobile phone After the mobile phone starts the camera, if it does not enter the time-lapse photography mode, it can enter the time-lapse photography mode after detecting the operation instructed by the user to enter the time-lapse photography mode.
- the mobile phone after the mobile phone detects that the user has clicked the camera icon 301 as shown in (a) in FIG. 3, it can automatically enter the camera mode and display the preview interface 305 as shown in (c) in FIG. 3 . If the mobile phone detects that the user clicks on the control 306, it can enter the time-lapse photography mode.
- the mobile phone detects that the user has clicked on the control 401, it can display the setting interface shown in Figure 4 (c) .
- the mobile phone may display the mode interface shown in (c) of FIG. 4. Then, if the mobile phone detects that the user clicks on the control 403, it can enter the time-lapse photography mode.
- the mobile phone enters the time-lapse photography mode after detecting that the user has drawn a preset track 1 (for example, the “Y” track) on the screen.
- a preset track 1 for example, the “Y” track
- the mobile phone when the mobile phone displays the desktop or displays the interface of other applications, when the user wants to use the time-lapse photography mode of the mobile phone, the mobile phone can operate according to the user's touch operation, air gesture operation, voice operation or key operation Wait for instructions, activate the camera function and directly enter the time-lapse photography mode.
- the mobile phone displays the desktop or displays the interface of other applications
- the camera is started and enters the time-lapse photography mode.
- the screen is bright and the desktop is displayed, or in the case of a black screen as shown in FIG. 5, if the mobile phone detects that the user has drawn a preset trajectory 2 (for example, the "YS" trajectory) on the screen Operate, start the camera and enter the time-lapse photography mode.
- a preset trajectory 2 for example, the "YS" trajectory
- the manner of entering the time-lapse photography mode described above is only an exemplary description, and the mobile phone can also enter the time-lapse photography mode through other methods, and the specific manner is not limited in the embodiment of the present application.
- the mobile phone can adjust the preview shooting parameters in real time through the automatic exposure module according to changes in the shooting environment (such as ambient light);
- the mobile phone can collect and display preview images according to the preview frame rate and the preview shooting parameters determined in real time, thereby presenting the user with a smooth, real-time updated preview screen.
- the mobile phone automatically detects the current shooting scene according to the preview image on the preview interface.
- the mobile phone After the mobile phone enters the time-lapse photography mode, it can automatically detect the current shooting environment and the shooting scene corresponding to the subject according to the preview image on the preview interface.
- the shooting scene includes one or more of scene types such as a high dynamic scene, a dark light scene, or a normal scene.
- the mobile phone can determine the current shooting scene according to the image parameters corresponding to the preview image.
- the image parameter may include one or more of the brightness distribution histogram, exposure time, or sensitivity ISO.
- the brightness distribution histogram is used to indicate the brightness distribution of the pixels on the preview image.
- the brightness can be the value corresponding to the Y channel when the preview image is in the YUV format.
- a high-dynamic scene refers to a shooting scene that includes both a low-brightness subject and a high-brightness subject.
- the high-dynamic scene has a wide range of brightness.
- the mobile phone can determine whether the current shooting scene is a high dynamic scene according to the brightness distribution histogram of the preview image.
- the mobile phone determines that the brightness of the preview image is mainly distributed in the lower brightness range 1 and the higher brightness range 2 according to the brightness distribution histogram of the preview image, the mobile phone can determine that the brightness range of the current shooting scene is wider ,
- the current shooting scene includes a low-brightness shooting subject and a high-brightness shooting subject, and the current shooting scene is a high-dynamic scene.
- the brightness of the preview image is mainly distributed in the brightness range 1 and the brightness range 2 means that the proportion of pixels with the brightness in the brightness range 1 and the brightness range 2 on the preview image is greater than or equal to the preset value 1.
- the brightness range of the pixel points is 0-255
- the brightness range 1 may be [0,54]
- the brightness range 2 may be [192,255]
- the preset value 1 may be 80%.
- the preview interface in a high dynamic scene can be seen in Figure 6 (a), and the brightness distribution histogram corresponding to the preview image can be seen in Figure 6 (b).
- the brightness of subjects such as the sky and rivers in the distance is high, and the brightness of subjects such as nearby tall buildings and trees under the shadow of the tall buildings is low.
- a low-light scene refers to a shooting scene where the ambient light intensity is less than a preset value of 2, that is, a shooting scene where the ambient light is relatively dark.
- the value of the preset value 2 is relatively small, for example, it may be 5 lux.
- the brightness of the preview image is also low. Therefore, if the overall brightness of the preview image is low, it can indicate that the current ambient light brightness is relatively dark, and the current shooting scene is a dark light scene.
- the mobile phone can estimate the ambient brightness Lv value based on the exposure time and ISO. If the ambient brightness Lv value is less than the preset value 3, it can indicate that the ambient light intensity is less than the preset value 2, and the mobile phone can determine that the current ambient light brightness is low , The current shooting scene is a dark scene.
- the preset value 3 may be 30 candela per square meter (cd/m2).
- the mobile phone can determine that the overall brightness of the preview image is low, and the current shooting scene It is a dark scene.
- that the brightness of the preview image is mainly distributed in the brightness range 3 means that the proportion of pixels with the brightness in the brightness range 3 on the preview image is greater than or equal to the preset value 4.
- the brightness range 3 may be [0, 20], and the preset value 4 may be 90%.
- the preview interface in a dark light scene can be seen in FIG. 7(a) or FIG. 7(b), and the brightness distribution histogram corresponding to the preview image can be seen in FIG. 7(c).
- the brightness of the subject is low.
- the mobile phone can further determine whether the current shooting scene is a starry sky scene. In some embodiments, after the mobile phone determines that the current shooting scene is a dark light scene in the preview state, it automatically determines whether the current shooting scene is a starry sky scene.
- the mobile phone determines that the current shooting scene is a dark light scene in the preview state, it is temporarily uncertain whether the current shooting scene is a starry sky scene, and it is determined after detecting the user's instruction to start shooting time-lapse photography. Whether the current shooting scene is a starry sky scene; in the following embodiments, this situation is mainly used as an example to describe the detection process of the starry sky scene, and for details, see the related description below.
- the ambient light brightness is relatively high.
- the normal scene may be a non-high dynamic scene with an ambient light brightness greater than or equal to a preset value of 2.
- the mobile phone can estimate the ambient light brightness based on the exposure time and ISO. If the ambient light brightness is greater than or equal to the preset value 3, it can indicate that the ambient light brightness is greater than or equal to the preset value 2, and the mobile phone can determine that the current ambient light brightness is high and the current shooting is
- the scene is a non-dark light scene, and may be a normal scene or a high dynamic scene.
- the brightness distribution of the shooting environment and the subject is relatively uniform. If the mobile phone determines that the brightness of the preview image is more evenly distributed in the entire brightness range of 0-255 according to the brightness distribution histogram of the preview image, the mobile phone can determine that the current shooting scene is not a high dynamic scene but a normal scene.
- the preview interface in a normal scene can be seen in Figure 8 (a), and the brightness distribution histogram corresponding to the preview image can be seen in Figure 8 (b).
- the environmental brightness is high, and the brightness of the shooting subject is high.
- the mobile phone after the mobile phone recognizes the scene type of the current shooting scene, it can also prompt the user of the scene type by means of display information, voice prompts, vibration, or indicator lights.
- the mobile phone can prompt the user through the information 601 that the current shooting scene is a high dynamic scene.
- the mobile phone automatically determines the target photographing interval according to the photographed object in the preview image.
- the mobile phone can recognize the subject in the preview image through the pre-trained neural network model, and determine the corresponding target shooting interval according to the subject.
- the target shooting interval is used for the mobile phone to take multiple target photos after detecting the user's instruction to start shooting time-lapse video.
- the target shooting interval is the time interval between the start moments of two adjacent target photos taken by the mobile phone.
- the mobile phone can determine that the corresponding target photographing interval is 0.5s. If the mobile phone recognizes that the photographed object on the preview image is "blue sky and clouds", the mobile phone can determine that the corresponding target photographing interval is 3s. If the mobile phone recognizes that the photographed object on the preview image is "sunrise” or “sunset”, the mobile phone can determine that the corresponding target photographing interval is 5s.
- the target shooting interval is also associated with the shooting scene, and the mobile phone can determine the target shooting interval according to the shooting object on the preview image and the current shooting scene. For example, if the shooting object is "vehicle flow", in a normal scene, the target shooting interval can be 0.5s; in a dark light scene, the target shooting interval can be 2s.
- the mobile phone determines the target shooting parameters according to the detected shooting scene.
- the mobile phone After the mobile phone recognizes the scene type of the current shooting scene, it can enter the shooting processing flow corresponding to the current shooting scene, adjust and optimize the shooting parameters according to the current shooting scene, so as to subsequently take multiple target photos according to the optimized target shooting parameters. Multiple target photos are video-encoded to generate time-lapse video.
- the target shooting parameter may include one or more of parameters such as ISO or exposure time. The following are specific instructions for different shooting scenes.
- the mobile phone may include a parameter optimization module. After the mobile phone determines that the current shooting scene is a high dynamic scene, a set of target shooting parameters can be determined through the parameter optimization module.
- the set of target shooting parameters includes a set of exposure times of different durations. When images are taken with different exposure times, the exposure levels of the images obtained by shooting are also different.
- the set of target shooting parameters may be a set of preset shooting parameters corresponding to the high dynamic scene, or may be a set of shooting parameters calculated in real time by the mobile phone according to the current environment.
- the preview shooting parameters before optimization and the target shooting parameters after optimization can be seen in Table 1.
- the mobile phone can adjust and update the target shooting parameters corresponding to the high dynamic scene in real time through the parameter optimization module according to changes in the shooting environment (for example, light and other factors).
- the exposure time can be increased through the parameter optimization module (for example, the 30ms exposure time used by the preview shooting parameters can be increased to 60ms), and the ISO can be reduced (for example, the preview shooting parameters can be used
- the ISO is reduced to the range of [3000, 6400]) to obtain a set of target shooting parameters that match the current dark light scene.
- Increasing the exposure time of the mobile phone and reducing the target shooting parameters obtained by ISO can make the mobile phone reduce the picture noise under dark light conditions under the premise of obtaining the same picture brightness, and improve the image quality of the preview picture.
- the mobile phone can adjust and update the target shooting parameters corresponding to the dark light scene in real time through the parameter optimization module according to the changes in the shooting environment.
- the target shooting parameters can be determined through the automatic exposure module. That is, the target shooting parameter corresponding to the ordinary scene is the shooting parameter determined in real time by the automatic exposure module according to the shooting environment. It can also be understood that, if the mobile phone determines that the current shooting scene is a normal scene, the mobile phone may not perform step 205, and use the shooting parameters determined by the automatic exposure module to perform shooting processing.
- the mobile phone detects that the user has instructed to start shooting a time-lapse video.
- the user can instruct the mobile phone to start shooting time-lapse video through various methods such as touch operation, key operation, air gesture operation, or voice operation.
- step 206 if the current shooting scene is a dark light scene, the mobile phone executes step 207; if the current shooting scene is a non-dark light scene such as a high dynamic scene or a normal scene, the mobile phone executes step 209.
- step 206 the mobile phone directly executes step 209 to take multiple target photos according to the target shooting parameters corresponding to the high dynamic scene, the low light scene, or the normal scene.
- the mobile phone determines whether the current shooting scene is a starry sky scene. If it is not a starry sky scene, go to step 209; if it is a starry sky scene, go to step 208.
- the mobile phone determines that the current shooting scene is a dark light scene in step 204, the mobile phone can determine whether the current shooting scene is a starry sky scene after detecting the operation of the user instructing to start shooting a time-lapse video, referring to the following description.
- the mobile phone determines whether the current shooting parameters are within the parameter range 1.
- the parameter range 1 may include: 3000 ⁇ ISO ⁇ 6400, and the exposure time ⁇ the preset value 5.
- the preset value 5 may be a value in the range of [20ms, 60ms). If the current shooting parameters are within parameter range 1, the exposure time is longer, the current ambient light may be very dark, and the current shooting scene may be a starry sky scene. If the current shooting parameter is not within the parameter range 1, it can indicate that the current ambient light is not very dark, and the current shooting scene may not be a starry sky scene. Therefore, step 209 may be executed to perform shooting processing according to the dark light scene.
- the mobile phone can use the preset shooting parameter 1 to collect the reference image.
- the shooting parameter 1 includes a longer exposure time and a lower ISO.
- the exposure time in the shooting parameter 1 may be 4s, and the ISO may be 3000.
- the phone determines whether the reference image contains a starry sky. For example, the mobile phone can input the reference image into a pre-trained starry sky detection neural network model. If the output result of the starry sky detection neural network model indicates that the reference image does not include a starry sky, the mobile phone determines that the current shooting scene is not a starry sky scene, so step 209 may be executed to perform shooting processing according to the dark light scene. If the output result of the starry sky detection neural network model indicates that the reference image includes a starry sky, the mobile phone determines that the current shooting scene is a starry sky scene.
- the mobile phone may not be sure whether the current shooting parameter is within the parameter range 1, and directly determine whether the image collected by the mobile phone contains a starry sky.
- the mobile phone After the mobile phone detects that the current shooting scene is a starry sky scene, it can also prompt the user of the scene type by displaying it on the interface or by means of sound, vibration, etc.
- the mobile phone determines the target shooting parameters and the target shooting interval according to the starry sky scene. Then, the mobile phone executes step 209.
- the parameter optimization module can determine the target shooting parameters corresponding to the starry sky scene.
- the mobile phone can determine whether the average brightness value of the pixels on the reference image is within the preset brightness range 4.
- the brightness range 4 may be [30, 120].
- the mobile phone can keep the ISO in the shooting parameter 1 (for example, 3000) unchanged, according to the current exposure time and the average brightness value and the brightness range 4
- the difference calculates the new exposure time to obtain a better quality image through a longer exposure time when the ambient light is dark, and shorten the exposure time as much as possible to obtain more frames under the premise of ensuring the image quality.
- the mobile phone takes a new reference image again according to the new exposure time. Then, the mobile phone again determines whether the average brightness value of the pixels on the new reference image is within the preset brightness range 4.
- the mobile phone determines that the average brightness value of the reference image is within the brightness range 4, it can be further determined whether the brightness of most pixels on the reference image is within the brightness range 4. For example, if the proportion of pixels on the reference image whose brightness is within the brightness range 4 is greater than or equal to 50%, the mobile phone can determine that the brightness of most pixels on the reference image is within the brightness range 4.
- the shooting parameter corresponding to the reference image is the target shooting parameter corresponding to the starry sky scene.
- the mobile phone can keep the ISO in shooting parameter 1 (for example, 3000) unchanged, and determine the new exposure time according to the current exposure time and the average brightness value, so that The brightness of most pixels on the reference image taken according to the new exposure time is within the brightness range 4.
- the ISO in shooting parameter 1 for example, 3000
- the parameter optimization process for the mobile phone to determine the target shooting parameters corresponding to the starry sky scene should not be too long. Therefore, in some embodiments, if the number of times that the mobile phone adjusts the shooting parameters according to the reference image is greater than or equal to the preset value of 6 (for example, 4 times), the mobile phone can stop shooting the reference image and directly adjust the shooting parameters corresponding to the current reference image. After adjustment, the target shooting parameters are obtained.
- the mobile phone determines that the duration of the parameter optimization process is greater than or equal to the preset value of 7 (for example, 1 min), the mobile phone can stop shooting the reference image, and adjust the shooting parameters corresponding to the current reference image to obtain the target Shooting parameters.
- the exposure time corresponding to the current reference image is greater than the preset value of 8 (for example, 15s)
- the new exposure time may be longer than the preset value of 8, and it will take longer to take the reference image again. Time may cause the parameter optimization process to exceed the preset value 7, so the mobile phone can stop shooting the reference image, and directly adjust the shooting parameters corresponding to the current reference image to obtain the target shooting parameters.
- the target shooting parameters corresponding to the starry sky scene determined by the above method can make the faintly glowing stars in the night sky get sufficient exposure, increase the brightness of the stars, and make the stars that are invisible to the human eye visible to the naked eye in the photo result.
- the mobile phone can detect the shooting object according to the reference image, thereby determining the corresponding target shooting interval.
- the shooting object can be "starry sky”, “galaxy” or “moon”, etc.
- the target shooting interval corresponding to "starry sky” can be 20s.
- the mobile phone takes multiple photos of the target according to the target shooting parameters and the target shooting interval.
- step 205 may be performed before step 206, or may be performed after step 306.
- the mobile phone can determine new target shooting parameters in real time according to the current shooting scene and shooting environment (for example, factors such as ambient light). After the mobile phone detects the user's instruction to start shooting, it takes multiple photos of the target according to the target shooting interval and the target shooting parameters updated in real time.
- the mobile phone can switch the working mode of the camera sensor (that is, the above-mentioned photosensitive element) to a high-dynamic HDR mode.
- the parameter optimization module can provide the target shooting parameters to the automatic exposure module, and the automatic exposure module can configure the target shooting parameters to the ISP.
- the ISP controls the camera Sensor to shoot a set of multi-frame images with different exposure levels according to the set of shooting parameters.
- the mobile phone Based on the HDR algorithm, the mobile phone performs fusion processing on the group of multi-frame images (for example, in Raw format) with different exposure levels, to obtain a target photo (for example, in YUV format) with a dynamic range larger than that of a single-frame image.
- the mobile phone generates multiple target photos according to the target shooting interval.
- the parameter optimization module can provide the target shooting parameters to the automatic exposure module, and the automatic exposure module can control the camera to perform exposure according to the target exposure parameters through the ISP.
- the mobile phone takes multiple photos of the target according to the target shooting interval and the target shooting parameters corresponding to the dark light scene.
- the mobile phone takes multiple pictures of the target according to the target shooting interval and the target shooting parameters corresponding to the normal scene.
- the target shooting parameter is a shooting parameter determined in real time by the automatic exposure module according to the shooting environment.
- the mobile phone can continue to detect the current shooting scene during the time-lapse photography shooting process. If the shooting scene changes, determine the new target shooting parameters according to the changed shooting scene, and switch to the new target shooting parameters according to the changed shooting scene. The new target shooting parameters corresponding to the shooting scene are used to shoot target photos.
- the mobile phone can perform time-lapse shooting. During the shooting process, the target shooting parameters and the target shooting interval are used to shoot the target photos.
- the mobile phone determines the target photographing interval, it does not update the target photographing interval until the current photographing process is completed. In other embodiments, after the mobile phone determines the target photographing interval, if it is determined that the photographic subject has changed, the target photographing interval is updated in real time according to the changed photographic subject.
- the mobile phone performs image post-processing on the target photo obtained by shooting.
- the mobile phone can perform image post-processing operations such as image enhancement. Because the light in the starry sky shooting environment is usually dark, the starry sky image obtained through low ISO and long exposure still contains a small amount of noise, and the color and contrast effects may not be very good.
- the mobile phone can enhance the image of the target photo.
- the mobile phone can call the starry sky denoising network model to denoise the target photos taken in the starry sky scene, and reduce the noise level of the starry sky image.
- the mobile phone can also call the starry sky enhancement neural network model to improve the brightness of the starry sky region in the target photos taken in the starry sky scene, and enhance the contrast and saturation to improve the beauty of the starry sky image.
- the target photo before image enhancement can be seen in (a) in FIG. 9, and the target photo after image enhancement can be seen in (b) in FIG. 9.
- the mobile phone may not perform post-processing operations on the target photos; in other embodiments, the mobile phone may also The target photo is subjected to post-processing operations such as color and saturation to further improve the image quality of the target photo.
- the mobile phone performs brightness smoothing between frames on the captured target photo.
- the mobile phone Since the mobile phone shoots the target photos at the target shooting interval, the interval between adjacent target photos is relatively long, so the problem of large brightness difference between adjacent target photos is prone to occur. Therefore, the mobile phone can perform brightness smoothing between frames of the captured target photos to reduce the brightness difference between adjacent target photos, ensure the brightness smoothness and consistency of the screen, and avoid brightness jumps.
- the mobile phone can input two adjacent target photos into the pre-trained inter-frame brightness smoothing neural network model, and the two target photos output from the inter-frame brightness smoothing neural network model and the previous n (for example, 6) targets
- the brightness difference between the photos is small.
- the inter-frame brightness smoothing process can effectively suppress the brightness flicker between two adjacent frames of target photos whose average brightness values differ by less than 40%.
- the multiple target photos taken by the mobile phone can be seen in (a)-(f) in Figure 10A, and the brightness change curve between the corresponding adjacent target photos can be seen in Figure 11.
- the curve 1 After the brightness smoothing between frames, the multiple target photos taken by the mobile phone can be seen in (a)-(f) in FIG. 10B, and the corresponding brightness change curves between adjacent target photos can be seen in curve 2 in FIG. 11. Comparing FIG. 10A and FIG. 10B, it can be seen that after the brightness smoothing between frames, the brightness difference between adjacent target photos is relatively small. Comparing curve 1 and curve 2 in FIG. 11, it can be seen that after the brightness smoothing between frames, the brightness change curve between adjacent target photos is relatively smooth.
- the mobile phone displays the shooting interface after detecting the user's instruction to start shooting the time-lapse video.
- the shooting interface is the mobile phone according to a higher preset frame rate (for example, the preview frame rate) and display shooting parameters (for example, the automatic exposure module may determine in real time according to the current environment) Shooting parameters, or preset exposure parameters).
- the mobile phone can present the shooting content smoothly and in real time to the user on the shooting interface through a higher preset frame rate.
- the mobile phone can take multiple target photos according to the target shooting interval and target shooting parameters after detecting the user's instruction to start shooting time-lapse video, so as to generate a time-lapse later Photography video; at the same time, the mobile phone can also collect images according to the preset frame rate and display shooting parameters, so that the shooting content can be presented to the user in real time on the shooting interface.
- the mobile phone after the mobile phone detects the user's instruction to start shooting time-lapse video, it can take multiple photos according to the target shooting interval and target shooting parameters, so as to subsequently generate time-lapse video; at the same time, the mobile phone It can also collect images according to the preset frame rate and display shooting parameters, so that the shooting content can be presented to the user in real time on the shooting interface.
- the mobile phone after the mobile phone detects the user's instruction to start shooting time-lapse video, it can take multiple photos according to the target shooting interval and the shooting parameters determined by the automatic exposure module, so as to subsequently generate time-lapse video. ; At the same time, the mobile phone can also collect images according to the preset frame rate and the shooting parameters determined by the automatic exposure module, so that the shooting content can be presented to the user in real time on the shooting interface.
- a schematic diagram of the time-lapse photography shooting interface can be seen in Figure 12 (a); in a normal scene, a schematic diagram of the time-lapse photography shooting interface can be seen in Figure 12 (b).
- the shooting interface may display the target photo obtained by shooting according to the target shooting parameters corresponding to the dark light scene.
- the shooting interface may display the target photo obtained by shooting according to the target shooting parameters corresponding to the dark light scene.
- the shooting interface may display the target photo obtained by shooting according to the target shooting parameters corresponding to the dark light scene.
- the image captured by the mobile phone according to the preset frame rate and display shooting parameters is displayed on the shooting interface, the user may not be able to see the image on the shooting interface because the shooting environment is dark and the captured image is also dark. Content, thereby misleading the user that the starry sky has not been photographed.
- the target photo taken according to the target shooting parameters is displayed, which can present the user with a better image screen.
- the mobile phone displays the target photos after the brightness smoothing between frames on the shooting interface, which is not easy to cause flickering visual problems for users.
- the visual experience is better.
- the shooting scene is a dark light scene.
- the mobile phone After the mobile phone detects the user's instruction to start shooting, it needs a longer adjustment process to determine whether it is a starry sky scene and to determine the corresponding target shooting parameters in the starry sky scene.
- the mobile phone may collect an image according to the target shooting parameters corresponding to the dark scene and the frame rate 1, and display the collected image on the shooting interface.
- the frame rate 1 is relatively large and can be greater than the frame rate corresponding to the target photographing interval. In this way, the mobile phone can present the collected images to the user in real time.
- the shooting interface displayed by the mobile phone during the adjustment process includes the image collected by the mobile phone according to the preset frame rate and display shooting parameters.
- the photographing interface displayed by the mobile phone during the adjustment process includes the above-mentioned reference image collected by the mobile phone during the adjustment process.
- the mobile phone does not display an image during the adjustment process, and the shooting interface is a black interface, a white interface, an interface with other preset colors, or an interface with preset content. After the mobile phone determines that it is the starry sky scene, it displays the better target photo on the shooting interface.
- the mobile phone may also prompt the user through interface display, sound, vibration, or indicator light during the adjustment process, so as to facilitate the user to know the current shooting status of the mobile phone, and to prevent the user from mistakenly thinking that the mobile phone cannot shoot normally.
- the mobile phone can prompt the user that the optimization process is currently in progress, or whether it is recognizing whether it is a starry sky scene, etc.
- the shooting interface displayed by the mobile phone during the adjustment process can be seen in FIG. 13, and the mobile phone can display a prompt message 1301 to prompt the user "extremely dark environment, the exposure value is being optimized".
- the mobile phone may display a prompt message to prompt the user "the current light is relatively dark, and it is being identified as a starry sky scene.” It should be noted that during the adjustment process shown in FIG. 13, since the shooting environment is very dark, there are almost no objects such as stars on the shooting interface.
- the shooting interface may further include a continuously rotating ring control 1302.
- the ring control 1302 is used to remind the user that the mobile phone is currently undergoing shooting processing, and there is no problem such as freezing.
- the ring control may indicate the progress of the adjustment process.
- the ring control forms a complete ring
- the adjustment process is completed, the mobile phone obtains the target shooting parameters, and the mobile phone displays the target photos obtained by shooting according to the target shooting parameters on the shooting interface.
- the shooting interface including the target photo displayed by the mobile phone can be seen in FIG. 14.
- the mobile phone can display the image collected according to the preset frame rate and display shooting parameters on the shooting interface.
- the mobile phone can display on the shooting interface a target picture taken according to the shooting parameters corresponding to the starry sky scene, so as to present a better image to the user.
- the shooting interface of the mobile phone may further include a first time control and a second time control.
- the first time control is used to indicate the shooting duration of the time-lapse photography video
- the second time control is used to indicate the playable duration of the time-lapse photography video generated after the time-lapse photography is stopped.
- the first time control is used to indicate the length of time between the user’s instruction to start shooting a time-lapse photography video and the current moment; in a dark light scene, the first time control is used to indicate the completion from the mobile phone The shooting time between the adjustment process and the current moment.
- the first time control on the shooting interface may be the control 1201 shown in (a) in FIG. 12, and the second time control may be the control shown in (a) in FIG. 12 Control 1202.
- the first time control on the shooting interface may be the control 1401 shown in FIG. 14, and the second time control may be the control 1402 shown in FIG. 14.
- the shooting interface may also include a pause control. After the mobile phone detects that the user has clicked the pause control, the time-lapse photography can be paused. Then, the shooting controls are displayed on the shooting interface, and after the mobile phone detects that the user has clicked the shooting controls on the shooting interface, the time-lapse photography is continued.
- the mobile phone performs video encoding on the captured target photo.
- the mobile phone may perform video encoding for multiple target photos taken in a group of M (positive integer). In this way, the mobile phone can quickly complete the video encoding of the target photo after detecting the user's instruction to complete the shooting operation, thereby quickly generating a time-lapse video.
- the mobile phone may also perform video encoding on the captured target photo after detecting the user's instruction to stop shooting the time-lapse video, thereby generating the time-lapse video.
- the mobile phone After the mobile phone detects the user's instruction to stop shooting the time-lapse video, it generates the time-lapse video according to the encoded target photo.
- the user can instruct the mobile phone to stop shooting time-lapse video through various methods such as touch operation, key operation, air gesture operation or voice operation.
- the mobile phone may stop the time-lapse photography after detecting that the user has clicked the operation of the stop shooting control 1403.
- a certain processing time may be required between the mobile phone detecting the user's instruction to stop shooting the time-lapse photography and the mobile phone generating the time-lapse photography video.
- the mobile phone may display the transition interface for generating the time-lapse photography video as shown in FIG. 15.
- the shooting duration of the time-lapse photography video represented by the first control 1501 is 20 minutes
- the playable duration of the time-lapse photography video represented by the second control 1502 is 30 seconds.
- the mobile phone After the mobile phone generates the time-lapse video, it can display the thumbnail of the time-lapse video; return to the preview state and display the preview interface.
- the interface displayed after the mobile phone generates the time-lapse photography video can be seen in FIG. 16.
- the shooting scene of the mobile phone may not have changed immediately after the time-lapse photography shooting has ended. Therefore, the mobile phone can first detect whether the current shooting scene is the shooting scene just adopted, thereby improving the speed of recognizing the shooting scene.
- the mobile phone can recognize the shooting scene according to the preview image, determine the target shooting parameters according to the shooting scene, and shoot the target photos according to the target shooting parameters.
- the mobile phone can use matching processing methods to perform shooting processing separately for different shooting scenes.
- the mobile phone can use the HDR algorithm to obtain the target photo; for the starry sky scene, the mobile phone can enhance the image of the target photo obtained by shooting; for the dark scenes other than the starry sky scene, the mobile phone can reduce the ISO and increase the exposure time;
- the mobile phone can determine the target shooting parameters according to the shooting environment, and take pictures of the target according to the target shooting parameters. Then, the mobile phone can perform video encoding on the previously acquired target photo to generate a time-lapse video.
- the electronic device in the time-lapse photography mode, can automatically detect the current shooting scene, and determine the target shooting parameters that match the current shooting scene and those that match the shooting object.
- the target shooting interval so that multiple photos with better effects are taken according to the target shooting parameters and target shooting interval, and the multiple photos are video-encoded to generate a time-lapse video, so it can be adaptive to different shooting scenes for delay Photography shooting, time-lapse video obtained by shooting has better effects.
- the mobile phone may not perform these steps during the shooting process of the time-lapse photography.
- the mobile phone may not perform step 210, so that no post-processing is performed on the target photo to be taken.
- the mobile phone may not perform the above step 211, and directly perform video encoding on the target photo that has not been processed for brightness smoothing between frames.
- the image taken by the mobile phone according to the target shooting parameters can be displayed on the preview interface, so that a better preview image can be presented to the user.
- the mobile phone in the preview state, after the mobile phone determines the target shooting parameters, if the current shooting scene is a dark light scene, the mobile phone can shoot images according to the target shooting parameters with a longer exposure time determined by the parameter optimization module. And display the image on the preview interface.
- a dark light scene if the preview interface before adjustment is (a) in FIG. 7, then the preview interface after adjustment can be seen in FIG. 18.
- the preview frame rate should be reduced accordingly, for example, the preview frame rate can be changed from 30fps is reduced to 12fps (can be the same as or different from frame rate 1 above).
- the mobile phone collects an image according to the preview frame rate and preview shooting parameters, and displays the image on the preview interface.
- the mobile phone can reduce the picture noise under dark light conditions, improve the image quality of the preview picture, and present users with better image pictures; in non-dark light scenes, the mobile phone can pass a higher preview
- the frame rate provides users with smooth preview content in real time.
- the time-lapse photography mode includes an automatic mode and a manual mode
- the mobile phone can prompt the user on the preview interface whether it is the automatic mode or the manual mode.
- the automatic mode and manual mode can be switched between each other.
- the mobile phone in the automatic mode, can adopt the process described in the above embodiment to automatically perform time-lapse photography.
- manual mode the user can actively set one or more of the shooting scene, target shooting interval, shooting duration, video duration, ISO in target shooting parameters, exposure time in target shooting parameters, focus mode or white balance, etc.
- the mobile phone can shoot time-lapse video according to the parameters set by the user.
- the mobile phone can display parameter setting information on the preview interface, so that professionals can use mobile phones and other non-professional cameras to shoot time-lapse photography videos with ideal effects.
- the mobile phone in the time-lapse photography mode, can default to the automatic mode; the mobile phone can switch to the manual mode according to the user's instruction.
- the preview interface of the time-lapse photography mode may include a mode control for switching between the automatic mode and the manual mode.
- the mode control may be the control 1901 shown in FIG. 19.
- the control 1901 indicates that the current mode is the automatic mode. After the mobile phone detects that the user has clicked the control 1901, it can switch to the manual mode, and display related information corresponding to the manual mode on the preview interface.
- the preview interface used to facilitate the user to set the shooting interval may refer to (a) in FIG. 20.
- a target photo such as at least T (for example, 2.35s)
- the mobile phone exits the high dynamic scene and uses the normal scene to shoot time-lapse video.
- the preview interface used to facilitate the user to set the shooting duration (or the recording duration) may refer to (b) in FIG. 20.
- the preview interface used to facilitate the user to set shooting parameters such as ISO and exposure time can be seen in (c) in FIG. 20.
- the mobile phone after the mobile phone detects that the user has long pressed the "time-lapse photography" control 306 on the preview interface as shown in Figure 3(b), it displays an option for the user to select automatic mode or manual mode. Mode list, and switch the time-lapse photography mode according to the user's instructions.
- the mobile phone after the mobile phone detects that the user has clicked the "settings" icon 307 on the preview interface shown in Figure 3 (b), it displays a list of modes for the user to select automatic mode or manual mode, and according to The user's instruction switches the time-lapse photography mode.
- the mobile phone after the mobile phone detects that the user long presses the control 601 on the preview interface shown in Figure 6 (a), it displays a list of shooting scenes for the user to select, and delays according to the shooting scene indicated by the user Photography shooting. For example, the mobile phone can determine the target shooting parameters according to the shooting scene indicated by the user, so as to perform shooting according to the target shooting parameters.
- the mobile phone after the mobile phone detects that the user clicks the control 601 on the preview interface shown in (a) of FIG. 6, it can display the target shooting parameters corresponding to the high dynamic scene determined by the mobile phone.
- the mobile phone can record the changes of shooting parameters through the log.
- a screenshot of the log log corresponding to the starry sky scene can be seen in Figure 21.
- the mobile phone may also separately save the target photo taken in the time-lapse photography mode as a photo.
- the shooting interface can include a photo saving control. After the mobile phone detects that the user clicks on the control, it can save the target photo obtained by the current shooting as a photo, so that a better delay can be obtained in the current shooting scene. Photography video, you can also get better photos. For another example, after a mobile phone generates a time-lapse photography video, it saves the video file and the image file of the target photo.
- the log in the process of shooting a time-lapse video by the mobile phone, when the target photo is taken, the log may record keyword 1, and the keyword 1 is used to indicate a photographing operation.
- the log in the process of obtaining the time-lapse photography video by shooting video and extracting frames in the prior art, when the video is shot, the log may record keyword 2 which is used to indicate the operation of shooting the video.
- the above description is mainly based on an example where the electronic device is a mobile phone.
- the time-lapse photography shooting method provided in the embodiment of the present application can also be applied to other electronic devices such as a tablet computer, and will not be repeated here.
- the method for determining the shooting scene and target shooting parameters provided in the above embodiments can also be applied to shooting modes other than time-lapse photography.
- the electronic device in the camera mode, can use the method described in the above embodiment to determine the shooting scene and the target shooting parameters adapted to the shooting scene, and then shoot according to the target shooting parameters adapted to the shooting scene to obtain the effect interaction in the current shooting scene.
- the electronic device includes hardware and/or software modules corresponding to each function.
- the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software-driven hardware depends on the specific application and design constraint conditions of the technical solution. Those skilled in the art can use different methods for each specific application in combination with the embodiments to implement the described functions, but such implementation should not be considered as going beyond the scope of the present application.
- the electronic device may be divided into functional modules according to the foregoing method examples.
- each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module.
- the above-mentioned integrated modules can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is illustrative, and is only a logical function division, and there may be other division methods in actual implementation.
- FIG. 22 shows a schematic diagram of a possible composition of the electronic device 2200 involved in the foregoing embodiment.
- the electronic device may include a scene detection module 2201.
- An automatic exposure module 2202 a parameter optimization module 2203, an image enhancement module 2204, an inter-frame brightness smoothing processing module 2205, a video encoding module 2206, and so on.
- the scene detection module 2201 can be used to support the electronic device to perform the function of detecting the current shooting scene in step 203, and the function of determining the starry sky scene in step 207, etc.; and/or other processes used in the technology described herein.
- the automatic exposure module 2202 can be used to support the electronic device to determine the preview shooting parameters and the display shooting parameters according to the shooting environment, so that the electronic device collects images according to the preview shooting parameters or the display shooting parameters, thereby displaying the preview image in step 201, and in step 212 Display the image on the shooting interface; and/or other processes used in the techniques described herein.
- the parameter optimization module 2203 can be used to support the electronic device to optimize and determine the target shooting parameters in step 205 and step 208, and/or other processes used in the technology described herein.
- the image enhancement module 2204 may be used to support the electronic device to perform image enhancement on the target photo in the starry sky scene in step 210, and/or be used in other processes of the technology described herein.
- the inter-frame brightness smoothing processing module 2205 may be used to support the electronic device to perform inter-frame brightness smoothing processing on adjacent target photos in step 211, and/or other processes used in the technology described herein.
- the video encoding module 2206 may be used to support the electronic device to perform video encoding on the target photo in step 213, and/or other processes used in the technology described herein.
- the above-mentioned scene detection module 2201, automatic exposure module 2202, parameter optimization module 2203, image enhancement module 2204, and inter-frame brightness smoothing processing module 2205 may be software modules in electronic devices; video encoding module 2206 may be hardware in electronic devices Module.
- the software system of the electronic device can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
- the embodiment of the present application takes an Android system with a layered architecture as an example to illustrate the software structure of an electronic device.
- FIG. 23 is a block diagram of the software structure of an electronic device according to an embodiment of the present application.
- the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
- the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, the HAL layer, and the kernel layer.
- the application layer can include a series of application packages.
- the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc.
- the camera can provide time-lapse photography.
- the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
- the application framework layer includes some predefined functions.
- the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and so on.
- the window manager is used to manage window programs.
- the window manager can obtain the size of the display, determine whether there is a status bar, lock the screen, take a screenshot, etc.
- the content provider is used to store and retrieve data and make these data accessible to applications.
- the data can include videos, images, audios, phone calls made and received, browsing history and bookmarks, phone book, etc.
- the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
- the view system can be used to build applications.
- the display interface can be composed of one or more views.
- a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
- the phone manager is used to provide the communication function of the electronic device. For example, the management of the call status (including connecting, hanging up, etc.).
- the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
- the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can disappear automatically after a short stay without user interaction.
- the notification manager is used to notify download completion, message reminders, and so on.
- the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialog window. For example, text messages are prompted in the status bar, prompt sounds, electronic devices vibrate, and indicator lights flash.
- Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
- the core library consists of two parts: one part is the function functions that the java language needs to call, and the other part is the core library of Android.
- the application layer and the application framework layer run in a virtual machine.
- the virtual machine executes the java files of the application layer and the application framework layer as binary files.
- the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
- the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
- the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
- the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
- the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
- the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
- the 2D graphics engine is a drawing engine for 2D drawing.
- the HAL layer is used to abstract the underlying hardware to provide the upper layer with abstracted services and functions such as camera, audio, and Bluetooth.
- the scene detection module 2201, the automatic exposure module 2202, the parameter optimization module 2203, the image enhancement module 2204, and the inter-frame brightness smoothing processing module 2205 shown in FIG. 22 may be located in the HAL layer.
- the kernel layer is the layer between hardware and software.
- the kernel layer contains at least display drivers, camera drivers, audio drivers, sensor drivers, and video codec drivers.
- an embodiment of the present application also provides an electronic device, including: a camera for capturing images; a screen for displaying an interface; one or more processors; a memory; and one or more computer programs.
- One or more computer programs are stored in the memory, and the one or more computer programs include instructions.
- the electronic device is caused to execute each step in the above-mentioned embodiment, so as to realize the above-mentioned time-lapse photography shooting method.
- the embodiment of the present application also provides a computer storage medium, the computer storage medium stores computer instructions, when the computer instructions run on the electronic device, the electronic device executes the above-mentioned related method steps to realize the time-lapse photography in the above-mentioned embodiment Shooting method.
- the embodiments of the present application also provide a computer program product.
- the computer program product runs on a computer, the computer is caused to execute the above-mentioned related steps to realize the time-lapse photography shooting method in the above-mentioned embodiment.
- the embodiments of the present application also provide a device.
- the device may specifically be a chip, component or module.
- the device may include a processor and a memory connected to each other.
- the memory is used to store computer execution instructions.
- the processor can execute the computer-executable instructions stored in the memory, so that the chip executes the time-lapse photography shooting method executed by the electronic device in the foregoing method embodiments.
- the electronic device, computer storage medium, computer program product, or chip provided in this embodiment are all used to execute the corresponding method provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding method provided above. The beneficial effects of the method will not be repeated here.
- the disclosed device and method can be implemented in other ways.
- the device embodiments described above are merely illustrative.
- the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be divided. It can be combined or integrated into another device, or some features can be omitted or not implemented.
- the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
- the units described as separate parts may or may not be physically separate.
- the parts displayed as units may be one physical unit or multiple physical units, that is, they may be located in one place, or they may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
- the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
- the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
- the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium.
- the technical solutions of the embodiments of the present application are essentially or the part that contributes to the prior art, or all or part of the technical solutions can be embodied in the form of a software product, and the software product is stored in a storage medium. It includes several instructions to make a device (may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods described in the various embodiments of the present application.
- the foregoing storage media include: U disk, mobile hard disk, read only memory (read only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Studio Devices (AREA)
- Exposure Control For Cameras (AREA)
Abstract
本申请实施例提供一种延时摄影的拍摄方法及设备,涉及拍摄技术领域,可以自动识别拍摄场景,根据与拍摄场景相匹配的目标拍摄参数拍摄效果较好的多张照片,并对多张照片进行视频编码,从而生成效果较好的延时摄影视频。具体方案为:电子设备在检测到第一操作后启动相机;在检测到第二操作后进入延时摄影模式,并显示预览界面,预览界面包括第一预览图像;根据第一预览图像识别拍摄场景,并根据拍摄场景确定目标拍摄参数;在检测到用户指示开始拍摄的第三操作后,根据目标拍摄参数拍摄多张目标照片;显示拍摄界面;在检测到用户指示停止拍摄的第四操作后,根据多张目标照片生成延时摄影视频。本申请实施例用于延时摄影拍摄。
Description
本申请要求于2019年9月18日提交国家知识产权局、申请号为201910882871.3、申请名称为“一种延时摄影的拍摄方法及设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请实施例涉及拍摄技术领域,尤其涉及一种延时摄影的拍摄方法及设备。
随着电子技术的发展,手机或平板电脑等电子设备的相机拍摄功能也越来越多。例如,电子设备可以具有延时摄影、慢镜头或快镜头等多种视频拍摄功能。其中,延时摄影可以用于建筑制造、城市风光、自然风景、天文现象、城市生活或生物演变等多种场景的拍摄。
现有技术中,延时摄影可以通过将拍摄的视频进行抽帧处理,从而将较长时间内拍摄到的内容压缩到一个较短的时间内,并以视频的方式进行播放。在现有技术中,电子设备对延时摄影的拍摄效果较差,用户体验较差。
发明内容
本申请实施例提供一种延时摄影的拍摄方法及设备,可以自动自动识别拍摄场景,根据与拍摄场景相匹配的目标拍摄参数拍摄效果较好的多张照片,并对多张照片进行视频编码,从而生成效果较好的延时摄影视频,用户体验较好。
为达到上述目的,本申请实施例采用如下技术方案:
一方面,本申请实施例提供了一种延时摄影的拍摄方法,包括:电子设备检测到用户指示打开相机的第一操作后,启动相机。电子设备在检测到用户指示进入延时摄影模式的第二操作后,进入延时摄影模式,并显示预览界面,该预览界面包括第一预览图像。电子设备根据第一预览图像识别拍摄场景。其中,拍摄场景包括高动态场景、暗光场景或普通场景。电子设备根据拍摄场景确定目标拍摄参数。其中,目标拍摄参数包括目标感光度(photosensibility,ISO)和目标曝光时间。电子设备在检测到用户指示开始拍摄的第三操作后,根据目标拍摄参数拍摄多张目标照片。并且,电子设备在检测到用户指示开始拍摄的第三操作后显示拍摄界面。电子设备在检测到用户指示停止拍摄的第四操作后,根据多张目标照片生成延时摄影视频。
在该方案中,在延时摄影模式下,电子设备可以自动检测当前的拍摄场景,确定与当前拍摄场景相匹配的目标拍摄参数,从而根据目标拍摄参数拍摄效果较好的多张照片,并将该多张照片进行视频编码从而生成延时摄影的视频,因而可以自适应不同的拍摄场景进行延时摄影拍摄,拍摄获得的延时摄影视频的效果较好。
在一种可能的设计中,在电子设备根据第一预览图像识别拍摄场景之后,该方法还包括:电子设备在预览界面上显示第一提示信息,第一提示信息用于提示电子设备识别到的拍摄场景。
也就是说,电子设备在识别到拍摄场景后,可以将场景类型提示给用户。
在另一种可能的设计中,在电子设备进入延时摄影模式,并显示预览界面,预览界面包括第一预览图像之后,该方法还包括:电子设备根据第一预览图像上的拍摄对象确定目标拍摄间隔。电子设备根据目标拍摄参数拍摄多张目标照片,包括:电子设备根据目标拍摄参数和目标拍照间隔拍摄多张目标照片。
在该方案中,在延时摄影模式下,电子设备可以根据与拍摄对象匹配的目标拍照间隔以及目标拍摄参数拍摄效果较好的多张目标照片,从而生成效果较好的延时摄影视频。
在另一种可能的设计中,若电子设备识别到拍摄场景为高动态场景,则高动态场景对应的目标拍摄参数包括多个曝光时间。电子设备根据目标拍摄参数和目标拍照间隔拍摄多张目标照片,包括:电子设备根据多个曝光时间分别拍摄一组图像中曝光程度不同的多帧图像;电子设备根据目标拍照间隔拍摄多组图像;电子设备将每组图像中的多帧图像融合成一张目标照片。
在该方案中,在高动态场景下,电子设备可以采用高动态算法将曝光程度不同的多帧图像融合成动态范围更大、效果更好的一张目标照片。
在另一种可能的设计中,第一预览图像为基于第一帧率和第一拍摄参数采集的图像,在电子设备检测到用户指示开始拍摄延时摄影视频的第三操作之后,该方法还包括:若电子设备识别到拍摄场景为高动态场景或普通场景,则电子设备根据第一帧率和第一拍摄参数采集展示图像,拍摄界面包括展示图像。
也就是说,若电子设备识别到拍摄场景为高动态场景或普通场景,则电子设备可以采用与预览状态下相一致的帧率和曝光参数采集图像并显示在拍摄界面上,以为用户实时显示流畅的图像画面。
在另一种可能的设计中,拍摄界面还包括第一时间控件和第二时间控件,第一时间控件用于表示延时摄影视频的拍摄时长,第二时间控件用于表示延时摄影视频的可播放时长。
这样,电子设备可以在拍摄界面上为用户提示拍摄时长和可播放时长。
在另一种可能的设计中,第一预览图像为基于第一帧率和第一拍摄参数采集的图像,第一拍摄参数包括第一感光度ISO和第一曝光时间。若电子设备识别到拍摄场景为暗光场景,则在电子设备根据拍摄场景确定目标拍摄参数之后,且在电子设备检测到用户指示开始拍摄延时摄影视频的第三操作之前,该方法还包括:电子设备根据目标拍摄参数和第二帧率采集目标图像,预览界面包括第二预览图像,第二预览图像为目标图像。其中,第二帧率小于第一帧率,暗光场景对应的目标感光度ISO小于第一感光度ISO,目标曝光时间大于第一曝光时间。
也就是说,在预览状态下,若电子设备识别到拍摄场景为暗光场景,则可以降低帧率(即采用低于预览帧率的第二帧率),采用更大的曝光时间和更小的ISO采集预览图像,以在光线较暗的情况下为用户呈现效果较好的图像画面。
在另一种可能的设计中,若电子设备识别到拍摄场景为暗光场景,则电子设备根据目标拍摄参数和目标拍照间隔拍摄多张目标照片,包括:若电子设备识别到拍摄场景为暗光场景下的星空场景,则电子设备确定星空场景对应的目标拍摄参数和目标拍照间隔;电子设备根据星空场景对应的目标拍摄参数和目标拍照间隔,拍摄多张目标照片。或者,若电子设备识别到拍摄场景不是星空场景,则电子设备根据暗光场景对应的目标拍摄参数和目标拍照间隔,拍摄多张目标照片。
这样,在用户指示开始拍摄后,电子设备可以识别当前暗光场景是否为星空场景,若是星空场景,则根据星空场景匹配的目标拍摄参数拍摄目标照片;若不是星空场景,则根据暗光场景匹配的目标拍摄参数拍摄目标照片。
在另一种可能的设计中,在电子设备根据星空场景对应的目标拍摄参数和目标拍照间隔,拍摄多张目标照片之后,该方法还包括:电子设备对多张目标照片进行图像增强。
由于星空拍摄环境的光线通常较暗,通过低ISO和长曝光的方式获得的星空图像仍然含有少量噪声,并且颜色和对比度的效果也可能不是很好。因而,手机可以对目标照片进行图像去燥、提升亮度等图像增强处理,以提升星空图像的美感。
在另一种可能的设计中,若电子设备识别到拍摄场景为暗光场景,则在电子设备检测到用户指示开始拍摄延时摄影视频的第三操作之后,该方法还包括:电子设备根据暗光场景对应的目标拍摄参数和第二帧率采集目标图像,拍摄界面包括目标图像。其中,拍摄界面上还包括第二提示信息,第二提示信息用于提示用户电子设备正在进行优化处理,或者电子设备正在识别是否为星空场景。
也就是说,若电子设备识别到拍摄场景为暗光场景,则在刚检测到用户指示开始拍摄的操作后,电子设备可以采用目标拍摄参数中较大的曝光时间和较小的ISO采集展示图像,以在光线较暗的情况下在拍摄界面上为用户呈现效果较好的图像画面。并且,电子设备还可以显示第二提示信息,避免用户以为电子设备出现了卡顿或其他问题。
在另一种可能的设计中,在电子设备显示拍摄界面,拍摄界面包括目标图像之后,该方法还包括:若电子设备识别到拍摄场景为暗光场景下的星空场景,则电子设备将拍摄界面上的目标图像切换为,根据星空场景对应的目标拍摄参数和目标拍照间隔拍摄获得的目标照片。
也就是说,若电子设备识别到拍摄场景为星空场景,则可以在拍摄界面上显示目标照片,以在环境光线很暗的情况下为用户呈现效果较好的图像画面。
在另一种可能的设计中,若电子设备识别到拍摄场景为暗光场景下的星空场景,或者若电子设备识别到拍摄场景不是星空场景,则该方法还包括:电子设备停止在拍摄界面上显示第二提示信息。电子设备在拍摄界面上显示第一时间控件和第二时间控件。第一时间控件用于表示延时摄影视频的拍摄时长,第二时间控件用于表示延时摄影视频的可播放时长。
也就是说,电子设备在确定暗光场景是否为星空场景后,可以开始拍摄星空场景下的目标照片,还可以开始显示拍摄时长和可拍摄时长。
在另一种可能的设计中,预览界面还包括模式控件,该方法还包括:电子设备检测到用户点击模式控件的操作。电子设备从自动模式切换到手动模式。在手动模式下,电子设备在预览界面上显示延时摄影的参数设置信息。
这样,用户可以指示切换自动模式和手动模式,还可以在手动模式下设置延时摄影的相关参数。
在另一种可能的设计中,当指令被电子设备执行时,还使得电子设备执行如下步骤:在电子设备根据目标拍摄参数拍摄多张目标照片之后,对多张目标照片进行帧间亮度平滑处理。
这样,电子设备通过帧间亮度平滑处理,可以减小相邻目标照片之间的亮度差异,保 证画面的亮度平滑性和一致性,避免出现亮度跳变。
在另一种可能的设计中,电子设备根据第一预览图像识别拍摄场景,包括:电子设备根据第一预览图像对应的第一感光度ISO、第一曝光时间或亮度分布直方图中的一项或多项,识别拍摄场景。
也就是说,电子设备可以通过感光度ISO、曝光时间或亮度分布直方图等参数识别拍摄场景的场景类型。
在另一种可能的设计中,电子设备根据第一预览图像对应的第一感光度ISO、第一曝光时间或亮度分布直方图中的一项或多项,识别拍摄场景,包括:若电子设备根据第一感光度ISO和第一曝光时间,确定环境光亮度小于第一预设值,则电子设备确定拍摄场景为暗光场景。或者,若电子设备根据第一感光度ISO和第一曝光时间,确定环境光亮度大于或者等于第一预设值,则电子设备确定拍摄场景为高动态场景或普通场景。若电子设备根据亮度分布直方图确定满足预设条件,则确定拍摄场景为高动态场景。其中,预设条件包括第一预览图像上亮度在第一亮度范围和第二亮度范围内的像素点的比例大于或者等于第二预设值,第一亮度范围为低亮度的范围,第二亮度范围为高亮度的范围。若电子设备根据亮度分布直方图确定不满足预设条件,则电子设备确定拍摄场景为普通场景。
可以理解的是,暗光场景下环境光亮度较小,普通场景下环境光亮度较大,且高动态场景的亮度的动态范围较大,包括低亮度的拍摄对象和高亮度的拍摄对象。
在另一种可能的设计中,电子设备识别拍摄场景为暗光场景下的星空场景,包括:电子设备采用暗光场景对应的目标拍摄参数采集参考图像。若电子设备确定目标拍摄参数在预设的参数范围内,预设的参数范围内的曝光时间大于或者等于第三预设值,且电子设备识别到参考图像的拍摄对象包含星空,则电子设备确定拍摄场景为星空场景。
也就是说,电子设备可以根据预设的参数范围和拍摄对象是否包含星空,来确定拍摄场景是否为星空场景。
在另一种可能的设计中,电子设备确定星空场景对应的目标拍摄参数,包括:若参考图像上像素点的平均亮度值在第三亮度范围内,且在第三亮度范围内的像素点的比例大于或者等于50%,则电子设备确定参考图像对应的拍摄参数为星空场景对应的目标拍摄参数。或者,若参考图像上像素点的平均亮度值不在第三亮度范围内,或在第三亮度范围内的像素点的比例小于50%,则电子设备调整曝光时间,并根据调整后的曝光时间重新采集参考图像。若电子设备确定距离检测到第三操作的时长大于或者等于预设时长,则电子设备在调整曝光时间后,停止采集参考图像,目标拍摄参数包括调整后的曝光时间。
也就是说,电子设备可以根据像素点的亮度和在预设亮度范围内的像素点的比例,确定星空场景对应的目标拍摄参数。
另一方面,本申请实施例提供了一种延时摄影的拍摄方法,包括:电子设备检测到用户指示打开相机的第一操作后,启动相机。电子设备检测到用户指示进入延时摄影模式的第二操作后,进入延时摄影模式,并显示预览界面,预览界面包括第一预览图像。电子设备检测到用户指示开始拍摄延时摄影视频的第三操作后,拍摄多张目标照片。电子设备显示拍摄界面。电子设备检测到用户指示停止拍摄延时摄影视频的第四操作后,根据多张目标照片生成延时摄影视频。
在该方案中,在延时摄影模式下,电子设备可以基于拍照算法自动拍摄效果较好的多 张照片,并将该多张照片进行视频编码,从而生成效果较好的延时摄影视频,用户体验较好。
在一种可能的设计中,在电子设备进入延时摄影模式,并显示预览界面,预览界面包括第一预览图像之后,该方法还包括:电子设备根据第一预览图像上的拍摄对象确定目标拍摄间隔。电子设备拍摄多张目标照片,包括:电子设备根据目标拍照间隔拍摄多张目标照片。
在该方案中,在延时摄影模式下,电子设备可以根据与拍摄对象匹配的目标拍照间隔拍摄效果较好的多张目标照片,从而生成效果较好的延时摄影视频。
在另一种可能的设计中,在电子设备进入延时摄影模式,并显示预览界面,预览界面包括第一预览图像之后,该方法还包括:电子设备根据第一预览图像识别拍摄场景,拍摄场景包括高动态场景、暗光场景或普通场景。电子设备根据目标拍照间隔拍摄多张目标照片,包括:电子设备根据拍摄场景和目标拍照间隔拍摄多张目标照片。
在该方案中,在延时摄影模式下,电子设备可以自动检测当前的拍摄场景,确定与拍摄对象匹配的目标拍照间隔,从而根据拍摄场景和目标拍照间隔拍摄效果较好的多张照片,并将该多张照片进行视频编码从而生成延时摄影的视频,因而可以自适应不同的拍摄场景进行延时摄影拍摄,拍摄获得的延时摄影视频的效果较好。
在另一种可能的设计中,在电子设备根据第一预览图像识别拍摄场景之后,该方法还包括:电子设备根据拍摄场景确定目标拍摄参数,目标拍摄参数包括目标感光度ISO和目标曝光时间。电子设备根据拍摄场景和目标拍照间隔拍摄多张目标照片,包括:电子设备根据目标拍摄参数和目标拍照间隔拍摄多张目标照片。
在该方案中,在延时摄影模式下,电子设备可以自动检测当前的拍摄场景,确定与当前拍摄场景相匹配的目标拍摄参数及与拍摄对象匹配的目标拍照间隔,从而根据目标拍摄参数和目标拍照间隔拍摄效果较好的多张照片,并将该多张照片进行视频编码从而生成延时摄影的视频,因而可以自适应不同的拍摄场景进行延时摄影拍摄,拍摄获得的延时摄影视频的效果较好。
另一方面,本申请实施例提供了一种延时摄影的拍摄方法,包括:电子设备检测到用户指示打开相机的第一操作后,启动相机。电子设备检测到用户指示进入延时摄影模式的第二操作后,进入延时摄影模式,并显示预览界面,预览界面包括第一预览图像。电子设备根据第一预览图像上的拍摄对象确定目标拍摄间隔。电子设备根据第一预览图像识别拍摄场景,拍摄场景包括高动态场景、暗光场景或普通场景。电子设备根据拍摄场景确定目标拍摄参数,目标拍摄参数包括目标感光度ISO和目标曝光时间。电子设备检测到用户指示开始拍摄延时摄影视频的第三操作后,根据目标拍摄参数和目标拍照间隔拍摄多张目标照片。电子设备显示拍摄界面。电子设备检测到用户指示停止拍摄延时摄影视频的第四操作后,根据多张目标照片生成延时摄影视频。
在该方案中,在延时摄影模式下,电子设备可以自动检测当前的拍摄场景,确定与当前拍摄场景相匹配的目标拍摄参数及与拍摄对象匹配的目标拍照间隔,从而根据目标拍摄参数和目标拍照间隔拍摄效果较好的多张照片,并将该多张照片进行视频编码从而生成延时摄影的视频,因而可以自适应不同的拍摄场景进行延时摄影拍摄,拍摄获得的延时摄影视频的效果较好。
另一方面,本申请实施例提供了一种电子设备,包括:摄像头,用于采集图像;屏幕,用于显示界面;一个或多个处理器;一个或多个存储器,存储器中存储有指令。当指令被电子设备执行时,使得电子设备执行如下步骤:检测到用户指示打开相机的第一操作后,启动相机;检测到用户指示进入延时摄影模式的第二操作后,进入延时摄影模式,并显示预览界面,预览界面包括第一预览图像;根据第一预览图像识别拍摄场景,拍摄场景包括高动态场景、暗光场景或普通场景;根据拍摄场景确定目标拍摄参数,目标拍摄参数包括目标感光度ISO和目标曝光时间;检测到用户指示开始拍摄的第三操作后,根据目标拍摄参数拍摄多张目标照片;显示拍摄界面;检测到用户指示停止拍摄的第四操作后,根据多张目标照片生成延时摄影视频。
在一种可能的设计中,当指令被电子设备执行时,还使得电子设备执行如下步骤:在根据第一预览图像识别拍摄场景之后,在预览界面上显示第一提示信息,第一提示信息用于提示电子设备识别到的拍摄场景。
在另一种可能的设计中,当指令被电子设备执行时,还使得电子设备执行如下步骤:在进入延时摄影模式,并显示预览界面,预览界面包括第一预览图像之后,根据第一预览图像上的拍摄对象确定目标拍摄间隔;根据目标拍摄参数拍摄多张目标照片,包括:根据目标拍摄参数和目标拍照间隔拍摄多张目标照片。
在另一种可能的设计中,若识别到拍摄场景为高动态场景,则高动态场景对应的目标拍摄参数包括多个曝光时间,根据目标拍摄参数和目标拍照间隔拍摄多张目标照片,包括:根据多个曝光时间分别拍摄一组图像中曝光程度不同的多帧图像;根据目标拍照间隔拍摄多组图像;将每组图像中的多帧图像融合成一张目标照片。
在另一种可能的设计中,第一预览图像为基于第一帧率和第一拍摄参数采集的图像,当指令被电子设备执行时,还使得电子设备执行如下步骤:在检测到用户指示开始拍摄延时摄影视频的第三操作之后,若识别到拍摄场景为高动态场景或普通场景,则根据第一帧率和第一拍摄参数采集展示图像,拍摄界面包括展示图像。
在另一种可能的设计中,拍摄界面还包括第一时间控件和第二时间控件,第一时间控件用于表示延时摄影视频的拍摄时长,第二时间控件用于表示延时摄影视频的可播放时长。
在另一种可能的设计中,第一预览图像为基于第一帧率和第一拍摄参数采集的图像,第一拍摄参数包括第一感光度ISO和第一曝光时间。当指令被电子设备执行时,还使得电子设备执行如下步骤:若识别到拍摄场景为暗光场景,则在根据拍摄场景确定目标拍摄参数之后,且在检测到用户指示开始拍摄延时摄影视频的第三操作之前,根据目标拍摄参数和第二帧率采集目标图像,预览界面包括第二预览图像,第二预览图像为目标图像。其中,第二帧率小于第一帧率,暗光场景对应的目标感光度ISO小于第一感光度ISO,目标曝光时间大于第一曝光时间。
在另一种可能的设计中,若识别到拍摄场景为暗光场景,则根据目标拍摄参数和目标拍照间隔拍摄多张目标照片,包括:若识别到拍摄场景为暗光场景下的星空场景,则确定星空场景对应的目标拍摄参数和目标拍照间隔;根据星空场景对应的目标拍摄参数和目标拍照间隔,拍摄多张目标照片。或者,若识别到拍摄场景不是星空场景,则根据暗光场景对应的目标拍摄参数和目标拍照间隔,拍摄多张目标照片。
在另一种可能的设计中,当指令被电子设备执行时,还使得电子设备执行如下步骤: 在根据星空场景对应的目标拍摄参数和目标拍照间隔,拍摄目标照片之后,对目标照片进行图像增强。
在另一种可能的设计中,当指令被电子设备执行时,还使得电子设备执行如下步骤:若识别到拍摄场景为暗光场景,则在检测到用户指示开始拍摄延时摄影视频的第三操作之后,根据暗光场景对应的目标拍摄参数和第二帧率采集目标图像,拍摄界面包括目标图像。其中,拍摄界面上还包括第二提示信息,第二提示信息用于提示用户电子设备正在进行优化处理,或者电子设备正在识别是否为星空场景。
在另一种可能的设计中,当指令被电子设备执行时,还使得电子设备执行如下步骤:在显示拍摄界面,拍摄界面包括目标图像之后,若识别到拍摄场景为暗光场景下的星空场景,则将拍摄界面上的目标图像切换为,根据星空场景对应的目标拍摄参数和目标拍照间隔拍摄获得的目标照片。
在另一种可能的设计中,当指令被电子设备执行时,还使得电子设备执行如下步骤:若识别到拍摄场景为暗光场景下的星空场景,或者若识别到拍摄场景不是星空场景,则停止在拍摄界面上显示第二提示信息;在拍摄界面上显示第一时间控件和第二时间控件。第一时间控件用于表示延时摄影视频的拍摄时长,第二时间控件用于表示延时摄影视频的可播放时长。
在另一种可能的设计中,当指令被电子设备执行时,还使得电子设备执行如下步骤:在拍摄多张目标照片之后,对多张目标照片进行帧间亮度平滑处理。
在另一种可能的设计中,预览界面还包括模式控件,当指令被电子设备执行时,还使得电子设备执行如下步骤:检测到用户点击模式控件的操作;从自动模式切换到手动模式;在手动模式下,在预览界面上显示延时摄影的参数设置信息。
在另一种可能的设计中,根据第一预览图像识别拍摄场景,包括:根据第一预览图像对应的第一感光度ISO、第一曝光时间或亮度分布直方图中的一项或多项,识别拍摄场景。
在另一种可能的设计中,根据第一预览图像对应的第一感光度ISO、第一曝光时间或亮度分布直方图中的一项或多项,识别拍摄场景,包括:若根据第一感光度ISO和第一曝光时间,确定环境光亮度小于第一预设值,则确定拍摄场景为暗光场景。或者,若根据第一感光度ISO和第一曝光时间,确定环境光亮度大于或者等于第一预设值,则确定拍摄场景为高动态场景或普通场景。若根据亮度分布直方图确定满足预设条件,则确定拍摄场景为高动态场景;其中,预设条件包括第一预览图像上亮度在第一亮度范围和第二亮度范围内的像素点的比例大于或者等于第二预设值,第一亮度范围为低亮度的范围,第二亮度范围为高亮度的范围。若根据亮度分布直方图确定不满足预设条件,则确定拍摄场景为普通场景。
在另一种可能的设计中,识别拍摄场景为暗光场景下的星空场景,包括:采用暗光场景对应的目标拍摄参数采集参考图像。若确定目标拍摄参数在预设的参数范围内,预设的参数范围内的曝光时间大于或者等于第三预设值,且识别到参考图像的拍摄对象包含星空,则确定拍摄场景为星空场景。
在另一种可能的设计中,确定星空场景对应的目标拍摄参数,包括:若参考图像上像素点的平均亮度值在第三亮度范围内,且在第三亮度范围内的像素点的比例大于或者等于50%,则确定参考图像对应的拍摄参数为星空场景对应的目标拍摄参数。或者,若参考图 像上像素点的平均亮度值不在第三亮度范围内,或在第三亮度范围内的像素点的比例小于50%,则调整曝光时间,并根据调整后的曝光时间重新采集参考图像。若确定距离检测到第三操作的时长大于或者等于预设时长,则在调整曝光时间后,停止采集参考图像,目标拍摄参数包括调整后的曝光时间。
另一方面,本申请实施例提供了一种拍摄装置,该装置包含在电子设备中。该装置具有实现上述方面及可能的设计中任一方法中电子设备行为的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。硬件或软件包括至少一个与上述功能相对应的模块或单元。例如,检测模块/单元,显示模块/单元,确定模块/单元,拍摄模块/单元,处理模块/单元,生成模块/单元等。
另一方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行上述方面任一项可能的设计中的延时摄影的拍摄方法。
又一方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述方面任一项可能的设计中的延时摄影的拍摄方法。
另一方面,本申请实施例提供了一种芯片系统,该芯片系统应用于电子设备。该芯片系统包括一个或多个接口电路和一个或多个处理器;接口电路和处理器通过线路互联;接口电路用于从电子设备的存储器接收信号,并向处理器发送信号,信号包括存储器中存储的计算机指令;当处理器执行计算机指令时,电子设备执行上述方面任一项可能的设计中的延时摄影的拍摄方法。
上述其他方面对应的有益效果,可以参见关于方法方面的有益效果的描述,此处不予赘述。
图1为本申请实施例提供的一种电子设备的硬件结构示意图;
图2为本申请实施例提供的一种延时摄影的拍摄流程图;
图3为本申请实施例提供的一组界面示意图;
图4为本申请实施例提供的另一组界面示意图;
图5为本申请实施例提供的一种界面示意图;
图6为本申请实施例提供的一组高动态场景示意图;
图7为本申请实施例提供的一组暗光场景示意图;
图8为本申请实施例提供的一组普通场景示意图;
图9为本申请实施例提供的一组图像增强前后的效果示意图;
图10A为本申请实施例提供的帧间亮度平滑处理前的目标照片的亮度效果图;
图10B为本申请实施例提供的帧间亮度平滑处理后的目标照片的亮度效果图;
图11为本申请实施例提供的帧间亮度平滑处理前后的亮度曲线对比图;
图12为本申请实施例提供的另一组界面示意图;
图13为本申请实施例提供的另一种界面示意图;
图14为本申请实施例提供的另一种界面示意图;
图15为本申请实施例提供的另一种界面示意图;
图16为本申请实施例提供的另一种界面示意图;
图17为本申请实施例提供的一种延时摄影的处理流程图;
图18为本申请实施例提供的另一种界面示意图;
图19为本申请实施例提供的另一种界面示意图;
图20为本申请实施例提供的另一组界面示意图;
图21为本申请实施例提供的一种log日志的截图;
图22为本申请实施例提供的一种电子设备的模块示意图;
图23为本申请实施例提供的一种电子设备的软件架构示意图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,在本申请实施例的描述中,“多个”是指两个或多于两个。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
延时摄影可以将相机长时间内拍摄的图像内容,在短时间内以视频的方式进行播放。例如,延时摄影可以用于拍摄云卷云舒、斗转星移、日出日落、车水马龙或花开花落等场景。在一种现有技术中,单反等专业相机可以用于延时摄影的拍摄。该种情况下,用户需要主动设置延时摄影相关的多项参数,以使得单反等专业相机按照用户指示的参数拍摄延时摄影的图像帧。单反等专业相机拍摄获得的图像帧还需要通过专门的延时摄影软件进行处理,才能获得延时摄影视频。
在另一种现有技术中,手机或平板电脑等电子设备可以利用相机功能自动进行延时摄影的拍摄,而无需用户手动设置拍摄参数。但手机或平板电脑等电子设备针对各种拍摄场景均采用统一的模式进行延时摄影的拍摄,该种统一的模式无法适配各种不同的拍摄场景,无法在各种不同的拍摄场景下得到较好的拍摄效果。
现有技术中,手机或平板电脑等电子设备可以基于视频处理算法,按照视频采集帧率拍摄一段原始视频的视频帧,而后对原始视频的视频帧进行抽帧和视频编码,从而生成延时摄影的视频。在该方案中,原始视频的视频采集帧率较大,原始视频的视频帧之间的采集间隔较短,视频帧的处理时长较短,视频处理算法的处理效果较差,因而视频帧的图像效果较差,生成的延时摄影视频中的图像帧的效果也较差。
本申请实施例提供了一种延时摄影的拍摄方法,可以应用于电子设备。在本申请的一些实施例中,在延时摄影模式下,电子设备可以基于拍照算法拍摄效果较好的多张照片,并将多张照片进行视频编码,从而自动生成效果较好的延时摄影视频,而不需要借助其他延时摄影的处理软件。
在另一些实施例中,在延时摄影模式下,电子设备可以确定与拍摄对象相匹配的目标拍照间隔,从而根据目标拍照间隔拍摄效果较好的多张照片,并将多张照片进行视频编码,从而自动生成效果较好的延时摄影视频,而不需要借助其他延时摄影的处理软件。
在另一些实施例中,在延时摄影模式下,电子设备可以自动检测当前的拍摄场景,采用与当前拍摄场景相匹配的目标拍摄参数(例如曝光时间或感光度ISO等),拍摄与当前拍摄场景相匹配的效果较好的多张照片,并将该多张照片进行视频编码从而生成延时摄影的视频。也就是说,在本申请实施例提供的延时摄影的拍摄方法中,不需要用户手动设置拍摄参数,也不需要借助其他延时摄影的处理软件,电子设备可以自适应不同的拍摄场景进行延时摄影的拍摄,获得效果较好的延时摄影视频。
在另一些实施例中,在延时摄影模式下,电子设备可以自动检测当前的拍摄场景,采用与当前拍摄场景相匹配的目标拍摄参数以及与拍摄对象相匹配的目标拍照间隔,拍摄与当前拍摄场景相匹配的效果较好的多张照片,并将该多张照片进行视频编码从而生成延时摄影的视频。也就是说,在本申请实施例提供的延时摄影的拍摄方法中,不需要用户手动设置拍摄参数,也不需要借助其他延时摄影的处理软件,电子设备可以自适应不同的拍摄场景进行延时摄影的拍摄,获得效果较好的延时摄影视频。
此外,与现有技术中电子设备基于视频处理算法拍摄原始视频并进行抽帧处理相比,本申请实施例基于与当前拍摄场景相匹配的专门拍照处理算法拍摄照片,照片的效果更好;并采用与当前拍摄对象相匹配的拍照间隔进行拍摄,拍照间隔比视频采集帧率更大,照片图像的处理时间更长,处理后的照片质量更好,生成的延时摄影视频中的图像帧的效果也更好。
例如,该电子设备具体可以是手机、平板电脑、可穿戴设备、车载设备、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本、个人数字助理(personal digital assistant,PDA)或专门的照相机(例如单反相机、卡片式相机)等,本申请实施例对电子设备的具体类型不作任何限制。
示例性的,图1示出了电子设备100的一种结构示意图。电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。
可以理解的是,本申请实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
其中,控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现电子设备100的触摸功能。
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。I2S接口和PCM接口都可以用于音频通信。
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现电子设备100的显示功能。
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据 信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为电子设备100充电,也可以用于电子设备100与外围设备之间传输数据。也可以用于连接耳机,通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备100的结构限定。在本申请另一些实施例中,电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以 是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。在本申请的实施例中,显示屏194可以显示延时摄影模式下的预览界面和拍摄界面等,还可以通过显示信息的方式给用户以相关提示。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。例如,在本申请的实施例中,ISP可以根据拍摄参数控制感光元件进行曝光和拍照。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。其中,摄像头193可以位于电子设备的边缘区域,可以为屏下摄像头,也可以是可升降的摄像头,本申请实施例对摄像头193的具体位置和形态不予限定。电子设备100可以包括一种或多种焦段的摄像头,例如不同焦段的摄像头可以包括超广角摄像头、广角摄像头、中焦摄像头或长焦摄像头等。
其中,感光元件可以根据ISP指示的拍摄参数采集图像。在一些实施例中,感光元件的工作模式可以包括高动态范围(high dynamic range,HDR)模式。当采用HDR模式时,感光元件可以拍摄一组曝光程度不同的多个单帧图像,这些单帧图像可以融合得到一张动态范围更大的图像。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如电子设备100拍摄获得的照片,确定的目标拍摄参数,音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
在本申请的实施例中,处理器110通过运行存储在内部存储器121的指令,可以检测当前的拍摄场景,根据当前的拍摄场景确定目标拍摄参数,并根据拍摄对象确定目标拍照间隔,从而根据目标拍摄参数和目标拍照间隔拍摄多张照片,并对多张照片进行视频编码从而生成延时摄影视频。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。
气压传感器180C用于测量气压。在一些实施例中,电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。
磁传感器180D包括霍尔传感器。电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当电子设备100是翻盖机时,电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。电 子设备100可以利用接近光传感器180G检测用户手持电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。
环境光传感器180L用于感知环境光亮度。电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测电子设备100是否在口袋里,以防误触。
指纹传感器180H用于采集指纹。电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。
温度传感器180J用于检测温度。在一些实施例中,电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。
例如,在本申请的实施例中,电子设备100可以通过触摸传感器180K检测用户指示开始和/或停止拍摄延时摄影视频的操作。
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。
在本申请的实施例中,在延时摄影模式下,显示屏194可以显示预览界面或拍摄界面等界面。处理器110通过运行存储在内部存储器121的指令,可以检测当前的拍摄场景,确定与拍摄场景相匹配的目标拍摄参数,确定与拍摄对象相匹配的目标拍照间隔,从而根据目标拍摄参数和目标拍照间隔拍摄当前拍摄场景下效果较好的多张照片,进而对多张照片进行视频编码从而生成效果较好的延时摄影视频。
以下将以电子设备为具有图1所示结构的手机为例,对本申请实施例提供的延时摄影的拍摄方法进行阐述。参见图2,该方法可以包括:
201、手机检测到用户指示打开相机的操作后启动相机。
用户在使用手机进行延时摄影拍摄时,可以通过触摸操作、按键操作、隔空手势操作或语音操作等多种方式指示手机启动相机。
示例性的,如图3中的(a)所示,手机在检测到用户点击相机图标301的操作后,启动相机功能。
202、手机进入延时摄影模式,并在预览状态下显示预览界面。
手机在启动相机后可以自动进入拍照模式、录像模式、延时摄影模式或其他拍摄模式,并在预览状态下显示相应拍摄模式下的预览界面。
示例性的,手机在检测到用户点击如图3中的(a)所示的相机图标301的操作后,可以自动进入延时摄影模式。手机在进入延时摄影模式后,可以显示如图3中的(b)所示的预览界面302,预览界面上显示有预览图像。
在预览状态下,手机根据预设的预览帧率(例如30fps(帧每秒))采集图像。手机可以根据当前环境(例如环境光线等因素)实时确定预览拍摄参数,根据预览拍摄参数进行曝光,从而生成预览图像显示在预览界面上。该预览拍摄参数可以包括曝光时间和感光度ISO等参数。其中,手机可以包括自动曝光(automatic exposure,AE)模块,自动曝光模块可以根据当前环境实时确定预览拍摄参数。此外,手机还可以进行自动对焦(auto focus,AF)处理,以生成较为清晰的预览图像。
在延时摄影模式下,用于采集图像的摄像头可以进行切换。例如,如图3中的(b)所示,预览界面302上的控件303表示手机当前用于采集图像的摄像头为广角摄像头。手机检测到用户点击控件303的操作后,可以显示中焦摄像头、长焦摄像头或超广角摄像头等其他摄像头的选项,以便用户指示切换为其他摄像头来采集图像。此外,预览界面302上还可以包括功能控件304,手机检测到用户点击控件304的操作后,可以显示当前拍摄模式的功能和特点。
手机在启动相机后,若未进入延时摄影模式,则可以在检测到用户指示进入延时摄影模式的操作后,进入延时摄影模式。
示例性的,手机在检测到用户点击如图3中的(a)所示的相机图标301的操作后,可以自动进入拍照模式,并显示如图3中的(c)所示的预览界面305。若手机检测到用户点击控件306的操作,则可以进入延时摄影模式。
再示例性的,在图4中的(a)所示拍照模式下的预览界面上,若手机检测到用户点击控件401的操作,则可以显示如图4中的(c)所示的设置界面。或者,在图4中的(b)所示的预览界面上,若手机检测到用户点击控件402的操作,则可以显示如图4中的(c)所示的模式界面。而后,若手机检测到用户点击控件403的操作,则可以进入延时摄影模 式。
再示例性的,在延时摄影模式以外的其他拍摄模式下,手机检测到用户在屏幕上画出一个预设轨迹1(例如“Y”轨迹)的操作后,进入延时摄影模式。
在另一些实施例中,手机在显示桌面或显示其他应用的界面时,在用户想要使用手机的延时摄影模式时,手机可以根据用户的触摸操作、隔空手势操作、语音操作或按键操作等指示,启动相机功能并直接进入延时摄影模式。
示例性的,手机在显示桌面或显示其他应用的界面时,若接收到用户语音指示进入延时摄影模式的指令,则启动相机并进入延时摄影模式。再示例性的,在亮屏并显示桌面的情况下,或者在如图5所示的黑屏情况下,若手机检测到用户在屏幕上画出一个预设轨迹2(例如“YS”轨迹)的操作,则启动相机并进入延时摄影模式。
以上描述的进入延时摄影模式的方式仅为示例性说明,手机还可以通过其他方式进入延时摄影模式,本申请实施例对该具体方式不予限定。
需要说明的是,手机在启动相机之后,且检测到用户指示开始拍摄延时摄影视频的操作之前,手机可以根据拍摄环境(例如环境光线)的变化情况,通过自动曝光模块实时调整预览拍摄参数;手机可以根据预览帧率和实时确定的预览拍摄参数采集预览图像并显示,从而给用户呈现流畅、实时更新的预览画面。
203、手机根据预览界面上的预览图像,自动检测当前的拍摄场景。
手机在进入延时摄影模式后,可以根据预览界面上的预览图像自动检测当前拍摄环境和拍摄对象对应的拍摄场景。例如,该拍摄场景包括高动态场景,暗光场景或普通场景等场景类型中的一种或多种。
手机可以根据预览图像对应的图像参数确定当前所处的拍摄场景。例如,该图像参数可以包括亮度分布直方图、曝光时间或感光度ISO等参数中的一个或多个。其中,亮度分布直方图用于表示预览图像上像素点的亮度分布情况。该亮度可以为预览图像为YUV格式时Y通道对应的数值。以下分别对不同拍摄场景的检测和识别进行具体说明。
(1)、高动态场景
高动态场景是指同时包括低亮度的拍摄对象和高亮度的拍摄对象的拍摄场景,高动态场景的亮度范围较广。手机可以根据预览图像的亮度分布直方图,确定当前拍摄场景是否为高动态场景。
例如,若手机根据预览图像的亮度分布直方图,确定预览图像的亮度主要分布在亮度较低的亮度范围1和亮度较高的亮度范围2内,则手机可以确定当前拍摄场景的亮度范围较广,当前拍摄场景包括亮度较低的拍摄对象和亮度较高的拍摄对象,当前拍摄场景为高动态场景。
其中,预览图像的亮度主要分布在亮度范围1和亮度范围2内是指,预览图像上亮度在亮度范围1和亮度范围2内的像素点所占的比例大于或者等于预设值1。示例性的,像素点的亮度范围为0~255,亮度范围1可以为[0,54],亮度范围2可以为[192,255],预设值1可以为80%。
示例性的,高动态场景下的预览界面可以参见图6中的(a),预览图像对应的亮度分布直方图可以参见图6中的(b)。在图6中的(a)所示的城市风光场景中,远处的天空和河流等拍摄对象的亮度较高,近处的高楼和高楼阴影下的树木等拍摄对象的亮度较低。
(2)、暗光场景
暗光场景是指环境光照度小于预设值2的拍摄场景,即环境光较暗的拍摄场景。其中,预设值2的数值较小,例如可以为5勒克斯(lux)。当环境光较暗时,预览图像的亮度也较低。因而,若预览图像的亮度整体较低,则可以表明当前环境光亮度较暗,当前拍摄场景为暗光场景。
在一些实施例中,手机可以根据曝光时间和ISO估算环境亮度Lv值,若环境亮度Lv值小于预设值3,则可以表明环境光照度小于预设值2,手机可以确定当前环境光亮度较低,当前拍摄场景为暗光场景。示例性的,预设值3可以为30坎德拉每平方米(cd/m2)。
在另一些实施例中,若手机根据预览图像的亮度分布直方图,确定预览图像的亮度主要分布在亮度较低的亮度范围3内,则手机可以确定预览图像整体的亮度较低,当前拍摄场景为暗光场景。其中,预览图像的亮度主要分布在亮度范围3内是指,预览图像上亮度在亮度范围3内的像素点所占的比例大于或者等于预设值4。示例性的,亮度范围3可以为[0,20],预设值4可以为90%。
示例性的,暗光场景下的预览界面可以参见图7中(a)或图7中的(b),预览图像对应的亮度分布直方图可以参见图7中的(c)。在图7中的(a)或图7中的(b)所示的夜晚环境下,拍摄对象的亮度均较低。
需要说明的是,手机在确定当前拍摄场景为暗光场景后,还可以进一步确定当前拍摄场景是否为星空场景。在一些实施例中,手机在预览状态下确定当前拍摄场景为暗光场景后,自动确定当前拍摄场景是否为星空场景。
在另一些实施例中,手机在预览状态下确定当前拍摄场景为暗光场景后,暂不确定当前拍摄场景是否为星空场景,而在检测到用户指示开始拍摄延时摄影的操作后,再确定当前拍摄场景是否为星空场景;以下实施例中主要以该种情况为例对星空场景的检测过程进行说明,具体见后文的相关描述。
(3)、普通场景
在普通场景下,环境光亮度较高。普通场景可以为环境光亮度大于或者等于预设值2的非高动态场景。手机可以根据曝光时间和ISO估算环境光亮度,若环境光亮度大于或者等于预设值3,则可以表明环境光亮度大于或者等于预设值2,手机可以确定当前环境光亮度较高,当前拍摄场景为非暗光场景,可能为普通场景或高动态场景。
并且,在普通场景下,拍摄环境和拍摄对象的亮度分布较为均匀。若手机根据预览图像的亮度分布直方图,确定预览图像的亮度在0~255整个亮度范围内的分布较为均匀,则手机可以确定当前拍摄场景不是高动态场景,而是普通场景。
示例性的,普通场景下的预览界面可以参见图8中(a),预览图像对应的亮度分布直方图可以参见图8中的(b)。在图8中的(a)所示的拍摄场景中,环境亮度较高,拍摄对象的亮度均较高。
在一些实施例中,手机在识别到当前拍摄场景的场景类型后,还可以通过显示信息、声音提示、振动或指示灯等方式将场景类型提示给用户。示例性的,参见图6中的(a),手机可以通过信息601来提示用户当前拍摄场景为高动态场景。
204、手机根据预览图像上的拍摄对象,自动确定目标拍照间隔。
手机可以通过预先训练过的神经网络模型,识别预览图像上的拍摄对象,并根据拍摄 对象确定对应的目标拍照间隔。该目标拍照间隔用于手机在检测到用户指示开始拍摄延时摄影视频后,拍摄多张目标照片。该目标拍摄间隔为手机拍摄相邻两张目标照片的开始时刻之间的时间间隔。
例如,若手机识别到预览图像上的拍摄对象为“车流”或“行人”,则手机可以确定对应的目标拍照间隔为0.5s。若手机识别到预览图像上的拍照对象为“蓝天云彩”,则手机可以确定对应的目标拍照间隔为3s。若手机识别到预览图像上的拍照对象为“日出”或“日落”,则手机可以确定对应的目标拍照间隔为5s。
在一些实施例中,目标拍照间隔还与拍摄场景相关联,手机可以根据预览图像上的拍摄对象以及当前拍摄场景确定目标拍照间隔。例如,若拍摄对象为“车流”,则在普通场景下,目标拍照间隔可以为0.5s;在暗光场景下,目标拍照间隔可以为2s。
205、手机根据检测到的拍摄场景确定目标拍摄参数。
手机在识别当前拍摄场景的场景类型后,可以进入当前拍摄场景对应的拍摄处理流程,根据当前拍摄场景调整和优化拍摄参数,以便后续根据优化后的目标拍摄参数拍摄多张目标照片,从而将该多张目标照片进行视频编码生成延时摄影视频。其中,该目标拍摄参数可以包括ISO或曝光时间等参数中的一种或多种。以下分别针对不同的拍摄场景进行具体说明。
(1)、高动态场景
手机可以包括参数优化模块,手机在确定当前拍摄场景为高动态场景后,可以通过参数优化模块确定一组目标拍摄参数,该组目标拍摄参数包括一组不同时长的曝光时间。当采用不同的曝光时间拍摄图像时,拍摄获得的图像的曝光程度也不同。
其中,该组目标拍摄参数可以是与高动态场景对应的一组预设的拍摄参数,也可以是手机根据当前环境实时计算获得的一组拍摄参数。示例性的,优化前的预览拍摄参数和优化后的目标拍摄参数可以参见表1。
表1
后续,手机可以根据拍摄环境(例如光线等因素)的变化,通过参数优化模块实时调整和更新高动态场景对应的目标拍摄参数。
(2)、暗光场景
手机确定当前拍摄场景为暗光场景后,可以通过参数优化模块增大曝光时间(例如可以将预览拍摄参数采用的30ms的曝光时间提升为60ms),并降低ISO(例如可以将预览拍摄参数采用的ISO降低至[3000,6400]的范围内),从而获得与当前暗光场景相匹配的一组目标拍摄参数。手机增大曝光时间并降低ISO获得的目标拍摄参数,可以使得手机在获得同等画面亮度的前提下,减弱暗光条件下的画面噪声,改善预览画面的图像质量。示例性的,优化前的拍摄参数可以为:曝光时间=40ms,ISO=12800;优化后的目标拍摄参数可以为曝光时间=60ms,ISO=5000。
后续,手机可以根据拍摄环境的变化,通过参数优化模块实时调整和更新暗光场景对 应的目标拍摄参数。
(3)、普通场景
手机确定当前拍摄场景为普通场景后,可以通过自动曝光模块确定目标拍摄参数。即,普通场景对应的目标拍摄参数为自动曝光模块根据拍摄环境实时确定的拍摄参数。也可以理解为,若手机确定当前拍摄场景为普通场景,则手机可以不执行步骤205,而采用自动曝光模块确定的拍摄参数进行拍摄处理。
206、手机检测到用户指示开始拍摄延时摄影视频的操作。
其中,用户可以通过触摸操作、按键操作、隔空手势操作或语音操作等多种方式指示手机开始拍摄延时摄影视频。
示例性的,参见图8中的(a),手机检测到用户点击拍摄控件801的操作后,开始拍摄延时摄影视频。
在步骤206之后,在一些实施例中,若当前拍摄场景为暗光场景,则手机执行步骤207;若当前拍摄场景为高动态场景或普通场景等非暗光场景,则手机执行步骤209。
在步骤206之后,在另一些实施例中,手机直接执行步骤209,根据高动态场景、暗光场景或普通场景对应的目标拍摄参数,拍摄多张目标照片。
207、若当前拍摄场景为暗光场景,则手机确定当前拍摄场景是否为星空场景。若不是星空场景,则执行步骤209;若是星空场景,则执行步骤208。
若手机在步骤204中确定当前拍摄场景为暗光场景,则手机在检测到用户指示开始拍摄延时摄影视频的操作后,参见以下描述,手机可以确定当前是否为星空场景。
手机确定当前拍摄参数是否在参数范围1内,例如参数范围1可以包括:3000≤ISO≤6400,且曝光时间≥预设值5。示例性的,预设值5可以为[20ms,60ms)范围内的数值。若当前拍摄参数在参数范围1内,则曝光时间较长,当前环境光可能很暗,当前拍摄场景可能为星空场景。若当前拍摄参数不在参数范围1内,则可以表明当前环境光不是很暗,当前拍摄场景可能不是星空场景,因而可以执行步骤209,按照暗光场景进行拍摄处理。
若当前拍摄参数在参数范围1内,则手机可以采用预设的拍摄参数1采集参考图像。其中,该拍摄参数1包括的曝光时间较长,ISO较小。例如,该拍摄参数1中的曝光时间可以为4s,ISO可以为3000。
手机确定参考图像是否包含星空。例如,手机可以将参考图像输入预先训练过的星空检测神经网络模型。若星空检测神经网络模型的输出结果表明参考图像不包括星空,则手机确定当前拍摄场景不是星空场景,因而可以执行步骤209,按照暗光场景进行拍摄处理。若星空检测神经网络模型的输出结果表明参考图像包括星空,则手机确定当前拍摄场景为星空场景。
在另一些实施例中,手机可以不确定当前拍摄参数是否在参数范围1内,而直接确定手机采集的图像上是否包含星空。
手机在检测到当前拍摄场景为星空场景后,也可以通过在界面上显示或通过声音、振动等方式将场景类型提示给用户。
208、手机根据星空场景确定目标拍摄参数和目标拍照间隔。而后,手机执行步骤209。
手机在确定当前拍摄场景为星空场景后,可以通过参数优化模块确定星空场景对应的目标拍摄参数。
例如,当星空图像上像素点的平均亮度值在预设的亮度范围4内时,可以得到较好的星空拍摄效果。因而,手机可以确定参考图像上像素点的平均亮度值是否在预设的亮度范围4内。示例性的,亮度范围4可以为[30,120]。
若参考图像上像素点的平均亮度值不在亮度范围4内,则手机可以保持拍摄参数1中的ISO(例如可以为3000)不变,根据当前曝光时间以及平均亮度值与亮度范围4之间的差值计算新的曝光时间,以在环境光较暗的情况下,通过较长的曝光时间获得质量较好的图像,并在保证图像质量的前提下尽量缩短曝光时间得到更多的帧数。手机根据新的曝光时间再次拍摄新的参考图像。而后,手机再次确定新的参考图像上像素点的平均亮度值是否在预设的亮度范围4内。
若手机确定参考图像的平均亮度值在亮度范围4内,则可以进一步确定是否参考图像上多数像素点的亮度在亮度范围4内。例如,若参考图像上亮度在亮度范围4内的像素点的比例是否大于或者等于50%,则手机可以确定参考图像上多数像素点的亮度在亮度范围4内。
若参考图像上多数像素点的亮度在亮度范围4内,则该参考图像对应的拍摄参数即为星空场景对应的目标拍摄参数。示例性的,星空场景对应的目标拍摄参数可以为:曝光时间=30s,ISO=3200。
若参考图像上多数像素点的亮度不在亮度范围4内,则手机可以保持拍摄参数1中的ISO(例如可以为3000)不变,根据当前曝光时间和平均亮度值确定新的曝光时间,以使得根据新的曝光时间拍摄获得的参考图像上多数像素点的亮度在亮度范围4内。
在本申请的实施例中,为避免用户指示开始拍摄后的等待时间过长从而导致用户体验较差,手机确定星空场景对应的目标拍摄参数的参数优化过程不宜过长。因而,在一些实施例中,若手机根据参考图像调整拍摄参数的次数大于或者等于预设值6(例如可以为4次),则手机可以停止拍摄参考图像,直接对当前参考图像对应的拍摄参数调整后获得目标拍摄参数。在另一些实施例中,若手机确定参数优化过程的时长大于或者等于预设值7(例如可以为1min),则手机可以停止拍摄参考图像,对当前参考图像对应的拍摄参数进行调整后获得目标拍摄参数。在又一些实施例中,若当前参考图像对应的曝光时间大于预设值8(例如可以为15s),则新的曝光时间可能比预设值8更长,再次拍摄参考图像将花费较长的时间,可能会使得参数优化过程超过预设值7,因而手机可以停止拍摄参考图像,直接对当前参考图像对应的拍摄参数调整后获得目标拍摄参数。
通过以上方式确定的星空场景对应的目标拍摄参数,可以使得夜空中发光微弱的星星也能得到充足的曝光量,提升星星的亮度,使人眼无法看到的星星在拍照结果中肉眼可见。
手机在确定当前拍摄场景为星空场景后,可以根据参考图像检测拍摄对象,从而确定相应的目标拍照间隔。例如,拍摄对象可以为“星空”、“银河”或“月亮”等内容,“星空”对应的目标拍照间隔可以为20s。
209、手机根据目标拍摄参数和目标拍照间隔拍摄多张目标照片。
需要说明的是,上述步骤205可以在步骤206之前执行,也可以在步骤306之后执行。并且,在非星空场景下,手机可以根据当前拍摄场景和拍摄环境(例如环境光线等因素)实时确定新的目标拍摄参数。手机在检测到用户指示开始拍摄的操作后,根据目标拍照间隔和实时更新的目标拍摄参数拍摄多张目标照片。
其中,在高动态场景下,手机可以将相机传感器(Sensor)(即上述感光元件)的工作模式切换为高动态HDR模式。参数优化模块可以将目标拍摄参数提供给自动曝光模块,自动曝光模块可以将目标拍摄参数配置给ISP。ISP控制相机Sensor按照该组拍摄参数拍摄一组曝光程度不同的多帧图像。手机基于HDR算法将该组曝光程度不同的多帧图像(例如可以为Raw格式)进行融合处理,得到一幅动态范围大于单帧图像的目标照片(例如可以为YUV格式)。手机按照目标拍照间隔生成多张目标照片。
在暗光场景下,参数优化模块可以将目标拍摄参数提供给自动曝光模块,自动曝光模块可以通过ISP控制相机根据目标曝光参数进行曝光。手机按照目标拍照间隔和暗光场景对应的目标拍摄参数,拍摄多张目标照片。
在普通场景下,手机按照目标拍照间隔和普通场景对应的目标拍摄参数,拍摄多张目标照片。其中,该目标拍摄参数为自动曝光模块根据拍摄环境实时确定的拍摄参数。
在一些实施例中,手机在延时摄影拍摄过程中,还可以继续检测当前的拍摄场景,若拍摄场景发生变化,则根据变化后的拍摄场景确定新的目标拍摄参数,并切换为根据新的拍摄场景对应的新的目标拍摄参数拍摄目标照片。
在星空场景下,由于目标拍摄参数的参数优化过程需要较长的时间,不方便在拍摄过程中实时调整和优化目标拍摄参数,因而在步骤208中确定目标拍摄参数后,手机可以在延时摄影的拍摄过程中均采用该目标拍摄参数和目标拍照间隔来拍摄目标照片。
在一些实施例中,手机确定目标拍照间隔后,不再更新目标拍照间隔,直至本次拍摄过程完成。在另一些实施例中,手机确定目标拍照间隔后,若确定拍摄对象发生变化,则根据变化后的拍摄对象实时更新目标拍照间隔。
210、若当前拍摄场景为星空场景,则手机对拍摄获得的目标照片进行图像后处理。
若当前拍摄场景为星空场景,则手机可以进行图像增强等图像后处理操作。由于星空拍摄环境的光线通常较暗,因而通过低ISO和长曝光的方式获得的星空图像仍然含有少量噪声,并且颜色和对比度的效果也可能不是很好。为了提升星空图像的美感,手机可以对目标照片进行图像增强。例如,手机可以调用星空去噪网络模型对星空场景下拍摄获得的目标照片进行去噪处理,减弱星空图像的噪声水平。再例如,手机还可以调用星空增强神经网络模型,对星空场景下拍摄获得的目标照片中的星空区域进行亮度提升,以及对比度和饱和度增强等处理,提高星空图像的美感。
示例性的,图像增强前的目标照片可以参见图9中的(a),图像增强后的目标照片可以参见图9中的(b)。
若当前拍摄场景为非星空场景,则在一些实施例中,由于根据目标参数拍摄的目标照片效果较好,因而手机可以不对目标照片进行后处理操作;在另一些实施例中,手机也可以对目标照片进行颜色、饱和度等进行后处理操作,以进一步提高目标照片的图像质量。
211、手机对拍摄的目标照片进行帧间亮度平滑处理。
由于手机是按照目标拍照间隔拍摄目标照片的,相邻目标照片之间的间隔时间较长,因而容易出现相邻目标照片之间亮度差别较大的问题。因此,手机可以对拍摄的目标照片进行帧间亮度平滑处理,以减小相邻目标照片之间的亮度差异,保证画面的亮度平滑性和一致性,避免出现亮度跳变。
例如,手机可以将相邻的两张目标照片输入预先训练的帧间亮度平滑神经网络模型, 从帧间亮度平滑神经网络模型输出的两张目标照片与之前的n(例如可以为6)张目标照片之间的亮度差异较小。比如,帧间亮度平滑处理能够有效抑制平均亮度值相差40%以内的相邻两帧目标照片之间的亮度闪烁。
示例性的,在帧间亮度平滑处理之前,手机拍摄的多张目标照片可以参见图10A中的(a)-(f),对应的相邻目标照片之间的亮度变化曲线可以参见图11中的曲线1。在帧间亮度平滑处理之后,手机拍摄的多张目标照片可以参见图10B中的(a)-(f),对应的相邻目标照片之间的亮度变化曲线可以参见图11中的曲线2。对比图10A和图10B可知,帧间亮度平滑处理后,相邻目标照片之间的亮度差异较小。对比图11中的曲线1和曲线2可知,帧间亮度平滑处理后,相邻目标照片之间的亮度变化曲线较为平滑。
212、手机在检测到用户指示开始拍摄延时摄影视频的操作后显示拍摄界面。
其中,若当前拍摄场景为非暗光场景,则拍摄界面为手机根据较高的预设帧率(例如可以为预览帧率)和展示拍摄参数(例如可以是自动曝光模块根据当前环境实时确定的拍摄参数,或者是预设的曝光参数)采集的图像。这样,在非暗光场景下,手机可以通过较高的预设帧率在拍摄界面上为用户实时、流畅地呈现拍摄内容。
也就是说,若拍摄场景为非暗光场景,则手机在检测到用户指示开始拍摄延时摄影视频的操作后,可以根据目标拍照间隔和目标拍摄参数拍摄多张目标照片,以便后续生成延时摄影视频;同时,手机还可以根据预设帧率和展示拍摄参数采集图像,以便在拍摄界面上为用户实时呈现拍摄内容。
例如,对于高动态场景来说,手机在检测到用户指示开始拍摄延时摄影视频的操作后,可以根据目标拍照间隔和目标拍摄参数拍摄多张照片,以便后续生成延时摄影视频;同时,手机还可以根据预设帧率和展示拍摄参数采集图像,以便在拍摄界面上为用户实时呈现拍摄内容。
再例如,对于普通场景来说,手机在检测到用户指示开始拍摄延时摄影视频的操作后,可以根据目标拍照间隔和自动曝光模块确定的拍摄参数拍摄多张照片,以便后续生成延时摄影视频;同时,手机还可以根据预设帧率和自动曝光模块确定的拍摄参数采集图像,以便在拍摄界面上为用户实时呈现拍摄内容。
示例性的,在高动态场景下,延时摄影拍摄界面的示意图可以参见图12中的(a);在普通场景下,延时摄影拍摄界面的示意图可以参见图12中的(b)。
在一些情况下,若拍摄场景为暗光场景,且手机不在暗光场景下确定是否为星空场景,则拍摄界面上可以显示根据暗光场景对应的目标拍摄参数拍摄获得的目标照片。在暗光场景下,若拍摄界面上显示手机根据预设帧率和展示拍摄参数采集的图像,则由于拍摄环境较暗,拍摄的图像也较暗,用户可能看不清拍摄界面上图像的画面内容,从而给用户以未拍摄到星空的误导。而在拍摄界面上显示根据目标拍摄参数拍摄的目标照片,可以为用户呈现效果较好的图像画面。
并且,由于在进行帧间亮度平滑处理后相邻目标照片之间的亮度差异较小,因而手机在拍摄界面上显示帧间亮度平滑处理后的目标照片,不易给用户造成闪烁的视觉问题,用户视觉体验较好。
在另一些情况下,拍摄场景为暗光场景,手机在检测到用户指示开始拍摄的操作后,需要较长时间的调整过程来确定是否为星空场景以及确定星空场景下对应的目标拍摄参 数。在一些实施例中,手机可以根据暗光场景对应的目标拍摄参数和帧率1采集图像,并在拍摄界面上显示采集到的该图像。其中,帧率1较大,可以大于目标拍照间隔对应的帧率。这样,手机可以实时地为用户呈现采集到的图像画面。在另一些实施例中,手机在该调整过程中显示的拍摄界面包括手机根据预设帧率和展示拍摄参数采集的图像。在另一些实施例中,手机在该调整过程中显示的拍摄界面,包括调整过程中手机采集到的上述参考图像。在其他一些实施例中,手机在该调整过程中不显示图像,拍摄界面为黑色界面、白色界面、其他预设颜色的界面或具有预设内容的界面。手机在确定为星空场景后,再在拍摄界面上显示拍摄的效果较好的目标照片。
在一些实施例中,手机还可以在该调整过程中,通过界面显示、声音、振动或指示灯等方式给用户以提示,以方便用户获知当前手机的拍摄状况,避免用户误认为手机无法正常拍摄。例如,手机可以提示用户当前正在进行优化处理,或者正在识别是否为星空场景等。示例性的,手机在调整过程中显示的拍摄界面可以参见图13,手机可以显示提示信息1301以提示用户“极暗环境,正在优化曝光值”。再示例性的,在调整过程中,手机可以显示提示信息以提示用户“当前光线较暗,正在识别是否为星空场景”。需要说明的是,在图13所示的调整过程中,由于拍摄环境很暗,因而拍摄界面上几乎看不到星星等拍摄对象。
在另一些实施例中,拍摄界面上还可以包括不断旋转的环形控件1302。该环形控件1302用于提示用户手机当前正在进行拍摄处理,并未出现卡顿等问题。
在一些实施例中,在调整过程中,环形控件可以表示调整过程的进度。当环形控件形成一个完整的环形时,调整过程完成,手机获得目标拍摄参数,手机在拍摄界面上显示根据目标拍摄参数拍摄获得的目标照片。示例性的,在调整过程完成后,手机显示的包括目标照片的拍摄界面可以参见图14。
在调整过程完成后,若该暗光场景不是星空场景,则手机可以在拍摄界面上显示根据预设帧率和展示拍摄参数采集的图像。在调整过程完成后,若该暗光场景为星空场景,则手机可以在拍摄界面上显示根据星空场景对应的拍摄参数拍摄的目标图片,以为用户呈现效果较好的图像画面。
在其他一些实施例中,手机的拍摄界面上还可以包括第一时间控件和第二时间控件。其中,第一时间控件用于表示延时摄影视频的拍摄时长,第二时间控件用于表示停止延时摄影拍摄后生成的延时摄影视频的可播放时长。其中,可播放时长与拍摄时长、目标拍摄间隔以及视频播放帧率相关联。例如,可播放时长=拍摄时长/(目标拍摄间隔*视频播放帧率)。
其中,在非暗光场景下,第一时间控件用于表示从用户指示开始拍摄延时摄影视频到当前时刻之间的拍摄时长;在暗光场景下,第一时间控件用于表示从手机完成调整过程到当前时刻之间的拍摄时长。
示例性的,在非暗光场景下,拍摄界面上的第一时间控件可以为图12中的(a)所示的控件1201,第二时间控件可以为图12中的(a)所示的控件1202。示例性的,在暗光场景下,拍摄界面上的第一时间控件可以为图14所示的控件1401,第二时间控件可以为图14所示的控件1402。
在另一些实施例中,拍摄界面上还可以包括暂停控件,手机检测到用户点击暂停控件 的操作后,可以暂停延时摄影的拍摄。而后拍摄界面上显示拍摄控件,手机检测到用户点击拍摄界面上的拍摄控件的操作后,继续延时摄影的拍摄。
213、手机对拍摄的目标照片进行视频编码。
在一些实施例中,手机可以对拍摄的多张目标照片,按照M(正整数)张一组的方式进行视频编码。这样,手机在检测到用户指示完成拍摄的操作后,可以快速完成对目标照片的视频编码,从而快速生成延时摄影视频。
在其他一些实施例中,手机也可以在检测到用户指示停止拍摄延时摄影视频的操作后,再对拍摄的目标照片进行视频编码,从而生成延时摄影视频。
214、手机检测到用户指示停止拍摄延时摄影视频的操作后,根据编码后的目标照片生成延时摄影视频。
用户可以通过触摸操作、按键操作、隔空手势操作或语音操作等多种方式指示手机停止拍摄延时摄影视频。示例性的,参见图14,手机在检测到用户点击停止拍摄控件1403的操作后,可以停止延时摄影的拍摄。
其中,手机从检测到用户指示停止拍摄延时摄影的操作到手机生成延时摄影视频之间,可能需要一定的处理时间。示例性的,手机检测到用户指示停止拍摄延时摄影的操作后,可以显示如图15所示的生成延时摄影视频的过渡界面。在图15所示情况下,第一控件1501表示的延时摄影视频的拍摄时长为20min,第二控件1502表示的延时摄影视频的可播放时长为30s。
手机生成延时摄影视频后,可以显示延时摄影视频的缩略图;返回预览状态,并显示预览界面。示例性的,手机生成延时摄影视频后显示的界面可以参见图16。
在一些实施例中,手机在刚结束延时摄影拍摄后,拍摄场景可能还没有发生变化,因而手机可以首先检测当前拍摄场景是不是刚才采用的拍摄场景,从而提高识别拍摄场景的速度。
由上可知,在上述步骤201-步骤214描述的方案中,如图17所示,手机可以根据预览图像识别拍摄场景,根据拍摄场景确定目标拍摄参数,根据目标拍摄参数拍摄目标照片。其中,手机可以针对不同的拍摄场景,采用匹配的处理方式分别进行拍摄处理。对于高动态场景,手机可以采用HDR算法获取目标照片;对于星空场景,手机可以对拍摄获得的目标照片进行图像增强;对于星空场景以外的其他暗光场景,手机可以降低ISO并增大曝光时间;对于普通场景,手机可以根据拍摄环境确定目标拍摄参数,根据目标拍摄参数拍摄目标照片。而后,手机可以对之前获取的目标照片进行视频编码,从而生成延时摄影视频。
也就是说,在上述步骤201-步骤214描述的方案中,在延时摄影模式下,电子设备可以自动检测当前的拍摄场景,确定与当前拍摄场景相匹配的目标拍摄参数及与拍摄对象匹配的目标拍照间隔,从而根据目标拍摄参数和目标拍照间隔拍摄效果较好的多张照片,并将该多张照片进行视频编码从而生成延时摄影的视频,因而可以自适应不同的拍摄场景进行延时摄影拍摄,拍摄获得的延时摄影视频的效果较好。
需要说明的是,在其他一些实施例中,上述步骤201-步骤214中的一些步骤是可选的,手机在延时摄影的拍摄过程中可以不执行这些步骤。例如,在一些实施例中,当拍摄场景不是星空场景时,手机可以不执行步骤210,从而不对拍照的目标照片进行后处理。再例 如,在另一些实施例中,手机可以不执行上述步骤211,而直接对未进行帧间亮度平滑处理的目标照片进行视频编码。
在其他一些实施例中,在预览状态下,手机在确定拍摄场景目标拍摄参数后,可以在预览界面上显示手机根据目标拍摄参数拍摄的图像,从而可以为用户呈现效果较好的预览图像。
在另一些实施例中,在预览状态下,手机在确定目标拍摄参数后,若当前拍摄场景为暗光场景,则手机可以根据参数优化模块确定的具有较长曝光时间的目标拍摄参数拍摄图像,并在预览界面上显示该图像。示例性的,在暗光场景下,若调整前的预览界面为图7中的(a),则调整之后的预览界面可以参见图18。其中,在暗光场景的预览状态下,由于目标拍摄参数中的曝光时间增大了,目标拍摄间隔也大于之前的预览帧率,因而预览帧率也要相应的降低,比如预览帧率可以从30fps降为12fps(可以与上述帧率1相同或不同)。若当前拍摄场景为非暗光场景,则手机根据预览帧率和预览拍摄参数采集图像,并在预览界面上显示该图像。这样,在暗光场景下,手机可以减弱暗光条件下的画面噪声,改善预览画面的图像质量,为用户呈现效果较好的图像画面;在非暗光场景下,手机可以通过较高的预览帧率为用户实时呈现流畅的预览内容。
此外,在本申请的其他一些实施例中,延时摄影模式包括自动模式和手动模式,手机可以在预览界面上提示用户当前为自动模式还是手动模式。并且,自动模式和手动模式之间可以相互切换。其中,在自动模式下,手机可以采用以上实施例描述的过程,自动进行延时摄影拍摄。在手动模式下,用户可以主动设置拍摄场景、目标拍照间隔、拍摄时长、视频时长、目标拍摄参数中的ISO、目标拍摄参数中的曝光时间、对焦方式或白平衡等参数中的一个或多个,手机可以根据用户主动设置的参数拍摄延时摄影视频。手机在手动模式可以在预览界面上显示参数设置信息,从而方便专业人士通过手机等非专业相机,拍摄理想效果的延时摄影视频。
在一些实施例中,在延时摄影模式下,手机可以默认为自动模式;手机可以根据用户的指示切换为手动模式。
在其他一些实施例中,延时摄影模式的预览界面可以包括用于切换自动模式和手动模式的模式控件。示例性的,该模式控件可以为图19所示的控件1901。在图19所示的情况下,控件1901表示当前模式为自动模式。手机检测到用户点击控件1901的操作后可以切换为手动模式,并在预览界面上显示手动模式对应的相关信息。
示例性的,在手动模式下,用于方便用户设置拍摄间隔的预览界面可以参见图20中的(a)。需要注意的是,由于HDR算法拍摄获得一张目标照片的处理时间较长,例如至少时长T(比如为2.35s),因而在高动态场景的自动模式下,若用户手动设置的目标拍摄间隔小于T,则手机退出高动态场景,采用普通场景拍摄延时摄影视频。
示例性的,在手动模式下,用于方便用户设置拍摄时长(或称录制时长)的预览界面可以参见图20中的(b)。
示例性的,在手动模式下,用于方便用户设置ISO、曝光时间等拍摄参数的预览界面可以参见图20中的(c)。
在另一些实施例中,手机检测到用户在如图3中的(b)所示的预览界面上长按“延时摄影”控件306的操作后,显示可供用户选择自动模式或手动模式的模式列表,并根据 用户的指示切换延时摄影模式。
在另一些实施例中,手机检测到用户点击图3中的(b)所示的预览界面上“设置”图标307的操作后,显示可供用户选择自动模式或手动模式的模式列表,并根据用户的指示切换延时摄影模式。
在其他一些实施例中,手机检测到用户长按图6中的(a)所示预览界面上的控件601后,显示可供用户选择拍摄场景的列表,并根据用户指示的拍摄场景进行延时摄影拍摄。例如,手机可以根据用户指示的拍摄场景确定目标拍摄参数,从而根据目标拍摄参数进行拍摄。
另外,在本申请的一些实施例中,手机检测到用户点击图6中的(a)所示预览界面上的控件601后,可以显示手机确定的高动态场景对应的目标拍摄参数。
在延时摄影过程中,手机等电子设备的拍摄时间通常较长,因而为保证拍摄质量,防止画面抖动,手机等电子设备可以固定(例如可以通过三脚架进行固定)后再进行拍摄。
此外,手机可以通过log日志可以记录拍摄参数的变化。例如,星空场景下对应的log日志的截图可以参见图21。其中,第一个箭头标识位置的ISO=5437和曝光时间=24999可以为预览拍摄参数;第二个箭头标识位置的ISO=804和曝光时间=50536可以为目标拍摄参数。
在其他一些实施例中,手机还可以将延时摄影模式下拍摄的目标照片单独保存为照片。例如,拍摄界面上可以包括照片保存控件,手机检测到用户点击该控件的操作后,可以将当前拍摄获得的目标照片作为照片进行保存,从而在当前拍摄场景下既可以获得效果较好的延时摄影视频,也可以获得效果较好的照片。再例如,手机在生成延时摄影视频后,保存视频文件和目标照片的图片文件。
另外,在本申请的实施例中,在手机拍摄延时摄影视频的过程中,在拍摄目标照片时,log日志中可以记载有关键字1,该关键字1用于表示拍照操作。在现有技术中通过拍摄视频和抽帧获得延时摄影视频的过程中,在拍摄视频时,log日志中可以记载有关键字2,该关键字2用于表示拍摄视频的操作。
以上主要是以电子设备为手机为例进行说明的,本申请实施例提供的延时摄影拍摄方法还可以应用于平板电脑等其他电子设备,此处不再赘述。
在其他一些实施例中,以上实施例提供的确定拍摄场景和目标拍摄参数的方法,还可以应用于延时摄影以外的其他拍摄模式。例如,在拍照模式下,电子设备可以采用以上实施例描述的方法确定拍摄场景和与拍摄场景适配的目标拍摄参数,而后根据与拍摄场景适配的目标拍摄参数拍摄获得当前拍摄场景下效果交互的一张或多张照片。
可以理解的是,为了实现上述功能,电子设备包含了执行各个功能相应的硬件和/或软件模块。结合本文中所公开的实施例描述的各示例的算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以结合实施例对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本实施例可以根据上述方法示例对电子设备进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述 集成的模块可以采用硬件的形式实现。需要说明的是,本实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图22示出了上述实施例中涉及的电子设备2200的一种可能的组成示意图,如图22所示,电子设备可以包括场景检测模块2201、自动曝光模块2202、参数优化模块2203、图像增强模块2204、帧间亮度平滑处理模块2205和视频编码模块2206等。
其中,场景检测模块2201可以用于支持电子设备执行上步骤203中检测当前拍摄场景的功能,以及步骤207中确定星空场景的功能等;和/或用于本文所描述的技术的其他过程。
自动曝光模块2202可以用于支持电子设备根据拍摄环境确定预览拍摄参数和展示拍摄参数,以便电子设备根据预览拍摄参数或展示拍摄参数采集图像,从而在步骤201中显示预览图像,并在步骤212中显示拍摄界面上的图像;和/或用于本文所描述的技术的其他过程。
参数优化模块2203可以用于支持电子设备在步骤205和步骤208中优化并确定目标拍摄参数,和/或用于本文所描述的技术的其他过程。
图像增强模块2204可以用于支持电子设备在步骤210中对星空场景下的目标照片进行图像增强,和/或用于本文所描述的技术的其他过程。
帧间亮度平滑处理模块2205可以用于支持电子设备在步骤211中对相邻目标照片进行帧间亮度平滑处理,和/或用于本文所描述的技术的其他过程。
视频编码模块2206可以用于支持电子设备在步骤213中对目标照片进行视频编码,和/或用于本文所描述的技术的其他过程。
其中,上述场景检测模块2201、自动曝光模块2202、参数优化模块2203、图像增强模块2204以及帧间亮度平滑处理模块2205可以为电子设备中的软件模块;视频编码模块2206可以为电子设备中的硬件模块。
电子设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明电子设备的软件结构。
图23是本申请实施例的电子设备的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,HAL层以及内核层。应用程序层可以包括一系列应用程序包。
如图23所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序。其中,相机可以提供延时摄影功能。
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。
如图23所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。数据可以包括 视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。
电话管理器用于提供电子设备的通信功能。例如通话状态的管理(包括接通,挂断等)。
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话窗口形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,电子设备振动,指示灯闪烁等。
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。
三维图形处理库用于实现三维图形绘图,图像渲染,合成,和图层处理等。
2D图形引擎是2D绘图的绘图引擎。
HAL层用于将底层硬件抽象化,以为上层提供抽象后的相机、音频、蓝牙等的服务和功能。上述图22所示的场景检测模块2201、自动曝光模块2202、参数优化模块2203、图像增强模块2204以及帧间亮度平滑处理模块2205可以位于HAL层。
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动,音频驱动,传感器驱动,以及视频编解码驱动等。
另外,本申请实施例还提供了一种电子设备,包括:摄像头,用于采集图像;屏幕,用于显示界面;一个或多个处理器;存储器;以及一个或多个计算机程序。一个或多个计算机程序被存储在存储器中,一个或多个计算机程序包括指令。当指令被一个或多个处理器执行时,使得电子设备执行上述实施例中的各个步骤,以实现上述延时摄影的拍摄方法。
本申请的实施例还提供一种计算机存储介质,该计算机存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述相关方法步骤实现上述实施例中延时摄影的拍摄方法。
本申请的实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行 时,使得计算机执行上述相关步骤,以实现上述实施例中延时摄影的拍摄方法。
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述各方法实施例中电子设备执行的延时摄影的拍摄方法。
其中,本实施例提供的电子设备、计算机存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。
通过以上实施方式的描述,所属领域的技术人员可以了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。
Claims (21)
- 一种延时摄影的拍摄方法,其特征在于,包括:电子设备检测到用户指示打开相机的第一操作后,启动相机;所述电子设备检测到所述用户指示进入延时摄影模式的第二操作后,进入延时摄影模式,并显示预览界面,所述预览界面包括第一预览图像;所述电子设备根据所述第一预览图像识别拍摄场景,所述拍摄场景包括高动态场景、暗光场景或普通场景;所述电子设备根据所述拍摄场景确定目标拍摄参数,所述目标拍摄参数包括目标感光度ISO和目标曝光时间;所述电子设备检测到所述用户指示开始拍摄的第三操作后,根据所述目标拍摄参数拍摄多张目标照片;所述电子设备显示拍摄界面;所述电子设备检测到所述用户指示停止拍摄的第四操作后,根据所述多张目标照片生成延时摄影视频。
- 根据权利要求1所述的方法,其特征在于,在所述电子设备根据所述第一预览图像识别拍摄场景之后,所述方法还包括:所述电子设备在所述预览界面上显示第一提示信息,所述第一提示信息用于提示所述电子设备识别到的所述拍摄场景。
- 根据权利要求1或2所述的方法,其特征在于,在所述电子设备进入延时摄影模式,并显示预览界面,所述预览界面包括第一预览图像之后,所述方法还包括:所述电子设备根据所述第一预览图像上的拍摄对象确定目标拍摄间隔;所述电子设备根据所述目标拍摄参数拍摄多张目标照片,包括:所述电子设备根据所述目标拍摄参数和所述目标拍照间隔拍摄所述多张目标照片。
- 根据权利要求3所述的方法,其特征在于,若所述电子设备识别到所述拍摄场景为所述高动态场景,则所述高动态场景对应的所述目标拍摄参数包括多个曝光时间,所述电子设备根据所述目标拍摄参数和所述目标拍照间隔拍摄所述多张目标照片,包括:所述电子设备根据所述多个曝光时间分别拍摄一组图像中曝光程度不同的多帧图像;所述电子设备根据所述目标拍照间隔拍摄多组图像;所述电子设备将每组图像中的所述多帧图像融合成一张所述目标照片。
- 根据权利要求1-4任一项所述的方法,其特征在于,所述第一预览图像为基于第一帧率和第一拍摄参数采集的图像,在所述电子设备检测到所述用户指示开始拍摄延时摄影视频的第三操作之后,所述方法还包括:若所述电子设备识别到所述拍摄场景为所述高动态场景或所述普通场景,则所述电子设备根据所述第一帧率和所述第一拍摄参数采集展示图像,所述拍摄界面包括所述展示图像。
- 根据权利要求5所述的方法,其特征在于,所述拍摄界面还包括第一时间控件和第二时间控件,所述第一时间控件用于表示所述延时摄影视频的拍摄时长,所述第二时间控件用于表示所述延时摄影视频的可播放时长。
- 根据权利要求1-3任一项所述的方法,其特征在于,所述第一预览图像为基于第一 帧率和第一拍摄参数采集的图像,所述第一拍摄参数包括第一感光度ISO和第一曝光时间;若所述电子设备识别到所述拍摄场景为所述暗光场景,则在所述电子设备根据所述拍摄场景确定目标拍摄参数之后,且在所述电子设备检测到所述用户指示开始拍摄延时摄影视频的第三操作之前,所述方法还包括:所述电子设备根据所述目标拍摄参数和第二帧率采集目标图像,所述预览界面包括第二预览图像,所述第二预览图像为所述目标图像;其中,所述第二帧率小于所述第一帧率,所述暗光场景对应的所述目标感光度ISO小于所述第一感光度ISO,所述目标曝光时间大于所述第一曝光时间。
- 根据权利要求1-3任一项或7所述的方法,其特征在于,若所述电子设备识别到所述拍摄场景为暗光场景,则所述电子设备根据所述目标拍摄参数和所述目标拍照间隔拍摄所述多张目标照片,包括:若所述电子设备识别到所述拍摄场景为所述暗光场景下的星空场景,则所述电子设备确定所述星空场景对应的所述目标拍摄参数和所述目标拍照间隔;所述电子设备根据所述星空场景对应的所述目标拍摄参数和所述目标拍照间隔,拍摄所述多张目标照片;或者,若所述电子设备识别到所述拍摄场景不是所述星空场景,则所述电子设备根据所述暗光场景对应的所述目标拍摄参数和所述目标拍照间隔,拍摄所述多张目标照片。
- 根据权利要求8所述的方法,其特征在于,在所述电子设备根据所述星空场景对应的所述目标拍摄参数和所述目标拍照间隔,拍摄所述多张目标照片之后,所述方法还包括:所述电子设备对所述多张目标照片进行图像增强。
- 根据权利要求7-9任一项所述的方法,其特征在于,若所述电子设备识别到所述拍摄场景为暗光场景,则在所述电子设备检测到所述用户指示开始拍摄延时摄影视频的第三操作之后,所述方法还包括:所述电子设备根据所述暗光场景对应的所述目标拍摄参数和所述第二帧率采集目标图像,所述拍摄界面包括所述目标图像;其中,所述拍摄界面上还包括第二提示信息,所述第二提示信息用于提示用户所述电子设备正在进行优化处理,或者所述电子设备正在识别是否为星空场景。
- 根据权利要求10所述的方法,其特征在于,在所述电子设备显示所述拍摄界面,所述拍摄界面包括所述目标图像之后,所述方法还包括:若所述电子设备识别到所述拍摄场景为所述暗光场景下的星空场景,则所述电子设备将所述拍摄界面上的所述目标图像切换为,根据所述星空场景对应的所述目标拍摄参数和所述目标拍照间隔拍摄的所述目标照片。
- 根据权利要求11所述的方法,其特征在于,若所述电子设备识别到所述拍摄场景为所述暗光场景下的星空场景,或者若所述电子设备识别到所述拍摄场景不是所述星空场景,则所述方法还包括:所述电子设备停止在所述拍摄界面上显示所述第二提示信息;所述电子设备在所述拍摄界面上显示第一时间控件和第二时间控件,所述第一时间控件用于表示所述延时摄影视频的拍摄时长,所述第二时间控件用于表示所述延时摄影视频 的可播放时长。
- 根据权利要求1-12任一项所述的方法,其特征在于,所述预览界面还包括模式控件,所述方法还包括:所述电子设备检测到用户点击所述模式控件的操作;所述电子设备从自动模式切换到手动模式;在所述手动模式下,所述电子设备在所述预览界面上显示延时摄影的参数设置信息。
- 根据权利要求1-13任一项所述的方法,其特征在于,在所述电子设备根据所述目标拍摄参数拍摄多张目标照片之后,所述方法还包括:所述电子设备对所述多张目标照片进行帧间亮度平滑处理。
- 根据权利要求1-14任一项所述的方法,其特征在于,所述电子设备根据所述第一预览图像识别拍摄场景,包括:所述电子设备根据所述第一预览图像对应的第一感光度ISO、第一曝光时间或亮度分布直方图中的一项或多项,识别所述拍摄场景。
- 根据权利要求15所述的方法,其特征在于,所述电子设备根据所述第一预览图像对应的第一感光度ISO、第一曝光时间或亮度分布直方图中的一项或多项,识别所述拍摄场景,包括:若所述电子设备根据所述第一感光度ISO和所述第一曝光时间,确定环境光亮度小于第一预设值,则所述电子设备确定所述拍摄场景为所述暗光场景;或者,若所述电子设备根据所述第一感光度ISO和所述第一曝光时间,确定环境光亮度大于或者等于所述第一预设值,则所述电子设备确定所述拍摄场景为所述高动态场景或所述普通场景;若所述电子设备根据所述亮度分布直方图确定满足预设条件,则确定所述拍摄场景为高动态场景;其中,所述预设条件包括所述第一预览图像上亮度在第一亮度范围和第二亮度范围内的像素点的比例大于或者等于第二预设值,所述第一亮度范围为低亮度的范围,所述第二亮度范围为高亮度的范围;若所述电子设备根据所述亮度分布直方图确定不满足所述预设条件,则所述电子设备确定所述拍摄场景为所述普通场景。
- 根据权利要求8-12任一项所述的方法,其特征在于,所述电子设备识别所述拍摄场景为所述暗光场景下的星空场景,包括:所述电子设备采用所述暗光场景对应的所述目标拍摄参数采集参考图像;若所述电子设备确定所述目标拍摄参数在预设的参数范围内,所述预设的参数范围内的曝光时间大于或者等于第三预设值,且所述电子设备识别到所述参考图像的拍摄对象包含星空,则所述电子设备确定所述拍摄场景为星空场景。
- 根据权利要求17所述的方法,其特征在于,所述电子设备确定所述星空场景对应的所述目标拍摄参数,包括:若所述参考图像上像素点的平均亮度值在第三亮度范围内,且在所述第三亮度范围内的像素点的比例大于或者等于50%,则所述电子设备确定所述参考图像对应的拍摄参数为所述星空场景对应的所述目标拍摄参数;或者,若所述参考图像上像素点的平均亮度值不在所述第三亮度范围内,或者在所述第三亮 度范围内的像素点的比例小于50%,则所述电子设备调整曝光时间,并根据调整后的曝光时间重新采集所述参考图像;若所述电子设备确定距离检测到所述第三操作的时长大于或者等于预设时长,则所述电子设备在调整曝光时间后停止采集所述参考图像,所述目标拍摄参数包括调整后的所述曝光时间。
- 一种电子设备,其特征在于,包括:摄像头,用于采集图像;屏幕,用于显示界面;一个或多个处理器;一个或多个存储器,所述存储器中存储有指令;当所述指令被所述电子设备执行时,使得所述电子设备执行如权利要求1-18中任一项所述的延时摄影的拍摄方法。
- 一种计算机存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-18中任一项所述的延时摄影的拍摄方法。
- 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-18中任一项所述的延时摄影的拍摄方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
EP20864952.5A EP4024845A4 (en) | 2019-09-18 | 2020-09-10 | METHOD AND DEVICE FOR TIME INTERVAL PHOTOGRAPHY |
US17/761,324 US11800221B2 (en) | 2019-09-18 | 2020-09-10 | Time-lapse shooting method and device |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910882871.3A CN112532857B (zh) | 2019-09-18 | 2019-09-18 | 一种延时摄影的拍摄方法及设备 |
CN201910882871.3 | 2019-09-18 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021052232A1 true WO2021052232A1 (zh) | 2021-03-25 |
Family
ID=74883150
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/114366 WO2021052232A1 (zh) | 2019-09-18 | 2020-09-10 | 一种延时摄影的拍摄方法及设备 |
Country Status (4)
Country | Link |
---|---|
US (1) | US11800221B2 (zh) |
EP (1) | EP4024845A4 (zh) |
CN (1) | CN112532857B (zh) |
WO (1) | WO2021052232A1 (zh) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114222075A (zh) * | 2022-01-28 | 2022-03-22 | 广州华多网络科技有限公司 | 移动端图像处理方法及其装置、设备、介质、产品 |
WO2023015959A1 (zh) * | 2021-08-12 | 2023-02-16 | 荣耀终端有限公司 | 拍摄方法及电子设备 |
Families Citing this family (25)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113919382B (zh) * | 2021-04-29 | 2023-04-28 | 荣耀终端有限公司 | 一种扫码的方法及装置 |
CN113726949B (zh) * | 2021-05-31 | 2022-08-26 | 荣耀终端有限公司 | 一种视频处理方法、电子设备及存储介质 |
CN113542591A (zh) * | 2021-06-02 | 2021-10-22 | 惠州Tcl移动通信有限公司 | 缩时摄影处理方法、装置、移动终端及存储介质 |
CN113891008B (zh) * | 2021-06-10 | 2022-08-09 | 荣耀终端有限公司 | 一种曝光强度调节方法及相关设备 |
CN113592751B (zh) * | 2021-06-24 | 2024-05-07 | 荣耀终端有限公司 | 图像处理方法、装置和电子设备 |
CN113810596B (zh) * | 2021-07-27 | 2023-01-31 | 荣耀终端有限公司 | 延时摄影方法和装置 |
CN113596339B (zh) * | 2021-09-07 | 2023-05-05 | 杭州海康威视数字技术股份有限公司 | 一种延时摄影文件生成方法、装置及电子设备 |
CN113709377A (zh) * | 2021-09-07 | 2021-11-26 | 深圳市道通智能航空技术股份有限公司 | 控制飞行器拍摄旋转延时视频的方法、装置、设备及介质 |
CN113556473B (zh) * | 2021-09-23 | 2022-02-08 | 深圳市天和荣科技有限公司 | 花朵开花过程的拍摄方法、装置、电子设备及存储介质 |
CN114119413A (zh) * | 2021-11-25 | 2022-03-01 | Oppo广东移动通信有限公司 | 图像处理方法及装置、可读介质和移动终端 |
CN114245017B (zh) * | 2021-12-21 | 2024-09-27 | 维沃移动通信有限公司 | 一种拍摄方法、装置及电子设备 |
CN114374798B (zh) * | 2022-01-10 | 2024-07-02 | Tcl通讯科技(成都)有限公司 | 场景识别方法、装置、电子设备和计算机可读存储介质 |
CN114189631B (zh) * | 2022-02-16 | 2022-07-01 | 荣耀终端有限公司 | 一种拍摄方法及电子设备 |
CN115564659B (zh) * | 2022-02-28 | 2024-04-05 | 荣耀终端有限公司 | 视频处理方法和装置 |
CN116347212B (zh) * | 2022-08-05 | 2024-03-08 | 荣耀终端有限公司 | 一种自动拍照方法及电子设备 |
US20240069626A1 (en) * | 2022-08-31 | 2024-02-29 | Snap Inc. | Timelapse re-experiencing system |
CN116708751B (zh) * | 2022-09-30 | 2024-02-27 | 荣耀终端有限公司 | 一种拍照时长的确定方法、装置和电子设备 |
CN116347224B (zh) * | 2022-10-31 | 2023-11-21 | 荣耀终端有限公司 | 拍摄帧率控制方法、电子设备、芯片系统及可读存储介质 |
CN115988317A (zh) * | 2022-12-12 | 2023-04-18 | Oppo广东移动通信有限公司 | 图像处理方法、装置、芯片、通信设备、及存储介质 |
CN117119291B (zh) * | 2023-02-06 | 2024-06-21 | 荣耀终端有限公司 | 一种出图模式切换方法和电子设备 |
CN118555467A (zh) * | 2023-02-27 | 2024-08-27 | 荣耀终端有限公司 | 一种拍照方法及电子设备 |
CN118555477A (zh) * | 2023-02-27 | 2024-08-27 | 荣耀终端有限公司 | 一种抓拍方法、终端设备及存储介质 |
CN116567407B (zh) * | 2023-05-04 | 2024-05-03 | 荣耀终端有限公司 | 一种相机参数配置方法及电子设备 |
CN117714850A (zh) * | 2023-08-31 | 2024-03-15 | 荣耀终端有限公司 | 延时摄影方法及其相关设备 |
CN117082225B (zh) * | 2023-10-12 | 2024-02-09 | 山东海量信息技术研究院 | 一种虚拟延时视频的生成方法、装置、设备及存储介质 |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104349060A (zh) * | 2013-08-06 | 2015-02-11 | 卡西欧计算机株式会社 | 图像处理装置以及图像处理方法 |
CN104811607A (zh) * | 2014-01-28 | 2015-07-29 | 卡西欧计算机株式会社 | 摄像装置以及摄像方法 |
CN104822015A (zh) * | 2014-01-30 | 2015-08-05 | 卡西欧计算机株式会社 | 图像处理装置以及图像处理方法 |
CN105323527A (zh) * | 2014-05-30 | 2016-02-10 | 苹果公司 | 用于时移视频的曝光计量的系统和方法 |
US20160344927A1 (en) * | 2015-05-21 | 2016-11-24 | Apple Inc. | Time Lapse User Interface Enhancements |
CN109688331A (zh) * | 2019-01-10 | 2019-04-26 | 深圳市阿力为科技有限公司 | 一种延时摄影方法及装置 |
Family Cites Families (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR102047882B1 (ko) * | 2013-04-02 | 2019-11-22 | 삼성전자주식회사 | 커버를 구비하는 전자 장치 |
JP2015139025A (ja) * | 2014-01-21 | 2015-07-30 | キヤノン株式会社 | 撮像装置 |
US9571741B1 (en) * | 2015-10-08 | 2017-02-14 | Gopro, Inc. | Smart shutter in low light |
US10284774B2 (en) * | 2015-12-25 | 2019-05-07 | Olympus Corporation | Information terminal apparatus, image pickup apparatus, image-information processing system, and image-information processing method for controlling time-lapse imaging |
JP6723092B2 (ja) * | 2016-06-24 | 2020-07-15 | キヤノン株式会社 | 撮像装置およびその制御方法ならびにプログラム |
CN106506950A (zh) * | 2016-10-27 | 2017-03-15 | 成都西纬科技有限公司 | 一种图像处理方法及装置 |
US10771712B2 (en) * | 2017-09-25 | 2020-09-08 | Gopro, Inc. | Optimized exposure temporal smoothing for time-lapse mode |
JP2019121857A (ja) * | 2017-12-28 | 2019-07-22 | キヤノン株式会社 | 電子機器及びその制御方法 |
JP2019146022A (ja) * | 2018-02-21 | 2019-08-29 | オリンパス株式会社 | 撮像装置及び撮像方法 |
AU2018415738B2 (en) * | 2018-03-27 | 2021-10-28 | Huawei Technologies Co., Ltd. | Photographing Mobile Terminal |
CN109040609B (zh) * | 2018-08-22 | 2021-04-09 | Oppo广东移动通信有限公司 | 曝光控制方法、装置、电子设备和计算机可读存储介质 |
CN109068067B (zh) * | 2018-08-22 | 2020-06-12 | Oppo广东移动通信有限公司 | 曝光控制方法、装置和电子设备 |
CN109743508A (zh) * | 2019-01-08 | 2019-05-10 | 深圳市阿力为科技有限公司 | 一种延时摄影装置及方法 |
CN110035141B (zh) * | 2019-02-22 | 2021-07-09 | 华为技术有限公司 | 一种拍摄方法及设备 |
CN110086985B (zh) * | 2019-03-25 | 2021-03-30 | 华为技术有限公司 | 一种延时摄影的录制方法及电子设备 |
-
2019
- 2019-09-18 CN CN201910882871.3A patent/CN112532857B/zh active Active
-
2020
- 2020-09-10 US US17/761,324 patent/US11800221B2/en active Active
- 2020-09-10 WO PCT/CN2020/114366 patent/WO2021052232A1/zh unknown
- 2020-09-10 EP EP20864952.5A patent/EP4024845A4/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104349060A (zh) * | 2013-08-06 | 2015-02-11 | 卡西欧计算机株式会社 | 图像处理装置以及图像处理方法 |
CN104811607A (zh) * | 2014-01-28 | 2015-07-29 | 卡西欧计算机株式会社 | 摄像装置以及摄像方法 |
CN104822015A (zh) * | 2014-01-30 | 2015-08-05 | 卡西欧计算机株式会社 | 图像处理装置以及图像处理方法 |
CN105323527A (zh) * | 2014-05-30 | 2016-02-10 | 苹果公司 | 用于时移视频的曝光计量的系统和方法 |
US20160344927A1 (en) * | 2015-05-21 | 2016-11-24 | Apple Inc. | Time Lapse User Interface Enhancements |
CN109688331A (zh) * | 2019-01-10 | 2019-04-26 | 深圳市阿力为科技有限公司 | 一种延时摄影方法及装置 |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023015959A1 (zh) * | 2021-08-12 | 2023-02-16 | 荣耀终端有限公司 | 拍摄方法及电子设备 |
EP4277257A4 (en) * | 2021-08-12 | 2024-10-09 | Honor Device Co Ltd | FILM PROCESS AND ELECTRONIC DEVICE |
CN114222075A (zh) * | 2022-01-28 | 2022-03-22 | 广州华多网络科技有限公司 | 移动端图像处理方法及其装置、设备、介质、产品 |
Also Published As
Publication number | Publication date |
---|---|
EP4024845A4 (en) | 2022-10-26 |
EP4024845A1 (en) | 2022-07-06 |
CN112532857A (zh) | 2021-03-19 |
CN112532857B (zh) | 2022-04-12 |
US20220247929A1 (en) | 2022-08-04 |
US11800221B2 (en) | 2023-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021052232A1 (zh) | 一种延时摄影的拍摄方法及设备 | |
WO2020168956A1 (zh) | 一种拍摄月亮的方法和电子设备 | |
WO2021052292A1 (zh) | 视频采集方法和电子设备 | |
KR102535607B1 (ko) | 사진 촬영 중 이미지를 표시하는 방법 및 전자 장치 | |
CN113132620B (zh) | 一种图像拍摄方法及相关装置 | |
WO2020073959A1 (zh) | 图像捕捉方法及电子设备 | |
CN113475057B (zh) | 一种录像帧率的控制方法及相关装置 | |
CN112532892B (zh) | 图像处理方法及电子装置 | |
CN113170037B (zh) | 一种拍摄长曝光图像的方法和电子设备 | |
CN112887583A (zh) | 一种拍摄方法及电子设备 | |
WO2023273323A1 (zh) | 一种对焦方法和电子设备 | |
CN113810603B (zh) | 点光源图像检测方法和电子设备 | |
WO2024078275A1 (zh) | 一种图像处理的方法、装置、电子设备及存储介质 | |
WO2022033344A1 (zh) | 视频防抖方法、终端设备和计算机可读存储介质 | |
WO2021204103A1 (zh) | 照片预览方法、电子设备和存储介质 | |
CN117714835B (zh) | 一种图像处理方法、电子设备及可读存储介质 | |
CN116709018B (zh) | 一种变焦条分割方法及电子设备 | |
CN117729420A (zh) | 一种连拍方法及电子设备 | |
CN115623323A (zh) | 一种拍摄方法及电子设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20864952 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 2020864952 Country of ref document: EP Effective date: 20220329 |