CN111107267A - Image processing method, device, equipment and storage medium - Google Patents

Image processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN111107267A
CN111107267A CN201911400058.4A CN201911400058A CN111107267A CN 111107267 A CN111107267 A CN 111107267A CN 201911400058 A CN201911400058 A CN 201911400058A CN 111107267 A CN111107267 A CN 111107267A
Authority
CN
China
Prior art keywords
image
video
terminal
preview
framing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911400058.4A
Other languages
Chinese (zh)
Inventor
黄学贤
李蕾
黄亚栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201911400058.4A priority Critical patent/CN111107267A/en
Publication of CN111107267A publication Critical patent/CN111107267A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/73Circuitry for compensating brightness variation in the scene by influencing the exposure time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof

Landscapes

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

Abstract

The application discloses an image processing method, an image processing device, image processing equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: acquiring a framing video shot by a terminal in a framing preview process; acquiring a first image shot by the terminal in advance, and respectively fusing the first image and each video frame in the view-finding video to obtain a fused video with a double exposure effect; and in the process of viewing preview, displaying the fused video on a viewing preview interface. The technical scheme provided by the embodiment of the application can improve the flexibility of shooting double-exposure effect images.

Description

Image processing method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to an image processing method, an image processing apparatus, an image processing device, and a storage medium.
Background
Double exposure is an image capture effect that can be traced back to the age of film photography. In the age of film photography, a photographer can perform two exposures on the same film to obtain an image with an illusion effect, i.e., a double exposure effect. After entering the digital photography era, users still want to capture images with double exposure effects using digital cameras. How to ensure the flexibility of shooting images with double exposure effect becomes a problem which needs to be solved urgently.
Disclosure of Invention
Based on this, embodiments of the present application provide an image processing method, apparatus, device, and storage medium, which can improve flexibility in capturing a double-exposure effect image.
In a first aspect, an image processing method is provided, which includes:
acquiring a framing video shot by a terminal in a framing preview process; acquiring a first image shot by the terminal in advance, and respectively fusing the first image and each video frame in the view-finding video to obtain a fused video with a double exposure effect; and in the process of viewing preview, displaying the fused video on a viewing preview interface.
In one embodiment, the method further comprises:
if a shooting instruction is received in the process of viewing and previewing, a second image shot by the terminal is obtained; and carrying out fusion processing on the first image and the second image to obtain a fused image with double exposure effects.
In one embodiment, the method further comprises:
and after the terminal shoots the first image based on the shooting instruction, controlling the terminal to enter a framing preview process.
In one embodiment, after acquiring the first image captured in advance, the method further includes:
compressing the first image to obtain a compressed image, and storing the compressed image in a memory;
correspondingly, the fusion processing is respectively carried out on the video frames in the first image and the viewfinder video, and the fusion processing comprises the following steps:
and acquiring the compressed image from the memory, and fusing the compressed image and each video frame in the view-finding video respectively.
In one embodiment, after acquiring the first image captured in advance, the method further includes:
storing the first image in a magnetic disk;
correspondingly, the process of fusing the video frames in the first image and the viewfinder video respectively includes:
and acquiring the first image from the magnetic disk, and fusing the first image and the second image.
In one embodiment, the view preview interface includes a first view preview frame and a second view preview frame, and the displaying the merged video in the view preview interface includes:
displaying the fused video in the first view-finding preview frame;
correspondingly, the method further comprises the following steps:
and displaying the framing video in the second framing preview frame.
In one embodiment, the method further comprises:
evaluating the double exposure effect of each video frame in the fused video to obtain the evaluation result of each video frame in the fused video; and displaying the video frame of which the evaluation result meets the preset condition as a recommended image.
In a second aspect, there is provided an image processing apparatus comprising:
the first acquisition module is used for acquiring a framing video shot by the terminal in the framing preview process;
the first fusion module is used for acquiring a first image shot by the terminal in advance, and respectively fusing the first image and each video frame in the view-finding video to obtain a fusion video with a double exposure effect;
and the first display module is used for displaying the fusion video on a view-finding preview interface in the view-finding preview process.
In one embodiment, the apparatus further comprises:
the second acquisition module is used for acquiring a second image shot by the terminal if a shooting instruction is received in the framing preview process;
and the second fusion module is used for carrying out fusion processing on the first image and the second image to obtain a fusion image with a double exposure effect.
In one embodiment, the apparatus further comprises:
and the control module is used for controlling the terminal to enter a framing preview process after the terminal shoots the first image based on the shooting instruction.
In one embodiment, the apparatus further comprises:
the compression module is used for compressing the first image to obtain a compressed image and storing the compressed image into the memory;
correspondingly, the first fusion module is specifically configured to: and acquiring the compressed image from the memory, and fusing the compressed image and each video frame in the view-finding video respectively.
In one embodiment, the apparatus further comprises:
the storage module is used for storing the first image into a magnetic disk;
correspondingly, the second fusion module is specifically configured to: and acquiring the first image from the magnetic disk, and fusing the first image and the second image.
In one embodiment, the view preview interface includes a first view preview frame and a second view preview frame, and the first display module is specifically configured to: displaying the fused video in the first view-finding preview frame; the first display module is further configured to: and displaying the framing video in the second framing preview frame.
In one embodiment, the apparatus further comprises:
the evaluation module is used for evaluating the double exposure effect of each video frame in the fusion video to obtain the evaluation result of each video frame in the fusion video;
and the second display module is used for displaying the video frames of which the evaluation results meet the preset conditions as recommended images.
In a third aspect, a computer device is provided, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, implements the image processing method according to any of the first aspects above.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the image processing method according to any of the first aspects described above.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
the terminal can acquire the framing video shot in the framing preview process, and acquire the first image shot in advance, then, the terminal can fuse each video frame in the first image and the framing video respectively, obtain the fusion video with the double exposure effect, in the framing preview process, the terminal can show the fusion video on the framing preview interface, therefore, the user can directly preview the effect of the fused image in the framing preview interface, therefore, the user can be prevented from shooting again, and the flexibility of shooting the double exposure effect image can be improved.
Drawings
FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application;
fig. 2 is a flowchart of an image processing method according to an embodiment of the present application;
FIG. 3 is a flowchart of another image processing method provided in the embodiments of the present application;
fig. 4 is a block diagram of an image processing apparatus according to an embodiment of the present application;
fig. 5 is a block diagram of another image processing apparatus according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The double exposure is an image photographing effect that can be traced back to the age of film photography, and after the age of digital photography, users still want to photograph images having the double exposure effect using a digital camera.
To meet the above-mentioned needs of users, many current photo-like applications support taking images with a double exposure effect. In general, when an image with a double exposure effect is shot, a user can trigger a shooting option, a control terminal shoots a first image, then the user can continue to trigger the shooting option, the control terminal shoots a second image, and after the two images are obtained, the terminal can fuse the two images by using a preset fusion algorithm, so that a fused image with the double exposure effect is obtained.
In practical application, after a first image is shot, the terminal enters a framing preview process, in the framing preview process, a camera of the terminal continuously shoots, wherein a framing video obtained by continuously shooting through the camera can be displayed in a framing preview interface, a user can know an image which can be shot by the current shooting terminal by observing the framing video displayed in the framing preview interface, and in the observation process, if the user finds that a picture in the framing video meets the shooting requirement of the user, the user can trigger a shooting option, so that the terminal is controlled to shoot a second image.
As can be seen from the above description, in the process of viewing and previewing, the user can only know the image that can be captured by the current shooting terminal according to the viewing video displayed on the viewing and previewing interface, but cannot know how the effect of the terminal after the image that can be captured is fused with the first image.
In other words, in the process of viewing and previewing, the user can only preview the shooting effect of the second image according to the viewing video displayed on the viewing and previewing interface, but cannot know the effect of the first image and the second image after being fused.
Because the user cannot know in advance how the effect of the first image and the second image is fused, the fused image obtained by fusing the first image and the second image by the terminal is often not in accordance with the shooting expectation of the user, and in this case, the user needs to shoot again, which undoubtedly affects the shooting flexibility.
In view of this, embodiments of the present application provide an image processing method, which can improve flexibility of capturing a double-exposure effect image. In the image processing method provided by the embodiment of the application, the terminal can acquire the framing video shot in the framing preview process and acquire the first image shot in advance, then the terminal can respectively perform fusion processing on the video frames in the first image and the framing video to obtain the fusion video with the double exposure effect, and in the framing preview process, the terminal can display the fusion video on the framing preview interface, so that a user can directly preview the effect of the fused image in the framing preview interface, therefore, the user can be prevented from shooting again, and the flexibility of shooting the double exposure effect image can be improved.
In the following, a brief description will be given of an implementation environment related to the image processing method provided in the embodiment of the present application.
As shown in fig. 1, the implementation environment may include a terminal 101, where the terminal 101 may be an electronic device such as a smartphone or a tablet computer, and the terminal 101 may be provided with a camera, and in practical applications, the camera provided in the terminal 101 may include at least one of a front camera and a rear camera. The terminal 101 may execute the image processing method provided by the embodiment of the present application.
Referring to fig. 1, a terminal 101 includes a processor and a memory connected by a system bus. Wherein the processor of the terminal 101 is used to provide computing and control capabilities. The memory of the terminal 101 includes a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The computer program is executed by a processor to implement an image processing method.
Those skilled in the art will appreciate that the configuration shown in fig. 1 is a block diagram of only a portion of the configuration associated with the present application, and does not constitute a limitation on the terminal 101 to which the present application is applied, and that a particular terminal 101 may include more or less components than those shown in the figures, or combine certain components, or have a different arrangement of components.
Referring to fig. 2, a flowchart of an image processing method provided in an embodiment of the present application is shown, where the image processing method can be applied to the terminal 101 in the embodiment shown in fig. 1. As shown in fig. 2, the image processing method may include the steps of:
step 201, the terminal acquires a framing video shot in the framing preview process.
As described above, in a possible implementation manner, when capturing an image with a double exposure effect, a user may trigger a capturing option provided by the terminal, the terminal may generate a capturing instruction after detecting that the capturing option is triggered, and capture a first image (i.e., a first image hereinafter) based on the capturing instruction, and after capturing the first image, the terminal may enter a framing preview process.
In another possible implementation manner, a user may select an image (i.e., the first image hereinafter) from a plurality of images stored in the terminal, and after selecting the first image, the terminal may enter a framing preview process, in other words, the terminal may provide an image selection interface, where the image selection interface displays a plurality of images, and after detecting a selection instruction for one image (i.e., the first image hereinafter) of the plurality of images based on the image selection interface, the terminal may enter the framing preview process.
As described above, after entering the view preview process, the camera of the terminal continues to capture the images, and in step 201, the terminal may acquire the view video captured continuously by the camera.
It should be noted that, in practical applications, a front camera and a rear camera may be disposed in the terminal, and optionally, after entering the viewing preview process, the terminal may control the front camera to continuously shoot, and may also control the rear camera to continuously shoot.
For example, in one possible implementation manner, after detecting that the shooting option is triggered, the terminal may control one of the front camera and the rear camera to shoot, so as to obtain a first image, and after obtaining the first image by shooting, the terminal may enter a framing preview process, where during the framing preview process, the terminal may control the other of the front camera and the rear camera to continue shooting.
Step 202, the terminal acquires a first image shot in advance.
As described above, the first image may be an image captured by the terminal before entering the framing preview process and after detecting that the capturing option is triggered.
In addition, the first image may also be an image selected by the user from a plurality of images displayed on the image selection interface.
And step 203, the terminal performs fusion processing on each video frame in the first image and the view video respectively to obtain a fusion video with double exposure effects.
In other words, in step 203, for each video frame in the viewfinder video, the terminal may perform the fusion processing on the video frame and the first image, thereby obtaining a fused video frame with a double exposure effect. The fused video is composed of a plurality of fused video frames obtained by the terminal.
Optionally, for each video frame in the viewfinder video, the terminal may obtain, from the first image, a second pixel corresponding to the first pixel in the video frame, and then, the terminal may calculate, by using a preset fusion algorithm, a fusion pixel value according to a pixel value of the first pixel and a pixel value of the second pixel. The terminal may generate a fused video frame composed of the calculated plurality of fused pixel values.
And 204, in the process of viewing and previewing, the terminal displays the fusion video on a viewing and previewing interface.
It should be noted that the terminal displays the fusion video in the view preview interface in real time, where "displaying the fusion video in real time" refers to: and at the moment k, the video frame in the fused video displayed on the viewing preview interface by the terminal corresponds to the video frame in the viewing video shot by the terminal at the moment k.
In other words, at the time k, the video frame in the fused video displayed by the terminal on the viewing preview interface is obtained by fusing the video frame in the viewing video shot by the terminal at the time k and the first image.
Referring to fig. 3, on the basis of the above-mentioned embodiment, the image processing method provided in the embodiment of the present application further includes the following steps:
step 301, if a shooting instruction is received in the process of viewing preview, the terminal acquires a shot second image.
In the viewing preview process, a user can observe the fusion video displayed in the viewing preview interface, in the observation process, if the user finds that the double exposure effect presented by the picture in the fusion video accords with the shooting expectation of the user, the user can trigger the shooting option, after the terminal detects the triggering operation of the shooting option, the terminal can generate and receive a shooting instruction, and the terminal can shoot to obtain a second image based on the shooting instruction.
It should be noted that the camera used by the terminal to capture the second image is the same camera as the camera that continuously captures the second image during the framing preview process.
And step 302, the terminal performs fusion processing on the first image and the second image to obtain a fused image with a double exposure effect.
After the second image is obtained through shooting, the terminal may perform fusion processing on the first image and the second image, so as to obtain a fusion image with a double exposure effect, where a technical process of performing fusion processing on the first image and the second image by the terminal is the same as a technical process of performing fusion processing on video frames in the first image and the viewfinder video by the terminal, and details of the embodiment of the present application are not repeated here.
In an optional embodiment of the present application, after the terminal acquires the first image, the terminal may perform compression processing on the first image to obtain a compressed image, and store the compressed image in the memory.
For example, as described above, the terminal may capture the first image after detecting that the capture option is triggered, in this embodiment of the application, optionally, the terminal may perform compression processing on the first image after capturing the first image to obtain a compressed image, and store the compressed image in the memory.
For another example, as described above, the terminal may obtain the first image from the local terminal after detecting the selection instruction for the first image based on the image selection interface, and after obtaining the first image, optionally, the terminal may perform compression processing on the first image to obtain a compressed image, and store the compressed image in the memory.
In addition, after the first image is captured, the terminal may store an original version of the first image (i.e., the uncompressed first image) in the magnetic disk.
Corresponding to the technical process described above:
in step 203, the terminal may obtain the compressed image from the memory, and perform fusion processing on the compressed image and each video frame in the viewfinder video.
In practical application, fusion processing generally involves a large amount of operations, the operation time delay is long, and the long operation time delay can cause that a terminal cannot timely perform fusion processing on video frames in a first image and a framing video, so that a fusion video is blocked in a framing preview interface.
In order to avoid video blocking, on one hand, the terminal can perform fusion processing on video frames in the compressed image and the viewfinder video, and the data volume of the compressed image is reduced compared with that of the first image, so that the calculation amount involved in the fusion processing by using the compressed image is reduced, the calculation time delay is also reduced, and the purpose of avoiding video blocking can be achieved; on the other hand, the terminal can acquire the compressed image from the memory, and the reading speed of the memory is far higher than that of the magnetic disk, so that the operation time delay can be further reduced by acquiring the compressed video from the memory, and the purpose of avoiding the video fusion blocking can be achieved.
It should be noted that, in order to further reduce the operation delay and avoid the video frame fusion, in step 203, the terminal may further perform compression processing on each video frame in the viewfinder video, and then the terminal may perform fusion processing on the compressed image and each video frame after the compression processing, respectively.
In step 302, the terminal may acquire the first image of the original version from the magnetic disk, and perform fusion processing on the acquired first image and the acquired second image.
In order to ensure the effect of fusing images, in the embodiment of the present application, the terminal may perform fusion processing on the first image and the second image in the original version.
In an optional embodiment of the present application, the viewing preview interface may include a first viewing preview frame and a second viewing preview frame, and the terminal may display the merged video in the first viewing preview frame and display the viewing video in the second viewing preview frame.
In practical application, a user has a requirement for previewing the fusion effect and a requirement for previewing the shooting effect of the second image, in order to meet the two requirements of the user, in the embodiment of the application, a first viewing preview frame and a second viewing preview frame can be respectively arranged in a viewing preview interface, wherein the terminal can display the fusion video in the first viewing preview frame and display the viewing video in the second viewing preview frame.
Optionally, the terminal may further set a preview frame enlargement option for each of the first view preview frame and the second view preview frame, and after detecting a trigger operation on the preview frame enlargement option of a certain view preview frame (the first view preview frame or the second view preview frame), the terminal may enlarge the certain view preview frame.
Optionally, the terminal may further set a preview frame closing option for each of the first view preview frame and the second view preview frame, and after detecting a trigger operation on the preview frame closing option of a certain view preview frame (the first view preview frame or the second view preview frame), the terminal may close the certain view preview frame.
In an optional embodiment of the application, the terminal may evaluate a double exposure effect of each video frame in the fusion video to obtain an evaluation result of each video frame in the fusion video, and then, the terminal may display the video frame of which the evaluation result satisfies a preset condition as a recommended image.
In order to assist the user in shooting, the terminal can evaluate the double exposure effect of each video frame in the fusion video, and recommend the video frame of which the evaluation result meets the preset condition to the user so as to prompt the user to shoot.
Referring to fig. 4, a block diagram of an image processing apparatus 400 according to an embodiment of the present application is shown, where the image processing apparatus 400 may be configured in the terminal described above. As shown in fig. 4, the image processing apparatus 400 may include: a first obtaining module 401, a first fusing module 402 and a first display module 403.
The first obtaining module 401 is configured to obtain a viewfinder video captured by the terminal in a viewfinder preview process.
The first fusion module 402 is configured to obtain a first image shot by the terminal in advance, and perform fusion processing on each video frame in the first image and the view video, respectively, to obtain a fusion video with a double exposure effect.
The first displaying module 403 is configured to display the merged video on a view preview interface in a view preview process.
In an embodiment of the present application, the view preview interface includes a first view preview frame and a second view preview frame, and the first display module 403 is specifically configured to: displaying the fused video in the first view-finding preview frame; the first display module 403 is further configured to: and displaying the framing video in the second framing preview frame.
Referring to fig. 5, an embodiment of the present application further provides another image processing apparatus 500, where the image processing apparatus 500 includes, in addition to the modules included in the image processing apparatus 400, optionally, the image processing apparatus 500 may further include a second obtaining module 404, a second fusing module 405, a control module 406, a compression module 407, a storage module 408, an evaluation module 409, and a second presentation module 410.
The second obtaining module 404 is configured to obtain a second image captured by the terminal if a shooting instruction is received in the process of viewing and previewing.
The second fusion module 405 is configured to perform fusion processing on the first image and the second image to obtain a fusion image with a double exposure effect.
The control module 406 is configured to control the terminal to enter a framing preview process after the terminal captures the first image based on the capture instruction.
The compression module 407 is configured to perform compression processing on the first image to obtain a compressed image, and store the compressed image in an internal memory.
Correspondingly, the first fusion module 402 is specifically configured to: and acquiring the compressed image from the memory, and fusing the compressed image and each video frame in the view-finding video respectively.
The storage module 408 is configured to store the first image in a magnetic disk.
Correspondingly, the second fusion module 405 is specifically configured to: and acquiring the first image from the magnetic disk, and fusing the first image and the second image.
The evaluation module 409 is configured to evaluate a double exposure effect of each video frame in the fusion video to obtain an evaluation result of each video frame in the fusion video.
The second display module 410 is configured to display the video frame of which the evaluation result meets the preset condition as a recommended image.
The image processing apparatus provided in the embodiment of the present application can implement the method embodiments, and the implementation principle and the technical effect are similar, which are not described herein again.
For specific limitations of the image processing apparatus, reference may be made to the above limitations of the image processing method, which are not described herein again. The respective modules in the image processing apparatus described above may be wholly or partially implemented by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment of the present application, there is provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the following steps when executing the computer program:
acquiring a framing video shot by a terminal in a framing preview process; acquiring a first image shot by the terminal in advance, and respectively fusing the first image and each video frame in the view-finding video to obtain a fused video with a double exposure effect; and in the process of viewing preview, displaying the fused video on a viewing preview interface.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: if a shooting instruction is received in the process of viewing and previewing, a second image shot by the terminal is obtained; and carrying out fusion processing on the first image and the second image to obtain a fused image with double exposure effects.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and after the terminal shoots the first image based on the shooting instruction, controlling the terminal to enter a framing preview process.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and compressing the first image to obtain a compressed image, storing the compressed image into a memory, acquiring the compressed image from the memory, and fusing the compressed image and each video frame in the viewfinder video respectively.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and storing the first image into a magnetic disk, acquiring the first image from the magnetic disk, and fusing the first image and the second image.
In an embodiment of the present application, the processor further implements the following steps when executing the computer program: displaying the fused video in the first view-finding preview frame; and displaying the framing video in the second framing preview frame.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: evaluating the double exposure effect of each video frame in the fused video to obtain the evaluation result of each video frame in the fused video; and displaying the video frame of which the evaluation result meets the preset condition as a recommended image.
The implementation principle and technical effect of the computer device provided by the embodiment of the present application are similar to those of the method embodiment described above, and are not described herein again.
In an embodiment of the application, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of:
acquiring a framing video shot by a terminal in a framing preview process; acquiring a first image shot by the terminal in advance, and respectively fusing the first image and each video frame in the view-finding video to obtain a fused video with a double exposure effect; and in the process of viewing preview, displaying the fused video on a viewing preview interface.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: if a shooting instruction is received in the process of viewing and previewing, a second image shot by the terminal is obtained; and carrying out fusion processing on the first image and the second image to obtain a fused image with double exposure effects.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and after the terminal shoots the first image based on the shooting instruction, controlling the terminal to enter a framing preview process.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and compressing the first image to obtain a compressed image, storing the compressed image into a memory, acquiring the compressed image from the memory, and fusing the compressed image and each video frame in the viewfinder video respectively.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: and storing the first image into a magnetic disk, acquiring the first image from the magnetic disk, and fusing the first image and the second image.
The viewing preview interface includes a first viewing preview pane and a second viewing preview pane, and in one embodiment of the application, the computer program when executed by the processor further performs the steps of: displaying the fused video in the first view-finding preview frame; and displaying the framing video in the second framing preview frame.
In one embodiment of the application, the computer program when executed by the processor further performs the steps of: evaluating the double exposure effect of each video frame in the fused video to obtain the evaluation result of each video frame in the fused video; and displaying the video frame of which the evaluation result meets the preset condition as a recommended image.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the claims. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An image processing method, characterized in that the method comprises:
acquiring a framing video shot by a terminal in a framing preview process;
acquiring a first image shot by the terminal in advance, and respectively fusing each video frame in the first image and the view finding video to obtain a fused video with a double exposure effect;
and in the process of viewing preview, displaying the fused video on a viewing preview interface.
2. The method of claim 1, further comprising:
if a shooting instruction is received in the process of viewing and previewing, a second image shot by the terminal is obtained;
and carrying out fusion processing on the first image and the second image to obtain a fusion image with a double exposure effect.
3. The method of claim 1, further comprising:
and after the terminal shoots the first image based on the shooting instruction, controlling the terminal to enter a framing preview process.
4. The method of claim 1, wherein after acquiring the pre-captured first image, the method further comprises:
compressing the first image to obtain a compressed image, and storing the compressed image in a memory;
correspondingly, the respectively fusing the video frames in the first image and the viewfinder video includes:
and acquiring the compressed image from the memory, and fusing the compressed image and each video frame in the view-finding video respectively.
5. The method of claim 2, wherein after acquiring the pre-captured first image, the method further comprises:
storing the first image in a magnetic disk;
correspondingly, the respectively fusing the video frames in the first image and the viewfinder video includes:
and acquiring the first image from the magnetic disk, and fusing the first image and the second image.
6. The method of claim 1, wherein the viewfinder preview interface includes a first viewfinder preview pane and a second viewfinder preview pane, and wherein presenting the blended video in the viewfinder preview interface includes:
displaying the fused video in the first view-finding preview frame;
correspondingly, the method further comprises:
and displaying the framing video in the second framing preview frame.
7. The method of claim 1, further comprising:
evaluating the double exposure effect of each video frame in the fused video to obtain the evaluation result of each video frame in the fused video;
and displaying the video frame of which the evaluation result meets the preset condition as a recommended image.
8. An image processing apparatus, characterized in that the apparatus comprises:
the first acquisition module is used for acquiring a framing video shot by the terminal in the framing preview process;
the first fusion module is used for acquiring a first image shot by the terminal in advance, and respectively fusing each video frame in the first image and the view finding video to obtain a fusion video with a double exposure effect;
and the first display module is used for displaying the fusion video on a view-finding preview interface in the view-finding preview process.
9. A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, implements the image processing method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the image processing method according to any one of claims 1 to 7.
CN201911400058.4A 2019-12-30 2019-12-30 Image processing method, device, equipment and storage medium Pending CN111107267A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911400058.4A CN111107267A (en) 2019-12-30 2019-12-30 Image processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911400058.4A CN111107267A (en) 2019-12-30 2019-12-30 Image processing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111107267A true CN111107267A (en) 2020-05-05

Family

ID=70425224

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911400058.4A Pending CN111107267A (en) 2019-12-30 2019-12-30 Image processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111107267A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112017215A (en) * 2020-08-06 2020-12-01 影石创新科技股份有限公司 Image processing method, image processing device, computer-readable storage medium and computer equipment
CN112135049A (en) * 2020-09-24 2020-12-25 维沃移动通信有限公司 Image processing method and device and electronic equipment
CN114286002A (en) * 2021-12-28 2022-04-05 维沃移动通信有限公司 Image processing circuit, method and device, electronic equipment and chip
CN116723416B (en) * 2022-10-21 2024-04-02 荣耀终端有限公司 Image processing method and electronic equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115131A (en) * 2006-07-28 2008-01-30 南京理工大学 Pixel space relativity based image syncretizing effect real-time estimating method and apparatus
CN102761690A (en) * 2011-04-28 2012-10-31 佳能株式会社 Imaging apparatus and method for controlling the same
CN103841322A (en) * 2014-02-20 2014-06-04 宇龙计算机通信科技(深圳)有限公司 Terminal and cooperative photographing method
CN105657247A (en) * 2015-11-20 2016-06-08 乐视移动智能信息技术(北京)有限公司 Secondary exposure photographing method and apparatus for electronic device
CN106294681A (en) * 2016-08-05 2017-01-04 腾讯科技(深圳)有限公司 The methods, devices and systems of multiple-exposure
CN107426486A (en) * 2017-04-19 2017-12-01 宇龙计算机通信科技(深圳)有限公司 Preview image synthetic method and system
CN109120853A (en) * 2018-09-27 2019-01-01 维沃移动通信有限公司 A kind of long exposure image image pickup method and terminal
CN110072061A (en) * 2019-05-31 2019-07-30 努比亚技术有限公司 A kind of interactive mode image pickup method, mobile terminal and storage medium
CN110326287A (en) * 2019-05-14 2019-10-11 深圳市大疆创新科技有限公司 Image pickup method and device
CN110611768A (en) * 2019-09-27 2019-12-24 北京小米移动软件有限公司 Multiple exposure photographic method and device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101115131A (en) * 2006-07-28 2008-01-30 南京理工大学 Pixel space relativity based image syncretizing effect real-time estimating method and apparatus
CN102761690A (en) * 2011-04-28 2012-10-31 佳能株式会社 Imaging apparatus and method for controlling the same
CN103841322A (en) * 2014-02-20 2014-06-04 宇龙计算机通信科技(深圳)有限公司 Terminal and cooperative photographing method
CN105657247A (en) * 2015-11-20 2016-06-08 乐视移动智能信息技术(北京)有限公司 Secondary exposure photographing method and apparatus for electronic device
CN106294681A (en) * 2016-08-05 2017-01-04 腾讯科技(深圳)有限公司 The methods, devices and systems of multiple-exposure
CN107426486A (en) * 2017-04-19 2017-12-01 宇龙计算机通信科技(深圳)有限公司 Preview image synthetic method and system
CN109120853A (en) * 2018-09-27 2019-01-01 维沃移动通信有限公司 A kind of long exposure image image pickup method and terminal
CN110326287A (en) * 2019-05-14 2019-10-11 深圳市大疆创新科技有限公司 Image pickup method and device
CN110072061A (en) * 2019-05-31 2019-07-30 努比亚技术有限公司 A kind of interactive mode image pickup method, mobile terminal and storage medium
CN110611768A (en) * 2019-09-27 2019-12-24 北京小米移动软件有限公司 Multiple exposure photographic method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112017215A (en) * 2020-08-06 2020-12-01 影石创新科技股份有限公司 Image processing method, image processing device, computer-readable storage medium and computer equipment
CN112135049A (en) * 2020-09-24 2020-12-25 维沃移动通信有限公司 Image processing method and device and electronic equipment
CN114286002A (en) * 2021-12-28 2022-04-05 维沃移动通信有限公司 Image processing circuit, method and device, electronic equipment and chip
CN116723416B (en) * 2022-10-21 2024-04-02 荣耀终端有限公司 Image processing method and electronic equipment

Similar Documents

Publication Publication Date Title
CN111107267A (en) Image processing method, device, equipment and storage medium
JP6388673B2 (en) Mobile terminal and imaging method thereof
WO2017096866A1 (en) Method and apparatus for generating high dynamic range image
US20170085770A1 (en) Mobile terminal photographing method and mobile terminal
CN107743191B (en) Terminal, anti-shake photographing method thereof and storage device
EP2981061A1 (en) Method and apparatus for displaying self-taken images
CN112087580B (en) Image acquisition method and device, electronic equipment and computer readable storage medium
WO2019056527A1 (en) Capturing method and device
CN113347334B (en) Nondestructive photographing method and device for mobile terminal, terminal equipment and storage medium
JP2010063104A (en) Digital camera for importing and organizing image before and after shutter signal
WO2019214574A1 (en) Image capturing method and apparatus, and electronic terminal
US9888176B2 (en) Video apparatus and photography method thereof
CN110177212B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN111586308B (en) Image processing method and device and electronic equipment
CN112770042A (en) Image processing method and device, computer readable medium, wireless communication terminal
CN109523456B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN109120851B (en) Image processing method and device and electronic equipment
CN110072056B (en) Data processing method and device based on multiple camera modules
CN109120856B (en) Camera shooting method and device
CN116456191A (en) Image generation method, device, equipment and computer readable storage medium
CN111970435B (en) Method and device for macro photography
CN112653841B (en) Shooting method and device and electronic equipment
CN112911130A (en) Auxiliary view finding method, device, terminal and storage medium
CN109582811B (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN112543286A (en) Image generation method and device for terminal, storage medium and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200505

RJ01 Rejection of invention patent application after publication